public class BrazeNotificationStyleFactory
extends java.lang.Object
Constructor and Description |
---|
BrazeNotificationStyleFactory() |
Modifier and Type | Method and Description |
---|---|
static NotificationCompat.Style |
getBigNotificationStyle(android.content.Context context,
android.os.Bundle notificationExtras,
android.os.Bundle appboyExtras,
NotificationCompat.Builder notificationBuilder)
Deprecated.
Please use
#getNotificationStyle(BrazeNotificationPayload) |
static NotificationCompat.BigPictureStyle |
getBigPictureNotificationStyle(BrazeNotificationPayload payload)
Returns a BigPictureStyle notification style initialized with the bitmap, big title, and big summary
specified in the notificationExtras and appboyExtras bundles.
|
static NotificationCompat.BigPictureStyle |
getBigPictureNotificationStyle(android.content.Context context,
android.os.Bundle notificationExtras,
android.os.Bundle appboyExtras)
Deprecated.
|
static NotificationCompat.BigTextStyle |
getBigTextNotificationStyle(BrazeConfigurationProvider appboyConfigurationProvider,
android.os.Bundle notificationExtras)
Deprecated.
|
static NotificationCompat.BigTextStyle |
getBigTextNotificationStyle(BrazeNotificationPayload payload)
Returns a BigTextStyle notification style initialized with the content, big title, and big summary
specified in the notificationExtras and appboyExtras bundles.
|
static NotificationCompat.MessagingStyle |
getConversationalPushStyle(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload) |
static NotificationCompat.Style |
getInlineImageStyle(BrazeNotificationPayload payload,
NotificationCompat.Builder notificationBuilder)
This method sets a fully custom
RemoteViews.RemoteView to render the
notification. |
static NotificationCompat.Style |
getNotificationStyle(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload)
Returns a big style NotificationCompat.Style.
|
static NotificationCompat.DecoratedCustomViewStyle |
getStoryStyle(android.content.Context context,
android.os.Bundle notificationExtras,
android.os.Bundle appboyExtras,
NotificationCompat.Builder notificationBuilder)
Deprecated.
Please use
#getStoryStyle(BrazeNotificationPayload) |
static NotificationCompat.DecoratedCustomViewStyle |
getStoryStyle(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload)
Returns a
androidx.core.app.NotificationCompat.DecoratedCustomViewStyle for push story. |
static void |
setStyleIfSupported(NotificationCompat.Builder notificationBuilder,
BrazeNotificationPayload payload)
Sets the style of the notification if supported.
|
public static void setStyleIfSupported(NotificationCompat.Builder notificationBuilder, BrazeNotificationPayload payload)
@Deprecated public static NotificationCompat.Style getBigNotificationStyle(android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras, NotificationCompat.Builder notificationBuilder)
#getNotificationStyle(BrazeNotificationPayload)
public static NotificationCompat.Style getNotificationStyle(NotificationCompat.Builder notificationBuilder, BrazeNotificationPayload payload)
@Deprecated public static NotificationCompat.BigTextStyle getBigTextNotificationStyle(BrazeConfigurationProvider appboyConfigurationProvider, android.os.Bundle notificationExtras)
getBigTextNotificationStyle(BrazeNotificationPayload)
public static NotificationCompat.BigTextStyle getBigTextNotificationStyle(BrazeNotificationPayload payload)
@Deprecated public static NotificationCompat.DecoratedCustomViewStyle getStoryStyle(android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras, NotificationCompat.Builder notificationBuilder)
#getStoryStyle(BrazeNotificationPayload)
public static NotificationCompat.DecoratedCustomViewStyle getStoryStyle(NotificationCompat.Builder notificationBuilder, BrazeNotificationPayload payload)
androidx.core.app.NotificationCompat.DecoratedCustomViewStyle
for push story.context
- Current context.notificationExtras
- Notification extras for the current page of the push story.notificationBuilder
- Notification builder.androidx.core.app.NotificationCompat.DecoratedCustomViewStyle
that describes the appearance of the push story.public static NotificationCompat.Style getInlineImageStyle(BrazeNotificationPayload payload, NotificationCompat.Builder notificationBuilder)
RemoteViews.RemoteView
to render the
notification.
In the successful case, a NoOpSentinelStyle
is returned.
In the failure case (image bitmap is null, system information not found, etc.), a
null style is returned.
@Deprecated public static NotificationCompat.BigPictureStyle getBigPictureNotificationStyle(android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras)
getBigPictureNotificationStyle(BrazeNotificationPayload)
public static NotificationCompat.BigPictureStyle getBigPictureNotificationStyle(BrazeNotificationPayload payload)
public static NotificationCompat.MessagingStyle getConversationalPushStyle(NotificationCompat.Builder notificationBuilder, BrazeNotificationPayload payload)