AudioAttributes.AllowCaptureByAll Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 be captured by any app.
[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
Field Value
Value = 1Implements
- Attributes
Remarks
Indicates that the audio may be captured by any app.
For privacy, the following usages cannot be recorded: VOICE_COMMUNICATION*, USAGE_NOTIFICATION*, USAGE_ASSISTANCE* and USAGE_ASSISTANT.
On android.os.Build.VERSION_CODES#Q
, this means only #USAGE_UNKNOWN
, #USAGE_MEDIA
and #USAGE_GAME
may be captured.
See android.media.projection.MediaProjection
and Builder#setAllowedCapturePolicy
.
Java documentation for android.media.AudioAttributes.ALLOW_CAPTURE_BY_ALL
.
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.