PushMessageManager

abstract class PushMessageManager

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun disablePush()
Disables push messaging in the SDK.
Link copied to clipboard
abstract fun enablePush()
Enabled push messaging in the SDK.
Link copied to clipboard
Returns information that can help investigate push message issues.
Link copied to clipboard
abstract fun getPushToken(): String
Returns the push token used to push.
Link copied to clipboard
abstract fun handleMessage(@NonNull message: RemoteMessage): Boolean
Handles the remote message payload for and message sent from the Marketing Cloud.
abstract fun handleMessage(@NonNull pushData: Map<String, String>): Boolean
Handles the push message payload for any message sent from the Marketing Cloud.
Link copied to clipboard
open fun isMarketingCloudPush(@NonNull message: RemoteMessage): Boolean
Helper method to identify a RemoteMessage sent from the Marketing Cloud.
Helper method to identify a push message payload sent from the Marketing Cloud.
Link copied to clipboard
abstract fun isPushEnabled(): Boolean
Returns whether or not push messaging is enabled.
Link copied to clipboard
Registers the provided listener.
Link copied to clipboard
Link copied to clipboard
abstract fun setPushToken(@NonNull pushToken: String)
Only call this method if you are handling the request, and refresh of, the push token from Google.
Link copied to clipboard
Unregisters the provided listener.
Link copied to clipboard