CastMediaOptions

public classCastMediaOptionsextendsObject
implementsParcelable

Configuration parameters for starting a Cast media session. The CastMediaOptions.Builderis used to create an instance ofCastMediaOptions, and so contains the corresponding setter methods.

Nested Class Summary

class CastMediaOptions.Builder A builder to create an instance of CastMediaOptions.

Inherited Constant Summary

Public Method Summary

String
getExpandedControllerActivityClassName()
Returns the name of the expanded controllerActivity that displays a full-screen media controller.
ImagePicker
getImagePicker()
Returns the ImagePickerto choose an appropriate image.
String
getMediaIntentReceiverClassName()
Returns the name of theBroadcastReceiver that handles media intents from notification and lock screen.
boolean
getMediaSessionEnabled()
Returnstrueif the Cast SDK automatically creates and manages a MediaSession for cast sessions.
NotificationOptions
getNotificationOptions()
Returns the options to configure notification.
void
writeToParcel(Parcelout, int flags)

Inherited Method Summary

Public Methods

publicStringgetExpandedControllerActivityClassName()

Returns the name of the expanded controllerActivitythat displays a full-screen media controller.

publicImagePicker getImagePicker()

Returns theImagePicker to choose an appropriate image.

publicStringgetMediaIntentReceiverClassName()

Returns the name of theBroadcastReceiver that handles media intents from notification and lock screen. The default value is MediaIntentReceiver.

public booleangetMediaSessionEnabled()

Returnstrueif the Cast SDK automatically creates and manages a MediaSession for cast sessions. It istrueby default.

publicNotificationOptions getNotificationOptions()

Returns the options to configure notification.

public voidwriteToParcel(Parcelout, int flags)