AgoraEventHandlers constructor

const AgoraEventHandlers({
  1. dynamic warning(
    1. WarningCode
    )?,
  2. dynamic apiCallExecuted(
    1. ErrorCode,
    2. String,
    3. String
    )?,
  3. dynamic rejoinChannelSuccess(
    1. String,
    2. int,
    3. int
    )?,
  4. dynamic localUserRegistered(
    1. int,
    2. String
    )?,
  5. dynamic userInfoUpdated(
    1. int,
    2. UserInfo
    )?,
  6. dynamic clientRoleChanged(
    1. ClientRole,
    2. ClientRole
    )?,
  7. dynamic connectionStateChanged(
    1. ConnectionStateType,
    2. ConnectionChangedReason
    )?,
  8. dynamic networkTypeChanged(
    1. NetworkType
    )?,
  9. dynamic connectionLost()?,
  10. dynamic requestToken()?,
  11. dynamic audioVolumeIndication(
    1. List<AudioVolumeInfo>,
    2. int
    )?,
  12. dynamic firstLocalAudioFrame(
    1. int
    )?,
  13. dynamic firstLocalVideoFrame(
    1. int,
    2. int,
    3. int
    )?,
  14. dynamic userMuteVideo(
    1. int,
    2. bool
    )?,
  15. dynamic videoSizeChanged(
    1. int,
    2. int,
    3. int,
    4. int,
    )?,
  16. dynamic localPublishFallbackToAudioOnly(
    1. bool
    )?,
  17. dynamic remoteSubscribeFallbackToAudioOnly(
    1. int,
    2. bool
    )?,
  18. dynamic audioRouteChanged(
    1. AudioOutputRouting
    )?,
  19. dynamic cameraFocusAreaChanged(
    1. Rect
    )?,
  20. dynamic cameraExposureAreaChanged(
    1. Rect
    )?,
  21. dynamic facePositionChanged(
    1. int,
    2. int,
    3. List<FacePositionInfo>
    )?,
  22. dynamic rtcStats(
    1. RtcStats
    )?,
  23. dynamic lastmileQuality(
    1. NetworkQuality
    )?,
  24. dynamic networkQuality(
    1. int,
    2. NetworkQuality,
    3. NetworkQuality
    )?,
  25. dynamic lastmileProbeResult(
    1. LastmileProbeResult
    )?,
  26. dynamic localVideoStats(
    1. LocalVideoStats
    )?,
  27. dynamic localAudioStats(
    1. LocalAudioStats
    )?,
  28. dynamic remoteVideoStats(
    1. RemoteVideoStats
    )?,
  29. dynamic remoteAudioStats(
    1. RemoteAudioStats
    )?,
  30. dynamic audioMixingFinished()?,
  31. dynamic audioMixingStateChanged(
    1. AudioMixingStateCode,
    2. AudioMixingReason
    )?,
  32. dynamic audioEffectFinished(
    1. int
    )?,
  33. dynamic rtmpStreamingStateChanged(
    1. String,
    2. RtmpStreamingState,
    3. RtmpStreamingErrorCode
    )?,
  34. dynamic transcodingUpdated()?,
  35. dynamic streamInjectedStatus(
    1. String,
    2. int,
    3. InjectStreamStatus
    )?,
  36. dynamic streamMessage(
    1. int,
    2. int,
    3. String
    )?,
  37. dynamic streamMessageError(
    1. int,
    2. int,
    3. ErrorCode,
    4. int,
    5. int,
    )?,
  38. dynamic mediaEngineLoadSuccess()?,
  39. dynamic mediaEngineStartCallSuccess()?,
  40. dynamic channelMediaRelayStateChanged(
    1. ChannelMediaRelayState,
    2. ChannelMediaRelayError
    )?,
  41. dynamic channelMediaRelayEvent(
    1. ChannelMediaRelayEvent
    )?,
  42. dynamic metadataReceived(
    1. String,
    2. int,
    3. int
    )?,
  43. dynamic firstLocalAudioFramePublished(
    1. int
    )?,
  44. dynamic firstLocalVideoFramePublished(
    1. int
    )?,
  45. dynamic audioPublishStateChanged(
    1. String,
    2. StreamPublishState,
    3. StreamPublishState,
    4. int,
    )?,
  46. dynamic videoPublishStateChanged(
    1. String,
    2. StreamPublishState,
    3. StreamPublishState,
    4. int,
    )?,
  47. dynamic audioSubscribeStateChanged(
    1. String,
    2. int,
    3. StreamSubscribeState,
    4. StreamSubscribeState,
    5. int,
    )?,
  48. dynamic videoSubscribeStateChanged(
    1. String,
    2. int,
    3. StreamSubscribeState,
    4. StreamSubscribeState,
    5. int,
    )?,
  49. dynamic rtmpStreamingEvent(
    1. String,
    2. RtmpStreamingEvent
    )?,
  50. dynamic userSuperResolutionEnabled(
    1. int,
    2. bool,
    3. SuperResolutionStateReason
    )?,
  51. dynamic uploadLogResult(
    1. String,
    2. bool,
    3. UploadErrorReason
    )?,
  52. dynamic userJoined(
    1. int uid,
    2. int elapsed
    )?,
  53. dynamic joinChannelSuccess(
    1. String channel,
    2. int uid,
    3. int elapsed
    )?,
  54. dynamic onError(
    1. ErrorCode errorCode
    )?,
  55. dynamic activeSpeaker(
    1. int uid
    )?,
  56. dynamic leaveChannel(
    1. RtcStats stats
    )?,
  57. dynamic localAudioStateChanged(
    1. AudioLocalState state,
    2. AudioLocalError error
    )?,
  58. dynamic localVideoStateChanged(
    1. LocalVideoStreamState localVideoState,
    2. LocalVideoStreamError error
    )?,
  59. dynamic remoteAudioStateChanged(
    1. int uid,
    2. AudioRemoteState state,
    3. AudioRemoteStateReason reason,
    4. int elapsed,
    )?,
  60. dynamic remoteVideoStateChanged(
    1. int uid,
    2. VideoRemoteState state,
    3. VideoRemoteStateReason reason,
    4. int elapsed,
    )?,
  61. dynamic tokenPrivilegeWillExpire(
    1. String token
    )?,
  62. dynamic userOffline(
    1. int uid,
    2. UserOfflineReason reason
    )?,
})

Implementation

const AgoraEventHandlers({
  this.warning,
  this.apiCallExecuted,
  this.rejoinChannelSuccess,
  this.localUserRegistered,
  this.userInfoUpdated,
  this.clientRoleChanged,
  this.connectionStateChanged,
  this.networkTypeChanged,
  this.connectionLost,
  this.requestToken,
  this.audioVolumeIndication,
  this.firstLocalAudioFrame,
  this.firstLocalVideoFrame,
  this.userMuteVideo,
  this.videoSizeChanged,
  this.localPublishFallbackToAudioOnly,
  this.remoteSubscribeFallbackToAudioOnly,
  this.audioRouteChanged,
  this.cameraFocusAreaChanged,
  this.cameraExposureAreaChanged,
  this.facePositionChanged,
  this.rtcStats,
  this.lastmileQuality,
  this.networkQuality,
  this.lastmileProbeResult,
  this.localVideoStats,
  this.localAudioStats,
  this.remoteVideoStats,
  this.remoteAudioStats,
  this.audioMixingFinished,
  this.audioMixingStateChanged,
  this.audioEffectFinished,
  this.rtmpStreamingStateChanged,
  this.transcodingUpdated,
  this.streamInjectedStatus,
  this.streamMessage,
  this.streamMessageError,
  this.mediaEngineLoadSuccess,
  this.mediaEngineStartCallSuccess,
  this.channelMediaRelayStateChanged,
  this.channelMediaRelayEvent,
  this.metadataReceived,
  this.firstLocalAudioFramePublished,
  this.firstLocalVideoFramePublished,
  this.audioPublishStateChanged,
  this.videoPublishStateChanged,
  this.audioSubscribeStateChanged,
  this.videoSubscribeStateChanged,
  this.rtmpStreamingEvent,
  this.userSuperResolutionEnabled,
  this.uploadLogResult,
  this.userJoined,
  this.joinChannelSuccess,
  this.onError,
  this.activeSpeaker,
  this.leaveChannel,
  this.localAudioStateChanged,
  this.localVideoStateChanged,
  this.remoteAudioStateChanged,
  this.remoteVideoStateChanged,
  this.tokenPrivilegeWillExpire,
  this.userOffline,
});