MonitorContext

The MonitorContext class.

The methods provided by the MonitorContext class are used for:
  • Monitoring SDK states.
  • Reporting states to the Agora server.

uploadLog

Uploads the logs.

abstract fun uploadLog(callback: EduContextCallback<String>? = null)

Parameter

callback
Get the method call result asynchronously through EduContextCallback.

getSyncTimestamp

Gets the timestamp after synchronizing with the server.

abstract fun getSyncTimestamp(): Long

Returns

The timestamp.