CustomLayoutNotificationProvider
A notification provider that allows the use of layout XML. The default binding will bind the following: - small icon to android.R.id.icon
- title to android.R.id.title
- summary/subtitle to android.R.id.summary
- alert/message to android.R.id.message
Custom binding can be applied by overriding onBindContentView.
Inherited properties
Link copied to clipboard
Default Airship notification icon.
Link copied to clipboard
Default notification channel ID.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Default Notification ID when the PushMessage defines a notification tag.
Inherited 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
open fun onCreateNotification(@NonNull context: Context, @NonNull arguments: NotificationArguments): NotificationResult
Called to generate the NotificationResult for a push message.
Link copied to clipboard
open fun onCreateNotificationArguments(@NonNull context: Context, @NonNull message: PushMessage): NotificationArguments
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
Set the default notification accent color.
Link copied to clipboard
Set the default notification title.
Link copied to clipboard
Set the notification small icon.