AppContentProjectionService.OnSessionStopped Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the sharing session has been ended by the user or the system.
[Android.Runtime.Register("onSessionStopped", "(Landroid/media/projection/AppContentProjectionSession;)V", "GetOnSessionStopped_Landroid_media_projection_AppContentProjectionSession_Handler", ApiSince=37)]
public abstract void OnSessionStopped(Android.Media.Projection.AppContentProjectionSession session);
[<Android.Runtime.Register("onSessionStopped", "(Landroid/media/projection/AppContentProjectionSession;)V", "GetOnSessionStopped_Landroid_media_projection_AppContentProjectionSession_Handler", ApiSince=37)>]
abstract member OnSessionStopped : Android.Media.Projection.AppContentProjectionSession -> unit
Parameters
- session
- AppContentProjectionSession
the same session object that was passed in
#onLoopbackProjectionStarted(AppContentProjectionSession, int)
- Attributes
Remarks
Called when the sharing session has been ended by the user or the system. The shared resources can be discarded.
The provided session object is the same as the one provided when onLoopbackProjectionStarted(AppContentProjectionSession,int) was called. It can be used to identify the session that is being terminated.
Note that if the session is terminated by this service by calling AppContentProjectionSession.notifySessionStop(), this callback won't be called.
Android reference for android.media.projection.AppContentProjectionService.onSessionStopped.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.