LaunchOptions

public classLaunchOptionsextendsObject
implementsParcelable

An object that holds options that affect how a receiver application is launched. See Cast.CastApi.launchApplication(GoogleApiClient, String, LaunchOptions).

Nested Class Summary

class LaunchOptions.Builder A builder forLaunchOptions objects.

Inherited Constant Summary

Public Constructor Summary

LaunchOptions()
The constructor ofLaunchOptions.

Public Method Summary

boolean
boolean
getAndroidReceiverCompatible()
Returnstrueif the sender app supports casting to an Android TV app.
CredentialsData
String
getLanguage()
Returns the language, ornullif none was specified.
boolean
getRelaunchIfRunning()
Returns the "relaunch if running" flag.
int
hashCode()
Overridden to return a hashcode of the device ID.
void
setLanguage(Stringlanguage)
Sets the language to be used by the receiver application.
void
setRelaunchIfRunning(boolean relaunchIfRunning)
Sets the "relaunch if running" flag.
String
toString()
Returns a string representation of this object.
void
writeToParcel(Parcelout, int flags)

Inherited Method Summary

Public Constructors

publicLaunchOptions()

The constructor ofLaunchOptions.

Public Methods

public booleanequals(Objectobj)

public booleangetAndroidReceiverCompatible()

Returnstrueif the sender app supports casting to an Android TV app.

publicCredentialsData getCredentialsData()

Returns theCredentialsData.

publicStringgetLanguage()

Returns the language, ornullif none was specified.

public booleangetRelaunchIfRunning()

Returns the "relaunch if running" flag.

public inthashCode()

Overridden to return a hashcode of the device ID.

public voidsetLanguage(Stringlanguage)

Sets the language to be used by the receiver application. If not specified, the sender device's default language is used.

Parameters
language The language

public voidsetRelaunchIfRunning(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.

publicStringtoString()

Returns a string representation of this object.

public voidwriteToParcel(Parcelout, int flags)