IMonitorHandler

The IMonitorHandler class contains event callbacks related to SDK monitoring.

onLocalConnectionUpdated

Occurs when the connection between the local client and the Agora server changes.

fun onLocalConnectionUpdated(state: EduContextConnectionState)

Parameter

state
The connection state between the local client and the Agora server. See EduContextConnectionState.

onMediaPacketStatsUpdated

Reports statistics of the media packet.

fun onMediaPacketStatsUpdated(roomUuid: String, stats: FcrMediaPacketStats)
Since
v2.8.60

Parameters

roomUuid
The room ID.
stats
Statistics of the media packet. See FcrMediaPacketStats.

onPerformanceUpdated

Occurs when the performance information updates.

fun onPerformanceUpdated(info: FcrPerformanceInfo)
Since
v2.8.60

Parameters

info
The performance information. See FcrPerformanceInfo.

onMediaErrorOccurred

Occurs when a media error occurs.

fun onMediaErrorOccurred(errorCode: Int)
Since
v2.8.60

Parameters

errorCode
The error code.