public class

CastOptions

extends Object
implements Parcelable
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 android.os.Parcelable
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Methods

public CastMediaOptions getCastMediaOptions ()

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

Returns
CastMediaOptions

public boolean getEnableReconnectionService ()

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

Returns
boolean

public LaunchOptions getLaunchOptions ()

Returns the LaunchOptions.

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

Returns
String

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.

Returns
boolean

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.

Returns
boolean

public List<String> getSupportedNamespaces ()

Returns the list of supported cast namespaces.

Returns
List<String>

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.

Returns
double