abstract class NotificationManager
<init> |
NotificationManager() |
DEFAULT_CHANNEL_ID |
The channel id of the default notification channel created be the SDK. static val DEFAULT_CHANNEL_ID: String |
areNotificationsEnabled |
Returns whether or not notifications are enabled. If abstract fun areNotificationsEnabled(): Boolean |
cancelNotificationMessage |
Will cancel the notification associated with the provided open static fun cancelNotificationMessage(context: Context, message: NotificationMessage): Unit |
createDefaultNotificationChannel |
Will create the default notification channel used by the SDK. open static fun createDefaultNotificationChannel(context: Context, forceRecreate: Boolean): String
Will create the default notification channel used by the SDK only if it does not already exist. open static fun createDefaultNotificationChannel(context: Context): String |
disableNotifications |
Disables notifications in the SDK. This does not disable any individual message type(Push, Geofence, or Beacon), but will simply prevent the notification from being shown on the device.Consider only using this for short term disablement of notifications. If you're desire it to turn notifications off long-term then consider disabling each message type directly as that will prevent the device from receiving those messages in the first place. abstract fun disableNotifications(): Unit |
enableNotifications |
Enables notifications in the SDK. This does not enable any individual message type(Push, Geofence, or Beacon), but will simply allow notifications to be shown on the device.Notifications are enabled by default. abstract fun enableNotifications(): Unit |
extractMessage |
Extracts the open static fun extractMessage(intent: Intent): NotificationMessage? |
getDefaultNotificationBuilder |
This method will build out a
open static fun getDefaultNotificationBuilder(context: Context, message: NotificationMessage, channelId: String, smallIconResId: Int): Builder |
redirectIntentForAnalytics |
Returns a PendingIntent that will redirect to our internal Service to handle notification opened analytics. Once the analytic has been logged it will redirect the application to the provided . open static fun redirectIntentForAnalytics(context: Context, openIntent: PendingIntent, message: NotificationMessage, autoCancel: Boolean): PendingIntent |
registerNotificationMessageDisplayedListener |
Registers the provided abstract fun registerNotificationMessageDisplayedListener(listener: NotificationMessageDisplayedListener): Unit |
setShouldShowNotificationListener |
Set a abstract fun setShouldShowNotificationListener(listener: ShouldShowNotificationListener?): Unit |
unregisterNotificationMessageDisplayedListener |
Unregisters the provided abstract fun unregisterNotificationMessageDisplayedListener(listener: NotificationMessageDisplayedListener): Unit |