AI-generated Key Takeaways
-
Cast.CastOptions are API configuration parameters for Cast.
-
An instance of Cast.CastOptions is created using Cast.CastOptions.Builder.
-
The Cast.CastOptions.Builder is used to set API configuration parameters for Cast.
-
The deprecated builder method configures the Cast API to connect to a Google Cast device using a CastDevice and Cast.Listener.
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. |
|
Inherited Field Summary
Public Method Summary
| static Cast.CastOptions.Builder |
builder(CastDevice
castDevice, Cast.Listener
castListener)
This method is deprecated. Use the
Cast.CastOptions.Builder
constructor instead.
|
| boolean | |
| int |
hashCode()
|
Inherited Method Summary
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.