onNotificationPosted

open fun onNotificationPosted(notificationId: Int, notification: Notification, ongoing: Boolean)

Called each time after the notification has been posted.

For a service, the ongoing flag can be used as an indicator as to whether it should be in the foreground.

Parameters

notificationId

The id of the notification which has been posted.

notification

The Notification.

ongoing

Whether the notification is ongoing.