Batch Notification Channels Manager
BatchNotificationChannelsManager manages how Batch interacts with Android 8.0 (API 26). It allows you to control which default notification channel Batch will use, how it is named, or to provide your own channel per notification
Types
Link copied to clipboard
interface ChannelNameProvider
Interface describing a channel name provider.
Link copied to clipboard
interface NotificationChannelIdInterceptor
Interface describing a channel ID interceptor for notifications displayed by Batch
Link copied to clipboard
Implementation of ChannelNameProvider using a String resource to automatically fetch the right translation.
Functions
Link copied to clipboard
Opens the notification channel settings system UI for Batch's default channel.
Opens the notification channel settings system UI for the specified channel Will do nothing on API <26
Link copied to clipboard
Link copied to clipboard
open fun setChannelIdInterceptor(@Nullable interceptor: BatchNotificationChannelsManager.NotificationChannelIdInterceptor)
Used to set a channel id interceptor, allowing you to override the Channel ID of a notification, per notification.
Link copied to clipboard
Overrides the default notification channel that Batch will use for notifications.
Link copied to clipboard
Used to set a channel name provider, allowing you to change Batch's default channel name.
Link copied to clipboard
open fun setChannelNameProvider(@Nullable provider: BatchNotificationChannelsManager.ChannelNameProvider)
Used to set a channel name provider, allowing you to change Batch's default channel name.