RegistrationManager
The RegistrationManager interface provides methods for managing SDK registration, including contact keys, attributes, tags, and push notification settings in the Salesforce Marketing Cloud SDK.
This class handles the setting of customer configurable values in the SDK.
Interface for receiving registration-related events.
Returns an instance of Editor which can be used to update the SDK’s configurable values including contact key, attributes, and tags.
Returns: An Editor instance for modifying registration values
Getter for attributes map.
Returns: Map of attribute key-value pairs
Getter for contactKey, formerly known as SubscriberKey in the SDK.
Returns: The current contact key, or null if not set
Getter for the running device’s unique identifier.
Returns: The device’s unique identifier
Getter for ‘Signed String’
Returns: The signed string value, or null if not available
Getter for Google’s Push Notification Token
Returns: The push notification token, or null if not available
Getter for tags
Returns: Set of tags associated with the registration
Checks if push notifications are currently enabled for this device.
Returns: true if push is enabled, false otherwise
Register a registrationEventListener that will be notified when Registration related events happen.
Parameters:
listener- The RegistrationEventListener to register
Unregister a registrationEventListener
Parameters:
listener- The RegistrationEventListener to unregister