java.lang.Object | |
↳ | com.google.android.gms.cast.CastRemoteDisplay |
The CastRemoteDisplay API provides a low level mechanism for any app to display a
View
on a cast device.
For most use cases, CastRemoteDisplayLocalService
may provide an easier solution, since
it simplifies managing the Cast Remote Display session when the activity goes into the
background. This service also provides a default notification, which may be customized.
To use the service, construct a GoogleApiClient.Builder
and pass API
to
addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
. Once you have your GoogleApiClient
, call
connect()
and wait for the
onConnected(Bundle)
method to be called.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CastRemoteDisplay.CastRemoteDisplayOptions |
API configuration parameters for CastRemoteDisplay .
|
||||||||||
CastRemoteDisplay.CastRemoteDisplaySessionCallbacks | Cast Remote Display session callbacks. | ||||||||||
CastRemoteDisplay.CastRemoteDisplaySessionResult | When a remote display session to a device has been established, this object contains information about the session, including its virtual display and current status. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API |
Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>) to enable the CastRemoteDisplay
features.
|
||||||||||
CastRemoteDisplayApi | An implementation of the CastRemoteDisplayAPI interface. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
to enable the CastRemoteDisplay
features.
An implementation of the CastRemoteDisplayAPI interface. The interface is used to interact with a cast device.