RegistrationManager

Package: com.salesforce.marketingcloud.mobileappmessaging.registration
Platform: androidJvm
SDK Version: 11.0.0

Overview 

1interface RegistrationManager

An interface that manages device registration data within the MobileAppMessaging module.

This interface provides access to device registration details, party identification information, and event notifications for registration updates. It serves as the primary API for registration-related operations.


Nested Types 

RegistrationEventListener 

1fun interface RegistrationEventListener

A functional interface for listening to registration events.


Functions 

getDeviceId 

1abstract fun getDeviceId(): String

Retrieves the device identifier.

Returns: A String containing the device ID.


registerForRegistrationEvents 

1abstract fun registerForRegistrationEvents(
2    listener: RegistrationManager.RegistrationEventListener
3)

Registers a listener to receive registration update events.

Parameters:

  • listener - The RegistrationEventListener to register for receiving events.

unregisterForRegistrationEvents 

1abstract fun unregisterForRegistrationEvents(
2    listener: RegistrationManager.RegistrationEventListener
3)

Removes a previously registered listener.

Parameters:

  • listener - The RegistrationEventListener to unregister from receiving events.