Sets the contact key for the device's user.
Syntax
MCCordovaPlugin.setContactKey(contactKey, [successCallback], [errorCallback])
Kind
Static method of MCCordovaPlugin.
Parameters
| Parameter | Type | Description |
|---|---|---|
contactKey |
string |
The value to be set as the contact key of the device's user. |
successCallback |
function |
|
successCallback.saved |
boolean |
Whether the value passed in for contactKey was saved in the registration. |
errorCallback |
function |