<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/availableInputs",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:objc(cs)AVAudioSession(py)availableInputs"
  },
  "title" : "availableInputs"
}
-->

# availableInputs

An array of input ports available for audio routing.

```
var availableInputs: [AVAudioSessionPortDescription]? { get }
```

## Discussion

The active audio session category and mode determine the number of inputs this property returns. For example, if the session’s category is [`playAndRecord`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playAndRecord), the array may contain a built-in microphone port and, if connected, a headset microphone port. Alternatively, if the session’s category is [`playback`](/documentation/AVFAudio/AVAudioSession/Category-swift.struct/playback), this property returns an empty array.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)