CastState
Stay organized with collections
Save and categorize content based on your preferences.
The possible casting states.
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int
CONNECTED
A Cast session is established.
Constant Value: 4
public static final int
CONNECTING
A Cast session is being established.
Constant Value: 3
public static final int
NOT_CONNECTED
Cast devices are available, but a Cast session is not established.
Constant Value: 2
public static final int
NO_DEVICES_AVAILABLE
No Cast devices are available.
Constant Value: 1
Public Methods
public static String toString (int castState)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["`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 given `CastState`."],["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."]]],["CastState defines the status of a Cast session, with four possible states: CONNECTED (a session is active), CONNECTING (a session is in progress), NOT_CONNECTED (devices are available but no session exists), and NO_DEVICES_AVAILABLE (no devices are found). The class offers a `toString` method to get a textual description from a given cast state. It also includes the constant value associated to each status.\n"]]