-
public interface BrightcoveNotificationListener
A listener for changes to the notification.
-
-
Method Summary
Modifier and Type Method Description void
onNotificationCancelled(int notificationId, boolean dismissedByUser)
Called after the notification has been cancelled. void
onNotificationPosted(int notificationId, Notification notification, boolean ongoing)
Called each time after the notification has been posted. -
-
Method Detail
-
onNotificationCancelled
void onNotificationCancelled(int notificationId, boolean dismissedByUser)
Called after the notification has been cancelled.
- Parameters:
notificationId
- The id of the notification which has been cancelled.dismissedByUser
-{@code true}
if the notification is cancelled because the userdismissed the notification.
-
onNotificationPosted
void onNotificationPosted(int notificationId, Notification notification, boolean ongoing)
Called each time after the notification has been posted.
For a service, the
{@code ongoing}
flag can be used as an indicator as to whether itshould be in the foreground.- Parameters:
notificationId
- The id of the notification which has been posted.notification
- The Notification.ongoing
- Whether the notification is ongoing.
-
-
-
-