setContactKey

Sets the contact key for the device’s user.

Syntax 

MCCordovaPlugin.setContactKey(contactKey, [successCallback], [errorCallback])

Kind 

Static method of MCCordovaPlugin.

Parameters 

ParameterTypeDescription
contactKeystringThe value to be set as the contact key of the device’s user.
successCallbackfunction
successCallback.savedbooleanWhether the value passed in for contactKey was saved in the registration.
errorCallbackfunction

See Also