AirshipNotificationProvider

Default notification provider.

Inheritors

Constructors

Link copied to clipboard
constructor(@NonNull context: Context, @NonNull configOptions: AirshipConfigOptions)

Properties

Link copied to clipboard
val DEFAULT_AIRSHIP_NOTIFICATION_ICON: String = "ua_default_ic_notification"
Default Airship notification icon.
Link copied to clipboard
Link copied to clipboard
Default Notification ID when the PushMessage defines a notification tag.

Inherited properties

Link copied to clipboard
val DEFAULT_NOTIFICATION_CHANNEL: String = "com.urbanairship.default"
Default notification channel ID.

Functions

Link copied to clipboard
Get the default accent color.
Link copied to clipboard
Get the default notification title string resource.
Link copied to clipboard
Get the small icon drawable resource.
Link copied to clipboard
Called to generate the NotificationResult for a push message.
Link copied to clipboard
Called to generate the NotificationArguments for a push message.
Link copied to clipboard
open fun onNotificationCreated(@NonNull context: Context, @NonNull notification: Notification, @NonNull arguments: NotificationArguments)
Called before posting the notification.
Link copied to clipboard
open fun setDefaultAccentColor(@ColorInt accentColor: Int)
Set the default notification accent color.
Link copied to clipboard
open fun setDefaultTitle(@StringRes titleId: Int)
Set the default notification title.
Link copied to clipboard
open fun setSmallIcon(@DrawableRes smallIconId: Int)
Set the notification small icon.