lowerRemotePeerHand method
void
lowerRemotePeerHand({
- required HMSPeer forPeer,
- HMSActionResultListener? hmsActionResultListener,
Method to lower remote peer's hand
Parameter:
forPeer - forPeer
the peer whose hand you wish to lower
hmsActionResultListener - hmsActionResultListener
is a callback instance on which HMSActionResultListener.onSuccess and HMSActionResultListener.onException will be called.
TODO: Add docs link
Implementation
void lowerRemotePeerHand(
{required HMSPeer forPeer,
HMSActionResultListener? hmsActionResultListener}) async {
final dynamic result = await PlatformService.invokeMethod(
PlatformMethod.lowerRemotePeerHand,
arguments: {"peer_id": forPeer.peerId});
if (hmsActionResultListener != null) {
if (result == null) {
hmsActionResultListener.onSuccess(
methodType: HMSActionResultListenerMethod.lowerRemotePeerHand);
} else {
hmsActionResultListener.onException(
methodType: HMSActionResultListenerMethod.lowerRemotePeerHand,
hmsException: HMSException.fromMap(result["error"]));
}
}
}