/lib/live.hms.video.sdk/HMSUpdateListener
HMSUpdateListener
[androidJvm]\ interface HMSUpdateListener : IErrorListener
This is the main listener that the calling application should implement. HMS SDK will send all upates through the callbacks in this interface. Pass the app's implementation while calling HMSSDK.join method
Functions
Name | Summary |
---|---|
onError | [androidJvm] abstract fun onError(error: HMSException) Called when the SDK has encountred an error |
onJoin | [androidJvm] abstract fun onJoin(room: HMSRoom) Called when joining of HMSRoom is successfull |
onMessageReceived | [androidJvm] abstract fun onMessageReceived(message: HMSMessage) Called when there is a HMSMessage send by another HMSPeer |
onPeerUpdate | [androidJvm] abstract fun onPeerUpdate(type: HMSPeerUpdate, peer: HMSPeer) Called if there is any update related to the HMSPeer |
onReconnected | [androidJvm] open fun onReconnected() Called when the SDK has succesfully able to recover from a network glitch |
onReconnecting | [androidJvm] open fun onReconnecting(error: HMSException) Called when the SDK is trying to reconnect automatically on a network drop/switch etc |
onRoleChangeRequest | [androidJvm] abstract fun onRoleChangeRequest(request: HMSRoleChangeRequest) Called when there is a non force role change request from another HMSPeer |
onRoomUpdate | [androidJvm] abstract fun onRoomUpdate(type: HMSRoomUpdate, hmsRoom: HMSRoom) Called if there is any update related to the HMSRoom |
onTrackUpdate | [androidJvm] abstract fun onTrackUpdate(type: HMSTrackUpdate, track: HMSTrack, peer: HMSPeer) Called if there is any update related to HMSTrack |