lowerLocalPeerHand method

void lowerLocalPeerHand({
  1. HMSActionResultListener? hmsActionResultListener,
})

Method to lower hand for local peer

Parameter:

hmsActionResultListener - hmsActionResultListener is a callback instance on which HMSActionResultListener.onSuccess and HMSActionResultListener.onException will be called.

TODO: Add docs link

Implementation

void lowerLocalPeerHand(
    {HMSActionResultListener? hmsActionResultListener}) async {
  final dynamic result =
      await PlatformService.invokeMethod(PlatformMethod.lowerLocalPeerHand);
  if (hmsActionResultListener != null) {
    if (result == null) {
      hmsActionResultListener.onSuccess(
          methodType: HMSActionResultListenerMethod.lowerLocalPeerHand);
    } else {
      hmsActionResultListener.onException(
          methodType: HMSActionResultListenerMethod.lowerLocalPeerHand,
          hmsException: HMSException.fromMap(result["error"]));
    }
  }
}