AMapLocationOptionForAndroid constructor
AMapLocationOptionForAndroid({
- AMapLocationMode locationMode = AMapLocationMode.batterySaving,
- AMapLocationProtocol locationProtocol = AMapLocationProtocol.http,
- AMapLocationPurpose? locationPurpose,
- GeoLanguage geoLanguage = GeoLanguage.none,
- bool gpsFirst = false,
- int gpsFirstTimeout = 50000,
- bool mockEnable = false,
- bool needAddress = true,
- bool wifiScan = true,
- bool beiDouFirst = false,
- double deviceModeDistanceFilter = 0,
- int httpTimeOut = 30000,
- int interval = 2000,
- bool locationCacheEnable = true,
- bool onceLocationLatest = false,
- bool selfStartServiceEnable = false,
- 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);