endRoom

fun endRoom(reason: String, lock: Boolean, hmsActionResultListener: HMSActionResultListener)

End the room and make all participants leave.

Parameters

reason

The reason why the room is being locked. This will be displayed to users when they attempt to rejoin, or if they were active in the room.

lock

Whether rejoining the room should be disabled for the foreseeable future.

hmsActionResultListener

the callback that would be called by SDK in case of a success or failure