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 |
This class is deprecated.
Use the CastRemoteDisplayClient via getClient(Context)
instead.
|
||||||||||
CastRemoteDisplay.CastRemoteDisplaySessionCallbacks |
This interface is deprecated.
Pass a PendingIntent in startRemoteDisplay(CastDevice, String, int, android.app.PendingIntent) to get notified when the remote display session is ended.
|
||||||||||
CastRemoteDisplay.CastRemoteDisplaySessionResult |
This interface is deprecated.
Use the CastRemoteDisplayClient via getClient(Context)
instead.
|
||||||||||
CastRemoteDisplay.Configuration | Annotation class for remote display session configuration preset. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | CONFIGURATION_INTERACTIVE_NONREALTIME | Optimize for interactive applications that can tolerate some latency, such as turn-based games. | |||||||||
int | CONFIGURATION_INTERACTIVE_REALTIME | Optimize for low latency interactive applications such as gaming. | |||||||||
int | CONFIGURATION_NONINTERACTIVE | Optimize for applications not sensitive to latency. | |||||||||
String | EXTRA_INT_SESSION_ENDED_STATUS_CODE | Key of the extra field that contains the CastStatusCodes in
the PendingIntent which will be fired when the Cast Remote Display session
is ended. |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API |
This field is deprecated.
Use the CastRemoteDisplayClient via getClient(Context)
instead.
|
||||||||||
CastRemoteDisplayApi |
This field is deprecated.
Use the CastRemoteDisplayClient via getClient(Context)
instead.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
The entry point for interacting with the CastRemoteDisplay API from a non-Activity context.
| |||||||||||
Returns
true if the Remote Display SDK is supported on this device. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Optimize for interactive applications that can tolerate some latency, such as turn-based games.
Optimize for low latency interactive applications such as gaming.
Optimize for applications not sensitive to latency.
Key of the extra field that contains the CastStatusCodes
in
the PendingIntent
which will be fired when the Cast Remote Display session
is ended.
This field is deprecated.
Use the CastRemoteDisplayClient
via getClient(Context)
instead.
Token to pass to addApi(Api extends Api.ApiOptions.NotRequiredOptions>)
to enable the CastRemoteDisplay
features.
This field is deprecated.
Use the CastRemoteDisplayClient
via getClient(Context)
instead.
An implementation of the CastRemoteDisplayAPI interface. The interface is used to interact with a cast device.
The entry point for interacting with the CastRemoteDisplay API from a non-Activity context.
Parameters | |
---|---|
context |
Context |
Returns | |
---|---|
CastRemoteDisplayClient |
Returns true
if the Remote Display SDK is supported on this device.
Parameters | |
---|---|
context |
Context : The application's context.
|
Returns | |
---|---|
boolean |