Hide

Cast.CastOptions

public static final class Cast.CastOptions extends Object
implements Api.ApiOptions.HasOptions
java.lang.Object
   ↳ com.google.android.gms.cast.Cast.CastOptions

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

Nested Class Summary

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

Public Method Summary

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

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.