AgoraEventHandlers class Null safety

Constructors

AgoraEventHandlers({dynamic userJoined(int uid, int elapsed)?, dynamic joinChannelSuccess(String channel, int uid, int elapsed)?, dynamic onError(ErrorCode errorCode)?, dynamic activeSpeaker(int uid)?, dynamic leaveChannel(RtcStats stats)?, dynamic localAudioStateChanged(AudioLocalState state, AudioLocalError error)?, dynamic localVideoStateChanged(LocalVideoStreamState localVideoState, LocalVideoStreamError error)?, dynamic remoteAudioStateChanged(int uid, AudioRemoteState state, AudioRemoteStateReason reason, int elapsed)?, dynamic remoteVideoStateChanged(int uid, VideoRemoteState state, VideoRemoteStateReason reason, int elapsed)?, dynamic tokenPrivilegeWillExpire(String token)?, dynamic userOffline(int uid, UserOfflineReason reason)?})

Properties

activeSpeaker ↔ (dynamic Function?(int uid)?)
Reports which user is the loudest speaker.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
joinChannelSuccess ↔ (dynamic Function?(String channel, int uid, int elapsed)?)
Occurs when the local user joins a specified channel.
read / write
leaveChannel ↔ (dynamic Function?(RtcStats stats)?)
Occurs when a user leaves the channel.
read / write
localAudioStateChanged ↔ (dynamic Function?(AudioLocalState state, AudioLocalError error)?)
Occurs when the local audio state changes.
read / write
localVideoStateChanged ↔ (dynamic Function?(LocalVideoStreamState localVideoState, LocalVideoStreamError error)?)
Occurs when the local video state changes.
read / write
onError ↔ (dynamic Function?(ErrorCode errorCode)?)
Reports an error during SDK runtime
read / write
remoteAudioStateChanged ↔ (dynamic Function?(int uid, AudioRemoteState state, AudioRemoteStateReason reason, int elapsed)?)
Occurs when the remote audio state changes.
read / write
remoteVideoStateChanged ↔ (dynamic Function?(int uid, VideoRemoteState state, VideoRemoteStateReason reason, int elapsed)?)
Occurs when the remote video state changes.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tokenPrivilegeWillExpire ↔ (dynamic Function?(String token)?)
Occurs when the token expires in 30 seconds.
read / write
userJoined ↔ (dynamic Function?(int uid, int elapsed)?)
Occurs when a remote user ChannelProfile.Communication/host ChannelProfile.LiveBroadcasting joins the channel
read / write
userOffline ↔ (dynamic Function?(int uid, UserOfflineReason reason)?)
Occurs when a remote user ChannelProfile.Communication/host ChannelProfile.LiveBroadcasting leaves the channel.
read / write

Methods

copyWith({dynamic userJoined(int uid, int elapsed)?, dynamic joinChannelSuccess(String channel, int uid, int elapsed)?, dynamic onError(ErrorCode errorCode)?, dynamic leaveChannel(RtcStats stats)?, dynamic userOffline(int uid, UserOfflineReason reason)?, dynamic tokenPrivilegeWillExpire(String token)?, dynamic remoteVideoStateChanged(int uid, VideoRemoteState state, VideoRemoteStateReason reason, int elapsed)?, dynamic remoteAudioStateChanged(int uid, AudioRemoteState state, AudioRemoteStateReason reason, int elapsed)?, dynamic localAudioStateChanged(AudioLocalState state, AudioLocalError error)?, dynamic localVideoStateChanged(LocalVideoStreamState localVideoState, LocalVideoStreamError error)?, dynamic activeSpeaker(int uid)?}) AgoraEventHandlers
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited