AI-generated Key Takeaways
-
Cast.CastOptions.Builder is used to create Cast.CastOptions instances for configuring Cast API parameters.
-
The Builder is created using a constructor that requires a CastDevice and a Cast.Listener.
-
You can enable or disable verbose logging for the Cast session using the setVerboseLoggingEnabled method.
-
The build method creates the final CastOptions object from the builder's settings.
A builder to create an instance of Cast.CastOptions
to set API configuration parameters for Cast.
Public Constructor Summary
|
Builder(CastDevice
castDevice, Cast.Listener
castListener)
Creates a builder of
Cast.CastOptions
to set API configuration parameters for Cast.
|
Public Method Summary
| Cast.CastOptions |
build()
Builds a CastOptions with the arguments supplied to this builder.
|
| Cast.CastOptions.Builder |
setVerboseLoggingEnabled(boolean enabled)
Enables or disables verbose logging for this Cast session.
|
Inherited Method Summary
Public Constructors
public Builder (CastDevice castDevice, Cast.Listener castListener)
Creates a builder of Cast.CastOptions
to set API configuration parameters for Cast.
Parameters
| castDevice | The Cast receiver device returned from the MediaRouteProvider. May not be
null. |
|---|---|
| castListener | The listener for Cast events. May not be null. |
Public Methods
public Cast.CastOptions build ()
Builds a CastOptions with the arguments supplied to this builder.
public Cast.CastOptions.Builder setVerboseLoggingEnabled (boolean enabled)
Enables or disables verbose logging for this Cast session. This option is provided to aid in testing and debugging, and should not be enabled in release builds.