com.urbanairship.push.notifications.NotificationProvider |
Known Indirect Subclasses |
Used to provide notifications for Airship push messages. The notification provider should never post the notification to the notification manager. The Urban Airship SDK will do that on behave of the application.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | DEFAULT_NOTIFICATION_CHANNEL | Default notification channel ID. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract NotificationResult |
onCreateNotification(Context context, NotificationArguments arguments)
Called to generate the
NotificationResult for a push message. | ||||||||||
abstract NotificationArguments |
onCreateNotificationArguments(Context context, PushMessage message)
Called to generate the
NotificationArguments for a push message. | ||||||||||
abstract void |
onNotificationCreated(Context context, Notification notification, NotificationArguments arguments)
Called before posting the notification.
|
Default notification channel ID.
Called to generate the NotificationResult
for a push message.
context | The context. |
---|---|
arguments | The arguments from onCreateNotificationArguments(Context, PushMessage) . |
Called to generate the NotificationArguments
for a push message.
context | The context. |
---|---|
message | The message. |
Called before posting the notification.
The notification will have settings applied from an associated NotificationChannelCompat
on pre-O devices
Use this method to apply any global overrides to the notification.
context | The context. |
---|---|
notification | The notification. |
arguments | The notification arguments. |