语言

AudioAttributes.AllowCaptureByNone 字段

定义

注意

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

指示音频不会由任何应用录制,即使它是系统应用也是如此。

[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

字段值

Value = 3

实现

特性

注解

指示音频不会由任何应用录制,即使它是系统应用也是如此。

建议使用 #ALLOW_CAPTURE_BY_SYSTEM 此值,而不是此值,因为系统应用为用户(如实时字幕和辅助功能)提供重要且有用的功能。

请参阅 Builder#setAllowedCapturePolicy。

Java文档android.media.AudioAttributes.ALLOW_CAPTURE_BY_NONE。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于