public interface

# CastRemoteDisplayApi

com.google.android.gms.cast.CastRemoteDisplayApi

## Class Overview

The low level API for starting a Cast Remote Display session (see `CastRemoteDisplay`. In most use cases `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. `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.

## Summary

Public Methods
abstract PendingResult<CastRemoteDisplay.CastRemoteDisplaySessionResult> | startRemoteDisplay(GoogleApiClient apiClient, String applicationId) The low level API for starting a Cast Remote Display session.
abstract PendingResult<CastRemoteDisplay.CastRemoteDisplaySessionResult> | stopRemoteDisplay(GoogleApiClient apiClient) The low level API for stopping a Cast Remote Display session.

## Public Methods

#### public abstract PendingResult<CastRemoteDisplay.CastRemoteDisplaySessionResult> startRemoteDisplay (GoogleApiClient apiClient, String applicationId)

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

##### Parameters

apiClient | The google API client instance. See `GoogleApiClient`. Must not be `null`.
applicationId | The ID of Cast Remote Display application (from the Cast developer portal). Must not be `null`.

##### Returns

- A `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 `Presentation`. See `CastRemoteDisplay.CastRemoteDisplaySessionResult`.

#### public abstract PendingResult<CastRemoteDisplay.CastRemoteDisplaySessionResult> stopRemoteDisplay (GoogleApiClient apiClient)

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

##### Parameters

apiClient | The google API client instance. See `GoogleApiClient`. See `CastRemoteDisplay.CastRemoteDisplaySessionResult`.

##### Returns

- A `PendingResult` that will be successful if the remote display session could be stopped normally.}. Must not be `null`.