NotificationBundle

class NotificationBundle(val bundle: Bundle)

Wrapper with helpers to load data from the bundle received with a notification sent using Marigold Platform

Constructors

Link copied to clipboard
constructor(remoteMessage: RemoteMessage)

Construct a new instance of NotificationBundle, from the provided RemoteMessage

constructor(bundle: Bundle)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Generates unique IDs for Notification Actions to so that unique PendingIntents can be created for them.

Link copied to clipboard

Build an id to be used to identify the notification while calling android.app.NotificationManager.notify. This ID is used by the Android OS to collapse notifications, if necessary.

Link copied to clipboard
fun getActionLink(actionTapped: ActionTapped): String?

Retrieves any custom links/deeplinks for this action from the notification payload and returns as a string.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Return bundle containing remote input results.

Link copied to clipboard
fun getSound(defaultValue: String?): String?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
Link copied to clipboard
fun setRemoteInputBundle(remoteInputBundle: Bundle?)

Set the bundle containing the remote input results.