Udostępnij za pośrednictwem


AudioAttributes.AllowCaptureBySystem 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 may only be captured by system apps.

[Android.Runtime.Register("ALLOW_CAPTURE_BY_SYSTEM", 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 AllowCaptureBySystem = 2;
[<Android.Runtime.Register("ALLOW_CAPTURE_BY_SYSTEM", 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 AllowCaptureBySystem : Android.Media.CapturePolicies

Field Value

Value = 2

Implements

Attributes

Remarks

Indicates that the audio may only be captured by system apps.

System apps can capture for many purposes like accessibility, live captions, user guidance... but abide to the following restrictions: - the audio cannot leave the device - the audio cannot be passed to a third party app - the audio cannot be recorded at a higher quality than 16kHz 16bit mono

See Builder#setAllowedCapturePolicy.

Java documentation for android.media.AudioAttributes.ALLOW_CAPTURE_BY_SYSTEM.

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