Companion

object Companion

Properties

Internal API. Do not use.

Link copied to clipboard

Internal API. Do not use.

Functions

Link copied to clipboard
fun createPayload(context: Context, appConfigurationProvider: BrazeConfigurationProvider, notificationExtras: Bundle, brazeExtras: Bundle): BrazeNotificationPayload

Creates a BrazeNotificationPayload from the notification extras and Braze extras bundles.

Link copied to clipboard
fun handleAdmRegistrationEventIfEnabled(appConfigurationProvider: BrazeConfigurationProvider, context: Context, intent: Intent): Boolean

Handles an ADM registration event if ADM messaging registration is enabled in the configuration.

Link copied to clipboard

Processes the registration/unregistration result returned from the ADM servers. If the registration/unregistration is successful, this will store/clear the registration ID from the device. Otherwise, it will log an error message and the device will not be able to receive ADM messages.

Link copied to clipboard

Processes a Braze push notification payload: validates the message, creates and displays the notification, handles push stories, uninstall tracking, and push delivery logging.

Link copied to clipboard
fun handleReceivedIntent(context: Context, intent: Intent, runOnThread: Boolean = true)

Routes an incoming push Intent to the appropriate handler. By default, processing occurs on a background coroutine to avoid blocking the calling thread.