Summary: Nested Classes | Constants | Fields | Methods | Inherited Methods | [Expand All]
public final class

# CastRemoteDisplay

extends Object

java.lang.Object
↳ | com.google.android.gms.cast.CastRemoteDisplay

## Class Overview

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)`. Once you have your `GoogleApiClient`, call `connect()` and wait for the `onConnected(Bundle)` method to be called.

## Summary

Nested Classes
class | CastRemoteDisplay.CastRemoteDisplayOptions | API configuration parameters for `CastRemoteDisplay`.
interface | CastRemoteDisplay.CastRemoteDisplaySessionCallbacks | Cast Remote Display session callbacks.
interface | 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.
@interface | 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.

Fields
public static final Api<CastRemoteDisplay.CastRemoteDisplayOptions> | API | Token to pass to `addApi(Api)` to enable the CastRemoteDisplay features.
public static final CastRemoteDisplayApi | CastRemoteDisplayApi | An implementation of the CastRemoteDisplayAPI interface.

Public Methods
final static boolean | isRemoteDisplaySdkSupported(Context context) Returns `true` if the Remote Display SDK is supported on this device.

[Expand] Inherited Methods
From class java.lang.Object
Object | clone()
boolean | equals(Object arg0)
void | finalize()
final Class<?> | getClass()
int | hashCode()
final void | notify()
final void | notifyAll()
String | toString()
final void | wait(long arg0, int arg1)
final void | wait(long arg0)
final void | wait()

## 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 (0x00000002)

#### public static final int CONFIGURATION_INTERACTIVE_REALTIME

Optimize for low latency interactive applications such as gaming.

Constant Value: 1 (0x00000001)

#### public static final int CONFIGURATION_NONINTERACTIVE

Optimize for applications not sensitive to latency.

Constant Value: 3 (0x00000003)

## Fields

#### public static final Api<CastRemoteDisplay.CastRemoteDisplayOptions> API

Token to pass to `addApi(Api)` to enable the CastRemoteDisplay features.

#### public static final CastRemoteDisplayApi CastRemoteDisplayApi

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

## Public Methods

#### public static final boolean isRemoteDisplaySdkSupported (Context context)

Returns `true` if the Remote Display SDK is supported on this device.

##### Parameters

context | The application's context.