Language

MediaProjectionConfig.Builder.SetAudioRequested(Boolean) Method

Definition

This method informs the screen capture UI that the user should be presented with an option to also record audio along with the screen content.

[Android.Runtime.Register("setAudioRequested", "(Z)Landroid/media/projection/MediaProjectionConfig$Builder;", "", ApiSince=37)]
public Android.Media.Projection.MediaProjectionConfig.Builder SetAudioRequested(bool isAudioRequested);
[<Android.Runtime.Register("setAudioRequested", "(Z)Landroid/media/projection/MediaProjectionConfig$Builder;", "", ApiSince=37)>]
member this.SetAudioRequested : bool -> Android.Media.Projection.MediaProjectionConfig.Builder

Parameters

isAudioRequested
Boolean

true to request that the UI shows an audio capture option, false otherwise.

Returns

this Builder instance for chaining. This value cannot be null.

Attributes

Remarks

This method informs the screen capture UI that the user should be presented with an option to also record audio along with the screen content. When isAudioRequested is set to true, the consent dialog will display a control, such as a toggle, allowing the user to enable or disable audio capture for the projection session. If set to false, this control will not be shown.

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

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