Instance Method

setAllowHapticsAndSystemSoundsDuringRecording:error:

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

Declaration

- (BOOL)setAllowHapticsAndSystemSoundsDuringRecording:(BOOL)inValue error:(NSError * _Nullable *)outError;

Parameters

inValue

A Boolean value that indicates whether haptics and system sounds should play while recording is in progress.

outError

On input, a pointer to an error object. If an error occurs, the framework sets the pointer to an NSError object that describes the error. If you don’t want error information, pass in nil

See Also

Mixing with Other Audio

otherAudioPlaying

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

secondaryAudioShouldBeSilencedHint

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

allowHapticsAndSystemSoundsDuringRecording

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

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.

AVAudioSessionPromptStyle

Constants that indicate the prompt style to use.