open class NotificationCustomizationOptions
The class holds any notification customization options allowed by the SDK. It is designed to make understanding and customizing notifications easier than in previous versions of the SDK. With this you can elect to take one of two possible options for customization:
Option one is a guided approach where in you can provide, at a minimum, the resource ID for the notification's small icon. Optionally, you could provide a NotificationManager.NotificationLaunchIntentProvider
to customize the destination of a notification when clicked, and/or a NotificationManager.NotificationChannelIdProvider
to specify on a per message basis which notification channel will be assigned to the notification.
Option two will require you to provide a NotificationManager.NotificationBuilder
in which you will be responsible for the entire process of setting up the notification. These responsibilities include, but are not limited to:
androidx.core.app.NotificationCompat.Builder
NotificationManager#redirectIntentForAnalytics(Context, PendingIntent, NotificationMessage, boolean)
See Also
NotificationManager#getDefaultNotificationBuilder(Context, NotificationMessage, String, int)NotificationManager#createDefaultNotificationChannel(Context)
create |
Creates a open static fun create(notificationBuilder: NotificationBuilder): NotificationCustomizationOptions
Creates a open static fun create(smallIconResId: Int): NotificationCustomizationOptions
Created a open static fun create(smallIconResId: Int, launchIntentProvider: NotificationLaunchIntentProvider?, channelIdProvider: NotificationChannelIdProvider?): NotificationCustomizationOptions |
toString |
open fun toString(): String |