iOS高德地图SDK(基础) V1.9.0
Loading...
Searching...
No Matches
AMapServices Class Reference

高德SDK服务类 More...

#include <AMapServices.h>

Inheritance diagram for AMapServices:

Instance Methods

(NSString *) - getRegionLanguageCode
 获取regionLanguageType对应的anguageCode
 

Class Methods

(AMapServices *) + sharedServices
 获取单例
 

Properties

AMapRegionLanguageType regionLanguageType
 
NSString * countryCode
 
NSString * apiKey
 APIkey。设置key,需要在高德官网控制台绑定对应的bundleid。
 
BOOL enableHTTPS
 是否开启HTTPS,从1.3.3版本开始默认为YES。
 
BOOL crashReportEnabled
 是否启用崩溃日志上传。默认为YES, 只有在真机上设置有效。
开启崩溃日志上传有助于我们更好的了解SDK的状况,可以帮助我们持续优化和改进SDK。需要注意的是,SDK内部是通过设置NSUncaughtExceptionHandler来捕获异常的,如果您的APP中使用了其他收集崩溃日志的SDK,或者自己有设置NSUncaughtExceptionHandler的话,请保证 AMapServices 的初始化是在其他设置NSUncaughtExceptionHandler操作之后进行的,我们的handler会再处理完异常后调用前一次设置的handler,保证之前设置的handler会被执行。
 
NSString * identifier
 设备标识,取自idfv。用于排查问题时提供。
 
BOOL securityAgree
 
BOOL analysisAgree
 
double longitude
 
double latitude
 
AMapAttributeRTLState enableRTLLayout
 

Detailed Description

高德SDK服务类

Method Documentation

◆ getRegionLanguageCode

- (NSString *) getRegionLanguageCode

获取regionLanguageType对应的anguageCode

◆ sharedServices

+ (AMapServices *) sharedServices

获取单例

Property Documentation

◆ analysisAgree

- (BOOL) analysisAgree
readwritenonatomicassign

用户是否同意数据用于统计分析。默认为YES。since 1.8.7 Whether the user agrees to use data for statistical analysis. Default: YES. Since 1.8.7

◆ apiKey

- (NSString*) apiKey
readwritenonatomiccopy

APIkey。设置key,需要在高德官网控制台绑定对应的bundleid。

◆ countryCode

- (NSString*) countryCode
readwritenonatomiccopy

国家代码属性 country code property

◆ crashReportEnabled

- (BOOL) crashReportEnabled
readwritenonatomicassign

是否启用崩溃日志上传。默认为YES, 只有在真机上设置有效。
开启崩溃日志上传有助于我们更好的了解SDK的状况,可以帮助我们持续优化和改进SDK。需要注意的是,SDK内部是通过设置NSUncaughtExceptionHandler来捕获异常的,如果您的APP中使用了其他收集崩溃日志的SDK,或者自己有设置NSUncaughtExceptionHandler的话,请保证 AMapServices 的初始化是在其他设置NSUncaughtExceptionHandler操作之后进行的,我们的handler会再处理完异常后调用前一次设置的handler,保证之前设置的handler会被执行。

◆ enableHTTPS

- (BOOL) enableHTTPS
readwritenonatomicassign

是否开启HTTPS,从1.3.3版本开始默认为YES。

◆ enableRTLLayout

- (AMapAttributeRTLState) enableRTLLayout
readwritenonatomicassign

是否启用从右向左(RTL)布局,默认为AMapAttributeRTLStateDefault Whether to enable right-to-left (RTL) layout, default is AMapAttributeRTLStateDefault

◆ identifier

- (NSString*) identifier
readnonatomicassign

设备标识,取自idfv。用于排查问题时提供。

◆ latitude

- (double) latitude
readwritenonatomicassign

当前位置纬度。since 1.8.7 Current location latitude. Since 1.8.7

◆ longitude

- (double) longitude
readwritenonatomicassign

当前位置经度。since 1.8.7 Current location longitude. Since 1.8.7

◆ regionLanguageType

- (AMapRegionLanguageType) regionLanguageType
readwritenonatomicassign

语言类型属性 language type property

◆ securityAgree

- (BOOL) securityAgree
readwritenonatomicassign

用户是否同意数据用于安全保障。默认为YES。since 1.8.7 Whether the user agrees to use data for security assurance. Default: YES. Since 1.8.7


The documentation for this class was generated from the following file:
© 2017 高德信息技术有限公司 版权所有,保留所有权利。