# CastRemoteDisplayApi

public interface **CastRemoteDisplayApi** **This interface is deprecated.**   

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

The low level API for starting a Cast Remote Display session (see `https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplay`.
In most use cases `https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplayLocalService`
should be considered instead as it will simplify managing the Cast Remote Display session
when the main activity goes to background and will provide a customizable default
notification. `https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplayApi`
is available for the use cases where the Cast Remote Display rendering has to happen on a
foreground service that runs on a separate process.

### Public Method Summary

|---|---|
| abstract [PendingResult](https://developers.google.com/android/reference/com/google/android/gms/common/api/PendingResult)\<[CastRemoteDisplay.CastRemoteDisplaySessionResult](https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplaySessionResult)\> | [startRemoteDisplay](https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplayApi#startRemoteDisplay(com.google.android.gms.common.api.GoogleApiClient,%20java.lang.String))([GoogleApiClient](https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient, [String](https://developer.android.com/reference/java/lang/String.html) applicationId) The low level API for starting a Cast Remote Display session. |
| abstract [PendingResult](https://developers.google.com/android/reference/com/google/android/gms/common/api/PendingResult)\<[CastRemoteDisplay.CastRemoteDisplaySessionResult](https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplaySessionResult)\> | [stopRemoteDisplay](https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplayApi#stopRemoteDisplay(com.google.android.gms.common.api.GoogleApiClient))([GoogleApiClient](https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient) The low level API for stopping a Cast Remote Display session. |

## Public Methods

#### public abstract [PendingResult](https://developers.google.com/android/reference/com/google/android/gms/common/api/PendingResult)\<[CastRemoteDisplay.CastRemoteDisplaySessionResult](https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplaySessionResult)\>
**startRemoteDisplay** ([GoogleApiClient](https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient, [String](https://developer.android.com/reference/java/lang/String.html) applicationId)

The low level API for starting a Cast Remote Display session.

##### Parameters

| apiClient | The google API client instance. See `https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApiClient`. Must not be `null`. |
| applicationId | The ID of Cast Remote Display application (from the Cast developer portal). Must not be `null`. |
|---|---|

##### Returns

- A `https://developers.google.com/android/reference/com/google/android/gms/common/api/PendingResult` that will be successful if the remote display session could be started normally, in this case it will contain the display that can be used with a `https://developer.android.com/reference/android/app/Presentation.html`. See `https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplaySessionResult`.

#### public abstract [PendingResult](https://developers.google.com/android/reference/com/google/android/gms/common/api/PendingResult)\<[CastRemoteDisplay.CastRemoteDisplaySessionResult](https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplaySessionResult)\>
**stopRemoteDisplay** ([GoogleApiClient](https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApiClient) apiClient)

The low level API for stopping a Cast Remote Display session.

##### Parameters

| apiClient | The google API client instance. See `https://developers.google.com/android/reference/com/google/android/gms/common/api/GoogleApiClient`. See `https://developers.google.com/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplaySessionResult`. |
|---|---|

##### Returns

- A `https://developers.google.com/android/reference/com/google/android/gms/common/api/PendingResult` that will be successful if the remote display session could be stopped normally.}. Must not be `null`.