kAudioSessionProperty_AudioInputAvailable
Indicates if audio input is available (a nonzero value) or not (a value of 0).
Declaration
var kAudioSessionProperty_AudioInputAvailable: Int { get }Discussion
A read-only UInt32 value, interpreted as a Boolean value. Use this property, rather than the device model, to determine if audio input is available.
You can listen for changes in the value of this property using a callback function. For instance, if a user plugs a headset into an iPod touch (2nd generation), audio input becomes available via the wired microphone and your callback is invoked. See AudioSessionAddPropertyListener(_:_:_:).
See Also
Constants
kAudioSessionProperty_PreferredHardwareSampleRatekAudioSessionProperty_PreferredHardwareIOBufferDurationkAudioSessionProperty_AudioCategorykAudioSessionProperty_AudioRouteChangekAudioSessionProperty_CurrentHardwareSampleRatekAudioSessionProperty_CurrentHardwareInputNumberChannelskAudioSessionProperty_CurrentHardwareOutputNumberChannelskAudioSessionProperty_CurrentHardwareOutputVolumekAudioSessionProperty_CurrentHardwareInputLatencykAudioSessionProperty_CurrentHardwareOutputLatencykAudioSessionProperty_CurrentHardwareIOBufferDurationkAudioSessionProperty_OtherAudioIsPlayingkAudioSessionProperty_OverrideAudioRoutekAudioSessionProperty_ServerDiedkAudioSessionProperty_OtherMixableAudioShouldDuck