ZegoLiveAudioRoomAudioVideoEvents class
events about audio-video
Constructors
-
ZegoLiveAudioRoomAudioVideoEvents({void onMicrophoneStateChanged(bool)?, void onAudioOutputChanged(ZegoUIKitAudioRoute)?, Future<
bool> onMicrophoneTurnOnByOthersConfirmation(BuildContext context)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onAudioOutputChanged ↔ (void Function(ZegoUIKitAudioRoute)?)
-
This callback is triggered when audio output device changed
getter/setter pair
- onMicrophoneStateChanged ↔ (void Function(bool)?)
-
This callback is triggered when microphone state changed
getter/setter pair
-
onMicrophoneTurnOnByOthersConfirmation
↔ (Future<
bool> Function(BuildContext context)?) -
This callback method is called when someone requests to open your microphone, typically when the host wants to open the speaker's microphone.
This method requires returning an asynchronous result.
You can display a dialog in this callback to confirm whether to open the microphone.
Alternatively, you can return
true
without any processing, indicating that when someone requests to open your microphone, it can be directly opened. By default, this method does nothing and returnsfalse
, indicating that others cannot open your microphone.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited