Summary: Ctors | Methods | Inherited Methods | [Expand All]
public static final class

# CastMediaOptions.Builder

extends Object

java.lang.Object
↳ | com.google.android.gms.cast.framework.media.CastMediaOptions.Builder

## Class Overview

A builder to create an instance of `CastMediaOptions`.

## Summary

Public Constructors
| CastMediaOptions.Builder()

Public Methods
CastMediaOptions | build() Builds and returns the `CastMediaOptions` object.
CastMediaOptions.Builder | setExpandedControllerActivityClassName(String className) Sets the class name of the expanded controller `Activity`.
CastMediaOptions.Builder | setImagePicker(ImagePicker imagePicker) Sets the `ImagePicker`.
CastMediaOptions.Builder | setMediaIntentReceiverClassName(String className) Sets the class name of the MediaIntentReceiver.
CastMediaOptions.Builder | setNotificationOptions(NotificationOptions notificationOptions) Sets the `NotificationOptions` used to configure the notification with `NotificationCompat.MediaStyle`.

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

## Public Constructors

#### public CastMediaOptions.Builder ()

## Public Methods

#### public CastMediaOptions build ()

Builds and returns the `CastMediaOptions` object.

#### public CastMediaOptions.Builder setExpandedControllerActivityClassName (String className)

Sets the class name of the expanded controller `Activity`. The default value is `null`.

#### public CastMediaOptions.Builder setImagePicker (ImagePicker imagePicker)

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

#### public CastMediaOptions.Builder setMediaIntentReceiverClassName (String className)

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

#### public CastMediaOptions.Builder setNotificationOptions (NotificationOptions notificationOptions)

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.