AndroidSettings constructor
const
AndroidSettings({
- LocationAccuracy accuracy = LocationAccuracy.NAVIGATION,
- int interval = 5,
- double distanceFilter = 0,
- AndroidNotificationSettings androidNotificationSettings = const AndroidNotificationSettings(),
- int wakeLockTime = 60,
- LocationClient client = LocationClient.google,
accuracy
The accuracy of location, Default is max accuracy NAVIGATION.
interval
Interval of retrieving location update in second. Only applies for android. Default is 5 second.
distanceFilter
distance in meter to trigger location update, Default is 0 meter.
androidNotificationSettings
Specific setting for android notification.
wakeLockTime
Time for living service in background in minutes. Only applies in android. Default is 60 minute.
Implementation
const AndroidSettings(
{LocationAccuracy accuracy = LocationAccuracy.NAVIGATION,
this.interval = 5,
double distanceFilter = 0,
this.androidNotificationSettings = const AndroidNotificationSettings(),
this.wakeLockTime = 60,
this.client = LocationClient.google})
: super(accuracy: accuracy, distanceFilter: distanceFilter);