Language

AppContentProjectionService.OnContentRequest(AppContentRequest) Method

Definition

Called when the picker UI has been shown to the user.

[Android.Runtime.Register("onContentRequest", "(Landroid/media/projection/AppContentRequest;)V", "GetOnContentRequest_Landroid_media_projection_AppContentRequest_Handler", ApiSince=37)]
public abstract void OnContentRequest(Android.Media.Projection.AppContentRequest request);
[<Android.Runtime.Register("onContentRequest", "(Landroid/media/projection/AppContentRequest;)V", "GetOnContentRequest_Landroid_media_projection_AppContentRequest_Handler", ApiSince=37)>]
abstract member OnContentRequest : Android.Media.Projection.AppContentRequest -> unit

Parameters

request
AppContentRequest

the request instance containing the characteristics of the content requested

Attributes

Remarks

Called when the picker UI has been shown to the user.

App content should be returned by calling AppContentRequest.provideContent(List)

If the user picks one of the offered app content, onLoopbackProjectionStarted(AppContentProjectionSession,int) will be called with the id corresponding to the chosen content. See MediaProjectionAppContent for more information about the id.

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

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