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

# CastOptions

extends Object
implements SafeParcelable

java.lang.Object
↳ | com.google.android.gms.cast.framework.CastOptions

## Class Overview

Configuration parameters for initializing the `CastContext`. The `CastOptions.Builder` is used to create an instance of `CastOptions`, and so contains the corresponding setter methods.

## Summary

Nested Classes
class | CastOptions.Builder | A builder to create an instance of `CastOptions` which is used to initialize the `CastContext`.

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

Public Methods
boolean | equals(Object obj)
CastMediaOptions | getCastMediaOptions() Returns the `CastMediaOptions` that is used to configure a media session.
boolean | getEnableReconnectionService() Returns `true` if `ReconnectionService` should be enabled when needed to better handle session recovery.
LaunchOptions | getLaunchOptions() Returns the `LaunchOptions`.
String | getReceiverApplicationId() Returns the cast receiver application ID.
boolean | getResumeSavedSession() Returns `true` if the saved session should be resumed if it was dropped unexpectedly.
boolean | getStopReceiverApplicationWhenEndingSession() Returns `true` if the receiver application should be stopped when the session is ended by the user.
List<String> | getSupportedNamespaces() Returns the list of supported cast namespaces.
double | getVolumeDeltaBeforeIceCreamSandwich() Returns the amount of receiver device volume to increase or decrease when the physical volume key is pressed on an Android device older than ICE CREAM SANDWICH.
int | hashCode()
String | toString() Returns a string representation of this object.

[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)

## Public Methods

#### public boolean equals (Object obj)

#### public CastMediaOptions getCastMediaOptions ()

Returns the `CastMediaOptions` that is used to configure a media session.

#### public boolean getEnableReconnectionService ()

Returns `true` if `ReconnectionService` should be enabled when needed to better handle session recovery.

#### public LaunchOptions getLaunchOptions ()

Returns the `LaunchOptions`.

#### public String getReceiverApplicationId ()

Returns the cast receiver application ID. This ID is used in discovering supported receivers, and launching an application when starting a new session.

#### public boolean getResumeSavedSession ()

Returns `true` if the saved session should be resumed if it was dropped unexpectedly. Returns `false` if the saved session should not be resumed in this case.

#### public boolean getStopReceiverApplicationWhenEndingSession ()

Returns `true` if the receiver application should be stopped when the session is ended by the user. Returns `false` if the receiver application should not be stopped in this case.

#### public List<String> getSupportedNamespaces ()

Returns the list of supported cast namespaces.

#### public double getVolumeDeltaBeforeIceCreamSandwich ()

Returns the amount of receiver device volume to increase or decrease when the physical volume key is pressed on an Android device older than ICE CREAM SANDWICH. The SDK will call this method to obtain the volume delta when `onDispatchVolumeKeyEventBeforeJellyBean(KeyEvent)` is called. The return value is not used on Android devices running ICE CREAM SANDWICH or newer.

#### public int hashCode ()

#### public String toString ()

Returns a string representation of this object.