Marketing Cloud SDK / com.salesforce.marketingcloud.registration / InternalEditor / setContactKey

setContactKey

abstract fun setContactKey(@Size(1) contactKey: String, notifyModules: Boolean): Editor

Internal setter for contactKey allowing for the toggling of whether or not to rebroadcast this change to the Unified SDK.

Parameters

contactKey - any non-null string with at least 1 non-white space character.

notifyModules - true will set the value on the unified SDK's identity, caution, it may have been an identity call that resulted in this method being called.

Return
RegistrationManager.Editor