Language

AppContentProjectionService.OnLoopbackProjectionStarted Method

Definition

Called when the user picked a content to be shared within the requesting app.

[Android.Runtime.Register("onLoopbackProjectionStarted", "(Landroid/media/projection/AppContentProjectionSession;I)Z", "GetOnLoopbackProjectionStarted_Landroid_media_projection_AppContentProjectionSession_IHandler", ApiSince=37)]
public abstract bool OnLoopbackProjectionStarted(Android.Media.Projection.AppContentProjectionSession session, int contentId);
[<Android.Runtime.Register("onLoopbackProjectionStarted", "(Landroid/media/projection/AppContentProjectionSession;I)Z", "GetOnLoopbackProjectionStarted_Landroid_media_projection_AppContentProjectionSession_IHandler", ApiSince=37)>]
abstract member OnLoopbackProjectionStarted : Android.Media.Projection.AppContentProjectionSession * int -> bool

Parameters

session
AppContentProjectionSession

the session started for sharing the selected MediaProjectionAppContent

contentId
Int32

the id of the selected MediaProjectionAppContent

Returns

true if the request has been fulfilled, false otherwise

Attributes

Remarks

Called when the user picked a content to be shared within the requesting app.

This can be called multiple times if the user picks a different content to be shared at a later point.

contentId is the id that has been provided by this application during the onContentRequest(AppContentRequest) call. See MediaProjectionAppContent for more information about the id.

Android reference for android.media.projection.AppContentProjectionService.onLoopbackProjectionStarted.

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.

Applies to