TencentLocationSdk
Public Member Functions | Public Attributes | Properties | List of all members
TencentLocationService Class Reference
Inheritance diagram for TencentLocationService:

Public Member Functions

void Start (float desiredAccuracyInMeters=-1f, float updateDistanceInMeters=-1f)
 开始定位 More...
 
void Stop ()
 停止定位 More...
 
string GetVersion ()
 获取Unity 定位SDK 版本号 More...
 

Public Attributes

string api_key
 

Properties

TencentLocationInfo lastData [get, set]
 最近一次的定位数据. More...
 
TencentLocationServiceStatus status [get, set]
 定位阶段状态 More...
 
ErrorCode errorCode [get, set]
 如果定位失败,即status = Failed, 可以查看ErrorCode,得知对应的失败原因; More...
 

Member Function Documentation

◆ GetVersion()

string TencentLocationService.GetVersion ( )

获取Unity 定位SDK 版本号

Returns
The version.

◆ Start()

void TencentLocationService.Start ( float  desiredAccuracyInMeters = -1f,
float  updateDistanceInMeters = -1f 
)

开始定位

Parameters
desiredAccuracyInMetersDesired accuracy in meters.
updateDistanceInMetersUpdate distance in meters.

◆ Stop()

void TencentLocationService.Stop ( )

停止定位

Property Documentation

◆ errorCode

ErrorCode TencentLocationService.errorCode
getset

如果定位失败,即status = Failed, 可以查看ErrorCode,得知对应的失败原因;

◆ lastData

TencentLocationInfo TencentLocationService.lastData
getset

最近一次的定位数据.

◆ status

TencentLocationServiceStatus TencentLocationService.status
getset

定位阶段状态


The documentation for this class was generated from the following file: