microphoneEnabled property Null safety

EnabledCallback? microphoneEnabled
read / write

Occurs when the microphone is enabled/disabled.

Deprecated This callback is deprecated. Use AudioLocalState.Stopped (0) or AudioLocalState.Recording (1) in the RtcEngineEventHandler.localAudioStateChanged callback instead. The SDK triggers this callback when the local user resumes or stops capturing the local audio stream by calling the RtcEngine.enableLocalAudio method.

The EnabledCallback includes the following parameter:

  • bool enabled: Whether the microphone is enabled/disabled:
    • true:Enabled.
    • false:Disabled.


EnabledCallback? microphoneEnabled;