SessionCategory

@objc public enum SessionCategory: Int, CustomStringConvertible

Enum of available AVAudioSession Categories

  • Audio silenced by silent switch and screen lock - audio is mixable

    Declaration

    Swift

    case ambient
  • Audio is silenced by silent switch and screen lock - audio is non mixable

    Declaration

    Swift

    case soloAmbient
  • Audio is not silenced by silent switch and screen lock - audio is non mixable

    Declaration

    Swift

    case playback
  • Silences playback audio

    Declaration

    Swift

    case record
  • Audio is not silenced by silent switch and screen lock - audio is non mixable. To allow mixing see AVAudioSessionCategoryOptionMixWithOthers.

    Declaration

    Swift

    case playAndRecord
  • Undocumented

    Declaration

    Swift

    @objc public enum SessionCategory: Int, CustomStringConvertible
  • Use to multi-route audio. May be used on input, output, or both.

    Declaration

    Swift

    case multiRoute
  • Use to multi-route audio. May be used on input, output, or both.

    Declaration

    Swift

    public var description: String