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
)?}
)
Implementation
AgoraEventHandlers({
this.userJoined,
this.joinChannelSuccess,
this.onError,
this.activeSpeaker,
this.leaveChannel,
this.localAudioStateChanged,
this.localVideoStateChanged,
this.remoteAudioStateChanged,
this.remoteVideoStateChanged,
this.tokenPrivilegeWillExpire,
this.userOffline,
});