setSyncPolicy static method
- SyncPolicy policy
Sets sync policy for network-aware batching.
Control when and how location data is synchronized based on network type, battery state, and app state.
Example:
await Locus.setSyncPolicy(SyncPolicy.balanced);
Implementation
static Future<void> setSyncPolicy(SyncPolicy policy) async {
await _methodChannel.invokeMethod('setSyncPolicy', policy.toMap());
}