- SCAN_WIFI_INTERVAL - 类 中的静态变量com.amap.api.location.AMapLocationClientOption
-
Android P上wifi扫描间隔
Wifi scanning interval on Android P
- sendFeedback() - 类 中的方法com.amap.api.location.AMapLocationClient
-
日志反馈
- setAble(boolean) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏是否可用
Set fence availability
- setActivateAction(int) - 类 中的方法com.amap.api.fence.GeoFenceClient
-
设置触发地理围栏的条件
注意:重复设置不同的触发行为会重复触发围栏
Set Conditions for Triggering GeoFence
Note: Repeating different trigger behaviors will repeatedly trigger the fence.
- setActivatesAction(int) - 类 中的方法com.amap.api.fence.GeoFence
-
设置用户设置的地理围栏触发条件
Set user-defined geofence trigger conditions
- setAdcode(String) - 类 中的方法com.amap.api.fence.DistrictItem
-
设置城市编码
Set City Code
- setAdCode(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置区域编码
Set area code
- setAddress(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI的地址信息
Set the address information of the POI
- setAddress(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置地址信息
Set address information
- setAdname(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI所在的区域名称
Set the area name where the POI is located
- setAltitude(double) - 类 中的方法com.amap.api.location.AMapLocation
-
设置海拔高度
Set altitude
- setAMapErrorCode(String, int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setAoiName(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置aoiName
Set AOI Name
- setApiKey(String) - 类 中的静态方法com.amap.api.location.AMapLocationClient
-
设置apikey 必须在AmapLocationClient实例化之前调用
Set apikey Must be called before AmapLocationClient instantiation
- setAuuid(String) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
- setBearing(float) - 类 中的方法com.amap.api.location.AMapLocation
-
设置方向角
Set Bearing
- setBearingAccuracyDegrees(float) - 类 中的方法com.amap.api.location.AMapLocation
-
- setBeidouFirst(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否优先使用北斗定位
默认值 false
- setBuildingId(String) - 类 中的方法com.amap.api.location.AMapLocation
-
建筑物的POIID,只有室内定位的时候才会返回
The POIID of the building is only returned during indoor positioning
- setCacheCallBack(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否打开缓存提速开关
Set whether to enable the cache acceleration switch
- setCacheCallBackTime(int) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置缓存提速超时时间
Set the timeout for cache acceleration
- setCacheTimeOut(int) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置提速功能缓存最大时间
Set the maximum cache time for the acceleration function
- setCenter(DPoint) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏中心点坐标
Set fence center point coordinates
- setCity(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI所在的城市名称
Set the city name where the POI is located
- setCity(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置城市名称
Set city name
- setCitycode(String) - 类 中的方法com.amap.api.fence.DistrictItem
-
设置城市编码
Set City Code
- setCityCode(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置城市编码
Set city code
- setConScenario(int) - 类 中的方法com.amap.api.location.AMapLocation
-
室内外置信度
室内:且置信度取值在[1 ~ 100],值越大在室内的可能性越大
室外:且置信度取值在[-100 ~ -1] ,值越小在室外的可能性越大
无法识别室内外:置信度返回值为 0
Indoor/outdoor confidence
Indoor: Confidence value ranges from [1 to 100], the higher the value, the more likely it is to be indoor
Outdoor: Confidence value ranges from [-100 to -1], the lower the value, the more likely it is to be outdoor
Unable to determine indoor/outdoor: Confidence value is 0
- setCoorCanUseInMap(boolean) - 类 中的方法com.amap.api.location.AMapLocation
-
- setCoord(int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setCoord(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置坐标系
- setCoordType(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置坐标系类型
Set coordinate system type
- setCountry(String) - 类 中的方法com.amap.api.location.AMapLocation
-
获取国家名称
Get country name
- setCurrentLocation(AMapLocation) - 类 中的方法com.amap.api.fence.GeoFence
-
设置当前位置, 触发围栏时设置
Set current location, triggered when fence is activated
- setCustomId(String) - 类 中的方法com.amap.api.fence.GeoFence
-
设置自定义的围栏ID
Set custom fence ID
- setDescription(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置位置语义信息
Set Location Semantic Information
- setDeviceModeDistanceFilter(float) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
- setDiagnosisType(int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setDim(boolean) - 类 中的方法com.amap.api.location.AMapLocation
-
- setDistrict(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置区的名称
Set district name
- setDistrictItemList(List<DistrictItem>) - 类 中的方法com.amap.api.fence.GeoFence
-
设置行政区划
Set administrative district
- setDistrictName(String) - 类 中的方法com.amap.api.fence.DistrictItem
-
设置行政区划名称
Set Administrative Division Name
- setDownloadCoordinateConvertLibrary(boolean) - 类 中的静态方法com.amap.api.location.AMapLocationClientOption
-
设置是否下载集团偏转so,如果要一开始就不下载,需要保证在所有的Client初始化之前设置为false,文档中不体现
Set whether to download group deflection so.
- setEnterTime(long) - 类 中的方法com.amap.api.fence.GeoFence
-
设置进入围栏的系统时间(启动时间), 单位:毫秒
Set system time when entering fence (start time), unit: milliseconds
- setErrorCode(int) - 类 中的方法com.amap.api.location.AMapLocation
-
设置错误码
Set error code
- setErrorInfo(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置错误信息
Set error message
- setExpiration(long) - 类 中的方法com.amap.api.fence.GeoFence
-
设置超时时间, 默认为-1(暂时不对外提供)
Set timeout, default is -1 (temporarily not available)
- setExtras(Bundle) - 类 中的方法com.amap.api.location.AMapLocation
-
设置扩展参数
Set extended parameters
- setFenceId(String) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏ID
Set fence ID
- setFixLastLocation(boolean) - 类 中的方法com.amap.api.location.AMapLocation
-
设置是否命中最后位置缓存
Set Whether to Hit the Last Location Cache
- setFloor(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置楼层信息,只有室内定位的时候才会返回
Set Floor Information, Only Returned During Indoor Positioning
- setFloorName(String) - 类 中的方法com.amap.api.location.AMapLocation
-
- setGeoFenceAble(String, boolean) - 类 中的方法com.amap.api.fence.GeoFenceClient
-
设置围栏是否生效,
Set whether the geofence is active,
- setGeoFenceListener(GeoFenceListener) - 类 中的方法com.amap.api.fence.GeoFenceClient
-
设置地理围栏的回调接口
Set GeoFence Callback Interface
- setGeoLanguage(String) - 类 中的方法com.amap.api.location.AMapLocation
-
- setGeoLanguage(AMapLocationClientOption.GeoLanguage) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
- setGpsAccuracyStatus(int) - 类 中的方法com.amap.api.location.AMapLocation
-
设置卫星信号强度,仅在卫星定位时有效
- setGpsFirst(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置首次定位是否等待卫星定位结果
默认值:false
只有在单次定位高精度定位模式下有效
设置为true时,会等待卫星定位结果返回,最多等待30秒,若30秒后仍无卫星定位结果返回,返回网络定位结果
从
4.5.0版本开始等待卫星定位结果返回的时间可以通过
AMapLocationClientOption.setGpsFirstTimeout(long)进行设置
Set whether to wait for satellite positioning results during the first positioning
Default: false
Only effective in single positioning high accuracy mode
When set to true, it will wait for satellite positioning results to return, up to 30 seconds.
- setGpsFirstTimeout(long) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
- setGPSSatellites(int) - 类 中的方法com.amap.api.location.AMapLocationQualityReport
-
- setGpsStatus(int) - 类 中的方法com.amap.api.location.AMapLocationQualityReport
-
- setH5LocationFileAccessEnabled(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置H5辅助定位是否允许传入WebView访问文件。
- setH5LocationJavaScriptEnabled(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置H5辅助定位是否允许SDK开启传入WebView的JavaScript。
- setHost(String) - 类 中的静态方法com.amap.api.location.AMapLocationClient
-
设置host 可以让sdk中所有请求都执行设置的地址,其中真实host存放在Header中
设置空表示关闭
Setting host allows all requests in the SDK to execute the set address, with the real host stored in the Header
Setting empty means close
- setHttpDnsEnabled(boolean) - 类 中的静态方法com.amap.api.location.AMapLocationClient
-
设置是否启用 HTTPDNS,默认关闭。
- setHttpTimeOut(long) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置联网超时时间
单位:毫秒
默认值:30000毫秒
Set network timeout
Unit: milliseconds
Default value: 30000 milliseconds
- setInstallHighDangerMockApp(boolean) - 类 中的方法com.amap.api.location.AMapLocationQualityReport
-
设置是否安装了高危位置模拟软件
Set whether high-risk location simulation software is installed
- setInterval(long) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置发起定位请求的时间间隔
单位:毫秒
默认值:2000毫秒
Set the time interval for initiating location requests
Unit: milliseconds
Default value: 2000 milliseconds
- setIod(int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setIodConfidence(int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setKillProcess(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置退出时是否杀死进程
默认值:false, 不杀死
注意:如果设置为true,并且配置的service不是remote的则会杀死当前页面进程,请慎重使用
Set whether to kill the process when exiting
Default: false, do not kill
Note: If set to true, and the configured service is not remote, it will kill the current page process.
- setLastLocationLifeCycle(long) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置跨应用缓存的有效时间 单位:毫秒(ms)
Set the validity time of cross-application cache.
- setLatitude(double) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI的纬度
Set the latitude of the POI
- setLatitude(double) - 类 中的方法com.amap.api.location.AMapLocation
-
设置纬度
Set Latitude
- setLatitude(double) - 类 中的方法com.amap.api.location.DPoint
-
设置坐标点的纬度
Set the latitude of the coordinate point
- setLBSLocationEnable(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否开启高德网络定位
默认值:true
Set whether to enable AMap network positioning
Default value: true
- setLocationCacheEnable(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否使用缓存策略, 默认为true 使用缓存策略
Set whether to use cache strategy, default is true (use cache strategy)
- setLocationClientOption(AMapLocationClientOption) - 类 中的方法com.amap.api.fence.GeoFenceClient
-
- setLocationDetail(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置定位信息描述
Set location information description
- setLocationListener(AMapLocationListener) - 类 中的方法com.amap.api.location.AMapLocationClient
-
设置定位回调监听
Set location callback listener
- setLocationMode(AMapLocationClientOption.AMapLocationMode) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置定位模式
Set location mode
- setLocationMode(AMapLocationClientOption.AMapLocationMode) - 类 中的方法com.amap.api.location.AMapLocationQualityReport
-
设置定位模式
Set Positioning Mode
- setLocationOption(AMapLocationClientOption) - 类 中的方法com.amap.api.location.AMapLocationClient
-
设置定位参数
Set location parameters
- setLocationProtocol(AMapLocationClientOption.AMapLocationProtocol) - 类 中的静态方法com.amap.api.location.AMapLocationClientOption
-
设置定位协议
Set location protocol
- setLocationPurpose(AMapLocationClientOption.AMapLocationPurpose) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置定位场景,根据场景快速修改option,不支持动态改变,修改后需要调用
AMapLocationClient.startLocation()使其生效
当不需要场景时,可以设置为NULL,
注意:
不建议设置场景和自定义option混合使用
设置场景后,如果已经开始定位了,建议调用一次AMapLocationClient.stopLocation(),然后主动调用一次AMapLocationClient.startLocation()以保证option正确生效
当主动设置的option和场景中的option有冲突时,以后设置的为准,
比如:签到场景中默认的为单次定位,当主动设置option为连续定位时,
如果先设置的场景,后改变的option,这时如果不调用startLocation不会变为连续定位,如果调用了startLocation则会变为连续定位,
如果先改变option,后设置场景为签到场景,则会变为单次定位
Set the positioning scenario, quickly modify the option based on the scenario, dynamic changes are not supported, after modification, call
AMapLocationClient.startLocation() to make it take effect
When no scenario is needed, it can be set to NULL,
Note:
It is not recommended to mix scenario settings with custom options
After setting the scenario, if positioning has already started, it is recommended to call AMapLocationClient.stopLocation() once, then actively call AMapLocationClient.startLocation() once to ensure the option takes effect correctly
When there is a conflict between the actively set option and the option in the scenario, the latter set one takes precedence,
for example: the default in the check-in scenario is single positioning, when actively setting the option to continuous positioning,
if the scenario is set first and the option is changed later, then if startLocation is not called, it will not become continuous positioning, if startLocation is called, it will become continuous positioning,
if the option is changed first and the scenario is set to check-in scenario later, it will become single positioning
- setLocationQualityReport(AMapLocationQualityReport) - 类 中的方法com.amap.api.location.AMapLocation
-
设置定位质量
Set location quality
- setLocationTickTime(long) - 类 中的方法com.amap.api.location.AMapLocation
-
- setLocationType(int) - 类 中的方法com.amap.api.location.AMapLocation
-
设置定位结果来源
Set location result source
- setLocationType(AmapLocation) - 类 中的方法com.amap.api.location.AMapLocation
-
- setLocationUtcTime(long) - 类 中的方法com.amap.api.location.AMapLocation
-
- setLongitude(double) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI的经度
Set the longitude of the POI
- setLongitude(double) - 类 中的方法com.amap.api.location.AMapLocation
-
设置经度
Set Longitude
- setLongitude(double) - 类 中的方法com.amap.api.location.DPoint
-
设置坐标点的经度
Set the longitude of the coordinate point
- setMaxDis2Center(float) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏边界与中心点的最大距离
Set maximum distance between fence boundary and center point
- setMinDis2Center(float) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏边界与中心点的中心点最小距离
Set minimum distance between fence boundary and center point
- setMock(boolean) - 类 中的方法com.amap.api.location.AMapLocation
-
设置是否为模拟定位
Set Whether It Is a Simulated Location
- setMockEnable(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否允许模拟位置
从3.4.0开始,默认值为true,允许模拟;
3.4.0之前的版本,默认值为false,不允许模拟
Set whether to allow mock location
Starting from 3.4.0, the default value is true, allowing mock;
For versions before 3.4.0, the default value is false, not allowing mock
- setNeedAddress(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否返回地址信息,默认返回地址信息
默认值:false, 返回地址信息
2.9.0之前的版本定位类型为
AMapLocation.LOCATION_TYPE_GPS时不会返回地址信息
自
2.9.0版本开始,当类型为
AMapLocation.LOCATION_TYPE_GPS时也可以返回地址信息(需要网络通畅,第一次有可能没有地址信息返回)
Set whether to return address information, default returns address information
Default value: true, return address information
For versions before
2.9.0, when the location type is
AMapLocation.LOCATION_TYPE_GPS, address information will not be returned
Starting from
2.9.0, when the type is
AMapLocation.LOCATION_TYPE_GPS, address information can also be returned (requires a stable network connection, the first time might not return address information)
- setNetUseTime(long) - 类 中的方法com.amap.api.location.AMapLocationQualityReport
-
设置网络定位时的网络耗时
Set network time consumption during network positioning
- setNetworkType(String) - 类 中的方法com.amap.api.location.AMapLocationQualityReport
-
设置网络类型
Set Network Type
- setNoLocReqCgiEnable(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置停止定位时是否允许更新基站信息
默认值:true
Set whether to allow updating base station information when stopping positioning
Default value: true
- setNumber(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置门牌号
Set House Number
- setOffset(boolean) - 类 中的方法com.amap.api.location.AMapLocation
-
设置是否偏转
Set Whether to Deflect
- setOffset(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否偏转, 默认为true 偏转
Set whether to deflect, default is true (deflection)
- setOnceLocation(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否单次定位
默认值:false
Set whether to perform single location
Default value: false
- setOnceLocationLatest(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置定位是否等待WIFI列表刷新
定位精度会更高,但是定位速度会变慢1-3秒
从3.7.0版本开始,支持连续定位(连续定位时首次会等待刷新)
3.7.0之前的版本,仅适用于单次定位,当设置为true时,连续定位会自动变为单次定位,
Set whether the location waits for WIFI list refresh
Location accuracy will be higher, but location speed will slow down by 1-3 seconds
Starting from version 3.7.0, continuous location is supported (first time will wait for refresh during continuous location)
For versions before 3.7.0, it only applies to single location.
- setOpenAlwaysScanWifi(boolean) - 类 中的静态方法com.amap.api.location.AMapLocationClientOption
-
设置是否开启wifi始终扫描
只有设置了android.permission.WRITE_SECURE_SETTINGS权限后才会开启
开启后,即使关闭wifi开关的情况下也会扫描wifi
默认值为:true, 开启wifi始终扫描
此方法为静态方法,设置一次后其他定位Client也会生效
Set whether to enable always wifi scanning
Only enabled after setting the android.permission.WRITE_SECURE_SETTINGS permission
After enabling, wifi will be scanned even if the wifi switch is turned off
Default value: true, enable always wifi scanning
This method is a static method, setting it once will also take effect for other positioning Clients
- setOptAttrs(HashMap<String, Object>) - 类 中的方法com.amap.api.location.AMapLocation
-
- setOptContent(String) - 类 中的方法com.amap.api.location.AMapLocation
-
- setPendingIntent(PendingIntent) - 类 中的方法com.amap.api.fence.GeoFence
-
设置PendingIntent对象
Set PendingIntent object
- setPendingIntentAction(String) - 类 中的方法com.amap.api.fence.GeoFence
-
设置对应的PendingIntent的action字符串
Set the action string of the corresponding PendingIntent
- setPoiId(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI的ID
Set the ID of the POI
- setPoiItem(PoiItem) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏内的兴趣点属性
Set POI attributes within the fence
- setPoiName(String) - 类 中的方法com.amap.api.fence.PoiItem
-
获取POI的名称
Get the name of the POI
- setPoiName(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置兴趣点名称
Set POI name
- setPointList(List<List<DPoint>>) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏的坐标点
Set fence coordinates
- setPoiType(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI的类型
Set the type of the POI
- setPolyline(List<DPoint>) - 类 中的方法com.amap.api.fence.DistrictItem
-
设置行政区划轮廓坐标点
Set Administrative Division Boundary Coordinates
- setPriority(int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setProvider(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置位置提供者
Set location provider
- setProvince(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI所在的城市名称
Set the city name where the POI is located
- setProvince(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置省的名称
Set province name
- setRadius(float) - 类 中的方法com.amap.api.fence.GeoFence
-
设置地理围栏半径
Set geofence radius
- setReGeoLocationCallback(IReGeoLocationCallback) - 类 中的方法com.amap.api.location.AMapLocationClient
-
设置获取逆地理信息的定位监听回调
Set the location listener callback for obtaining reverse geolocation information
- setReversegeo(boolean) - 类 中的方法com.amap.api.location.AMapLocation
-
- setRoad(String) - 类 中的方法com.amap.api.location.AMapLocation
-
已过时。
- setSatellites(int) - 类 中的方法com.amap.api.location.AMapLocation
-
设置卫星数量
Set Number of Satellites
- setScanWifiInterval(long) - 类 中的静态方法com.amap.api.location.AMapLocationClientOption
-
设置Android P上wifi扫描间隔
Set the wifi scanning interval on Android P
- setSelfStartServiceEnable(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否允许定位服务自启动
默认值:true
Set whether to allow location service to auto-start
Default value: true
- setSemantics(String) - 类 中的方法com.amap.api.location.AMapLocation
-
- setSensorEnable(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否使用设备传感器
默认值:false 不使用设备传感器
Set whether to use device sensor
Default value: false (do not use device sensor)
- setSource(String) - 类 中的方法com.amap.api.location.AMapLocation
-
- setSpeed(float) - 类 中的方法com.amap.api.location.AMapLocation
-
设置当前速度
Set current speed
- setSpeedAccuracyMetersPerSecond(float) - 类 中的方法com.amap.api.location.AMapLocation
-
- setSpeedKmh(boolean) - 类 中的方法com.amap.api.location.AMapLocation
-
- setStatus(int) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏的状态
Set fence status
- setStreet(String) - 类 中的方法com.amap.api.location.AMapLocation
-
设置街道名称
Set Street Name
- setSubType(int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setSysNetworkLocEnable(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置开启系统网络定位
默认值:true
Set whether to enable system network positioning
Default value: true
- setTel(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI的电话号码
Set the phone number of the POI
- setTrustedLevel(int) - 类 中的方法com.amap.api.location.AMapLocation
-
设置定位结果可信度
Set reliability of positioning result
- setType(int) - 类 中的方法com.amap.api.fence.GeoFence
-
设置围栏类型
Set fence type
- setType(int) - 类 中的方法com.amap.api.location.AMapLocation
-
- setTypeCode(String) - 类 中的方法com.amap.api.fence.PoiItem
-
设置POI的类型编码
Set the type code of the POI
- setVerticalAccuracyMeters(float) - 类 中的方法com.amap.api.location.AMapLocation
-
- setWifiAble(boolean) - 类 中的方法com.amap.api.location.AMapLocationQualityReport
-
- setWifiScan(boolean) - 类 中的方法com.amap.api.location.AMapLocationClientOption
-
设置是否允许调用WIFI刷新
默认值为true,当设置为false时会停止主动调用WIFI刷新,将会极大程度影响定位精度,但可以有效的降低定位耗电
Set whether to allow calling WIFI refresh
Default value is true, when set to false, it will stop actively calling WIFI refresh, which will greatly affect positioning accuracy, but can effectively reduce positioning power consumption
- startAssistantLocation(WebView) - 类 中的方法com.amap.api.location.AMapLocationClient
-
启动H5辅助定位
只适用于Android 4.2及以后版本
该接口只用于配合Web JS API的H5辅助定位,开启后并没有开始定位,开始定位由JS API触发。
- startAssistantLocation(WebView, AMapLocationClientOption) - 类 中的方法com.amap.api.location.AMapLocationClient
-
启动H5辅助定位,并配置SDK对传入WebView的WebSettings处理。
- startLocation() - 类 中的方法com.amap.api.location.AMapLocationClient
-
开始定位
Start location
- STATUS_IN - 类 中的静态变量com.amap.api.fence.GeoFence
-
围栏状态-进入围栏
Fence status - Entered fence
- STATUS_LOCFAIL - 类 中的静态变量com.amap.api.fence.GeoFence
-
围栏状态-定位失败(定位失败时,围栏状态无法进行检测)
Fence status - Location failed (When location fails, fence status cannot be detected)
- STATUS_OUT - 类 中的静态变量com.amap.api.fence.GeoFence
-
围栏状态-离开围栏
Fence status - Exited fence
- STATUS_STAYED - 类 中的静态变量com.amap.api.fence.GeoFence
-
围栏状态-在围栏内停留
Fence status - Stayed in fence
- STATUS_UNKNOWN - 类 中的静态变量com.amap.api.fence.GeoFence
-
围栏状态-初始状态,表示从未触发过围栏
Fence status - Initial state, indicating the fence has never been triggered
- stopAssistantLocation() - 类 中的方法com.amap.api.location.AMapLocationClient
-
停止辅助定位
如果已经调用了startAssistantLocation接口,在destroy时请调用该接口
Stop assistant location
If the startAssistantLocation interface has been called, please call this interface at destroy
- stopLocation() - 类 中的方法com.amap.api.location.AMapLocationClient
-
停止定位
Stop location