Class RepeatModeActionProvider

    • Field Detail


        public static final int DEFAULT_REPEAT_TOGGLE_MODES
        The default repeat toggle modes.
        See Also:
        Constant Field Values
    • Constructor Detail

      • RepeatModeActionProvider

        public RepeatModeActionProvider​(Context context)
        Creates a new instance.

        Equivalent to RepeatModeActionProvider(context, DEFAULT_REPEAT_TOGGLE_MODES).

        context - The context.
      • RepeatModeActionProvider

        public RepeatModeActionProvider​(Context context,
                               int repeatToggleModes)
        Creates a new instance enabling the given repeat toggle modes.
        context - The context.
        repeatToggleModes - The toggle modes to enable.
    • Method Detail

      • getCustomAction

        public getCustomAction​(Player player)
        Description copied from interface: MediaSessionConnector.CustomActionProvider
        Returns a PlaybackStateCompat.CustomAction which will be published to the media session by the connector or null if this action should not be published at the given player state.
        Specified by:
        getCustomAction in interface MediaSessionConnector.CustomActionProvider
        player - The player connected to the media session.
        The custom action to be included in the session playback state or null.