TencentLocationManager constructor

TencentLocationManager()

创建一个新的定位管理器。

调用前必须已完成 TencentLocationSDK.setPrivacyPolicyAgreementTencentLocationSDK.init,否则后续方法会抛出 TencentLocationError (错误码 privacyNotAgreed / apiKeyInvalid)。

Implementation

TencentLocationManager() : _id = ManagerIdGenerator.nextLocationManagerId() {
  _readyFuture = _platform.createLocationManager(_id);
}