AI-generated Key Takeaways
-
CastState
defines the different states a Cast session can be in, such as connected, connecting, not connected, and no devices available. -
These states are represented by integer constants within the
CastState
class. -
The
toString()
method provides a human-readable representation of a givenCastState
. -
The primary use of
CastState
is to provide information about the current status of Cast interactions. -
Developers can use the
CastState
constants to handle different casting scenarios in their applications.
The possible casting states.
Constant Summary
int | CONNECTED | A Cast session is established. |
int | CONNECTING | A Cast session is being established. |
int | NOT_CONNECTED | Cast devices are available, but a Cast session is not established. |
int | NO_DEVICES_AVAILABLE | No Cast devices are available. |
Public Method Summary
static String |
toString(int castState)
|
Inherited Method Summary
Constants
public static final int CONNECTED
A Cast session is established.
public static final int CONNECTING
A Cast session is being established.
public static final int NOT_CONNECTED
Cast devices are available, but a Cast session is not established.
public static final int NO_DEVICES_AVAILABLE
No Cast devices are available.