CapturePolicies Enum
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.
Specifies restrictions on capture of playback audio by other applications and the system.
public enum CapturePolicies
type CapturePolicies =
- Inheritance
-
CapturePolicies
Fields
| Name | Value | Description |
|---|---|---|
| ByAll | 1 | Indicates that the audio may be captured by any app. For privacy, when using AudioPlaybackCaptureConfiguration, voice communication, notification, assistance, and assistant usages cannot be recorded. Only Unknown, Media, and Game may be captured with that configuration. See MediaProjection and SetAllowedCapturePolicy(CapturePolicies). Android reference for 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. |
| BySystem | 2 | 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 SetAllowedCapturePolicy(CapturePolicies). Android reference for 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. |
| ByNone | 3 | Indicates that the audio is not to be recorded by any app, even if it is a system app. It is encouraged to use BySystem instead of this value as system apps provide significant and useful features for the user (such as live captioning and accessibility). See SetAllowedCapturePolicy(CapturePolicies). Android reference for 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. |
Remarks
The policy distinguishes capture by eligible applications, system-only capture and no application capture. It does not grant capture authorization: the most restrictive track, runtime application and manifest policies apply.