Instance Property

availableModes

The audio session modes available on the device.

Declaration

@property(readonly) NSArray<AVAudioSessionMode> *availableModes;

Discussion

Not every audio session mode is available on every device. For example, the AVAudioSessionModeVideoRecording mode is unavailable on a device that doesn’t support video recording.

Query this property to determine if the mode 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.

availableCategories

The audio session categories available on the current device.

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.