HMSPreviewListener

Information about the preview request. May contain success or failure.

Functions

Link copied to clipboard
abstract fun onError(error: HMSException)

Called when the SDK has encountered an error

Link copied to clipboard
abstract fun onPeerUpdate(type: HMSPeerUpdate, peer: HMSPeer)

Called if there is any update related to the HMSPeer

Link copied to clipboard
abstract fun onPreview(room: HMSRoom, localTracks: Array<HMSTrack>)

If the generation of a preview was successful, information about the room joined and the tracks will be sent.

Link copied to clipboard
abstract fun onRoomUpdate(type: HMSRoomUpdate, hmsRoom: HMSRoom)

Called if there is any update related to the HMSRoom