Package com.brightcove.player.playback
Interface BrightcoveNotificationListener
-
public interface BrightcoveNotificationListenerA listener for changes to the notification.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidonNotificationCancelled(int notificationId, boolean dismissedByUser)Called after the notification has been cancelled.default voidonNotificationPosted(int notificationId, android.app.Notification notification, boolean ongoing)Called each time after the notification has been posted.
-
-
-
Method Detail
-
onNotificationCancelled
default 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-trueif the notification is cancelled because the user dismissed the notification.
-
onNotificationPosted
default void onNotificationPosted(int notificationId, android.app.Notification notification, boolean ongoing)Called each time after the notification has been posted.For a service, the
ongoingflag 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- TheNotification.ongoing- Whether the notification is ongoing.
-
-