Instance Property

availableCategories

The audio session categories available on the current device.

Declaration

@property(readonly) NSArray<AVAudioSessionCategory> *availableCategories;

Discussion

Not every audio session category is supported on every device. For instance, the AVAudioSessionCategoryRecord category is not available on a device that doesn’t support audio input.

Query this property to determine if the category you would like to use is available on the current device.

See Also

Configuring the Audio Session

category

The current audio session category.

- setCategory:error:

Sets the current audio session category.

- setCategory:withOptions:error:

Sets the audio session category with the specified options.

- setCategory:mode:options:error:

Sets the audio session category, mode, and desired options.

categoryOptions

The mask of options associated with the current audio session category.

mode

The current audio session mode.

- setMode:error:

Sets the audio session mode.

availableModes

The audio session modes available on the device.