CastRemoteDisplayApi

  • This interface is deprecated and will be removed in a future release.

  • CastRemoteDisplayApi is the low-level API for starting a Cast Remote Display session.

  • CastRemoteDisplayLocalService is recommended instead for most use cases due to its simplified session management and customizable notification.

  • UseCastRemoteDisplayApi if Cast Remote Display rendering needs to happen on a foreground service running in a separate process.

  • Key methods includestartRemoteDisplay andstopRemoteDisplay for managing the remote display session.

public interfaceCastRemoteDisplayApi

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 (seeCastRemoteDisplay. In most use casesCastRemoteDisplayLocalService 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.

Public Method Summary

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

Public Methods

public abstractPendingResult<CastRemoteDisplay.CastRemoteDisplaySessionResult>startRemoteDisplay(GoogleApiClient apiClient,String applicationId)

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

Parameters
apiClientThe google API client instance. SeeGoogleApiClient. Must not benull.
applicationIdThe ID of Cast Remote Display application (from the Cast developer portal). Must not benull.
Returns

public abstractPendingResult<CastRemoteDisplay.CastRemoteDisplaySessionResult>stopRemoteDisplay(GoogleApiClient apiClient)

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

Parameters
apiClientThe google API client instance. SeeGoogleApiClient. See CastRemoteDisplay.CastRemoteDisplaySessionResult.
Returns
  • APendingResult that will be successful if the remote display session could be stopped normally.}. Must not benull.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-10-31 UTC.