iOS Developer Library

Developer

AV Foundation Framework Reference AVAudioSessionRouteDescription Class Reference

Options
Deployment Target:

On This Page
Language:

AVAudioSessionRouteDescription

An AVAudioSessionRouteDescription manages the input and output ports associated with the current audio route for a session.

You do not create instances of this class yourself. Instead, you retrieve the current audio route from your app’s AVAudioSession object.

  • An array of audio input port descriptions. (read-only)

    Declaration

    Swift

    var inputs: [AVAudioSessionPortDescription] { get }

    Objective-C

    @property(readonly) NSArray <AVAudioSessionPortDescription *> *inputs

    Discussion

    This property contains an array of AVAudioSessionPortDescription objects representing the audio inputs associated with the current audio route for a session.

    Availability

    Available in iOS 6.0 and later.

  • An array of audio output port descriptions. (read-only)

    Declaration

    Swift

    var outputs: [AVAudioSessionPortDescription] { get }

    Objective-C

    @property(readonly) NSArray <AVAudioSessionPortDescription *> *outputs

    Discussion

    This property contains an array of AVAudioSessionPortDescription objects representing the audio outputs associated with the current audio route for a session.

    Availability

    Available in iOS 6.0 and later.