Class BrightcoveNotification


public class BrightcoveNotification extends PlaybackNotification
Manages the notification displayed with a MediaPlayback.
  • Method Details

    • setPlayback

      public void setPlayback(MediaPlayback<> playback)
    • getPlayback

      public MediaPlayback<> getPlayback()
    • setConfig

      public final void setConfig(PlaybackNotification.Config config)
      Description copied from class: PlaybackNotification
      Configure and customize the notification shown for playback.
      Specified by:
      setConfig in class PlaybackNotification
      config - The configuration to build the notification.
    • show

      protected final boolean show()
      Description copied from class: PlaybackNotification
      Starts a notification immediately unless the player is in an idle state, in which case the notification is started as soon as the player transitions away from being idle.

      The notification shows if the currently playing PlaybackNotification.StreamType is one of {@link this#getStreamTypes()}

      Specified by:
      show in class PlaybackNotification
      True if the notification was created and showing on the device.
    • cancel

      protected final void cancel()
      Cancels the notification by setting the player to null.

      This should be called when the player is released.

      Specified by:
      cancel in class PlaybackNotification
    • isVisible

      public final boolean isVisible()
      Description copied from class: PlaybackNotification
      Check is the notification is showing.
      Specified by:
      isVisible in class PlaybackNotification
      True if the notification is visible and on-going.
    • setMediaSessionToken

      protected void setMediaSessionToken( token)
      Sets the MediaSessionCompat.Token.
      token - The MediaSessionCompat.Token.
    • getInstance

      public static BrightcoveNotification getInstance(android.content.Context context)