AMapLocationOptionForAndroid constructor

AMapLocationOptionForAndroid({
  1. AMapLocationMode locationMode = AMapLocationMode.batterySaving,
  2. AMapLocationProtocol locationProtocol = AMapLocationProtocol.http,
  3. AMapLocationPurpose? locationPurpose,
  4. GeoLanguage geoLanguage = GeoLanguage.none,
  5. bool gpsFirst = false,
  6. int gpsFirstTimeout = 50000,
  7. bool mockEnable = false,
  8. bool needAddress = true,
  9. bool wifiScan = true,
  10. bool beiDouFirst = false,
  11. double deviceModeDistanceFilter = 0,
  12. int httpTimeOut = 30000,
  13. int interval = 2000,
  14. bool locationCacheEnable = true,
  15. bool onceLocationLatest = false,
  16. bool selfStartServiceEnable = false,
  17. bool sensorEnable = false,
})

Implementation

AMapLocationOptionForAndroid({
  this.locationMode = AMapLocationMode.batterySaving,
  this.locationProtocol = AMapLocationProtocol.http,
  this.locationPurpose,
  this.geoLanguage = GeoLanguage.none,
  this.gpsFirst = false,
  this.gpsFirstTimeout = 50000,
  this.mockEnable = false,
  this.needAddress = true,
  this.wifiScan = true,
  this.beiDouFirst = false,
  this.deviceModeDistanceFilter = 0,
  this.httpTimeOut = 30000,
  this.interval = 2000,
  this.locationCacheEnable = true,
  this.onceLocationLatest = false,
  this.selfStartServiceEnable = false,
  this.sensorEnable = false,
})  : assert(gpsFirstTimeout >= 1),
      assert(deviceModeDistanceFilter >= 0);