Static AVAudioApplicationInputMuteStateChangeNotification

Source
pub unsafe static AVAudioApplicationInputMuteStateChangeNotification: &'static NSNotificationName
Available on crate feature AVAudioApplication only.
Expand description

Notification sent to registered listeners when the application’s input is muted or unmuted.

Check the notification’s userInfo dictionary for the mute state AVAudioApplicationInputMuteStateKey which will have a boolean value 0 for unmuted or value 1 for muted.

Note: this notification will only be dispatched for state changes when there is an active record session (i.e. record or playAndRecord category). Setting the inputMuted state while the record session is not active is allowed and will be stored, but it will not trigger a notification for the state change. When the record session subsequently goes active, the inputMuted state will be applied, and this notification will be dispatched with the latest input muted state.

See also Apple’s documentation