AgoraRtcEventHandlers constructor
const
AgoraRtcEventHandlers({
- void onJoinChannelSuccess(
- RtcConnection connection,
- int elapsed
- void onRejoinChannelSuccess(
- RtcConnection connection,
- int elapsed
- void onProxyConnected()?,
- void onError(
- ErrorCodeType err,
- String msg
- void onAudioQuality()?,
- void onLastmileProbeResult(
- LastmileProbeResult result
- void onAudioVolumeIndication(
- RtcConnection connection,
- List<
AudioVolumeInfo> speakers, - int speakerNumber,
- int totalVolume,
- void onLeaveChannel(
- RtcConnection connection,
- RtcStats stats
- void onRtcStats(
- RtcConnection connection,
- RtcStats stats
- void onAudioDeviceStateChanged(
- String deviceId,
- MediaDeviceType deviceType,
- MediaDeviceStateType deviceState
- void onAudioMixingFinished()?,
- void onAudioEffectFinished(
- int soundId
- void onVideoDeviceStateChanged(
- String deviceId,
- MediaDeviceType deviceType,
- MediaDeviceStateType deviceState
- void onNetworkQuality(
- RtcConnection connection,
- int remoteUid,
- QualityType txQuality,
- QualityType rxQuality,
- void onIntraRequestReceived(
- RtcConnection connection
- void onUplinkNetworkInfoUpdated(
- UplinkNetworkInfo info
- void onDownlinkNetworkInfoUpdated(
- DownlinkNetworkInfo info
- void onLastmileQuality(
- QualityType quality
- void onFirstLocalVideoFrame()?,
- void onFirstLocalVideoFramePublished(
- VideoSourceType source,
- int elapsed
- void onFirstRemoteVideoDecoded()?,
- void onVideoSizeChanged()?,
- void onLocalVideoStateChanged(
- VideoSourceType source,
- LocalVideoStreamState state,
- LocalVideoStreamReason error
- void onRemoteVideoStateChanged(
- RtcConnection connection,
- int remoteUid,
- RemoteVideoState state,
- RemoteVideoStateReason reason,
- int elapsed,
- void onFirstRemoteVideoFrame()?,
- void onUserJoined()?,
- void onUserOffline(
- RtcConnection connection,
- int remoteUid,
- UserOfflineReasonType reason
- void onUserMuteAudio()?,
- void onUserMuteVideo()?,
- void onUserEnableVideo()?,
- void onUserStateChanged()?,
- void onUserEnableLocalVideo()?,
- void onLocalAudioStats(
- RtcConnection connection,
- LocalAudioStats stats
- void onRemoteAudioStats(
- RtcConnection connection,
- RemoteAudioStats stats
- void onLocalVideoStats(
- VideoSourceType source,
- LocalVideoStats stats
- void onRemoteVideoStats(
- RtcConnection connection,
- RemoteVideoStats stats
- void onCameraReady()?,
- void onCameraFocusAreaChanged()?,
- void onCameraExposureAreaChanged()?,
- void onFacePositionChanged()?,
- void onVideoStopped()?,
- void onAudioMixingStateChanged(
- AudioMixingStateType state,
- AudioMixingReasonType reason
- void onRhythmPlayerStateChanged(
- RhythmPlayerStateType state,
- RhythmPlayerReason errorCode
- void onConnectionLost(
- RtcConnection connection
- void onConnectionInterrupted(
- RtcConnection connection
- void onConnectionBanned(
- RtcConnection connection
- void onStreamMessage()?,
- void onStreamMessageError(
- RtcConnection connection,
- int remoteUid,
- int streamId,
- ErrorCodeType code,
- int missed,
- int cached,
- void onRequestToken(
- RtcConnection connection
- void onTokenPrivilegeWillExpire(
- RtcConnection connection,
- String token
- void onFirstLocalAudioFramePublished(
- RtcConnection connection,
- int elapsed
- void onFirstRemoteAudioFrame()?,
- void onFirstRemoteAudioDecoded()?,
- void onLocalAudioStateChanged(
- RtcConnection connection,
- LocalAudioStreamState state,
- LocalAudioStreamReason error
- void onRemoteAudioStateChanged(
- RtcConnection connection,
- int remoteUid,
- RemoteAudioState state,
- RemoteAudioStateReason reason,
- int elapsed,
- void onActiveSpeaker(
- RtcConnection connection,
- int uid
- void onContentInspectResult(
- ContentInspectResult result
- void onSnapshotTaken()?,
- void onClientRoleChanged(
- RtcConnection connection,
- ClientRoleType oldRole,
- ClientRoleType newRole,
- ClientRoleOptions newRoleOptions,
- void onClientRoleChangeFailed(
- RtcConnection connection,
- ClientRoleChangeFailedReason reason,
- ClientRoleType currentRole
- void onAudioDeviceVolumeChanged()?,
- void onRtmpStreamingStateChanged(
- String url,
- RtmpStreamPublishState state,
- RtmpStreamPublishReason errCode
- void onRtmpStreamingEvent(
- String url,
- RtmpStreamingEvent eventCode
- void onTranscodingUpdated()?,
- void onAudioRoutingChanged(
- int routing
- void onChannelMediaRelayStateChanged(
- ChannelMediaRelayState state,
- ChannelMediaRelayError code
- void onLocalPublishFallbackToAudioOnly(
- bool isFallbackOrRecover
- void onRemoteSubscribeFallbackToAudioOnly()?,
- void onRemoteAudioTransportStats()?,
- void onRemoteVideoTransportStats()?,
- void onConnectionStateChanged(
- RtcConnection connection,
- ConnectionStateType state,
- ConnectionChangedReasonType reason
- void onWlAccMessage(
- RtcConnection connection,
- WlaccMessageReason reason,
- WlaccSuggestAction action,
- String wlAccMsg,
- void onWlAccStats(
- RtcConnection connection,
- WlAccStats currentStats,
- WlAccStats averageStats
- void onNetworkTypeChanged(
- RtcConnection connection,
- NetworkType type
- void onEncryptionError(
- RtcConnection connection,
- EncryptionErrorType errorType
- void onPermissionError(
- PermissionType permissionType
- void onLocalUserRegistered()?,
- void onUserInfoUpdated()?,
- void onUploadLogResult()?,
- void onAudioSubscribeStateChanged(
- String channel,
- int uid,
- StreamSubscribeState oldState,
- StreamSubscribeState newState,
- int elapseSinceLastState,
- void onVideoSubscribeStateChanged(
- String channel,
- int uid,
- StreamSubscribeState oldState,
- StreamSubscribeState newState,
- int elapseSinceLastState,
- void onAudioPublishStateChanged(
- String channel,
- StreamPublishState oldState,
- StreamPublishState newState,
- int elapseSinceLastState,
- void onVideoPublishStateChanged(
- VideoSourceType source,
- String channel,
- StreamPublishState oldState,
- StreamPublishState newState,
- int elapseSinceLastState,
- void onExtensionEvent()?,
- void onExtensionStarted()?,
- void onExtensionStopped()?,
- void onExtensionError()?,
- void onUserAccountUpdated()?,
Implementation
const AgoraRtcEventHandlers({
this.onJoinChannelSuccess,
this.onRejoinChannelSuccess,
this.onProxyConnected,
this.onError,
this.onAudioQuality,
this.onLastmileProbeResult,
this.onAudioVolumeIndication,
this.onLeaveChannel,
this.onRtcStats,
this.onAudioDeviceStateChanged,
this.onAudioMixingFinished,
this.onAudioEffectFinished,
this.onVideoDeviceStateChanged,
this.onNetworkQuality,
this.onIntraRequestReceived,
this.onUplinkNetworkInfoUpdated,
this.onDownlinkNetworkInfoUpdated,
this.onLastmileQuality,
this.onFirstLocalVideoFrame,
this.onFirstLocalVideoFramePublished,
this.onFirstRemoteVideoDecoded,
this.onVideoSizeChanged,
this.onLocalVideoStateChanged,
this.onRemoteVideoStateChanged,
this.onFirstRemoteVideoFrame,
this.onUserJoined,
this.onUserOffline,
this.onUserMuteAudio,
this.onUserMuteVideo,
this.onUserEnableVideo,
this.onUserStateChanged,
this.onUserEnableLocalVideo,
this.onLocalAudioStats,
this.onRemoteAudioStats,
this.onLocalVideoStats,
this.onRemoteVideoStats,
this.onCameraReady,
this.onCameraFocusAreaChanged,
this.onCameraExposureAreaChanged,
this.onFacePositionChanged,
this.onVideoStopped,
this.onAudioMixingStateChanged,
this.onRhythmPlayerStateChanged,
this.onConnectionLost,
this.onConnectionInterrupted,
this.onConnectionBanned,
this.onStreamMessage,
this.onStreamMessageError,
this.onRequestToken,
this.onTokenPrivilegeWillExpire,
this.onFirstLocalAudioFramePublished,
this.onFirstRemoteAudioFrame,
this.onFirstRemoteAudioDecoded,
this.onLocalAudioStateChanged,
this.onRemoteAudioStateChanged,
this.onActiveSpeaker,
this.onContentInspectResult,
this.onSnapshotTaken,
this.onClientRoleChanged,
this.onClientRoleChangeFailed,
this.onAudioDeviceVolumeChanged,
this.onRtmpStreamingStateChanged,
this.onRtmpStreamingEvent,
this.onTranscodingUpdated,
this.onAudioRoutingChanged,
this.onChannelMediaRelayStateChanged,
this.onLocalPublishFallbackToAudioOnly,
this.onRemoteSubscribeFallbackToAudioOnly,
this.onRemoteAudioTransportStats,
this.onRemoteVideoTransportStats,
this.onConnectionStateChanged,
this.onWlAccMessage,
this.onWlAccStats,
this.onNetworkTypeChanged,
this.onEncryptionError,
this.onPermissionError,
this.onLocalUserRegistered,
this.onUserInfoUpdated,
this.onUploadLogResult,
this.onAudioSubscribeStateChanged,
this.onVideoSubscribeStateChanged,
this.onAudioPublishStateChanged,
this.onVideoPublishStateChanged,
this.onExtensionEvent,
this.onExtensionStarted,
this.onExtensionStopped,
this.onExtensionError,
this.onUserAccountUpdated,
});