CastRemoteDisplayApi Stay organized with collections Save and categorize content based on your preferences.
Page Summary
This interface is deprecated and will be removed in a future release.
CastRemoteDisplayApiis the low-level API for starting a Cast Remote Display session.CastRemoteDisplayLocalServiceis recommended instead for most use cases due to its simplified session management and customizable notification.Use
CastRemoteDisplayApiif Cast Remote Display rendering needs to happen on a foreground service running in a separate process.Key methods include
startRemoteDisplayandstopRemoteDisplayfor managing the remote display session.
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
| apiClient | The google API client instance. SeeGoogleApiClient. Must not benull. |
|---|---|
| applicationId | The ID of Cast Remote Display application (from the Cast developer portal). Must not benull. |
Returns
- A
PendingResultthat 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 aPresentation. SeeCastRemoteDisplay.CastRemoteDisplaySessionResult.
public abstractPendingResult<CastRemoteDisplay.CastRemoteDisplaySessionResult>stopRemoteDisplay(GoogleApiClient apiClient)
The low level API for stopping a Cast Remote Display session.
Parameters
| apiClient | The google API client instance. SeeGoogleApiClient. See CastRemoteDisplay.CastRemoteDisplaySessionResult. |
|---|
Returns
- A
PendingResultthat 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.