AI-generated Key Takeaways
-
LaunchOptions is an object that holds options affecting how a receiver application is launched.
-
It includes methods to get and set properties like language and whether to relaunch the application if it's already running.
-
LaunchOptions also indicates if the sender app supports casting to an Android TV app and provides access to CredentialsData.
-
A nested class, LaunchOptions.Builder, is available for constructing LaunchOptions objects.
An object that holds options that affect how a receiver application is launched. See Cast.CastApi.launchApplication(GoogleApiClient, String, LaunchOptions)
.
Nested Class Summary
Inherited Constant Summary
Public Constructor Summary
Public Method Summary
| boolean | |
| boolean | getAndroidReceiverCompatible
()
Returns
true
if the sender app supports casting to an Android TV
app. |
| CredentialsData | |
| String | |
| boolean | |
| int | |
| void | |
| void | |
| String | |
| void |
Inherited Method Summary
Public Constructors
public LaunchOptions ()
The constructor of LaunchOptions
.
Public Methods
public boolean equals ( Object obj)
public boolean getAndroidReceiverCompatible ()
Returns true
if the sender app supports casting to an Android TV
app.
public CredentialsData getCredentialsData ()
Returns the CredentialsData
.
public String getLanguage ()
Returns the language, or null
if none was specified.
public boolean getRelaunchIfRunning ()
Returns the "relaunch if running" flag.
public int hashCode ()
Overridden to return a hashcode of the device ID.
public void setLanguage ( String language)
Sets the language to be used by the receiver application. If not specified, the sender device's default language is used.
Parameters
public void setRelaunchIfRunning (boolean relaunchIfRunning)
Sets the "relaunch if running" flag. If the flag is set, the receiver application will be relaunched even if it is already running. The flag is not set by default.
public String toString ()
Returns a string representation of this object.

