提交 62adc27a 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

uts-tencentgeolocation 插件新增 interface.uts 定义 type类型,规避编译器的一个bug

上级 315ef851
import { CLLocationManager, CLAuthorizationStatus } from "CoreLocation"
import { TencentLBSLocationManager, TencentLBSLocation, TencentLBSRequestLevel, TencentLBSLocationManagerDelegate } from "TencentLBS"
import { NSError, Bundle } from "Foundation"
import { LocationOptions, LocationResponse } from "../interface.uts"
/**
* 判断当前是否是自定义基座
......@@ -10,24 +11,6 @@ export function checkHasIntegration():boolean{
return true
}
/**
* 定位请求参数封装
*/
type LocationOptions = {
geocode: boolean,
success: (response: LocationResponse) => void,
fail: (msg: string) => void
};
/**
* 定位返回结果封装
*/
type LocationResponse = {
name: string,
address: string,
latitude: number,
longitude: number
}
/**
* 定位 LBSLocation 类,封装定位相关方法
......
/**
* 定位请求参数封装
*/
export type LocationOptions = {
geocode: boolean,
success: (response: LocationResponse) => void,
fail: (msg: string) => void
};
/**
* 定位返回结果封装
*/
export type LocationResponse = {
name: string,
address: string,
latitude: number,
longitude: number
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册