setDistanceToTriggerSync method

Future<void> setDistanceToTriggerSync(
  1. int distanceToTriggerSync
)

Set the distance to trigger a sync in dips.

NOTE: Available only on Android.

Implementation

Future<void> setDistanceToTriggerSync(int distanceToTriggerSync) async {
  Map<String, dynamic> args = <String, dynamic>{};
  args.putIfAbsent('distanceToTriggerSync', () => distanceToTriggerSync);
  await _channel?.invokeMethod('setDistanceToTriggerSync', args);
}