@dcloudio/uni-app-x 0.7.14 → 0.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/native/CSSStyleDeclaration.d.ts +0 -72
  4. package/types/native/CanvasRenderingContext2D.d.ts +1943 -0
  5. package/types/native/DOMRect.d.ts +0 -180
  6. package/types/native/DrawableContext.d.ts +161 -628
  7. package/types/native/IUniElement.d.ts +513 -1868
  8. package/types/native/IUniObjectElement.d.ts +124 -0
  9. package/types/native/Path2D.d.ts +241 -0
  10. package/types/native/SnapshotOptions.d.ts +1 -0
  11. package/types/native/UniApp.d.ts +110 -0
  12. package/types/native/UniCanvasElement.d.ts +9 -0
  13. package/types/native/UniNativePage.d.ts +48 -1
  14. package/types/native/UniPageManager.d.ts +4 -1
  15. package/types/native/UniProvider.d.ts +1 -0
  16. package/types/native/UniResizeObserver.d.ts +9 -99
  17. package/types/native/UniScrollEvent.d.ts +1 -1
  18. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
  19. package/types/native/UniSwiperChangeEvent.d.ts +1 -1
  20. package/types/native/UniVideoElement.d.ts +5 -0
  21. package/types/native/global.d.ts +73 -15
  22. package/types/native/index.d.ts +4 -0
  23. package/types/shim-uts-basic.d.ts +4495 -0
  24. package/types/uni/env/index.d.ts +39 -0
  25. package/types/uni/uts-plugin-api/global.d.ts +20 -1
  26. package/types/uni/uts-plugin-api/index.d.ts +20 -1
  27. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -0
  28. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  29. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -0
  30. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  31. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  32. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  33. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  34. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  35. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  36. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/global.d.ts +10 -0
  37. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/index.d.ts +4 -0
  38. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/interface.d.ts +24 -0
  39. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -0
  40. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -0
  41. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +268 -0
  42. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  43. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  44. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  45. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  46. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  49. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +24 -9
  50. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  51. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -0
  52. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -0
  53. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1335 -0
  54. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
  55. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
  56. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -0
  57. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -0
  58. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -0
  59. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
  60. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  61. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +28 -20
  62. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
  63. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
  64. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +10 -2
  65. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -0
  66. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -0
  67. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +47 -0
  68. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  69. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  70. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  71. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +564 -0
  72. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  73. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  74. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  75. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  76. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  77. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  78. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +8 -0
  79. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +114 -34
  81. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
  82. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  83. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  84. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +304 -27
  85. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
  86. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
  87. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  88. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  89. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  90. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  91. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  92. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  93. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
  94. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
  95. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
  96. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  97. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  98. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +327 -58
  99. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +24 -0
  100. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +12 -0
  101. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +213 -5
  102. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
  103. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  104. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  105. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  106. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  107. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  108. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  109. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  110. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +161 -11
  111. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  112. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  113. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  114. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  115. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  116. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  117. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  118. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  119. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  120. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  121. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/global.d.ts +12 -0
  122. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/index.d.ts +5 -0
  123. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/interface.d.ts +28 -0
  124. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +177 -32
  125. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  126. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  127. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  128. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  129. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
  130. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  131. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  132. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
  133. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
  134. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -0
  135. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -0
  136. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1068 -0
  137. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
  138. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
  139. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  140. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  141. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  142. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
  143. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
  144. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  145. package/types/uni/uts-plugin-extend/global.d.ts +1 -1
  146. package/types/uni/uts-plugin-extend/index.d.ts +1 -3
  147. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  148. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -0
  149. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -0
  150. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -0
  151. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -0
  152. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  153. package/types/uni-cloud/interface.d.ts +57 -3
  154. package/types/uni-cloud/unicloud-db/index.ts +3 -3
  155. package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -1
  156. package/types/vue/PickerViewChangeEvent.d.ts +8 -0
  157. package/types/vue/ProgressActiveendEvent.d.ts +4 -0
  158. package/types/vue/RadioGroupChangeEvent.d.ts +9 -1
  159. package/types/vue/SliderChangeEvent.d.ts +4 -0
  160. package/types/vue/SwitchChangeEvent.d.ts +5 -1
  161. package/types/vue/UniCanvasElement.d.ts +6 -1
  162. package/types/vue/UniCloudDBElement.d.ts +5 -0
  163. package/types/vue/UniFormElement.d.ts +6 -1
  164. package/types/vue/UniNavigatorElement.d.ts +5 -0
  165. package/types/vue/global.d.ts +10 -9
  166. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  167. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  168. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
  169. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
  170. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
  171. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
  172. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
  173. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
  174. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
  175. package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
@@ -0,0 +1,11 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ GetLocationFailImpl,
4
+ UniLocationProvider,
5
+ LocationErrorCode,
6
+ IGetLocationFail,
7
+ GetLocationFail,
8
+ GetLocation,
9
+ GetLocationSuccess,
10
+ GetLocationOptions,
11
+ } from './interface'
@@ -0,0 +1,564 @@
1
+ import { GetLocationFailImpl as GetLocationFailImplement } from './unierror.uts'
2
+
3
+ export type GetLocationFailImpl = GetLocationFailImplement
4
+
5
+ export interface UniLocationProvider extends Uni { }
6
+
7
+ export interface Uni {
8
+
9
+ /**
10
+ * @description 获取当前的地理位置、速度
11
+ * @param {GetLocation} option
12
+ * @example
13
+ * ```typescript
14
+ * uni.getLocation({
15
+ * type: 'wgs84',
16
+ * success: function (res) {
17
+ * console.log('当前位置的经度:' + res.longitude);
18
+ * console.log('当前位置的纬度:' + res.latitude);
19
+ * }
20
+ * });
21
+ * ```
22
+ * @tutorial http://uniapp.dcloud.io/api/location/location?id=getlocation
23
+ * @uniPlatform {
24
+ * "app": {
25
+ * "android": {
26
+ * "osVer": "5.0",
27
+ * "uniVer": "√",
28
+ * "unixVer": "3.9.0"
29
+ * },
30
+ * "ios": {
31
+ * "osVer": "12.0",
32
+ * "uniVer": "√",
33
+ * "unixVer": "4.11"
34
+ * },
35
+ * "harmony": {
36
+ * "osVer": "x",
37
+ * "uniVer": "4.25",
38
+ * "unixVer": "x"
39
+ * }
40
+ * },
41
+ * "web": {
42
+ * "uniVer": "√",
43
+ * "unixVer": "4.0"
44
+ * }
45
+ * }
46
+ *
47
+ */
48
+ getLocation(options : GetLocationOptions) : void;
49
+
50
+ }
51
+
52
+
53
+ /**
54
+ * 错误码
55
+ * - 1505003 系统定位未开启,请在系统设置中开启系统定位
56
+ * - 1505004 系统定位未开启或者应用缺失权限
57
+ * - 1505600 超时
58
+ * - 1505601 不支持的定位类型
59
+ * - 1505602 捕获定位失败
60
+ * - 1505603 逆地理编码捕获失败
61
+ * - 1505604 服务供应商获取失败
62
+ * - 1505700 不支持逆地理编码
63
+ * - 1505701 没有找到具体的定位引擎,请确定系统定位是否开启
64
+ * - 1505800 缺失高精度定位授权
65
+ * - 1505605 未通过配置预校验,通常是app key 配置错误
66
+ * - 1505606 需要打自定义基座
67
+ * - 1505702 腾讯定位只支持GCJ-02
68
+ */
69
+ export type LocationErrorCode = 1505003 | 1505004 | 1505600 | 1505601 | 1505602 | 1505603 | 1505604 | 1505700 | 1505701 | 1505800 | 1505605 | 1505606 | 1505702;
70
+
71
+ /**
72
+ * 网络请求失败的错误回调参数
73
+ */
74
+ export interface IGetLocationFail extends IUniError {
75
+ errCode : LocationErrorCode
76
+ };
77
+
78
+ export type GetLocationFail = IGetLocationFail
79
+
80
+
81
+ export type GetLocation = (options : GetLocationOptions) => void;
82
+ export type GetLocationSuccess = {
83
+ /**
84
+ * 纬度,浮点数,范围为-90~90,负数表示南纬
85
+ * @defaultValue 0
86
+ * @uniPlatform {
87
+ * "app": {
88
+ * "android": {
89
+ * "osVer": "5.0",
90
+ * "uniVer": "√",
91
+ * "unixVer": "3.9.0"
92
+ * },
93
+ * "ios": {
94
+ * "osVer": "12.0",
95
+ * "uniVer": "√",
96
+ * "unixVer": "4.11"
97
+ * },
98
+ * "harmony": {
99
+ * "osVer": "x",
100
+ * "uniVer": "4.25",
101
+ * "unixVer": "x"
102
+ * }
103
+ * },
104
+ * "web": {
105
+ * "uniVer": "√",
106
+ * "unixVer": "4.0"
107
+ * }
108
+ * }
109
+ */
110
+ latitude : number,
111
+ /**
112
+ * 经度,范围为-180~180,负数表示西经
113
+ * @defaultValue 0
114
+ * @uniPlatform {
115
+ * "app": {
116
+ * "android": {
117
+ * "osVer": "5.0",
118
+ * "uniVer": "√",
119
+ * "unixVer": "3.9.0"
120
+ * },
121
+ * "ios": {
122
+ * "osVer": "12.0",
123
+ * "uniVer": "√",
124
+ * "unixVer": "4.11"
125
+ * },
126
+ * "harmony": {
127
+ * "osVer": "x",
128
+ * "uniVer": "4.25",
129
+ * "unixVer": "x"
130
+ * }
131
+ * },
132
+ * "web": {
133
+ * "uniVer": "√",
134
+ * "unixVer": "4.0"
135
+ * }
136
+ * }
137
+ */
138
+ longitude : number,
139
+ /**
140
+ * 速度,浮点数,单位m/s
141
+ * @defaultValue 0
142
+ * @uniPlatform {
143
+ * "app": {
144
+ * "android": {
145
+ * "osVer": "5.0",
146
+ * "uniVer": "√",
147
+ * "unixVer": "3.9.0"
148
+ * },
149
+ * "ios": {
150
+ * "osVer": "12.0",
151
+ * "uniVer": "√",
152
+ * "unixVer": "4.11"
153
+ * },
154
+ * "harmony": {
155
+ * "osVer": "x",
156
+ * "uniVer": "4.25",
157
+ * "unixVer": "x"
158
+ * }
159
+ * },
160
+ * "web": {
161
+ * "uniVer": "√",
162
+ * "unixVer": "4.0"
163
+ * }
164
+ * }
165
+ */
166
+ speed : number,
167
+ /**
168
+ * 位置的精确度
169
+ * @uniPlatform {
170
+ * "app": {
171
+ * "android": {
172
+ * "osVer": "5.0",
173
+ * "uniVer": "√",
174
+ * "unixVer": "3.9.0"
175
+ * },
176
+ * "ios": {
177
+ * "osVer": "12.0",
178
+ * "uniVer": "√",
179
+ * "unixVer": "4.11"
180
+ * },
181
+ * "harmony": {
182
+ * "osVer": "x",
183
+ * "uniVer": "4.25",
184
+ * "unixVer": "x"
185
+ * }
186
+ * },
187
+ * "web": {
188
+ * "uniVer": "√",
189
+ * "unixVer": "4.0"
190
+ * }
191
+ * }
192
+ */
193
+ accuracy : number,
194
+ /**
195
+ * 高度,单位 m
196
+ * @defaultValue 0
197
+ * @uniPlatform {
198
+ * "app": {
199
+ * "android": {
200
+ * "osVer": "5.0",
201
+ * "uniVer": "√",
202
+ * "unixVer": "3.9.0"
203
+ * },
204
+ * "ios": {
205
+ * "osVer": "12.0",
206
+ * "uniVer": "√",
207
+ * "unixVer": "4.11"
208
+ * },
209
+ * "harmony": {
210
+ * "osVer": "x",
211
+ * "uniVer": "4.25",
212
+ * "unixVer": "x"
213
+ * }
214
+ * },
215
+ * "web": {
216
+ * "uniVer": "√",
217
+ * "unixVer": "4.0"
218
+ * }
219
+ * }
220
+ */
221
+ altitude : number,
222
+ /**
223
+ * 垂直精度,单位 m(Android 无法获取,返回 0)
224
+ * @defaultValue 0
225
+ * @uniPlatform {
226
+ * "app": {
227
+ * "android": {
228
+ * "osVer": "5.0",
229
+ * "uniVer": "√",
230
+ * "unixVer": "3.9.0"
231
+ * },
232
+ * "ios": {
233
+ * "osVer": "12.0",
234
+ * "uniVer": "√",
235
+ * "unixVer": "4.11"
236
+ * },
237
+ * "harmony": {
238
+ * "osVer": "x",
239
+ * "uniVer": "x",
240
+ * "unixVer": "x"
241
+ * }
242
+ * },
243
+ * "web": {
244
+ * "uniVer": "√",
245
+ * "unixVer": "4.0"
246
+ * }
247
+ * }
248
+ */
249
+ verticalAccuracy : number,
250
+ /**
251
+ * 水平精度,单位 m
252
+ * @defaultValue 0
253
+ * @uniPlatform {
254
+ * "app": {
255
+ * "android": {
256
+ * "osVer": "5.0",
257
+ * "uniVer": "√",
258
+ * "unixVer": "3.9.0"
259
+ * },
260
+ * "ios": {
261
+ * "osVer": "12.0",
262
+ * "uniVer": "√",
263
+ * "unixVer": "4.11"
264
+ * },
265
+ * "harmony": {
266
+ * "osVer": "x",
267
+ * "uniVer": "x",
268
+ * "unixVer": "x"
269
+ * }
270
+ * },
271
+ * "web": {
272
+ * "uniVer": "√",
273
+ * "unixVer": "4.0"
274
+ * }
275
+ * }
276
+ */
277
+ horizontalAccuracy : number,
278
+ /**
279
+ * 地址信息
280
+ * @defaultValue null
281
+ * @uniPlatform {
282
+ * "app": {
283
+ * "android": {
284
+ * "osVer": "5.0",
285
+ * "uniVer": "√",
286
+ * "unixVer": "3.9.0"
287
+ * },
288
+ * "ios": {
289
+ * "osVer": "12.0",
290
+ * "uniVer": "√",
291
+ * "unixVer": "4.11"
292
+ * },
293
+ * "harmony": {
294
+ * "osVer": "x",
295
+ * "uniVer": "x",
296
+ * "unixVer": "x"
297
+ * }
298
+ * },
299
+ * "web": {
300
+ * "uniVer": "√",
301
+ * "unixVer": "4.0"
302
+ * }
303
+ * }
304
+ */
305
+ address : any | null
306
+ };
307
+ type GetLocationSuccessCallback = (result : GetLocationSuccess) => void;
308
+ type GetLocationFailCallback = (result : IUniError) => void;
309
+ type GetLocationComplete = any;
310
+ type GetLocationCompleteCallback = (result : GetLocationComplete) => void;
311
+ export type GetLocationOptions = {
312
+ /**
313
+ * 定位服务提供商: 默认为 system, 支持 "system" | "tencent"
314
+ * @defaultValue system
315
+ * @uniPlatform {
316
+ * "app": {
317
+ * "android": {
318
+ * "osVer": "5.0",
319
+ * "uniVer": "√",
320
+ * "unixVer": "3.9.0"
321
+ * },
322
+ * "ios": {
323
+ * "osVer": "12.0",
324
+ * "uniVer": "√",
325
+ * "unixVer": "4.11"
326
+ * },
327
+ * "harmony": {
328
+ * "osVer": "x",
329
+ * "uniVer": "x",
330
+ * "unixVer": "x"
331
+ * }
332
+ * },
333
+ * "web": {
334
+ * "uniVer": "√",
335
+ * "unixVer": "4.0"
336
+ * }
337
+ * }
338
+ */
339
+ provider ?: string | null,
340
+ /**
341
+ * 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02
342
+ * @defaultValue wgs84
343
+ * @uniPlatform {
344
+ * "app": {
345
+ * "android": {
346
+ * "osVer": "5.0",
347
+ * "uniVer": "√",
348
+ * "unixVer": "3.9.0"
349
+ * },
350
+ * "ios": {
351
+ * "osVer": "12.0",
352
+ * "uniVer": "√",
353
+ * "unixVer": "4.11"
354
+ * },
355
+ * "harmony": {
356
+ * "osVer": "x",
357
+ * "uniVer": "4.25",
358
+ * "unixVer": "x"
359
+ * }
360
+ * },
361
+ * "web": {
362
+ * "uniVer": "√",
363
+ * "unixVer": "4.0"
364
+ * }
365
+ * }
366
+ */
367
+ type ?: "wgs84" | "gcj02" | "gps" | null,
368
+ /**
369
+ * 传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度
370
+ * @type boolean
371
+ * @defaultValue false
372
+ * @uniPlatform {
373
+ * "app": {
374
+ * "android": {
375
+ * "osVer": "5.0",
376
+ * "uniVer": "√",
377
+ * "unixVer": "3.9.0"
378
+ * },
379
+ * "ios": {
380
+ * "osVer": "12.0",
381
+ * "uniVer": "√",
382
+ * "unixVer": "4.11"
383
+ * },
384
+ * "harmony": {
385
+ * "osVer": "x",
386
+ * "uniVer": "4.25",
387
+ * "unixVer": "x"
388
+ * }
389
+ * },
390
+ * "web": {
391
+ * "uniVer": "√",
392
+ * "unixVer": "4.0"
393
+ * }
394
+ * }
395
+ */
396
+ altitude ?: boolean | null,
397
+ /**
398
+ * 传入 true 会解析地址
399
+ * @type boolean
400
+ * @defaultValue false
401
+ * @uniPlatform {
402
+ * "app": {
403
+ * "android": {
404
+ * "osVer": "5.0",
405
+ * "uniVer": "√",
406
+ * "unixVer": "3.9.0"
407
+ * },
408
+ * "ios": {
409
+ * "osVer": "12.0",
410
+ * "uniVer": "√",
411
+ * "unixVer": "4.11"
412
+ * },
413
+ * "harmony": {
414
+ * "osVer": "x",
415
+ * "uniVer": "x",
416
+ * "unixVer": "x"
417
+ * }
418
+ * },
419
+ * "web": {
420
+ * "uniVer": "√",
421
+ * "unixVer": "4.0"
422
+ * }
423
+ * }
424
+ */
425
+ geocode ?: boolean | null,
426
+ /**
427
+ * 高精度定位超时时间(ms),指定时间内返回最高精度,该值3000ms以上高精度定位才有效果
428
+ * @defaultValue 3000
429
+ * @uniPlatform {
430
+ * "app": {
431
+ * "android": {
432
+ * "osVer": "5.0",
433
+ * "uniVer": "√",
434
+ * "unixVer": "3.9.0"
435
+ * },
436
+ * "ios": {
437
+ * "osVer": "12.0",
438
+ * "uniVer": "√",
439
+ * "unixVer": "4.11"
440
+ * },
441
+ * "harmony": {
442
+ * "osVer": "x",
443
+ * "uniVer": "4.25",
444
+ * "unixVer": "x"
445
+ * }
446
+ * },
447
+ * "web": {
448
+ * "uniVer": "√",
449
+ * "unixVer": "4.0"
450
+ * }
451
+ * }
452
+ */
453
+ highAccuracyExpireTime ?: number | null,
454
+ /**
455
+ * 开启高精度定位
456
+ * @type boolean
457
+ * @defaultValue false
458
+ * @uniPlatform {
459
+ * "app": {
460
+ * "android": {
461
+ * "osVer": "5.0",
462
+ * "uniVer": "√",
463
+ * "unixVer": "3.9.0"
464
+ * },
465
+ * "ios": {
466
+ * "osVer": "12.0",
467
+ * "uniVer": "√",
468
+ * "unixVer": "4.11"
469
+ * },
470
+ * "harmony": {
471
+ * "osVer": "x",
472
+ * "uniVer": "4.25",
473
+ * "unixVer": "x"
474
+ * }
475
+ * },
476
+ * "web": {
477
+ * "uniVer": "√",
478
+ * "unixVer": "4.0"
479
+ * }
480
+ * }
481
+ */
482
+ isHighAccuracy ?: boolean | null,
483
+ /**
484
+ * 接口调用成功的回调函数
485
+ * @uniPlatform {
486
+ * "app": {
487
+ * "android": {
488
+ * "osVer": "5.0",
489
+ * "uniVer": "√",
490
+ * "unixVer": "3.9.0"
491
+ * },
492
+ * "ios": {
493
+ * "osVer": "12.0",
494
+ * "uniVer": "√",
495
+ * "unixVer": "4.11"
496
+ * },
497
+ * "harmony": {
498
+ * "osVer": "x",
499
+ * "uniVer": "4.25",
500
+ * "unixVer": "x"
501
+ * }
502
+ * },
503
+ * "web": {
504
+ * "uniVer": "√",
505
+ * "unixVer": "4.0"
506
+ * }
507
+ * }
508
+ */
509
+ success ?: GetLocationSuccessCallback | null,
510
+ /**
511
+ * 接口调用失败的回调函数
512
+ * @uniPlatform {
513
+ * "app": {
514
+ * "android": {
515
+ * "osVer": "5.0",
516
+ * "uniVer": "√",
517
+ * "unixVer": "3.9.0"
518
+ * },
519
+ * "ios": {
520
+ * "osVer": "12.0",
521
+ * "uniVer": "√",
522
+ * "unixVer": "4.11"
523
+ * },
524
+ * "harmony": {
525
+ * "osVer": "x",
526
+ * "uniVer": "4.25",
527
+ * "unixVer": "x"
528
+ * }
529
+ * },
530
+ * "web": {
531
+ * "uniVer": "√",
532
+ * "unixVer": "4.0"
533
+ * }
534
+ * }
535
+ */
536
+ fail ?: GetLocationFailCallback | null,
537
+ /**
538
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
539
+ * @uniPlatform {
540
+ * "app": {
541
+ * "android": {
542
+ * "osVer": "5.0",
543
+ * "uniVer": "√",
544
+ * "unixVer": "3.9.0"
545
+ * },
546
+ * "ios": {
547
+ * "osVer": "12.0",
548
+ * "uniVer": "√",
549
+ * "unixVer": "4.11"
550
+ * },
551
+ * "harmony": {
552
+ * "osVer": "x",
553
+ * "uniVer": "4.25",
554
+ * "unixVer": "x"
555
+ * }
556
+ * },
557
+ * "web": {
558
+ * "uniVer": "√",
559
+ * "unixVer": "4.0"
560
+ * }
561
+ * }
562
+ */
563
+ complete ?: GetLocationCompleteCallback | null
564
+ };
@@ -1,20 +1,8 @@
1
1
  // 本文件为自动构建生成
2
2
  import {
3
- LocationErrorCode as LocationErrorCodeOrigin,
4
- IGetLocationFail as IGetLocationFailOrigin,
5
- GetLocationFail as GetLocationFailOrigin,
6
- GetLocation as GetLocationOrigin,
7
- GetLocationSuccess as GetLocationSuccessOrigin,
8
- GetLocationOptions as GetLocationOptionsOrigin,
9
- Uni as UniOrigin
3
+ UniLocationSystemProvider as UniLocationSystemProviderOrigin,
10
4
  } from './interface'
11
5
 
12
6
  declare global {
13
- type LocationErrorCode = LocationErrorCodeOrigin
14
- type IGetLocationFail = IGetLocationFailOrigin
15
- type GetLocationFail = GetLocationFailOrigin
16
- type GetLocation = GetLocationOrigin
17
- type GetLocationSuccess = GetLocationSuccessOrigin
18
- type GetLocationOptions = GetLocationOptionsOrigin
19
- interface Uni extends UniOrigin { }
7
+ type UniLocationSystemProvider = UniLocationSystemProviderOrigin
20
8
  }
@@ -1,9 +1,4 @@
1
1
  // 本文件为自动构建生成
2
2
  export {
3
- LocationErrorCode,
4
- IGetLocationFail,
5
- GetLocationFail,
6
- GetLocation,
7
- GetLocationSuccess,
8
- GetLocationOptions,
3
+ UniLocationSystemProvider,
9
4
  } from './interface'