The category for recording audio; this category silences playback audio.
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
This category has the effect of silencing virtually all output on the system, for as long as the session is active. Unless you need to prevent any unexpected sounds from being played, use
To continue recording audio when your app transitions to the background (for example, when the screen locks), add the
audio value to the UIBackgroundModes key in your information property list file.
The user must grant permission for audio recording.