Interface MediaSessionConnector.MediaButtonEventHandler

  • Enclosing class:
    MediaSessionConnector

    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).
        Parameters:
        player - The Player.
        controlDispatcher - A ControlDispatcher that should be used for dispatching changes to the player.
        mediaButtonEvent - The Intent.
        Returns:
        True if the event was handled, false otherwise.