Commit 41afb6ac by krocard Committed by Oliver Woodman

Add guarantied invalid command to allow niche optimisations

This allows users to use `int` to store an optional command.

PiperOrigin-RevId: 374600127
parent e383b003
......@@ -1097,6 +1097,7 @@ public interface Player {
@Documented
@Retention(RetentionPolicy.SOURCE)
@IntDef({
COMMAND_INVALID,
COMMAND_PLAY_PAUSE,
COMMAND_PREPARE_STOP,
COMMAND_SEEK_TO_DEFAULT_POSITION,
......@@ -1169,6 +1170,9 @@ public interface Player {
/** Command to get the text that should currently be displayed by the player. */
int COMMAND_GET_TEXT = 23;
/** Represents an invalid {@link Command}. */
int COMMAND_INVALID = -1;
/**
* Returns the {@link Looper} associated with the application thread that's used to access the
* player and on which player events are received.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment