Language

MediaProjectionConfig.Builder.SetSourceEnabled(Int32, Boolean) Method

Definition

Set whether the UI component requesting the user permission to share their screen should display an option to share the specified source

[Android.Runtime.Register("setSourceEnabled", "(IZ)Landroid/media/projection/MediaProjectionConfig$Builder;", "", ApiSince=37)]
public Android.Media.Projection.MediaProjectionConfig.Builder SetSourceEnabled(int source, bool enabled);
[<Android.Runtime.Register("setSourceEnabled", "(IZ)Landroid/media/projection/MediaProjectionConfig$Builder;", "", ApiSince=37)>]
member this.SetSourceEnabled : int * bool -> Android.Media.Projection.MediaProjectionConfig.Builder

Parameters

source
Int32

the projection source to enable or disable. Value is either 0 or a combination of the following: MediaProjectionConfig.PROJECTION_SOURCE_DISPLAY; MediaProjectionConfig.PROJECTION_SOURCE_APP; MediaProjectionConfig.PROJECTION_SOURCE_APP_CONTENT

enabled
Boolean

true to enable the source, false otherwise

Returns

this instance for chaining. This value cannot be null.

Attributes

Remarks

Set whether the UI component requesting the user permission to share their screen should display an option to share the specified source

Android reference for android.media.projection.MediaProjectionConfig.Builder.setSourceEnabled.

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