@NonNull open static fun create(@NonNull notificationBuilder: NotificationBuilder): NotificationCustomizationOptions
Creates a NotificationCustomizationOptions
with only a NotificationManager.NotificationBuilder
. This options leaves everything about setting up the notification up to you. See "Option two" in the class documentation for more details.
notificationBuilder
- NotificationBuilder: Notification builder
Return
NotificationCustomizationOptions: NotificationCustomizationOptions
@NonNull open static fun create(@DrawableRes smallIconResId: Int): NotificationCustomizationOptions
Creates a NotificationCustomizationOptions
with only the notification's small icon resource id. This is the simplest approach to notifications in the SDK. Everything else will be handled by the SDK.
smallIconResId
- Int: The notification's small icon resource id.
Return
NotificationCustomizationOptions: NotificationCustomizationOptions
@NonNull open static fun create(@DrawableRes smallIconResId: Int, @Nullable launchIntentProvider: NotificationLaunchIntentProvider?, @Nullable channelIdProvider: NotificationChannelIdProvider?): NotificationCustomizationOptions
Created a NotificationCustomizationOptions
with the notification's small icon resource id and optional instances of NotificationManager.NotificationLaunchIntentProvider
and NotificationManager.NotificationChannelIdProvider
.
smallIconResId
- Int: The notification's small icon resource id.
launchIntentProvider
- NotificationLaunchIntentProvider?: Launch intent provider.
channelIdProvider
- NotificationChannelIdProvider?: Channel id provider.
Return
NotificationCustomizationOptions: NotificationCustomizationOptions