availableCategories
The audio session categories available on the current device.
Declaration
var availableCategories: [AVAudioSession.Category] { get }Discussion
Not every device supports every audio session category. For instance, the record category isn’t available on a device that doesn’t support audio input.
Query this property to determine if the category you’d like to use is available on the current device.