AI-generated Key Takeaways
-
This class, CastRemoteDisplay.CastRemoteDisplayOptions.Builder, is deprecated and you should use CastRemoteDisplayClient instead.
-
This builder class is used to create instances of CastRemoteDisplayOptions to set API configuration parameters for CastRemoteDisplay.
-
The builder can be created with a CastDevice and CastRemoteDisplaySessionCallbacks to configure the Cast remote display API for connecting to a Google Cast device.
-
It includes methods to build the CastOptions and set the Remote Display configuration preset.
This class is deprecated.
Use the CastRemoteDisplayClient
via
CastRemoteDisplay.getClient(Context) instead.
A builder to create an instance of
CastRemoteDisplay.CastRemoteDisplayOptions to set API configuration parameters for
CastRemoteDisplay.
Public Constructor Summary
|
Builder(CastDevice
castDevice,
CastRemoteDisplay.CastRemoteDisplaySessionCallbacks callbacks)
Creates a builder of
CastRemoteDisplay.CastRemoteDisplayOptions that configures the Cast
remote display API to connect to a Google Cast device.
|
Public Method Summary
| CastRemoteDisplay.CastRemoteDisplayOptions |
build()
Builds a CastOptions with the arguments supplied to this builder.
|
| CastRemoteDisplay.CastRemoteDisplayOptions.Builder |
setConfigPreset(int configPreset)
Set the Remote Display configuration preset.
|
Inherited Method Summary
Public Constructors
public Builder (CastDevice castDevice, CastRemoteDisplay.CastRemoteDisplaySessionCallbacks callbacks)
Creates a builder of
CastRemoteDisplay.CastRemoteDisplayOptions that configures the Cast remote
display API to connect to a Google Cast device.
Parameters
| castDevice | The Cast receiver device returned from the MediaRouter
. May not be null. |
|---|---|
| callbacks | The callbacks for Cast Remote Display session events. May not be
null. |
Returns
- A builder for the Cast Remote Display API options.
Public Methods
public CastRemoteDisplay.CastRemoteDisplayOptions build ()
Builds a CastOptions with the arguments supplied to this builder.
public CastRemoteDisplay.CastRemoteDisplayOptions.Builder setConfigPreset (int configPreset)
Set the Remote Display configuration preset. This affects latency optimization and
other transmission and display behaviours. The default is
CastRemoteDisplay.CONFIGURATION_INTERACTIVE_NONREALTIME.
Parameters
| configPreset | The desired streaming preset, which is one of
CastRemoteDisplay.Configuration |
|---|
Returns
- the builder