Share via


AudioAttributes.AllowCaptureByNone Field

Definition

Caution

This constant will be removed in the future version. Use Android.Media.CapturePolicies enum directly instead of this field.

Indicates that the audio is not to be recorded by any app, even if it is a system app.

[Android.Runtime.Register("ALLOW_CAPTURE_BY_NONE", ApiSince=29)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Media.CapturePolicies enum directly instead of this field.", true)]
public const Android.Media.CapturePolicies AllowCaptureByNone = 3;
[<Android.Runtime.Register("ALLOW_CAPTURE_BY_NONE", ApiSince=29)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Media.CapturePolicies enum directly instead of this field.", true)>]
val mutable AllowCaptureByNone : Android.Media.CapturePolicies

Field Value

Value = 3

Implements

Attributes

Remarks

Indicates that the audio is not to be recorded by any app, even if it is a system app.

It is encouraged to use #ALLOW_CAPTURE_BY_SYSTEM instead of this value as system apps provide significant and useful features for the user (such as live captioning and accessibility).

See Builder#setAllowedCapturePolicy.

Java documentation for android.media.AudioAttributes.ALLOW_CAPTURE_BY_NONE.

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