changeRoleOfPeersWithRoles

fun changeRoleOfPeersWithRoles(ofRoles: List<HMSRole>, toRole: HMSRole, hmsActionResultListener: HMSActionResultListener)

Requests a change of every peer with any role in ofRoles to have their roles changed to the role toRole.

Parameters

ofRoles

The list of roles for which all peers roles should be changed.

toRole

The role they should have after the change.

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