diff --git a/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts b/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts index 312ea7cde9071d248053b8a1127bf84f6f2faf70..c7566ddc64fc608bb214bb8da7004356291af456 100644 --- a/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts +++ b/uni_modules/uts-tencentgeolocation/utssdk/app-ios/index.uts @@ -1,6 +1,7 @@ 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 类,封装定位相关方法 diff --git a/uni_modules/uts-tencentgeolocation/utssdk/interface.uts b/uni_modules/uts-tencentgeolocation/utssdk/interface.uts new file mode 100644 index 0000000000000000000000000000000000000000..b56f66f735acd7d20bcbbfc021747ef2adfd83c3 --- /dev/null +++ b/uni_modules/uts-tencentgeolocation/utssdk/interface.uts @@ -0,0 +1,18 @@ +/** + * 定位请求参数封装 + */ +export type LocationOptions = { + geocode: boolean, + success: (response: LocationResponse) => void, + fail: (msg: string) => void +}; + +/** + * 定位返回结果封装 + */ +export type LocationResponse = { + name: string, + address: string, + latitude: number, + longitude: number +}