Class RepeatModeUtil


  • @Deprecated
    public final class RepeatModeUtil
    extends Object
    Deprecated.
    com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
    Util class for repeat mode handling.
    • Field Detail

      • REPEAT_TOGGLE_MODE_NONE

        public static final int REPEAT_TOGGLE_MODE_NONE
        Deprecated.
        All repeat mode buttons disabled.
        See Also:
        Constant Field Values
      • REPEAT_TOGGLE_MODE_ONE

        public static final int REPEAT_TOGGLE_MODE_ONE
        Deprecated.
        "Repeat One" button enabled.
        See Also:
        Constant Field Values
      • REPEAT_TOGGLE_MODE_ALL

        public static final int REPEAT_TOGGLE_MODE_ALL
        Deprecated.
        "Repeat All" button enabled.
        See Also:
        Constant Field Values
    • Method Detail

      • getNextRepeatMode

        @RepeatMode
        public static @com.google.android.exoplayer2.Player.RepeatMode int getNextRepeatMode​(@RepeatMode
                                                                                             @com.google.android.exoplayer2.Player.RepeatMode int currentMode,
                                                                                             int enabledModes)
        Deprecated.
        Gets the next repeat mode out of enabledModes starting from currentMode.
        Parameters:
        currentMode - The current repeat mode.
        enabledModes - Bitmask of enabled modes.
        Returns:
        The next repeat mode.
      • isRepeatModeEnabled

        public static boolean isRepeatModeEnabled​(@RepeatMode
                                                  @com.google.android.exoplayer2.Player.RepeatMode int repeatMode,
                                                  int enabledModes)
        Deprecated.
        Verifies whether a given repeatMode is enabled in the bitmask enabledModes.
        Parameters:
        repeatMode - The mode to check.
        enabledModes - The bitmask representing the enabled modes.
        Returns:
        true if enabled.