Class Player.Commands

    • Method Detail

      • contains

        public boolean contains​(@Command
                                @com.google.android.exoplayer2.Player.Command int command)
        Returns whether the set of commands contains the specified Player.Command.
      • containsAny

        public boolean containsAny​(@Command
                                   @com.google.android.exoplayer2.Player.Command int... commands)
        Returns whether the set of commands contains at least one of the given commands.
      • size

        public int size()
        Returns the number of commands in this set.
      • get

        @Command
        public @com.google.android.exoplayer2.Player.Command int get​(int index)
        Returns the Player.Command at the given index.
        Parameters:
        index - The index. Must be between 0 (inclusive) and size() (exclusive).
        Returns:
        The Player.Command at the given index.
        Throws:
        IndexOutOfBoundsException - If index is outside the allowed range.
      • equals

        public boolean equals​(@Nullable
                              Object obj)
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toBundle

        public Bundle toBundle()
        Description copied from interface: Bundleable
        Returns a Bundle representing the information stored in this object.
        Specified by:
        toBundle in interface Bundleable