CastRemoteDisplay.CastRemoteDisplaySessionCallbacks
Stay organized with collections
Save and categorize content based on your preferences.
Public Methods
public abstract void onRemoteDisplayEnded (Status
status)
Called when the remote display session ends.
Parameters
status |
The reason that caused the remote display session to end. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[null,null,["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eCastRemoteDisplay.CastRemoteDisplaySessionCallbacks\u003c/code\u003e is deprecated and provides callbacks for remote display sessions.\u003c/p\u003e\n"],["\u003cp\u003eUse a \u003ccode\u003ePendingIntent\u003c/code\u003e with \u003ccode\u003eCastRemoteDisplayClient.startRemoteDisplay()\u003c/code\u003e to receive notification of session endings.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eonRemoteDisplayEnded()\u003c/code\u003e is called when a remote display session ends, providing a \u003ccode\u003eStatus\u003c/code\u003e object indicating the reason.\u003c/p\u003e\n"]]],["The `CastRemoteDisplaySessionCallbacks` interface is deprecated. To receive notifications when a remote display session ends, pass a `PendingIntent` to `CastRemoteDisplayClient.startRemoteDisplay`. The `onRemoteDisplayEnded` method, part of this interface, is invoked when the session terminates. It provides a `Status` object, indicating the reason for the session's end. This method is the primary way to receive updates regarding the remote display session's completion.\n"],null,["# CastRemoteDisplay.CastRemoteDisplaySessionCallbacks\n\npublic static interface **CastRemoteDisplay.CastRemoteDisplaySessionCallbacks** \n**This interface is deprecated.** \n\nPass a [PendingIntent](//developer.android.com/reference/android/app/PendingIntent.html)\nin [CastRemoteDisplayClient.startRemoteDisplay(CastDevice, String, int,\nandroid.app.PendingIntent)](/android/reference/com/google/android/gms/cast/CastRemoteDisplayClient#startRemoteDisplay(com.google.android.gms.cast.CastDevice,%20java.lang.String,%20int,%20android.app.PendingIntent)) to get notified when the remote display session is\nended.\n\nCast Remote Display session callbacks. \n\n### Public Method Summary\n\n|---------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract void | [onRemoteDisplayEnded](/android/reference/com/google/android/gms/cast/CastRemoteDisplay.CastRemoteDisplaySessionCallbacks#onRemoteDisplayEnded(com.google.android.gms.common.api.Status))([Status](/android/reference/com/google/android/gms/common/api/Status) status) Called when the remote display session ends. |\n\nPublic Methods\n--------------\n\n#### public abstract void **onRemoteDisplayEnded** ([Status](/android/reference/com/google/android/gms/common/api/Status) status)\n\nCalled when the remote display session ends. \n\n##### Parameters\n\n| status | The reason that caused the remote display session to end. |\n|--------|-----------------------------------------------------------|"]]