CastOptions

public class CastOptions extends AbstractSafeParcelable

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

Nested Class Summary

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

Inherited Constant Summary

Public Method Summary

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

Inherited Method Summary

Public Methods

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.