CastRemoteDisplay

public final classCastRemoteDisplayextendsObject

This class is deprecated.
The Remote Display feature is deprecated and will be removed in a future release.

The CastRemoteDisplay API provides a low level mechanism for any app to display a Viewon 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 aGoogleApiClient.Builder and passAPIto GoogleApiClient.Builder.addApi(Api extends Api.ApiOptions.NotRequiredOptions> ).Once you have yourGoogleApiClient, callGoogleApiClient.connect() and wait for theGoogleApiClient.ConnectionCallbacks#onConnectedmethod to be called.

Nested Class Summary

class CastRemoteDisplay.CastRemoteDisplayOptions This class is deprecated. Use the CastRemoteDisplayClient via CastRemoteDisplay.getClient(Context)instead.
interface CastRemoteDisplay.CastRemoteDisplaySessionCallbacks This interface is deprecated. Pass a PendingIntent in CastRemoteDisplayClient.startRemoteDisplay(CastDevice, String, int, android.app.PendingIntent)to get notified when the remote display session is ended.
interface CastRemoteDisplay.CastRemoteDisplaySessionResult This interface is deprecated. Use the CastRemoteDisplayClient via CastRemoteDisplay.getClient(Context)instead.
@interface CastRemoteDisplay.Configuration Annotation class for remote display session configuration preset.

Constant Summary

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 thePendingIntent which will be fired when the Cast Remote Display session is ended.

Field Summary

public static finalApi<CastRemoteDisplay.CastRemoteDisplayOptions> API This field is deprecated. Use the CastRemoteDisplayClient via getClient(Context)instead.
public static finalCastRemoteDisplayApi CastRemoteDisplayApi This field is deprecated. Use the CastRemoteDisplayClient via getClient(Context)instead.

Public Method Summary

staticCastRemoteDisplayClient
getClient(Context context)
The entry point for interacting with the CastRemoteDisplay API from a non-Activity context.
static boolean
isRemoteDisplaySdkSupported(Context context)
This method is deprecated. The Remote Display feature is deprecated and will be removed in a future release.

Inherited Method Summary

Constants

public static final int CONFIGURATION_INTERACTIVE_NONREALTIME

Optimize for interactive applications that can tolerate some latency, such as turn-based games.

Constant Value:2

public static final int CONFIGURATION_INTERACTIVE_REALTIME

Optimize for low latency interactive applications such as gaming.

Constant Value:1

public static final int CONFIGURATION_NONINTERACTIVE

Optimize for applications not sensitive to latency.

Constant Value:3

public static finalString EXTRA_INT_SESSION_ENDED_STATUS_CODE

Key of the extra field that contains theCastStatusCodes in thePendingIntent which will be fired when the Cast Remote Display session is ended.

Constant Value: "extra_int_session_ended_status_code"

Fields

public static finalApi<CastRemoteDisplay.CastRemoteDisplayOptions> API

This field is deprecated.
Use theCastRemoteDisplayClient via getClient(Context)instead.

Token to pass to GoogleApiClient.Builder.addApi(Api extends Api.ApiOptions.NotRequiredOptions> )to enable the CastRemoteDisplay features.

public static finalCastRemoteDisplayApi CastRemoteDisplayApi

This field is deprecated.
Use theCastRemoteDisplayClient via getClient(Context)instead.

An implementation of the CastRemoteDisplayAPI interface. The interface is used to interact with a cast device.

Public Methods

public staticCastRemoteDisplayClient getClient(Context context)

The entry point for interacting with the CastRemoteDisplay API from a non-Activity context.

public static booleanisRemoteDisplaySdkSupported(Context context)

This method is deprecated.
The Remote Display feature is deprecated and will be removed in a future release.

Returnstrueif the Remote Display SDK is supported on this device. This deprecated method always returnsfalsenow.

Parameters
context The application's context.