IosAudioCategoryOption

An enum representing audio behaviors for iOS audio sessions. Each option is valid for specific audio session categories.

Properties

  • **ALLOW_AIRPLAY**
  • * Description: Stream audio from this session to AirPlay devices. * Note: Available from iOS 10.0. * Value: 'allowAirPlay'

  • **ALLOW_BLUETOOTH**
  • * Description: Bluetooth hands-free devices appear as available input routes. * Value: 'allowBluetooth'

  • **ALLOW_BLUETOOTH_A2DP**
  • * Description: Stream audio from this session to Bluetooth devices supporting A2DP. * Note: Available from iOS 10.0. * Value: 'allowBluetoothA2DP'

  • **DEFAULT_TO_SPEAKER**
  • * Description: Audio from the session defaults to the built-in speaker instead of the receiver. * Value: 'defaultToSpeaker'

  • **DUCK_OTHERS**
  • * Description: Reduces the volume of other audio sessions while audio from this session plays. * Value: 'duckOthers'

  • **INTERRUPT_SPOKEN_AUDIO_AND_MIX_WITH_OTHERS**
  • * Description: Pauses spoken audio content from other sessions when your app plays its audio. * Note: Available from iOS 9.0. * Value: 'interruptSpokenAudioAndMixWithOthers'

  • **MIX_WITH_OTHERS**
  • * Description: Allows audio from this session to mix with audio from active sessions in other audio apps. * Value: 'mixWithOthers'

  • **OVERRIDE_MUTED_MICROPHONE_INTERRUPTION**
  • * Description: System interrupts the audio session when it mutes the built-in microphone. * Note: Available from iOS 14.5. * Value: 'overrideMutedMicrophoneInterruption'

    Inheritance

  • Inherits from enum.Enum.