Interface MediaSessionConnector.MediaButtonEventHandler

  • Enclosing class:

    public static interface MediaSessionConnector.MediaButtonEventHandler
    Handles a media button event.
    • Method Detail

      • onMediaButtonEvent

        boolean onMediaButtonEvent​(Player player,
                                   ControlDispatcher controlDispatcher,
                                   Intent mediaButtonEvent)
        See MediaSessionCompat.Callback.onMediaButtonEvent(Intent).
        player - The Player.
        controlDispatcher - This parameter is deprecated. Use player instead. Operations can be customized by passing a ForwardingPlayer to MediaSessionConnector.setPlayer(Player), or when configuring the player (for example by using SimpleExoPlayer.Builder#setSeekBackIncrementMs(long)).
        mediaButtonEvent - The Intent.
        True if the event was handled, false otherwise.