iOS Developer Library

Developer

AVFoundation Framework Reference AVAudioSessionRouteDescription Class Reference

Options
Deployment Target:

On This Page
Language:

AVAudioSessionRouteDescription

Inheritance


  • NSObject
  • AVAudioSessionRouteDescription
  • NSObject
  • AVAudioSessionRouteDescription

Conforms To


Import Statement


Swift

import AVFoundation

Objective-C

@import AVFoundation;

Availability


Available in iOS 6.0 and later.

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.

  • inputs inputs Property

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

    Declaration

    Swift

    var inputs: [AnyObject]! { get }

    Objective-C

    @property(readonly) NSArray *inputs

    Discussion

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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 6.0 and later.

  • outputs outputs Property

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

    Declaration

    Swift

    var outputs: [AnyObject]! { get }

    Objective-C

    @property(readonly) NSArray *outputs

    Discussion

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

    Import Statement

    Objective-C

    @import AVFoundation;

    Swift

    import AVFoundation

    Availability

    Available in iOS 6.0 and later.