changeRole
fun changeRole(forPeer: HMSPeer, toRole: HMSRole, force: Boolean, hmsActionResultListener: HMSActionResultListener)
Deprecated
Method is renamed to changeRoleOfPeer
Replace with
changeRoleOfPeer(forPeer, toRole, force, hmsActionResultListener)
Content copied to clipboard
Requests a change of HMSRole to a new role.
Parameters
forPeer
The HMSPeer whose role should be requested to be changed.
toRole
the new role the HMSPeer would have if they accept or are forced to change to.
force
false if the peer should be requested to accept the new roles (they can choose to deny). true if their role should be changed without asking them.
hmsActionResultListener
Listener that will return HMSActionResultListener.onSuccess if the role change request is successful else will call HMSActionResultListener.onError with the error received from server