setShakingThresholdForiPad static method

Future<void> setShakingThresholdForiPad(
  1. double iPadShakingThreshold
)

Sets the threshold value of the shake gesture for iPad Default for iPhone is 0.6. iPadShakingThreshold iPhoneShakingThreshold double

Implementation

static Future<void> setShakingThresholdForiPad(
    double iPadShakingThreshold) async {
  if (PlatformManager.instance.isIOS()) {
    final List<dynamic> params = <dynamic>[iPadShakingThreshold];
    await _channel.invokeMethod<Object>(
        'setShakingThresholdForiPad:', params);
  }
}