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

#include <AMapServices.h>

Inheritance diagram for AMapServices:

Instance Methods

(NSString *) - getRegionLanguageCode
 

Class Methods

(AMapServices *) + sharedServices
 获取单例 Obtain a single instance
 

Properties

AMapRegionLanguageType regionLanguageType
 
NSString * countryCode
 
NSString * apiKey
 
BOOL enableHTTPS
 
BOOL crashReportEnabled
 
NSString * identifier
 
BOOL securityAgree
 
BOOL analysisAgree
 
double longitude
 
double latitude
 
AMapAttributeRTLState enableRTLLayout
 

Detailed Description

高德SDK服务类 Gaode SDK Service Class

Method Documentation

◆ getRegionLanguageCode

- (NSString *) getRegionLanguageCode

获取regionLanguageType对应的anguageCode Retrieve the anguageCode corresponding to regionLanguageType

◆ sharedServices

+ (AMapServices *) sharedServices

获取单例 Obtain a single instance

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。 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

- (BOOL) enableHTTPS
readwritenonatomicassign

是否开启HTTPS,从1.3.3版本开始默认为YES。 Whether to enable HTTPS, starting from version 1.3.3, defaults to YES.

◆ enableRTLLayout

- (AMapAttributeRTLState) enableRTLLayout
readwritenonatomicassign

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

◆ identifier

- (NSString*) identifier
readnonatomicassign

设备标识,取自idfv。用于排查问题时提供。 Device identifier, taken from idfv. Provided for troubleshooting.

◆ 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 高德信息技术有限公司 版权所有,保留所有权利。