java.lang.Object | |
↳ | com.google.android.gms.cast.framework.media.CastMediaOptions.Builder |
A builder to create an instance of CastMediaOptions
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds and returns the
CastMediaOptions object. | |||||||||||
Sets the class name of the expanded controller
Activity . | |||||||||||
Sets the
ImagePicker . | |||||||||||
Sets the class name of the MediaIntentReceiver.
| |||||||||||
Sets the
NotificationOptions used to configure the notification with
NotificationCompat.MediaStyle . |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Builds and returns the CastMediaOptions
object.
Returns | |
---|---|
CastMediaOptions |
Sets the class name of the expanded controller Activity
. The default value is
null
.
Parameters | |
---|---|
className |
String
|
Returns | |
---|---|
CastMediaOptions.Builder |
Sets the ImagePicker
. The SDK will call it to choose an appropriate image to be
used in different UIs. If ImagePicker
is not set, or is set to null
, the
SDK will pick the first image from the list of images in the current playing item's
MediaMetadata
.
Parameters | |
---|---|
imagePicker |
ImagePicker
|
Returns | |
---|---|
CastMediaOptions.Builder |
Sets the class name of the MediaIntentReceiver. The default value is
MediaIntentReceiver
. If your app calls this method, the custom
MediaIntentReceiver
should be declared in the application's manifest.
See also MediaIntentReceiver
.
Parameters | |
---|---|
className |
String
|
Returns | |
---|---|
CastMediaOptions.Builder |
Sets the NotificationOptions
used to configure the notification with
NotificationCompat.MediaStyle
. The default value is a
NotificationOptions
with all default options. If set to null
then the
notification is disabled.
Parameters | |
---|---|
notificationOptions |
NotificationOptions
|
Returns | |
---|---|
CastMediaOptions.Builder |