Sets the audio session’s aggregated I/O configuration preference.
- iOS 10.0+
- Mac Catalyst 13.0+
The aggregated I/O preference that you want to use.
true if the preference was successfully changed, otherwise
Starting with iOS 10,
AVCapture has changed its default audio input configuration on iPhone and iPad devices that support the Live Photos feature. This change allows taking a Live Photo without interrupting background audio playback. Configure your preferred audio input behavior by setting your aggregated I/O preference.
Apps that use
AVCapture in its default audio input configuration (
true), and that need to guarantee the same behavior as previous versions of iOS, should opt-out of this new behavior by setting the aggregated I/O preference to
Apps that don’t use
AVCapture, or that use a capture session in its nondefault configuration, can ignore this preference. In these cases, there’s no change in behavior from previous versions of iOS.