Interface MediaSessionConnector.MediaButtonEventHandler

  • Enclosing class:
    MediaSessionConnector

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

      • onMediaButtonEvent

        boolean onMediaButtonEvent​(Player player,
                                   @Deprecated
                                   ControlDispatcher controlDispatcher,
                                   Intent mediaButtonEvent)
        See MediaSessionCompat.Callback.onMediaButtonEvent(Intent).
        Parameters:
        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.
        Returns:
        True if the event was handled, false otherwise.