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)
Configures the Cast API to connect to this Google Cast device.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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

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.