acceptChangeRole

fun acceptChangeRole(request: HMSRoleChangeRequest, hmsActionResultListener: HMSActionResultListener)

When a peer is requested to change their role (see changeRole) to accept the new role this has to be called. Once this method is called, the peer's role will be changed to the requested one.

Parameters

request

the HMSRoleChangeRequest that the SDK had sent to this peer (in HMSUpdateListener.onRoleChangeRequest) to inform them that a role change was requested.

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