Contents

setInputMuted(_:)

Sets a Boolean value that indicates whether the app’s audio input is in a muted state.

Declaration

func setInputMuted(_ muted: Bool) throws

Parameters

  • muted:

    A Boolean value that indicates the new mute state.

Discussion

In platforms that use AVAudioSession, setting the value to true mutes all sources of audio input in the app. In macOS, the system instead invokes the callback that you register by calling setInputMuteStateChangeHandler(_:) to handle input muting.

See Also

Managing audio input mute state