Companion

object Companion

Functions

Link copied to clipboard

Returns a NotificationCompat.BigPictureStyle notification style initialized with the bitmap, big title, and big summary specified in the notificationExtras and brazeExtras bundles.

Link copied to clipboard
fun getBigTextNotificationStyle(payload: BrazeNotificationPayload): NotificationCompat.BigTextStyle

Returns a NotificationCompat.BigTextStyle notification style initialized with the content, big title, and big summary specified in the notificationExtras and brazeExtras bundles.

Link copied to clipboard
fun getConversationalPushStyle(notificationBuilder: NotificationCompat.Builder, payload: BrazeNotificationPayload): NotificationCompat.MessagingStyle?

Returns a NotificationCompat.MessagingStyle for conversational push notifications, or null if the conversation data is incomplete.

Link copied to clipboard
@RequiresApi(api = 23)
fun getInlineImageStyle(payload: BrazeNotificationPayload, notificationBuilder: NotificationCompat.Builder): NotificationCompat.Style?

This method sets a fully custom android.widget.RemoteViews.RemoteView to render the notification.

Link copied to clipboard
fun getNotificationStyle(notificationBuilder: NotificationCompat.Builder, payload: BrazeNotificationPayload): NotificationCompat.Style

Returns a big style NotificationCompat.Style. If an image is present, this will be a NotificationCompat.BigPictureStyle, otherwise it will be a NotificationCompat.BigTextStyle.

Link copied to clipboard
Link copied to clipboard
fun setBigPictureSummaryAndTitle(bigPictureNotificationStyle: NotificationCompat.BigPictureStyle, payload: BrazeNotificationPayload)
Link copied to clipboard
fun setStyleIfSupported(notificationBuilder: NotificationCompat.Builder, payload: BrazeNotificationPayload)

Sets the style of the notification if supported.