com.salesforce.marketingcloud.notifications.NotificationManager.NotificationChannelIdProvider |
Provide your NotificationManager.NotificationChannelIdProvider
in the NotificationCustomizationOptions
when
initializing the SDK via setNotificationCustomizationOptions(NotificationCustomizationOptions)
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract String |
getNotificationChannelId(Context context, NotificationMessage notificationMessage)
Provide the NotificationChannel notification channel id to be used for the
notificationMessage . |
Provide the NotificationChannel notification channel id to be used for the notificationMessage
. Providing null
or an id for a channel that does not exist will result in
Android not showing the notification.
context | The context to use if you need to create the necessary notification channel |
---|---|
notificationMessage | The message that represents the notification that will be posted to the provided channel |