#include <AMapServices.h>
高德SDK服务类 Gaode SDK Service Class
◆ getRegionLanguageCode
| - (NSString *) getRegionLanguageCode |
|
|
|
获取regionLanguageType对应的anguageCode Retrieve the anguageCode corresponding to regionLanguageType
◆ sharedServices
获取单例 Obtain a single instance
◆ analysisAgree
用户是否同意数据用于统计分析。默认为YES。since 1.8.7 Whether the user agrees to use data for statistical analysis. Default: YES. Since 1.8.7
◆ apiKey
APIkey。设置key,需要在高德官网控制台绑定对应的bundleid。 APIkey。 To set the key, you need to bind the corresponding bundle ID on the Gaode official website console.
◆ countryCode
| - (NSString*) countryCode |
|
readwritenonatomiccopy |
国家代码属性 country code property
◆ crashReportEnabled
| - (BOOL) crashReportEnabled |
|
readwritenonatomicassign |
是否启用崩溃日志上传。默认为YES, 只有在真机上设置有效。
开启崩溃日志上传有助于我们更好的了解SDK的状况,可以帮助我们持续优化和改进SDK。需要注意的是,SDK内部是通过设置NSUncaughtExceptionHandler来捕获异常的,如果您的APP中使用了其他收集崩溃日志的SDK,或者自己有设置NSUncaughtExceptionHandler的话,请保证 AMapServices 的初始化是在其他设置NSUncaughtExceptionHandler操作之后进行的,我们的handler会再处理完异常后调用前一次设置的handler,保证之前设置的handler会被执行。 Enable crash log upload. The default is YES, which is only valid when set on a real machine. \Enabling crash log upload can help us better understand the status of the SDK and continuously optimize and improve it. It should be noted that the SDK captures exceptions internally by setting the NSUncaughtExceptionHandler. If your APP uses other SDKs that collect crash logs, or if you have set the NSUncaughtExceptionHandler yourself, please ensure that the initialization of AMapServices is performed after other NSUncaughtExceptionHandler operations are set. Our handler will call the previously set handler after handling the exceptions to ensure that the previously set handler will be executed.
◆ enableHTTPS
是否开启HTTPS,从1.3.3版本开始默认为YES。 Whether to enable HTTPS, starting from version 1.3.3, defaults to YES.
◆ enableRTLLayout
是否启用从右向左(RTL)布局,默认为AMapAttributeRTLStateDefault Whether to enable right-to-left (RTL) layout, default is AMapAttributeRTLStateDefault
◆ identifier
设备标识,取自idfv。用于排查问题时提供。 Device identifier, taken from idfv. Provided for troubleshooting.
◆ latitude
当前位置纬度。since 1.8.7 Current location latitude. Since 1.8.7
◆ longitude
当前位置经度。since 1.8.7 Current location longitude. Since 1.8.7
◆ regionLanguageType
语言类型属性 language type property
◆ securityAgree
用户是否同意数据用于安全保障。默认为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: