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

# Cast.CastOptions

extends Object
implements Api.ApiOptions.HasOptions

java.lang.Object
↳ | com.google.android.gms.cast.Cast.CastOptions

## Class Overview

API configuration parameters for `Cast`. The `Cast.CastOptions.Builder` is used to create an instance of `Cast.CastOptions`.

## Summary

Nested Classes
class | Cast.CastOptions.Builder | A builder to create an instance of `Cast.CastOptions` to set API configuration parameters for `Cast`.

Public Methods
static Cast.CastOptions.Builder | builder(CastDevice castDevice, Cast.Listener castListener) This method is deprecated. Use the `Cast.CastOptions.Builder` constructor instead.

[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 Methods

#### public static Cast.CastOptions.Builder builder (CastDevice castDevice, Cast.Listener castListener)

This method is deprecated.
Use the `Cast.CastOptions.Builder` constructor instead.

Configures the Cast API to connect to this Google Cast device.

##### Parameters

castDevice | The Cast receiver device returned from the MediaRouteProvider. May not be `null`.
castListener | The listener for Cast events. May not be `null`.

##### Returns

- A builder for the Cast ApiOptions.