Summary: Nested Classes | Inherited Constants | Fields | Ctors | Methods | Inherited Methods | [Expand All]
public class

# LaunchOptions

extends Object
implements SafeParcelable

java.lang.Object
↳ | com.google.android.gms.cast.LaunchOptions

## Class Overview

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

## Summary

Nested Classes
class | LaunchOptions.Builder | A builder for `LaunchOptions` objects.

[Expand] Inherited Constants
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
String | NULL |
From interface android.os.Parcelable
int | CONTENTS_FILE_DESCRIPTOR |
int | PARCELABLE_WRITE_RETURN_VALUE |

Fields
public static final Creator<LaunchOptions> | CREATOR |

Public Constructors
| LaunchOptions()

Public Methods
boolean | equals(Object obj)
String | getLanguage() Returns the language, or `null` if none was specified.
boolean | getRelaunchIfRunning() Returns the "relaunch if running" flag.
int | hashCode() Overridden to return a hashcode of the device ID.
void | setLanguage(String language) 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(Parcel out, int flags)

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
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()
From interface android.os.Parcelable
abstract int | describeContents()
abstract void | writeToParcel(Parcel arg0, int arg1)

## Fields

#### public static final Creator<LaunchOptions> CREATOR

## Public Constructors

#### public LaunchOptions ()

## Public Methods

#### public boolean equals (Object obj)

#### 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

language | The language

#### 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.

#### public void writeToParcel (Parcel out, int flags)