public class BrazeNotificationFactory extends java.lang.Object implements IBrazeNotificationFactory
Constructor and Description |
---|
BrazeNotificationFactory() |
Modifier and Type | Method and Description |
---|---|
android.app.Notification |
createNotification(AppboyConfigurationProvider appConfigurationProvider,
android.content.Context context,
android.os.Bundle notificationExtras,
android.os.Bundle appboyExtras)
Deprecated.
Deprecated since 8/25/20
|
android.app.Notification |
createNotification(BrazeNotificationPayload payload)
Creates the rich notification.
|
static BrazeNotificationFactory |
getInstance()
Returns the singleton
BrazeNotificationFactory instance. |
NotificationCompat.Builder |
populateNotificationBuilder(AppboyConfigurationProvider appboyConfigurationProvider,
android.content.Context context,
android.os.Bundle notificationExtras,
android.os.Bundle appboyExtras)
Deprecated.
Please use
populateNotificationBuilder(BrazeConfigurationProvider, Context, Bundle, Bundle)
instead. Deprecated since 3/26/21 |
NotificationCompat.Builder |
populateNotificationBuilder(BrazeConfigurationProvider configurationProvider,
android.content.Context context,
android.os.Bundle notificationExtras,
android.os.Bundle appboyExtras)
Equivalent to
createNotification(BrazeNotificationPayload) |
static NotificationCompat.Builder |
populateNotificationBuilder(BrazeNotificationPayload payload)
Returns a notification builder populated with all fields from the notification extras and
Braze extras.
|
public static BrazeNotificationFactory getInstance()
BrazeNotificationFactory
instance.@Deprecated public android.app.Notification createNotification(AppboyConfigurationProvider appConfigurationProvider, android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras)
IBrazeNotificationFactory
IBrazeNotificationFactory.createNotification(BrazeNotificationPayload)
returns null as it is the preferred method moving forward.createNotification
in interface IBrazeNotificationFactory
appConfigurationProvider
- Braze app configurationcontext
- Application contextnotificationExtras
- the original Bundle object passed to Braze by fcm/adm, potentially
with additions or modifications.appboyExtras
- a Bundle object containing 'extra' key value pairs defined by the clientIBrazeNotificationFactory.createNotification(BrazeNotificationPayload)
public android.app.Notification createNotification(BrazeNotificationPayload payload)
createNotification
in interface IBrazeNotificationFactory
payload
- A convenience wrapper object around the Braze notification payload.@Deprecated public NotificationCompat.Builder populateNotificationBuilder(AppboyConfigurationProvider appboyConfigurationProvider, android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras)
populateNotificationBuilder(BrazeConfigurationProvider, Context, Bundle, Bundle)
instead. Deprecated since 3/26/21public NotificationCompat.Builder populateNotificationBuilder(BrazeConfigurationProvider configurationProvider, android.content.Context context, android.os.Bundle notificationExtras, android.os.Bundle appboyExtras)
createNotification(BrazeNotificationPayload)
public static NotificationCompat.Builder populateNotificationBuilder(BrazeNotificationPayload payload)