AudioAttributes.AllowCaptureByAll 字段

定义

注意

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_ALL", 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 AllowCaptureByAll = 1;
[<Android.Runtime.Register("ALLOW_CAPTURE_BY_ALL", 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 AllowCaptureByAll : Android.Media.CapturePolicies

字段值

Value = 1

实现

属性

注解

指示音频可由任何应用捕获。

对于隐私,无法记录以下使用情况:VOICE_COMMUNICATION*、USAGE_NOTIFICATION*、USAGE_ASSISTANCE* 和USAGE_ASSISTANT。

打开android.os.Build.VERSION_CODES#Q时,这意味着只能#USAGE_UNKNOWN#USAGE_MEDIA捕获,并且可以#USAGE_GAME捕获。

请参见 android.media.projection.MediaProjectionBuilder#setAllowedCapturePolicy

适用于 . 的 android.media.AudioAttributes.ALLOW_CAPTURE_BY_ALLJava 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于