MediaProjectionConfig.Builder.SetRequesterHint(String) 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.
Let the requesting app indicate who the requester of this MediaProjection session is.
[Android.Runtime.Register("setRequesterHint", "(Ljava/lang/String;)Landroid/media/projection/MediaProjectionConfig$Builder;", "", ApiSince=37)]
public Android.Media.Projection.MediaProjectionConfig.Builder SetRequesterHint(string? requesterHint);
[<Android.Runtime.Register("setRequesterHint", "(Ljava/lang/String;)Landroid/media/projection/MediaProjectionConfig$Builder;", "", ApiSince=37)>]
member this.SetRequesterHint : string -> Android.Media.Projection.MediaProjectionConfig.Builder
Parameters
- requesterHint
- String
the text representing the requester of this session. This value may be null.
Returns
instance of this Builder. This value cannot be null.
- Attributes
Remarks
Let the requesting app indicate who the requester of this MediaProjection session is.
The UI component prompting the user for the permission to start the session can use this hint to provide more information about the origin of the request (e.g. a browser tab title, a meeting id if sharing to a video conferencing app, a player name if sharing the screen within a game).
Note that setting this won't hide or change the name of the application requesting the session.
Android reference for android.media.projection.MediaProjectionConfig.Builder.setRequesterHint.
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.