Enumeration

AVAudioSession.PromptStyle

Constants that indicate the prompt style to use.

Declaration

enum PromptStyle : UInt

Topics

Prompt Styles

case none

Your app shouldn’t issue prompts at this time.

case short

Your app should issue short, nonverbal prompts.

case normal

Your app may use long, verbal prompts.

See Also

Mixing with Other Audio

var isOtherAudioPlaying: Bool

A Boolean value that indicates whether another app is playing audio.

var secondaryAudioShouldBeSilencedHint: Bool

A Boolean value that indicates whether another app, with a nonmixable audio session, is playing audio.

var allowHapticsAndSystemSoundsDuringRecording: Bool

A Boolean value that indicates whether system sounds and haptics play while recording from audio input.

func setAllowHapticsAndSystemSoundsDuringRecording(Bool)

Sets a Boolean value that indicates whether system sounds and haptics play while recording from audio input.

var promptStyle: AVAudioSession.PromptStyle

A hint to audio sessions that use voice prompt mode to alter the type of prompts they issue in response to other system audio, such as Siri and phone calls.