Marketing Cloud SDK / com.salesforce.marketingcloud.registration / RegistrationManager

RegistrationManager

interface RegistrationManager

Types

Editor

This class handles the setting of customer configurable values in the SDK. All validation for length, type, nullability, etc. is completed within the editor. When the editor's commit method is called the SDK will compare the running configuration to the previously successfully processed configuration. If there have been any changes they will be stored locally and transmitted to the Marketing Cloud Servers.

interface Editor

RegistrationEventListener

interface RegistrationEventListener

Properties

MAX_MT_ATTRIBUTE_KEY_SIZE

static val MAX_MT_ATTRIBUTE_KEY_SIZE: Int

Functions

edit

Returns an instance of Editor which can be used to update the SDK's configurable values like contactKey, attributes or tags.

abstract fun edit(): Editor

getAttributes

Getter for attributes map.

abstract fun getAttributes(): MutableMap<String!, String!>

getContactKey

Getter for contactKey, formerly known as SubscriberKey in the SDK. The name has been changed to align the SDK with the Salesforce Marketing Cloud Contacts DB. If ContactKey is unset then a random GUID will be set in the Marketing Cloud.

abstract fun getContactKey(): String?

getDeviceId

Getter for the running device's unique identifier.

abstract fun getDeviceId(): String

getSignedString

Getter for "Signed String"

abstract fun getSignedString(): String?

getSystemToken

Getter for Google's Push Notification Token

abstract fun getSystemToken(): String?

getTags

Getter for tags

abstract fun getTags(): MutableSet<String!>

registerForRegistrationEvents

Register a registrationEventListener that will be notified when Registration related events happen.

abstract fun registerForRegistrationEvents(listener: RegistrationEventListener): Unit

unregisterForRegistrationEvents

Unregister a registrationEventListener

abstract fun unregisterForRegistrationEvents(listener: RegistrationEventListener): Unit