Language

MediaProjectionConfig.IsAudioRequested Property

Definition

Returns true if the application requesting the media projection session is requesting to capture audio as well.

public bool IsAudioRequested { [Android.Runtime.Register("isAudioRequested", "()Z", "", ApiSince=37)] get; }
[<get: Android.Runtime.Register("isAudioRequested", "()Z", "", ApiSince=37)>]
member this.IsAudioRequested : bool

Property Value

Returns true if the application requesting the media projection session is requesting to capture audio as well.

Attributes

Remarks

Returns true if the application requesting the media projection session is requesting to capture audio as well.

If true, the UI component should display an option for the user to enable audio sharing.

The audio source will depend on the projection source (getProjectionSources()) chosen by the user.

Android reference for android.media.projection.MediaProjectionConfig.isAudioRequested.

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