Instance Property

mode

The current audio session mode.

Declaration

@property(readonly) AVAudioSessionMode mode;

Discussion

The audio session mode, together with the audio session category, indicates to the system how you intend to use audio in your app. You can use a mode to configure the audio system for specific use cases such as video recording, voice or video chat, or taking measurements.

Default value is AVAudioSessionModeDefault. The values available for this property are described in Audio Session Modes.

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.

- setMode:error:

Sets the audio session mode.

availableModes

The audio session modes available on the device.