AndroidSettings constructor

const AndroidSettings({
  1. LocationAccuracy accuracy = LocationAccuracy.NAVIGATION,
  2. int interval = 5,
  3. double distanceFilter = 0,
  4. AndroidNotificationSettings androidNotificationSettings = const AndroidNotificationSettings(),
  5. int wakeLockTime = 60,
  6. 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);