@dcloudio/uni-app-x 0.7.60 → 0.7.61
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.
- package/package.json +2 -2
- package/types/app.d.ts +14 -7
- package/types/native/IUniElement.d.ts +1 -1
- package/types/native/UniCustomElement.d.ts +2 -2
- package/types/native/UniInputChangeEvent.d.ts +31 -0
- package/types/native/UniPage.d.ts +10 -2
- package/types/native/global.d.ts +12 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/global.d.ts +1 -0
- package/types/uni/uts-plugin-api/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +561 -131
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +17 -34
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +4 -8
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -4
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +29 -58
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +36 -72
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +9 -7
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -7
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +84 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +47 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +13 -18
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +68 -208
- package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +2 -4
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +105 -107
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +359 -66
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +86 -94
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +30 -60
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +32 -64
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +298 -4
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +21 -33
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +23 -46
- package/types/uni/uts-plugin-biz/global.d.ts +11 -0
- package/types/uni/uts-plugin-biz/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
- package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
- package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +7 -2
- package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
- package/types/uni/uts-plugin-extend/global.d.ts +0 -2
- package/types/uni/uts-plugin-extend/index.d.ts +0 -2
- package/types/vue/LifeCycle.d.ts +723 -1
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
|
@@ -2,12 +2,12 @@ import { GetLocationFailImpl as GetLocationFailImplement } from './unierror.uts'
|
|
|
2
2
|
|
|
3
3
|
export type GetLocationFailImpl = GetLocationFailImplement
|
|
4
4
|
|
|
5
|
-
// #ifdef APP-IOS
|
|
6
|
-
export interface UniLocationProvider extends Uni, JSExport { }
|
|
7
|
-
// #endif
|
|
8
|
-
|
|
9
|
-
// #ifndef APP-IOS
|
|
10
|
-
export interface UniLocationProvider extends Uni { }
|
|
5
|
+
// #ifdef APP-IOS
|
|
6
|
+
export interface UniLocationProvider extends Uni, JSExport { }
|
|
7
|
+
// #endif
|
|
8
|
+
|
|
9
|
+
// #ifndef APP-IOS
|
|
10
|
+
export interface UniLocationProvider extends Uni { }
|
|
11
11
|
// #endif
|
|
12
12
|
|
|
13
13
|
export interface Uni {
|
|
@@ -27,74 +27,570 @@ export interface Uni {
|
|
|
27
27
|
* ```
|
|
28
28
|
* @tutorial http://uniapp.dcloud.io/api/location/location?id=getlocation
|
|
29
29
|
* @uniPlatform {
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
30
|
+
* "app": {
|
|
31
|
+
* "android": {
|
|
32
|
+
* "osVer": "5.0",
|
|
33
|
+
* "uniVer": "√",
|
|
34
|
+
* "unixVer": "3.9.0"
|
|
35
|
+
* },
|
|
36
|
+
* "ios": {
|
|
37
|
+
* "osVer": "12.0",
|
|
38
|
+
* "uniVer": "√",
|
|
39
|
+
* "unixVer": "4.11"
|
|
40
|
+
* },
|
|
41
|
+
* "harmony": {
|
|
42
|
+
* "osVer": "5.0.0(11)",
|
|
43
|
+
* "uniVer": "4.25",
|
|
44
|
+
* "unixVer": "4.61"
|
|
45
|
+
* }
|
|
46
|
+
* },
|
|
47
|
+
* "mp": {
|
|
48
|
+
* "weixin": {
|
|
49
|
+
* "hostVer": "1.9.6",
|
|
50
|
+
* "uniVer": "√",
|
|
51
|
+
* "unixVer": "4.41"
|
|
52
|
+
* },
|
|
53
|
+
* "alipay": {
|
|
54
|
+
* "hostVer": "√",
|
|
55
|
+
* "uniVer": "√",
|
|
56
|
+
* "unixVer": "x"
|
|
57
|
+
* },
|
|
58
|
+
* "baidu": {
|
|
59
|
+
* "hostVer": "√",
|
|
60
|
+
* "uniVer": "√",
|
|
61
|
+
* "unixVer": "x"
|
|
62
|
+
* },
|
|
63
|
+
* "toutiao": {
|
|
64
|
+
* "hostVer": "√",
|
|
65
|
+
* "uniVer": "√",
|
|
66
|
+
* "unixVer": "x"
|
|
67
|
+
* },
|
|
68
|
+
* "lark": {
|
|
69
|
+
* "hostVer": "√",
|
|
70
|
+
* "uniVer": "√",
|
|
71
|
+
* "unixVer": "x"
|
|
72
|
+
* },
|
|
73
|
+
* "qq": {
|
|
74
|
+
* "hostVer": "√",
|
|
75
|
+
* "uniVer": "√",
|
|
76
|
+
* "unixVer": "x"
|
|
77
|
+
* },
|
|
78
|
+
* "kuaishou": {
|
|
79
|
+
* "hostVer": "√",
|
|
80
|
+
* "uniVer": "√",
|
|
81
|
+
* "unixVer": "x"
|
|
82
|
+
* },
|
|
83
|
+
* "jd": {
|
|
84
|
+
* "hostVer": "√",
|
|
85
|
+
* "uniVer": "√",
|
|
86
|
+
* "unixVer": "x"
|
|
87
|
+
* }
|
|
88
|
+
* },
|
|
89
|
+
* "web": {
|
|
90
|
+
* "uniVer": "√",
|
|
91
|
+
* "unixVer": "4.0"
|
|
92
|
+
* }
|
|
93
93
|
* }
|
|
94
|
-
*
|
|
94
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html
|
|
95
95
|
*/
|
|
96
96
|
getLocation(options: GetLocationOptions): void;
|
|
97
97
|
|
|
98
|
+
/**
|
|
99
|
+
* @description 开启应用进入前台时接收位置消息。
|
|
100
|
+
* @param {StartLocationUpdateOptions} option
|
|
101
|
+
* @uniPlatform {
|
|
102
|
+
* "app": {
|
|
103
|
+
* "android": {
|
|
104
|
+
* "osVer": "5.0",
|
|
105
|
+
* "uniVer": "√",
|
|
106
|
+
* "unixVer": "4.76"
|
|
107
|
+
* },
|
|
108
|
+
* "ios": {
|
|
109
|
+
* "osVer": "12.0",
|
|
110
|
+
* "uniVer": "√",
|
|
111
|
+
* "unixVer": "4.76"
|
|
112
|
+
* },
|
|
113
|
+
* "harmony": {
|
|
114
|
+
* "osVer": "5.0.0(11)",
|
|
115
|
+
* "uniVer": "4.25",
|
|
116
|
+
* "unixVer": "4.76"
|
|
117
|
+
* }
|
|
118
|
+
* },
|
|
119
|
+
* "mp": {
|
|
120
|
+
* "weixin": {
|
|
121
|
+
* "hostVer": "2.8.0",
|
|
122
|
+
* "uniVer": "√",
|
|
123
|
+
* "unixVer": "4.41"
|
|
124
|
+
* },
|
|
125
|
+
* "alipay": {
|
|
126
|
+
* "hostVer": "√",
|
|
127
|
+
* "uniVer": "√",
|
|
128
|
+
* "unixVer": "x"
|
|
129
|
+
* },
|
|
130
|
+
* "baidu": {
|
|
131
|
+
* "hostVer": "√",
|
|
132
|
+
* "uniVer": "√",
|
|
133
|
+
* "unixVer": "x"
|
|
134
|
+
* },
|
|
135
|
+
* "toutiao": {
|
|
136
|
+
* "hostVer": "√",
|
|
137
|
+
* "uniVer": "√",
|
|
138
|
+
* "unixVer": "x"
|
|
139
|
+
* },
|
|
140
|
+
* "lark": {
|
|
141
|
+
* "hostVer": "√",
|
|
142
|
+
* "uniVer": "√",
|
|
143
|
+
* "unixVer": "x"
|
|
144
|
+
* },
|
|
145
|
+
* "qq": {
|
|
146
|
+
* "hostVer": "√",
|
|
147
|
+
* "uniVer": "√",
|
|
148
|
+
* "unixVer": "x"
|
|
149
|
+
* },
|
|
150
|
+
* "kuaishou": {
|
|
151
|
+
* "hostVer": "√",
|
|
152
|
+
* "uniVer": "√",
|
|
153
|
+
* "unixVer": "x"
|
|
154
|
+
* },
|
|
155
|
+
* "jd": {
|
|
156
|
+
* "hostVer": "√",
|
|
157
|
+
* "uniVer": "√",
|
|
158
|
+
* "unixVer": "x"
|
|
159
|
+
* }
|
|
160
|
+
* },
|
|
161
|
+
* "web": {
|
|
162
|
+
* "uniVer": "√",
|
|
163
|
+
* "unixVer": "4.0"
|
|
164
|
+
* }
|
|
165
|
+
* }
|
|
166
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdate.html
|
|
167
|
+
*/
|
|
168
|
+
startLocationUpdate(options:StartLocationUpdateOptions):void
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* @description 关闭监听实时位置变化,前后台都停止消息接收。
|
|
172
|
+
* @param {StopLocationUpdateOptions} option
|
|
173
|
+
* @uniPlatform {
|
|
174
|
+
* "app": {
|
|
175
|
+
* "android": {
|
|
176
|
+
* "osVer": "5.0",
|
|
177
|
+
* "uniVer": "√",
|
|
178
|
+
* "unixVer": "4.76"
|
|
179
|
+
* },
|
|
180
|
+
* "ios": {
|
|
181
|
+
* "osVer": "12.0",
|
|
182
|
+
* "uniVer": "√",
|
|
183
|
+
* "unixVer": "4.76"
|
|
184
|
+
* },
|
|
185
|
+
* "harmony": {
|
|
186
|
+
* "osVer": "5.0.0(11)",
|
|
187
|
+
* "uniVer": "4.25",
|
|
188
|
+
* "unixVer": "4.76"
|
|
189
|
+
* }
|
|
190
|
+
* },
|
|
191
|
+
* "mp": {
|
|
192
|
+
* "weixin": {
|
|
193
|
+
* "hostVer": "2.8.0",
|
|
194
|
+
* "uniVer": "√",
|
|
195
|
+
* "unixVer": "4.41"
|
|
196
|
+
* },
|
|
197
|
+
* "alipay": {
|
|
198
|
+
* "hostVer": "√",
|
|
199
|
+
* "uniVer": "√",
|
|
200
|
+
* "unixVer": "x"
|
|
201
|
+
* },
|
|
202
|
+
* "baidu": {
|
|
203
|
+
* "hostVer": "√",
|
|
204
|
+
* "uniVer": "√",
|
|
205
|
+
* "unixVer": "x"
|
|
206
|
+
* },
|
|
207
|
+
* "toutiao": {
|
|
208
|
+
* "hostVer": "√",
|
|
209
|
+
* "uniVer": "√",
|
|
210
|
+
* "unixVer": "x"
|
|
211
|
+
* },
|
|
212
|
+
* "lark": {
|
|
213
|
+
* "hostVer": "√",
|
|
214
|
+
* "uniVer": "√",
|
|
215
|
+
* "unixVer": "x"
|
|
216
|
+
* },
|
|
217
|
+
* "qq": {
|
|
218
|
+
* "hostVer": "√",
|
|
219
|
+
* "uniVer": "√",
|
|
220
|
+
* "unixVer": "x"
|
|
221
|
+
* },
|
|
222
|
+
* "kuaishou": {
|
|
223
|
+
* "hostVer": "√",
|
|
224
|
+
* "uniVer": "√",
|
|
225
|
+
* "unixVer": "x"
|
|
226
|
+
* },
|
|
227
|
+
* "jd": {
|
|
228
|
+
* "hostVer": "√",
|
|
229
|
+
* "uniVer": "√",
|
|
230
|
+
* "unixVer": "x"
|
|
231
|
+
* }
|
|
232
|
+
* },
|
|
233
|
+
* "web": {
|
|
234
|
+
* "uniVer": "√",
|
|
235
|
+
* "unixVer": "4.0"
|
|
236
|
+
* }
|
|
237
|
+
* }
|
|
238
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.stopLocationUpdate.html
|
|
239
|
+
*/
|
|
240
|
+
stopLocationUpdate(options:StopLocationUpdateOptions):void
|
|
241
|
+
/**
|
|
242
|
+
* @description 监听实时地理位置变化事件
|
|
243
|
+
* @uniPlatform {
|
|
244
|
+
* "app": {
|
|
245
|
+
* "android": {
|
|
246
|
+
* "osVer": "5.0",
|
|
247
|
+
* "uniVer": "√",
|
|
248
|
+
* "unixVer": "4.76"
|
|
249
|
+
* },
|
|
250
|
+
* "ios": {
|
|
251
|
+
* "osVer": "12.0",
|
|
252
|
+
* "uniVer": "√",
|
|
253
|
+
* "unixVer": "4.76"
|
|
254
|
+
* },
|
|
255
|
+
* "harmony": {
|
|
256
|
+
* "osVer": "5.0.0(11)",
|
|
257
|
+
* "uniVer": "4.25",
|
|
258
|
+
* "unixVer": "4.76"
|
|
259
|
+
* }
|
|
260
|
+
* },
|
|
261
|
+
* "mp": {
|
|
262
|
+
* "weixin": {
|
|
263
|
+
* "hostVer": "2.8.1",
|
|
264
|
+
* "uniVer": "√",
|
|
265
|
+
* "unixVer": "4.41"
|
|
266
|
+
* },
|
|
267
|
+
* "alipay": {
|
|
268
|
+
* "hostVer": "√",
|
|
269
|
+
* "uniVer": "√",
|
|
270
|
+
* "unixVer": "x"
|
|
271
|
+
* },
|
|
272
|
+
* "baidu": {
|
|
273
|
+
* "hostVer": "√",
|
|
274
|
+
* "uniVer": "√",
|
|
275
|
+
* "unixVer": "x"
|
|
276
|
+
* },
|
|
277
|
+
* "toutiao": {
|
|
278
|
+
* "hostVer": "√",
|
|
279
|
+
* "uniVer": "√",
|
|
280
|
+
* "unixVer": "x"
|
|
281
|
+
* },
|
|
282
|
+
* "lark": {
|
|
283
|
+
* "hostVer": "√",
|
|
284
|
+
* "uniVer": "√",
|
|
285
|
+
* "unixVer": "x"
|
|
286
|
+
* },
|
|
287
|
+
* "qq": {
|
|
288
|
+
* "hostVer": "√",
|
|
289
|
+
* "uniVer": "√",
|
|
290
|
+
* "unixVer": "x"
|
|
291
|
+
* },
|
|
292
|
+
* "kuaishou": {
|
|
293
|
+
* "hostVer": "√",
|
|
294
|
+
* "uniVer": "√",
|
|
295
|
+
* "unixVer": "x"
|
|
296
|
+
* },
|
|
297
|
+
* "jd": {
|
|
298
|
+
* "hostVer": "√",
|
|
299
|
+
* "uniVer": "√",
|
|
300
|
+
* "unixVer": "x"
|
|
301
|
+
* }
|
|
302
|
+
* },
|
|
303
|
+
* "web": {
|
|
304
|
+
* "uniVer": "√",
|
|
305
|
+
* "unixVer": "4.0"
|
|
306
|
+
* }
|
|
307
|
+
* }
|
|
308
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html
|
|
309
|
+
*/
|
|
310
|
+
onLocationChange(listener:OnLocationChangeCallback):number
|
|
311
|
+
/**
|
|
312
|
+
* @description 移除实时地理位置变化事件。
|
|
313
|
+
* @uniPlatform {
|
|
314
|
+
* "app": {
|
|
315
|
+
* "android": {
|
|
316
|
+
* "osVer": "5.0",
|
|
317
|
+
* "uniVer": "√",
|
|
318
|
+
* "unixVer": "4.76"
|
|
319
|
+
* },
|
|
320
|
+
* "ios": {
|
|
321
|
+
* "osVer": "12.0",
|
|
322
|
+
* "uniVer": "√",
|
|
323
|
+
* "unixVer": "4.76"
|
|
324
|
+
* },
|
|
325
|
+
* "harmony": {
|
|
326
|
+
* "osVer": "5.0.0(11)",
|
|
327
|
+
* "uniVer": "4.25",
|
|
328
|
+
* "unixVer": "4.76"
|
|
329
|
+
* }
|
|
330
|
+
* },
|
|
331
|
+
* "mp": {
|
|
332
|
+
* "weixin": {
|
|
333
|
+
* "hostVer": "2.8.1",
|
|
334
|
+
* "uniVer": "√",
|
|
335
|
+
* "unixVer": "4.41"
|
|
336
|
+
* },
|
|
337
|
+
* "alipay": {
|
|
338
|
+
* "hostVer": "√",
|
|
339
|
+
* "uniVer": "√",
|
|
340
|
+
* "unixVer": "x"
|
|
341
|
+
* },
|
|
342
|
+
* "baidu": {
|
|
343
|
+
* "hostVer": "√",
|
|
344
|
+
* "uniVer": "√",
|
|
345
|
+
* "unixVer": "x"
|
|
346
|
+
* },
|
|
347
|
+
* "toutiao": {
|
|
348
|
+
* "hostVer": "√",
|
|
349
|
+
* "uniVer": "√",
|
|
350
|
+
* "unixVer": "x"
|
|
351
|
+
* },
|
|
352
|
+
* "lark": {
|
|
353
|
+
* "hostVer": "√",
|
|
354
|
+
* "uniVer": "√",
|
|
355
|
+
* "unixVer": "x"
|
|
356
|
+
* },
|
|
357
|
+
* "qq": {
|
|
358
|
+
* "hostVer": "√",
|
|
359
|
+
* "uniVer": "√",
|
|
360
|
+
* "unixVer": "x"
|
|
361
|
+
* },
|
|
362
|
+
* "kuaishou": {
|
|
363
|
+
* "hostVer": "√",
|
|
364
|
+
* "uniVer": "√",
|
|
365
|
+
* "unixVer": "x"
|
|
366
|
+
* },
|
|
367
|
+
* "jd": {
|
|
368
|
+
* "hostVer": "√",
|
|
369
|
+
* "uniVer": "√",
|
|
370
|
+
* "unixVer": "x"
|
|
371
|
+
* }
|
|
372
|
+
* },
|
|
373
|
+
* "web": {
|
|
374
|
+
* "uniVer": "√",
|
|
375
|
+
* "unixVer": "4.0"
|
|
376
|
+
* }
|
|
377
|
+
* }
|
|
378
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.offLocationChange.html
|
|
379
|
+
*/
|
|
380
|
+
offLocationChange(listener?:number|OnLocationChangeCallback|null):void
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* @description 开始监听实时地理位置信息变化事件,应用进入前后台时均接收实时地理位置信息。
|
|
384
|
+
* @param {StartLocationUpdateBackgroundOptions}
|
|
385
|
+
* @uniPlatform {
|
|
386
|
+
* "app": {
|
|
387
|
+
* "android": {
|
|
388
|
+
* "osVer": "5.0",
|
|
389
|
+
* "uniVer": "√",
|
|
390
|
+
* "unixVer": "4.76"
|
|
391
|
+
* },
|
|
392
|
+
* "ios": {
|
|
393
|
+
* "osVer": "12.0",
|
|
394
|
+
* "uniVer": "√",
|
|
395
|
+
* "unixVer": "4.76"
|
|
396
|
+
* },
|
|
397
|
+
* "harmony": {
|
|
398
|
+
* "osVer": "5.0.0(11)",
|
|
399
|
+
* "uniVer": "4.25",
|
|
400
|
+
* "unixVer": "4.76"
|
|
401
|
+
* }
|
|
402
|
+
* },
|
|
403
|
+
* "mp": {
|
|
404
|
+
* "weixin": {
|
|
405
|
+
* "hostVer": "2.8.0",
|
|
406
|
+
* "uniVer": "√",
|
|
407
|
+
* "unixVer": "4.41"
|
|
408
|
+
* },
|
|
409
|
+
* "alipay": {
|
|
410
|
+
* "hostVer": "√",
|
|
411
|
+
* "uniVer": "√",
|
|
412
|
+
* "unixVer": "x"
|
|
413
|
+
* },
|
|
414
|
+
* "baidu": {
|
|
415
|
+
* "hostVer": "√",
|
|
416
|
+
* "uniVer": "√",
|
|
417
|
+
* "unixVer": "x"
|
|
418
|
+
* },
|
|
419
|
+
* "toutiao": {
|
|
420
|
+
* "hostVer": "√",
|
|
421
|
+
* "uniVer": "√",
|
|
422
|
+
* "unixVer": "x"
|
|
423
|
+
* },
|
|
424
|
+
* "lark": {
|
|
425
|
+
* "hostVer": "√",
|
|
426
|
+
* "uniVer": "√",
|
|
427
|
+
* "unixVer": "x"
|
|
428
|
+
* },
|
|
429
|
+
* "qq": {
|
|
430
|
+
* "hostVer": "√",
|
|
431
|
+
* "uniVer": "√",
|
|
432
|
+
* "unixVer": "x"
|
|
433
|
+
* },
|
|
434
|
+
* "kuaishou": {
|
|
435
|
+
* "hostVer": "√",
|
|
436
|
+
* "uniVer": "√",
|
|
437
|
+
* "unixVer": "x"
|
|
438
|
+
* },
|
|
439
|
+
* "jd": {
|
|
440
|
+
* "hostVer": "√",
|
|
441
|
+
* "uniVer": "√",
|
|
442
|
+
* "unixVer": "x"
|
|
443
|
+
* }
|
|
444
|
+
* },
|
|
445
|
+
* "web": {
|
|
446
|
+
* "uniVer": "√",
|
|
447
|
+
* "unixVer": "4.0"
|
|
448
|
+
* }
|
|
449
|
+
* }
|
|
450
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdateBackground.html
|
|
451
|
+
*/
|
|
452
|
+
startLocationUpdateBackground(options:StartLocationUpdateBackgroundOptions):void
|
|
453
|
+
/**
|
|
454
|
+
* @description 监听持续定位接口返回失败时触发。
|
|
455
|
+
* @uniPlatform {
|
|
456
|
+
* "app": {
|
|
457
|
+
* "android": {
|
|
458
|
+
* "osVer": "5.0",
|
|
459
|
+
* "uniVer": "√",
|
|
460
|
+
* "unixVer": "4.76"
|
|
461
|
+
* },
|
|
462
|
+
* "ios": {
|
|
463
|
+
* "osVer": "12.0",
|
|
464
|
+
* "uniVer": "√",
|
|
465
|
+
* "unixVer": "4.76"
|
|
466
|
+
* },
|
|
467
|
+
* "harmony": {
|
|
468
|
+
* "osVer": "5.0.0(11)",
|
|
469
|
+
* "uniVer": "4.25",
|
|
470
|
+
* "unixVer": "4.76"
|
|
471
|
+
* }
|
|
472
|
+
* },
|
|
473
|
+
* "mp": {
|
|
474
|
+
* "weixin": {
|
|
475
|
+
* "hostVer": "2.19.5",
|
|
476
|
+
* "uniVer": "√",
|
|
477
|
+
* "unixVer": "4.41"
|
|
478
|
+
* },
|
|
479
|
+
* "alipay": {
|
|
480
|
+
* "hostVer": "√",
|
|
481
|
+
* "uniVer": "√",
|
|
482
|
+
* "unixVer": "x"
|
|
483
|
+
* },
|
|
484
|
+
* "baidu": {
|
|
485
|
+
* "hostVer": "√",
|
|
486
|
+
* "uniVer": "√",
|
|
487
|
+
* "unixVer": "x"
|
|
488
|
+
* },
|
|
489
|
+
* "toutiao": {
|
|
490
|
+
* "hostVer": "√",
|
|
491
|
+
* "uniVer": "√",
|
|
492
|
+
* "unixVer": "x"
|
|
493
|
+
* },
|
|
494
|
+
* "lark": {
|
|
495
|
+
* "hostVer": "√",
|
|
496
|
+
* "uniVer": "√",
|
|
497
|
+
* "unixVer": "x"
|
|
498
|
+
* },
|
|
499
|
+
* "qq": {
|
|
500
|
+
* "hostVer": "√",
|
|
501
|
+
* "uniVer": "√",
|
|
502
|
+
* "unixVer": "x"
|
|
503
|
+
* },
|
|
504
|
+
* "kuaishou": {
|
|
505
|
+
* "hostVer": "√",
|
|
506
|
+
* "uniVer": "√",
|
|
507
|
+
* "unixVer": "x"
|
|
508
|
+
* },
|
|
509
|
+
* "jd": {
|
|
510
|
+
* "hostVer": "√",
|
|
511
|
+
* "uniVer": "√",
|
|
512
|
+
* "unixVer": "x"
|
|
513
|
+
* }
|
|
514
|
+
* },
|
|
515
|
+
* "web": {
|
|
516
|
+
* "uniVer": "√",
|
|
517
|
+
* "unixVer": "4.0"
|
|
518
|
+
* }
|
|
519
|
+
* }
|
|
520
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChangeError.html
|
|
521
|
+
*/
|
|
522
|
+
onLocationChangeError(listener:OnLocationChangeErrorCallback):number
|
|
523
|
+
/**
|
|
524
|
+
* @description 移除监听持续定位接口返回失败事件。
|
|
525
|
+
* @uniPlatform {
|
|
526
|
+
* "app": {
|
|
527
|
+
* "android": {
|
|
528
|
+
* "osVer": "5.0",
|
|
529
|
+
* "uniVer": "√",
|
|
530
|
+
* "unixVer": "4.76"
|
|
531
|
+
* },
|
|
532
|
+
* "ios": {
|
|
533
|
+
* "osVer": "12.0",
|
|
534
|
+
* "uniVer": "√",
|
|
535
|
+
* "unixVer": "4.76"
|
|
536
|
+
* },
|
|
537
|
+
* "harmony": {
|
|
538
|
+
* "osVer": "5.0.0(11)",
|
|
539
|
+
* "uniVer": "4.25",
|
|
540
|
+
* "unixVer": "4.76"
|
|
541
|
+
* }
|
|
542
|
+
* },
|
|
543
|
+
* "mp": {
|
|
544
|
+
* "weixin": {
|
|
545
|
+
* "hostVer": "2.19.5",
|
|
546
|
+
* "uniVer": "√",
|
|
547
|
+
* "unixVer": "4.41"
|
|
548
|
+
* },
|
|
549
|
+
* "alipay": {
|
|
550
|
+
* "hostVer": "√",
|
|
551
|
+
* "uniVer": "√",
|
|
552
|
+
* "unixVer": "x"
|
|
553
|
+
* },
|
|
554
|
+
* "baidu": {
|
|
555
|
+
* "hostVer": "√",
|
|
556
|
+
* "uniVer": "√",
|
|
557
|
+
* "unixVer": "x"
|
|
558
|
+
* },
|
|
559
|
+
* "toutiao": {
|
|
560
|
+
* "hostVer": "√",
|
|
561
|
+
* "uniVer": "√",
|
|
562
|
+
* "unixVer": "x"
|
|
563
|
+
* },
|
|
564
|
+
* "lark": {
|
|
565
|
+
* "hostVer": "√",
|
|
566
|
+
* "uniVer": "√",
|
|
567
|
+
* "unixVer": "x"
|
|
568
|
+
* },
|
|
569
|
+
* "qq": {
|
|
570
|
+
* "hostVer": "√",
|
|
571
|
+
* "uniVer": "√",
|
|
572
|
+
* "unixVer": "x"
|
|
573
|
+
* },
|
|
574
|
+
* "kuaishou": {
|
|
575
|
+
* "hostVer": "√",
|
|
576
|
+
* "uniVer": "√",
|
|
577
|
+
* "unixVer": "x"
|
|
578
|
+
* },
|
|
579
|
+
* "jd": {
|
|
580
|
+
* "hostVer": "√",
|
|
581
|
+
* "uniVer": "√",
|
|
582
|
+
* "unixVer": "x"
|
|
583
|
+
* }
|
|
584
|
+
* },
|
|
585
|
+
* "web": {
|
|
586
|
+
* "uniVer": "√",
|
|
587
|
+
* "unixVer": "4.0"
|
|
588
|
+
* }
|
|
589
|
+
* }
|
|
590
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.offLocationChangeError.html
|
|
591
|
+
*/
|
|
592
|
+
offLocationChangeError(listener?:number|OnLocationChangeErrorCallback|null):void
|
|
593
|
+
|
|
98
594
|
}
|
|
99
595
|
|
|
100
596
|
/**
|
|
@@ -117,7 +613,7 @@ export type LocationErrorCode =
|
|
|
117
613
|
* "unixVer": "4.11"
|
|
118
614
|
* },
|
|
119
615
|
* "harmony": {
|
|
120
|
-
* "osVer": "
|
|
616
|
+
* "osVer": "5.0.0(11)",
|
|
121
617
|
* "uniVer": "4.25",
|
|
122
618
|
* "unixVer": "4.61"
|
|
123
619
|
* }
|
|
@@ -145,7 +641,7 @@ export type LocationErrorCode =
|
|
|
145
641
|
* "unixVer": "4.11"
|
|
146
642
|
* },
|
|
147
643
|
* "harmony": {
|
|
148
|
-
* "osVer": "
|
|
644
|
+
* "osVer": "5.0.0(11)",
|
|
149
645
|
* "uniVer": "4.25",
|
|
150
646
|
* "unixVer": "4.61"
|
|
151
647
|
* }
|
|
@@ -173,7 +669,7 @@ export type LocationErrorCode =
|
|
|
173
669
|
* "unixVer": "4.11"
|
|
174
670
|
* },
|
|
175
671
|
* "harmony": {
|
|
176
|
-
* "osVer": "
|
|
672
|
+
* "osVer": "5.0.0(11)",
|
|
177
673
|
* "uniVer": "4.25",
|
|
178
674
|
* "unixVer": "4.61"
|
|
179
675
|
* }
|
|
@@ -200,7 +696,7 @@ export type LocationErrorCode =
|
|
|
200
696
|
* "unixVer": "4.11"
|
|
201
697
|
* },
|
|
202
698
|
* "harmony": {
|
|
203
|
-
* "osVer": "
|
|
699
|
+
* "osVer": "5.0.0(11)",
|
|
204
700
|
* "uniVer": "4.25",
|
|
205
701
|
* "unixVer": "4.61"
|
|
206
702
|
* }
|
|
@@ -228,7 +724,7 @@ export type LocationErrorCode =
|
|
|
228
724
|
* "unixVer": "4.11"
|
|
229
725
|
* },
|
|
230
726
|
* "harmony": {
|
|
231
|
-
* "osVer": "
|
|
727
|
+
* "osVer": "5.0.0(11)",
|
|
232
728
|
* "uniVer": "4.25",
|
|
233
729
|
* "unixVer": "4.61"
|
|
234
730
|
* }
|
|
@@ -256,7 +752,7 @@ export type LocationErrorCode =
|
|
|
256
752
|
* "unixVer": "4.11"
|
|
257
753
|
* },
|
|
258
754
|
* "harmony": {
|
|
259
|
-
* "osVer": "
|
|
755
|
+
* "osVer": "5.0.0(11)",
|
|
260
756
|
* "uniVer": "4.25",
|
|
261
757
|
* "unixVer": "4.61"
|
|
262
758
|
* }
|
|
@@ -284,7 +780,7 @@ export type LocationErrorCode =
|
|
|
284
780
|
* "unixVer": "4.11"
|
|
285
781
|
* },
|
|
286
782
|
* "harmony": {
|
|
287
|
-
* "osVer": "
|
|
783
|
+
* "osVer": "5.0.0(11)",
|
|
288
784
|
* "uniVer": "4.25",
|
|
289
785
|
* "unixVer": "4.61"
|
|
290
786
|
* }
|
|
@@ -309,6 +805,11 @@ export type LocationErrorCode =
|
|
|
309
805
|
* "osVer": "12.0",
|
|
310
806
|
* "uniVer": "√",
|
|
311
807
|
* "unixVer": "4.25"
|
|
808
|
+
* },
|
|
809
|
+
* "harmony": {
|
|
810
|
+
* "osVer": "5.0.0(11)",
|
|
811
|
+
* "uniVer": "4.25",
|
|
812
|
+
* "unixVer": "4.76"
|
|
312
813
|
* }
|
|
313
814
|
* }
|
|
314
815
|
* }
|
|
@@ -327,6 +828,11 @@ export type LocationErrorCode =
|
|
|
327
828
|
* "osVer": "12.0",
|
|
328
829
|
* "uniVer": "√",
|
|
329
830
|
* "unixVer": "4.25"
|
|
831
|
+
* },
|
|
832
|
+
* "harmony": {
|
|
833
|
+
* "osVer": "5.0.0(11)",
|
|
834
|
+
* "uniVer": "4.25",
|
|
835
|
+
* "unixVer": "4.76"
|
|
330
836
|
* }
|
|
331
837
|
* }
|
|
332
838
|
* }
|
|
@@ -363,6 +869,11 @@ export type LocationErrorCode =
|
|
|
363
869
|
* "osVer": "12.0",
|
|
364
870
|
* "uniVer": "√",
|
|
365
871
|
* "unixVer": "4.25"
|
|
872
|
+
* },
|
|
873
|
+
* "harmony": {
|
|
874
|
+
* "osVer": "5.0.0(11)",
|
|
875
|
+
* "uniVer": "4.25",
|
|
876
|
+
* "unixVer": "4.76"
|
|
366
877
|
* }
|
|
367
878
|
* }
|
|
368
879
|
* }
|
|
@@ -381,6 +892,11 @@ export type LocationErrorCode =
|
|
|
381
892
|
* "osVer": "12.0",
|
|
382
893
|
* "uniVer": "√",
|
|
383
894
|
* "unixVer": "4.25"
|
|
895
|
+
* },
|
|
896
|
+
* "harmony": {
|
|
897
|
+
* "osVer": "5.0.0(11)",
|
|
898
|
+
* "uniVer": "4.25",
|
|
899
|
+
* "unixVer": "4.76"
|
|
384
900
|
* }
|
|
385
901
|
* }
|
|
386
902
|
* }
|
|
@@ -399,6 +915,11 @@ export type LocationErrorCode =
|
|
|
399
915
|
* "osVer": "12.0",
|
|
400
916
|
* "uniVer": "√",
|
|
401
917
|
* "unixVer": "4.25"
|
|
918
|
+
* },
|
|
919
|
+
* "harmony": {
|
|
920
|
+
* "osVer": "x",
|
|
921
|
+
* "uniVer": "x",
|
|
922
|
+
* "unixVer": "x"
|
|
402
923
|
* }
|
|
403
924
|
* }
|
|
404
925
|
* }
|
|
@@ -417,6 +938,11 @@ export type LocationErrorCode =
|
|
|
417
938
|
* "osVer": "12.0",
|
|
418
939
|
* "uniVer": "√",
|
|
419
940
|
* "unixVer": "4.25"
|
|
941
|
+
* },
|
|
942
|
+
* "harmony": {
|
|
943
|
+
* "osVer": "x",
|
|
944
|
+
* "uniVer": "x",
|
|
945
|
+
* "unixVer": "x"
|
|
420
946
|
* }
|
|
421
947
|
* }
|
|
422
948
|
* }
|
|
@@ -435,6 +961,11 @@ export type LocationErrorCode =
|
|
|
435
961
|
* "osVer": "12.0",
|
|
436
962
|
* "uniVer": "√",
|
|
437
963
|
* "unixVer": "4.25"
|
|
964
|
+
* },
|
|
965
|
+
* "harmony": {
|
|
966
|
+
* "osVer": "x",
|
|
967
|
+
* "uniVer": "x",
|
|
968
|
+
* "unixVer": "x"
|
|
438
969
|
* }
|
|
439
970
|
* }
|
|
440
971
|
* }
|
|
@@ -453,6 +984,11 @@ export type LocationErrorCode =
|
|
|
453
984
|
* "osVer": "12.0",
|
|
454
985
|
* "uniVer": "√",
|
|
455
986
|
* "unixVer": "4.25"
|
|
987
|
+
* },
|
|
988
|
+
* "harmony": {
|
|
989
|
+
* "osVer": "x",
|
|
990
|
+
* "uniVer": "x",
|
|
991
|
+
* "unixVer": "x"
|
|
456
992
|
* }
|
|
457
993
|
* }
|
|
458
994
|
* }
|
|
@@ -471,6 +1007,11 @@ export type LocationErrorCode =
|
|
|
471
1007
|
* "osVer": "12.0",
|
|
472
1008
|
* "uniVer": "√",
|
|
473
1009
|
* "unixVer": "4.25"
|
|
1010
|
+
* },
|
|
1011
|
+
* "harmony": {
|
|
1012
|
+
* "osVer": "x",
|
|
1013
|
+
* "uniVer": "x",
|
|
1014
|
+
* "unixVer": "x"
|
|
474
1015
|
* }
|
|
475
1016
|
* }
|
|
476
1017
|
* }
|
|
@@ -489,6 +1030,11 @@ export type LocationErrorCode =
|
|
|
489
1030
|
* "osVer": "12.0",
|
|
490
1031
|
* "uniVer": "√",
|
|
491
1032
|
* "unixVer": "4.25"
|
|
1033
|
+
* },
|
|
1034
|
+
* "harmony": {
|
|
1035
|
+
* "osVer": "x",
|
|
1036
|
+
* "uniVer": "x",
|
|
1037
|
+
* "unixVer": "x"
|
|
492
1038
|
* }
|
|
493
1039
|
* }
|
|
494
1040
|
* }
|
|
@@ -507,14 +1053,110 @@ export type LocationErrorCode =
|
|
|
507
1053
|
* "osVer": "12.0",
|
|
508
1054
|
* "uniVer": "√",
|
|
509
1055
|
* "unixVer": "4.25"
|
|
1056
|
+
* },
|
|
1057
|
+
* "harmony": {
|
|
1058
|
+
* "osVer": "x",
|
|
1059
|
+
* "uniVer": "x",
|
|
1060
|
+
* "unixVer": "x"
|
|
510
1061
|
* }
|
|
511
1062
|
* }
|
|
512
1063
|
* }
|
|
513
1064
|
*/
|
|
514
|
-
1505607
|
|
1065
|
+
1505607 |
|
|
1066
|
+
/**
|
|
1067
|
+
* 同一时间只能单个provider开启持续定位
|
|
1068
|
+
* @uniPlatform {
|
|
1069
|
+
* "app": {
|
|
1070
|
+
* "android": {
|
|
1071
|
+
* "osVer": "5.0",
|
|
1072
|
+
* "uniVer": "√",
|
|
1073
|
+
* "unixVer": "4.76"
|
|
1074
|
+
* },
|
|
1075
|
+
* "ios": {
|
|
1076
|
+
* "osVer": "12.0",
|
|
1077
|
+
* "uniVer": "√",
|
|
1078
|
+
* "unixVer": "4.76"
|
|
1079
|
+
* },
|
|
1080
|
+
* "harmony": {
|
|
1081
|
+
* "osVer": "x",
|
|
1082
|
+
* "uniVer": "x",
|
|
1083
|
+
* "unixVer": "x"
|
|
1084
|
+
* }
|
|
1085
|
+
* }
|
|
1086
|
+
* }
|
|
1087
|
+
*/
|
|
1088
|
+
1505608 |
|
|
1089
|
+
/**
|
|
1090
|
+
* iOS plist文件中缺少后台定位配置:UIBackgroundModes->location
|
|
1091
|
+
* @uniPlatform {
|
|
1092
|
+
* "app": {
|
|
1093
|
+
* "android": {
|
|
1094
|
+
* "osVer": "5.0",
|
|
1095
|
+
* "uniVer": "√",
|
|
1096
|
+
* "unixVer": "4.76"
|
|
1097
|
+
* },
|
|
1098
|
+
* "ios": {
|
|
1099
|
+
* "osVer": "12.0",
|
|
1100
|
+
* "uniVer": "√",
|
|
1101
|
+
* "unixVer": "4.76"
|
|
1102
|
+
* },
|
|
1103
|
+
* "harmony": {
|
|
1104
|
+
* "osVer": "x",
|
|
1105
|
+
* "uniVer": "x",
|
|
1106
|
+
* "unixVer": "x"
|
|
1107
|
+
* }
|
|
1108
|
+
* }
|
|
1109
|
+
* }
|
|
1110
|
+
*/
|
|
1111
|
+
1505702
|
|
1112
|
+
;
|
|
515
1113
|
|
|
516
1114
|
/**
|
|
517
1115
|
* 网络请求失败的错误回调参数
|
|
1116
|
+
* @uniPlatform {
|
|
1117
|
+
* "mp": {
|
|
1118
|
+
* "weixin": {
|
|
1119
|
+
* "hostVer": "√",
|
|
1120
|
+
* "uniVer": "√",
|
|
1121
|
+
* "unixVer": "4.41"
|
|
1122
|
+
* },
|
|
1123
|
+
* "alipay": {
|
|
1124
|
+
* "hostVer": "-",
|
|
1125
|
+
* "uniVer": "-",
|
|
1126
|
+
* "unixVer": "-"
|
|
1127
|
+
* },
|
|
1128
|
+
* "baidu": {
|
|
1129
|
+
* "hostVer": "-",
|
|
1130
|
+
* "uniVer": "-",
|
|
1131
|
+
* "unixVer": "-"
|
|
1132
|
+
* },
|
|
1133
|
+
* "toutiao": {
|
|
1134
|
+
* "hostVer": "-",
|
|
1135
|
+
* "uniVer": "-",
|
|
1136
|
+
* "unixVer": "-"
|
|
1137
|
+
* },
|
|
1138
|
+
* "lark": {
|
|
1139
|
+
* "hostVer": "-",
|
|
1140
|
+
* "uniVer": "-",
|
|
1141
|
+
* "unixVer": "-"
|
|
1142
|
+
* },
|
|
1143
|
+
* "qq": {
|
|
1144
|
+
* "hostVer": "-",
|
|
1145
|
+
* "uniVer": "-",
|
|
1146
|
+
* "unixVer": "-"
|
|
1147
|
+
* },
|
|
1148
|
+
* "kuaishou": {
|
|
1149
|
+
* "hostVer": "-",
|
|
1150
|
+
* "uniVer": "-",
|
|
1151
|
+
* "unixVer": "-"
|
|
1152
|
+
* },
|
|
1153
|
+
* "jd": {
|
|
1154
|
+
* "hostVer": "-",
|
|
1155
|
+
* "uniVer": "-",
|
|
1156
|
+
* "unixVer": "-"
|
|
1157
|
+
* }
|
|
1158
|
+
* }
|
|
1159
|
+
* }
|
|
518
1160
|
*/
|
|
519
1161
|
export interface IGetLocationFail extends IUniError {
|
|
520
1162
|
errCode: LocationErrorCode
|
|
@@ -522,7 +1164,6 @@ export interface IGetLocationFail extends IUniError {
|
|
|
522
1164
|
|
|
523
1165
|
export type GetLocationFail = IGetLocationFail
|
|
524
1166
|
|
|
525
|
-
|
|
526
1167
|
export type GetLocation = (options: GetLocationOptions) => void;
|
|
527
1168
|
export type GetLocationSuccess = {
|
|
528
1169
|
/**
|
|
@@ -541,7 +1182,7 @@ export type GetLocationSuccess = {
|
|
|
541
1182
|
* "unixVer": "4.11"
|
|
542
1183
|
* },
|
|
543
1184
|
* "harmony": {
|
|
544
|
-
* "osVer": "
|
|
1185
|
+
* "osVer": "5.0.0(11)",
|
|
545
1186
|
* "uniVer": "4.25",
|
|
546
1187
|
* "unixVer": "4.61"
|
|
547
1188
|
* }
|
|
@@ -569,7 +1210,7 @@ export type GetLocationSuccess = {
|
|
|
569
1210
|
* "unixVer": "4.11"
|
|
570
1211
|
* },
|
|
571
1212
|
* "harmony": {
|
|
572
|
-
* "osVer": "
|
|
1213
|
+
* "osVer": "5.0.0(11)",
|
|
573
1214
|
* "uniVer": "4.25",
|
|
574
1215
|
* "unixVer": "4.61"
|
|
575
1216
|
* }
|
|
@@ -597,7 +1238,7 @@ export type GetLocationSuccess = {
|
|
|
597
1238
|
* "unixVer": "4.11"
|
|
598
1239
|
* },
|
|
599
1240
|
* "harmony": {
|
|
600
|
-
* "osVer": "
|
|
1241
|
+
* "osVer": "5.0.0(11)",
|
|
601
1242
|
* "uniVer": "4.25",
|
|
602
1243
|
* "unixVer": "4.61"
|
|
603
1244
|
* }
|
|
@@ -666,7 +1307,7 @@ export type GetLocationSuccess = {
|
|
|
666
1307
|
* "unixVer": "4.11"
|
|
667
1308
|
* },
|
|
668
1309
|
* "harmony": {
|
|
669
|
-
* "osVer": "
|
|
1310
|
+
* "osVer": "5.0.0(11)",
|
|
670
1311
|
* "uniVer": "4.25",
|
|
671
1312
|
* "unixVer": "4.61"
|
|
672
1313
|
* }
|
|
@@ -736,7 +1377,7 @@ export type GetLocationSuccess = {
|
|
|
736
1377
|
* "unixVer": "4.11"
|
|
737
1378
|
* },
|
|
738
1379
|
* "harmony": {
|
|
739
|
-
* "osVer": "
|
|
1380
|
+
* "osVer": "5.0.0(11)",
|
|
740
1381
|
* "uniVer": "4.25",
|
|
741
1382
|
* "unixVer": "4.61"
|
|
742
1383
|
* }
|
|
@@ -806,9 +1447,9 @@ export type GetLocationSuccess = {
|
|
|
806
1447
|
* "unixVer": "4.11"
|
|
807
1448
|
* },
|
|
808
1449
|
* "harmony": {
|
|
809
|
-
* "osVer": "
|
|
810
|
-
* "uniVer": "
|
|
811
|
-
* "unixVer": "
|
|
1450
|
+
* "osVer": "5.0.0(11)",
|
|
1451
|
+
* "uniVer": "4.76",
|
|
1452
|
+
* "unixVer": "4.76"
|
|
812
1453
|
* }
|
|
813
1454
|
* },
|
|
814
1455
|
* "mp": {
|
|
@@ -861,7 +1502,7 @@ export type GetLocationSuccess = {
|
|
|
861
1502
|
*/
|
|
862
1503
|
verticalAccuracy: number,
|
|
863
1504
|
/**
|
|
864
|
-
* 水平精度,单位 m
|
|
1505
|
+
* 水平精度,单位 m(Android、HarmonyOS 无法获取,返回 0)
|
|
865
1506
|
* @defaultValue 0
|
|
866
1507
|
* @uniPlatform {
|
|
867
1508
|
* "app": {
|
|
@@ -999,7 +1640,7 @@ export type GetLocationSuccess = {
|
|
|
999
1640
|
* }
|
|
1000
1641
|
* }
|
|
1001
1642
|
*/
|
|
1002
|
-
address
|
|
1643
|
+
address?: string | null
|
|
1003
1644
|
};
|
|
1004
1645
|
type GetLocationSuccessCallback = (result: GetLocationSuccess) => void;
|
|
1005
1646
|
type GetLocationFailCallback = (result: GetLocationFail) => void;
|
|
@@ -1024,9 +1665,9 @@ export type GetLocationOptions = {
|
|
|
1024
1665
|
* "unixVer": "4.25"
|
|
1025
1666
|
* },
|
|
1026
1667
|
* "harmony": {
|
|
1027
|
-
* "osVer": "
|
|
1028
|
-
|
|
1029
|
-
|
|
1668
|
+
* "osVer": "5.0.0(11)",
|
|
1669
|
+
* "uniVer": "4.25",
|
|
1670
|
+
* "unixVer": "4.76"
|
|
1030
1671
|
* }
|
|
1031
1672
|
* },
|
|
1032
1673
|
* "mp": {
|
|
@@ -1094,9 +1735,9 @@ export type GetLocationOptions = {
|
|
|
1094
1735
|
* "unixVer": "4.11"
|
|
1095
1736
|
* },
|
|
1096
1737
|
* "harmony": {
|
|
1097
|
-
* "osVer": "
|
|
1738
|
+
* "osVer": "5.0.0(11)",
|
|
1098
1739
|
* "uniVer": "4.25",
|
|
1099
|
-
* "unixVer": "4.
|
|
1740
|
+
* "unixVer": "4.76"
|
|
1100
1741
|
* }
|
|
1101
1742
|
* },
|
|
1102
1743
|
* "mp": {
|
|
@@ -1293,9 +1934,9 @@ export type GetLocationOptions = {
|
|
|
1293
1934
|
* "unixVer": "4.11"
|
|
1294
1935
|
* },
|
|
1295
1936
|
* "harmony": {
|
|
1296
|
-
* "osVer": "
|
|
1937
|
+
* "osVer": "5.0.0(11)",
|
|
1297
1938
|
* "uniVer": "4.25",
|
|
1298
|
-
* "unixVer": "4.
|
|
1939
|
+
* "unixVer": "4.76"
|
|
1299
1940
|
* }
|
|
1300
1941
|
* },
|
|
1301
1942
|
* "mp": {
|
|
@@ -1349,7 +1990,7 @@ export type GetLocationOptions = {
|
|
|
1349
1990
|
altitude?: boolean | null,
|
|
1350
1991
|
/**
|
|
1351
1992
|
* 传入 true 会解析地址;
|
|
1352
|
-
* 使用系统定位时平台差异:iOS支持逆地理编码,Android不支持;
|
|
1993
|
+
* 使用系统定位时平台差异:iOS支持逆地理编码,Android、HarmonyOS 不支持;
|
|
1353
1994
|
* @type boolean
|
|
1354
1995
|
* @defaultValue false
|
|
1355
1996
|
* @uniPlatform {
|
|
@@ -1435,9 +2076,9 @@ export type GetLocationOptions = {
|
|
|
1435
2076
|
* "unixVer": "4.11"
|
|
1436
2077
|
* },
|
|
1437
2078
|
* "harmony": {
|
|
1438
|
-
* "osVer": "
|
|
2079
|
+
* "osVer": "5.0.0(11)",
|
|
1439
2080
|
* "uniVer": "4.25",
|
|
1440
|
-
* "unixVer": "4.
|
|
2081
|
+
* "unixVer": "4.76"
|
|
1441
2082
|
* }
|
|
1442
2083
|
* },
|
|
1443
2084
|
* "mp": {
|
|
@@ -1506,9 +2147,9 @@ export type GetLocationOptions = {
|
|
|
1506
2147
|
* "unixVer": "4.11"
|
|
1507
2148
|
* },
|
|
1508
2149
|
* "harmony": {
|
|
1509
|
-
* "osVer": "
|
|
2150
|
+
* "osVer": "5.0.0(11)",
|
|
1510
2151
|
* "uniVer": "4.25",
|
|
1511
|
-
* "unixVer": "4.
|
|
2152
|
+
* "unixVer": "4.76"
|
|
1512
2153
|
* }
|
|
1513
2154
|
* },
|
|
1514
2155
|
* "mp": {
|
|
@@ -1575,9 +2216,9 @@ export type GetLocationOptions = {
|
|
|
1575
2216
|
* "unixVer": "4.11"
|
|
1576
2217
|
* },
|
|
1577
2218
|
* "harmony": {
|
|
1578
|
-
* "osVer": "
|
|
2219
|
+
* "osVer": "5.0.0(11)",
|
|
1579
2220
|
* "uniVer": "4.25",
|
|
1580
|
-
* "unixVer": "4.
|
|
2221
|
+
* "unixVer": "4.76"
|
|
1581
2222
|
* }
|
|
1582
2223
|
* },
|
|
1583
2224
|
* "mp": {
|
|
@@ -1644,9 +2285,9 @@ export type GetLocationOptions = {
|
|
|
1644
2285
|
* "unixVer": "4.11"
|
|
1645
2286
|
* },
|
|
1646
2287
|
* "harmony": {
|
|
1647
|
-
* "osVer": "
|
|
2288
|
+
* "osVer": "5.0.0(11)",
|
|
1648
2289
|
* "uniVer": "4.25",
|
|
1649
|
-
* "unixVer": "4.
|
|
2290
|
+
* "unixVer": "4.76"
|
|
1650
2291
|
* }
|
|
1651
2292
|
* },
|
|
1652
2293
|
* "mp": {
|
|
@@ -1713,9 +2354,9 @@ export type GetLocationOptions = {
|
|
|
1713
2354
|
* "unixVer": "4.11"
|
|
1714
2355
|
* },
|
|
1715
2356
|
* "harmony": {
|
|
1716
|
-
* "osVer": "
|
|
2357
|
+
* "osVer": "5.0.0(11)",
|
|
1717
2358
|
* "uniVer": "4.25",
|
|
1718
|
-
* "unixVer": "4.
|
|
2359
|
+
* "unixVer": "4.76"
|
|
1719
2360
|
* }
|
|
1720
2361
|
* },
|
|
1721
2362
|
* "mp": {
|
|
@@ -1768,3 +2409,1038 @@ export type GetLocationOptions = {
|
|
|
1768
2409
|
*/
|
|
1769
2410
|
complete?: GetLocationCompleteCallback | null
|
|
1770
2411
|
};
|
|
2412
|
+
|
|
2413
|
+
export type StartLocationUpdateSuccess = {}
|
|
2414
|
+
type StartLocationUpdateSuccessCallback = (result:StartLocationUpdateSuccess) => void;
|
|
2415
|
+
type StartLocationUpdateFailCallback = (result: IGetLocationFail) => void;
|
|
2416
|
+
type StartLocationUpdateComplete = any;
|
|
2417
|
+
type StartLocationUpdateCompleteCallback = (result: StartLocationUpdateComplete) => void;
|
|
2418
|
+
|
|
2419
|
+
export type StartLocationUpdateOptionsType =
|
|
2420
|
+
/**
|
|
2421
|
+
* @description wgs84坐标系,系统定位默认取值wgs84,系统定位仅支持wgs84坐标系
|
|
2422
|
+
* @uniPlatform {
|
|
2423
|
+
* "app": {
|
|
2424
|
+
* "android": {
|
|
2425
|
+
* "osVer": "5.0",
|
|
2426
|
+
* "uniVer": "√",
|
|
2427
|
+
* "unixVer": "4.76"
|
|
2428
|
+
* },
|
|
2429
|
+
* "ios": {
|
|
2430
|
+
* "osVer": "12.0",
|
|
2431
|
+
* "uniVer": "√",
|
|
2432
|
+
* "unixVer": "4.76"
|
|
2433
|
+
* },
|
|
2434
|
+
* "harmony": {
|
|
2435
|
+
* "osVer": "5.0.0(11)",
|
|
2436
|
+
* "uniVer": "4.25",
|
|
2437
|
+
* "unixVer": "4.76"
|
|
2438
|
+
* }
|
|
2439
|
+
* },
|
|
2440
|
+
* "mp": {
|
|
2441
|
+
* "weixin": {
|
|
2442
|
+
* "hostVer": "√",
|
|
2443
|
+
* "uniVer": "√",
|
|
2444
|
+
* "unixVer": "x"
|
|
2445
|
+
* },
|
|
2446
|
+
* "alipay": {
|
|
2447
|
+
* "hostVer": "√",
|
|
2448
|
+
* "uniVer": "√",
|
|
2449
|
+
* "unixVer": "x"
|
|
2450
|
+
* },
|
|
2451
|
+
* "baidu": {
|
|
2452
|
+
* "hostVer": "√",
|
|
2453
|
+
* "uniVer": "√",
|
|
2454
|
+
* "unixVer": "x"
|
|
2455
|
+
* },
|
|
2456
|
+
* "toutiao": {
|
|
2457
|
+
* "hostVer": "√",
|
|
2458
|
+
* "uniVer": "√",
|
|
2459
|
+
* "unixVer": "x"
|
|
2460
|
+
* },
|
|
2461
|
+
* "lark": {
|
|
2462
|
+
* "hostVer": "√",
|
|
2463
|
+
* "uniVer": "√",
|
|
2464
|
+
* "unixVer": "x"
|
|
2465
|
+
* },
|
|
2466
|
+
* "qq": {
|
|
2467
|
+
* "hostVer": "√",
|
|
2468
|
+
* "uniVer": "√",
|
|
2469
|
+
* "unixVer": "x"
|
|
2470
|
+
* },
|
|
2471
|
+
* "kuaishou": {
|
|
2472
|
+
* "hostVer": "√",
|
|
2473
|
+
* "uniVer": "√",
|
|
2474
|
+
* "unixVer": "x"
|
|
2475
|
+
* },
|
|
2476
|
+
* "jd": {
|
|
2477
|
+
* "hostVer": "√",
|
|
2478
|
+
* "uniVer": "√",
|
|
2479
|
+
* "unixVer": "x"
|
|
2480
|
+
* }
|
|
2481
|
+
* },
|
|
2482
|
+
* "web": {
|
|
2483
|
+
* "uniVer": "√",
|
|
2484
|
+
* "unixVer": "4.0"
|
|
2485
|
+
* }
|
|
2486
|
+
* }
|
|
2487
|
+
*
|
|
2488
|
+
*/
|
|
2489
|
+
"wgs84" |
|
|
2490
|
+
/**
|
|
2491
|
+
* @description gcj02坐标系,腾讯定位默认取值gcj02,腾讯定位仅支持gcj02坐标系
|
|
2492
|
+
* @uniPlatform {
|
|
2493
|
+
* "app": {
|
|
2494
|
+
* "android": {
|
|
2495
|
+
* "osVer": "5.0",
|
|
2496
|
+
* "uniVer": "√",
|
|
2497
|
+
* "unixVer": "4.76"
|
|
2498
|
+
* },
|
|
2499
|
+
* "ios": {
|
|
2500
|
+
* "osVer": "12.0",
|
|
2501
|
+
* "uniVer": "√",
|
|
2502
|
+
* "unixVer": "4.76"
|
|
2503
|
+
* },
|
|
2504
|
+
* "harmony": {
|
|
2505
|
+
* "osVer": "5.0.0(11)",
|
|
2506
|
+
* "uniVer": "4.25",
|
|
2507
|
+
* "unixVer": "4.76"
|
|
2508
|
+
* }
|
|
2509
|
+
* },
|
|
2510
|
+
* "mp": {
|
|
2511
|
+
* "weixin": {
|
|
2512
|
+
* "hostVer": "√",
|
|
2513
|
+
* "uniVer": "√",
|
|
2514
|
+
* "unixVer": "x"
|
|
2515
|
+
* },
|
|
2516
|
+
* "alipay": {
|
|
2517
|
+
* "hostVer": "√",
|
|
2518
|
+
* "uniVer": "√",
|
|
2519
|
+
* "unixVer": "x"
|
|
2520
|
+
* },
|
|
2521
|
+
* "baidu": {
|
|
2522
|
+
* "hostVer": "√",
|
|
2523
|
+
* "uniVer": "√",
|
|
2524
|
+
* "unixVer": "x"
|
|
2525
|
+
* },
|
|
2526
|
+
* "toutiao": {
|
|
2527
|
+
* "hostVer": "√",
|
|
2528
|
+
* "uniVer": "√",
|
|
2529
|
+
* "unixVer": "x"
|
|
2530
|
+
* },
|
|
2531
|
+
* "lark": {
|
|
2532
|
+
* "hostVer": "√",
|
|
2533
|
+
* "uniVer": "√",
|
|
2534
|
+
* "unixVer": "x"
|
|
2535
|
+
* },
|
|
2536
|
+
* "qq": {
|
|
2537
|
+
* "hostVer": "√",
|
|
2538
|
+
* "uniVer": "√",
|
|
2539
|
+
* "unixVer": "x"
|
|
2540
|
+
* },
|
|
2541
|
+
* "kuaishou": {
|
|
2542
|
+
* "hostVer": "√",
|
|
2543
|
+
* "uniVer": "√",
|
|
2544
|
+
* "unixVer": "x"
|
|
2545
|
+
* },
|
|
2546
|
+
* "jd": {
|
|
2547
|
+
* "hostVer": "√",
|
|
2548
|
+
* "uniVer": "√",
|
|
2549
|
+
* "unixVer": "x"
|
|
2550
|
+
* }
|
|
2551
|
+
* },
|
|
2552
|
+
* "web": {
|
|
2553
|
+
* "uniVer": "√",
|
|
2554
|
+
* "unixVer": "4.0"
|
|
2555
|
+
* }
|
|
2556
|
+
* }
|
|
2557
|
+
*
|
|
2558
|
+
*/
|
|
2559
|
+
"gcj02"
|
|
2560
|
+
|
|
2561
|
+
export type StartLocationUpdateOptions = {
|
|
2562
|
+
/**
|
|
2563
|
+
* @description 定位服务提供商,通过 uni.getProvider 获取,目前支持系统定位(system)、腾讯定位(tencent), web端暂不支持provider机制。
|
|
2564
|
+
* @uniPlatform {
|
|
2565
|
+
* "app": {
|
|
2566
|
+
* "android": {
|
|
2567
|
+
* "osVer": "5.0",
|
|
2568
|
+
* "uniVer": "√",
|
|
2569
|
+
* "unixVer": "4.76"
|
|
2570
|
+
* },
|
|
2571
|
+
* "ios": {
|
|
2572
|
+
* "osVer": "12.0",
|
|
2573
|
+
* "uniVer": "√",
|
|
2574
|
+
* "unixVer": "4.76"
|
|
2575
|
+
* },
|
|
2576
|
+
* "harmony": {
|
|
2577
|
+
* "osVer": "5.0.0(11)",
|
|
2578
|
+
* "uniVer": "4.25",
|
|
2579
|
+
* "unixVer": "4.76"
|
|
2580
|
+
* }
|
|
2581
|
+
* },
|
|
2582
|
+
* "mp": {
|
|
2583
|
+
* "weixin": {
|
|
2584
|
+
* "hostVer": "√",
|
|
2585
|
+
* "uniVer": "√",
|
|
2586
|
+
* "unixVer": "x"
|
|
2587
|
+
* },
|
|
2588
|
+
* "alipay": {
|
|
2589
|
+
* "hostVer": "√",
|
|
2590
|
+
* "uniVer": "√",
|
|
2591
|
+
* "unixVer": "x"
|
|
2592
|
+
* },
|
|
2593
|
+
* "baidu": {
|
|
2594
|
+
* "hostVer": "√",
|
|
2595
|
+
* "uniVer": "√",
|
|
2596
|
+
* "unixVer": "x"
|
|
2597
|
+
* },
|
|
2598
|
+
* "toutiao": {
|
|
2599
|
+
* "hostVer": "√",
|
|
2600
|
+
* "uniVer": "√",
|
|
2601
|
+
* "unixVer": "x"
|
|
2602
|
+
* },
|
|
2603
|
+
* "lark": {
|
|
2604
|
+
* "hostVer": "√",
|
|
2605
|
+
* "uniVer": "√",
|
|
2606
|
+
* "unixVer": "x"
|
|
2607
|
+
* },
|
|
2608
|
+
* "qq": {
|
|
2609
|
+
* "hostVer": "√",
|
|
2610
|
+
* "uniVer": "√",
|
|
2611
|
+
* "unixVer": "x"
|
|
2612
|
+
* },
|
|
2613
|
+
* "kuaishou": {
|
|
2614
|
+
* "hostVer": "√",
|
|
2615
|
+
* "uniVer": "√",
|
|
2616
|
+
* "unixVer": "x"
|
|
2617
|
+
* },
|
|
2618
|
+
* "jd": {
|
|
2619
|
+
* "hostVer": "√",
|
|
2620
|
+
* "uniVer": "√",
|
|
2621
|
+
* "unixVer": "x"
|
|
2622
|
+
* }
|
|
2623
|
+
* },
|
|
2624
|
+
* "web": {
|
|
2625
|
+
* "uniVer": "√",
|
|
2626
|
+
* "unixVer": "4.0"
|
|
2627
|
+
* }
|
|
2628
|
+
* }
|
|
2629
|
+
*
|
|
2630
|
+
*/
|
|
2631
|
+
provider?: string | null,
|
|
2632
|
+
/**
|
|
2633
|
+
* @description 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02;
|
|
2634
|
+
* @uniPlatform {
|
|
2635
|
+
* "app": {
|
|
2636
|
+
* "android": {
|
|
2637
|
+
* "osVer": "5.0",
|
|
2638
|
+
* "uniVer": "√",
|
|
2639
|
+
* "unixVer": "4.76"
|
|
2640
|
+
* },
|
|
2641
|
+
* "ios": {
|
|
2642
|
+
* "osVer": "12.0",
|
|
2643
|
+
* "uniVer": "√",
|
|
2644
|
+
* "unixVer": "4.76"
|
|
2645
|
+
* },
|
|
2646
|
+
* "harmony": {
|
|
2647
|
+
* "osVer": "5.0.0(11)",
|
|
2648
|
+
* "uniVer": "4.25",
|
|
2649
|
+
* "unixVer": "4.76"
|
|
2650
|
+
* }
|
|
2651
|
+
* },
|
|
2652
|
+
* "mp": {
|
|
2653
|
+
* "weixin": {
|
|
2654
|
+
* "hostVer": "√",
|
|
2655
|
+
* "uniVer": "√",
|
|
2656
|
+
* "unixVer": "x"
|
|
2657
|
+
* },
|
|
2658
|
+
* "alipay": {
|
|
2659
|
+
* "hostVer": "√",
|
|
2660
|
+
* "uniVer": "√",
|
|
2661
|
+
* "unixVer": "x"
|
|
2662
|
+
* },
|
|
2663
|
+
* "baidu": {
|
|
2664
|
+
* "hostVer": "√",
|
|
2665
|
+
* "uniVer": "√",
|
|
2666
|
+
* "unixVer": "x"
|
|
2667
|
+
* },
|
|
2668
|
+
* "toutiao": {
|
|
2669
|
+
* "hostVer": "√",
|
|
2670
|
+
* "uniVer": "√",
|
|
2671
|
+
* "unixVer": "x"
|
|
2672
|
+
* },
|
|
2673
|
+
* "lark": {
|
|
2674
|
+
* "hostVer": "√",
|
|
2675
|
+
* "uniVer": "√",
|
|
2676
|
+
* "unixVer": "x"
|
|
2677
|
+
* },
|
|
2678
|
+
* "qq": {
|
|
2679
|
+
* "hostVer": "√",
|
|
2680
|
+
* "uniVer": "√",
|
|
2681
|
+
* "unixVer": "x"
|
|
2682
|
+
* },
|
|
2683
|
+
* "kuaishou": {
|
|
2684
|
+
* "hostVer": "√",
|
|
2685
|
+
* "uniVer": "√",
|
|
2686
|
+
* "unixVer": "x"
|
|
2687
|
+
* },
|
|
2688
|
+
* "jd": {
|
|
2689
|
+
* "hostVer": "√",
|
|
2690
|
+
* "uniVer": "√",
|
|
2691
|
+
* "unixVer": "x"
|
|
2692
|
+
* }
|
|
2693
|
+
* },
|
|
2694
|
+
* "web": {
|
|
2695
|
+
* "uniVer": "√",
|
|
2696
|
+
* "unixVer": "4.0"
|
|
2697
|
+
* }
|
|
2698
|
+
* }
|
|
2699
|
+
*
|
|
2700
|
+
*/
|
|
2701
|
+
type?: StartLocationUpdateOptionsType | null,
|
|
2702
|
+
/**
|
|
2703
|
+
* @description 接口调用成功的回调函数
|
|
2704
|
+
* @uniPlatform {
|
|
2705
|
+
* "app": {
|
|
2706
|
+
* "android": {
|
|
2707
|
+
* "osVer": "5.0",
|
|
2708
|
+
* "uniVer": "√",
|
|
2709
|
+
* "unixVer": "4.76"
|
|
2710
|
+
* },
|
|
2711
|
+
* "ios": {
|
|
2712
|
+
* "osVer": "12.0",
|
|
2713
|
+
* "uniVer": "√",
|
|
2714
|
+
* "unixVer": "4.76"
|
|
2715
|
+
* },
|
|
2716
|
+
* "harmony": {
|
|
2717
|
+
* "osVer": "5.0.0(11)",
|
|
2718
|
+
* "uniVer": "4.25",
|
|
2719
|
+
* "unixVer": "4.76"
|
|
2720
|
+
* }
|
|
2721
|
+
* },
|
|
2722
|
+
* "mp": {
|
|
2723
|
+
* "weixin": {
|
|
2724
|
+
* "hostVer": "√",
|
|
2725
|
+
* "uniVer": "√",
|
|
2726
|
+
* "unixVer": "x"
|
|
2727
|
+
* },
|
|
2728
|
+
* "alipay": {
|
|
2729
|
+
* "hostVer": "√",
|
|
2730
|
+
* "uniVer": "√",
|
|
2731
|
+
* "unixVer": "x"
|
|
2732
|
+
* },
|
|
2733
|
+
* "baidu": {
|
|
2734
|
+
* "hostVer": "√",
|
|
2735
|
+
* "uniVer": "√",
|
|
2736
|
+
* "unixVer": "x"
|
|
2737
|
+
* },
|
|
2738
|
+
* "toutiao": {
|
|
2739
|
+
* "hostVer": "√",
|
|
2740
|
+
* "uniVer": "√",
|
|
2741
|
+
* "unixVer": "x"
|
|
2742
|
+
* },
|
|
2743
|
+
* "lark": {
|
|
2744
|
+
* "hostVer": "√",
|
|
2745
|
+
* "uniVer": "√",
|
|
2746
|
+
* "unixVer": "x"
|
|
2747
|
+
* },
|
|
2748
|
+
* "qq": {
|
|
2749
|
+
* "hostVer": "√",
|
|
2750
|
+
* "uniVer": "√",
|
|
2751
|
+
* "unixVer": "x"
|
|
2752
|
+
* },
|
|
2753
|
+
* "kuaishou": {
|
|
2754
|
+
* "hostVer": "√",
|
|
2755
|
+
* "uniVer": "√",
|
|
2756
|
+
* "unixVer": "x"
|
|
2757
|
+
* },
|
|
2758
|
+
* "jd": {
|
|
2759
|
+
* "hostVer": "√",
|
|
2760
|
+
* "uniVer": "√",
|
|
2761
|
+
* "unixVer": "x"
|
|
2762
|
+
* }
|
|
2763
|
+
* },
|
|
2764
|
+
* "web": {
|
|
2765
|
+
* "uniVer": "√",
|
|
2766
|
+
* "unixVer": "4.0"
|
|
2767
|
+
* }
|
|
2768
|
+
* }
|
|
2769
|
+
*
|
|
2770
|
+
*/
|
|
2771
|
+
success?: StartLocationUpdateSuccessCallback | null,
|
|
2772
|
+
/**
|
|
2773
|
+
* @description 接口调用失败的回调函数
|
|
2774
|
+
* @uniPlatform {
|
|
2775
|
+
* "app": {
|
|
2776
|
+
* "android": {
|
|
2777
|
+
* "osVer": "5.0",
|
|
2778
|
+
* "uniVer": "√",
|
|
2779
|
+
* "unixVer": "4.76"
|
|
2780
|
+
* },
|
|
2781
|
+
* "ios": {
|
|
2782
|
+
* "osVer": "12.0",
|
|
2783
|
+
* "uniVer": "√",
|
|
2784
|
+
* "unixVer": "4.76"
|
|
2785
|
+
* },
|
|
2786
|
+
* "harmony": {
|
|
2787
|
+
* "osVer": "5.0.0(11)",
|
|
2788
|
+
* "uniVer": "4.25",
|
|
2789
|
+
* "unixVer": "4.76"
|
|
2790
|
+
* }
|
|
2791
|
+
* },
|
|
2792
|
+
* "mp": {
|
|
2793
|
+
* "weixin": {
|
|
2794
|
+
* "hostVer": "√",
|
|
2795
|
+
* "uniVer": "√",
|
|
2796
|
+
* "unixVer": "x"
|
|
2797
|
+
* },
|
|
2798
|
+
* "alipay": {
|
|
2799
|
+
* "hostVer": "√",
|
|
2800
|
+
* "uniVer": "√",
|
|
2801
|
+
* "unixVer": "x"
|
|
2802
|
+
* },
|
|
2803
|
+
* "baidu": {
|
|
2804
|
+
* "hostVer": "√",
|
|
2805
|
+
* "uniVer": "√",
|
|
2806
|
+
* "unixVer": "x"
|
|
2807
|
+
* },
|
|
2808
|
+
* "toutiao": {
|
|
2809
|
+
* "hostVer": "√",
|
|
2810
|
+
* "uniVer": "√",
|
|
2811
|
+
* "unixVer": "x"
|
|
2812
|
+
* },
|
|
2813
|
+
* "lark": {
|
|
2814
|
+
* "hostVer": "√",
|
|
2815
|
+
* "uniVer": "√",
|
|
2816
|
+
* "unixVer": "x"
|
|
2817
|
+
* },
|
|
2818
|
+
* "qq": {
|
|
2819
|
+
* "hostVer": "√",
|
|
2820
|
+
* "uniVer": "√",
|
|
2821
|
+
* "unixVer": "x"
|
|
2822
|
+
* },
|
|
2823
|
+
* "kuaishou": {
|
|
2824
|
+
* "hostVer": "√",
|
|
2825
|
+
* "uniVer": "√",
|
|
2826
|
+
* "unixVer": "x"
|
|
2827
|
+
* },
|
|
2828
|
+
* "jd": {
|
|
2829
|
+
* "hostVer": "√",
|
|
2830
|
+
* "uniVer": "√",
|
|
2831
|
+
* "unixVer": "x"
|
|
2832
|
+
* }
|
|
2833
|
+
* },
|
|
2834
|
+
* "web": {
|
|
2835
|
+
* "uniVer": "√",
|
|
2836
|
+
* "unixVer": "4.0"
|
|
2837
|
+
* }
|
|
2838
|
+
* }
|
|
2839
|
+
*
|
|
2840
|
+
*/
|
|
2841
|
+
fail?: StartLocationUpdateFailCallback | null,
|
|
2842
|
+
/**
|
|
2843
|
+
* @description 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
2844
|
+
* @uniPlatform {
|
|
2845
|
+
* "app": {
|
|
2846
|
+
* "android": {
|
|
2847
|
+
* "osVer": "5.0",
|
|
2848
|
+
* "uniVer": "√",
|
|
2849
|
+
* "unixVer": "4.76"
|
|
2850
|
+
* },
|
|
2851
|
+
* "ios": {
|
|
2852
|
+
* "osVer": "12.0",
|
|
2853
|
+
* "uniVer": "√",
|
|
2854
|
+
* "unixVer": "4.76"
|
|
2855
|
+
* },
|
|
2856
|
+
* "harmony": {
|
|
2857
|
+
* "osVer": "5.0.0(11)",
|
|
2858
|
+
* "uniVer": "4.25",
|
|
2859
|
+
* "unixVer": "4.76"
|
|
2860
|
+
* }
|
|
2861
|
+
* },
|
|
2862
|
+
* "mp": {
|
|
2863
|
+
* "weixin": {
|
|
2864
|
+
* "hostVer": "√",
|
|
2865
|
+
* "uniVer": "√",
|
|
2866
|
+
* "unixVer": "x"
|
|
2867
|
+
* },
|
|
2868
|
+
* "alipay": {
|
|
2869
|
+
* "hostVer": "√",
|
|
2870
|
+
* "uniVer": "√",
|
|
2871
|
+
* "unixVer": "x"
|
|
2872
|
+
* },
|
|
2873
|
+
* "baidu": {
|
|
2874
|
+
* "hostVer": "√",
|
|
2875
|
+
* "uniVer": "√",
|
|
2876
|
+
* "unixVer": "x"
|
|
2877
|
+
* },
|
|
2878
|
+
* "toutiao": {
|
|
2879
|
+
* "hostVer": "√",
|
|
2880
|
+
* "uniVer": "√",
|
|
2881
|
+
* "unixVer": "x"
|
|
2882
|
+
* },
|
|
2883
|
+
* "lark": {
|
|
2884
|
+
* "hostVer": "√",
|
|
2885
|
+
* "uniVer": "√",
|
|
2886
|
+
* "unixVer": "x"
|
|
2887
|
+
* },
|
|
2888
|
+
* "qq": {
|
|
2889
|
+
* "hostVer": "√",
|
|
2890
|
+
* "uniVer": "√",
|
|
2891
|
+
* "unixVer": "x"
|
|
2892
|
+
* },
|
|
2893
|
+
* "kuaishou": {
|
|
2894
|
+
* "hostVer": "√",
|
|
2895
|
+
* "uniVer": "√",
|
|
2896
|
+
* "unixVer": "x"
|
|
2897
|
+
* },
|
|
2898
|
+
* "jd": {
|
|
2899
|
+
* "hostVer": "√",
|
|
2900
|
+
* "uniVer": "√",
|
|
2901
|
+
* "unixVer": "x"
|
|
2902
|
+
* }
|
|
2903
|
+
* },
|
|
2904
|
+
* "web": {
|
|
2905
|
+
* "uniVer": "√",
|
|
2906
|
+
* "unixVer": "4.0"
|
|
2907
|
+
* }
|
|
2908
|
+
* }
|
|
2909
|
+
*
|
|
2910
|
+
*/
|
|
2911
|
+
complete?: StartLocationUpdateCompleteCallback | null
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
export type StartLocationUpdate = (options: StartLocationUpdateOptions) => void;
|
|
2915
|
+
|
|
2916
|
+
export type StopLocationUpdateSuccess = {}
|
|
2917
|
+
type StopLocationUpdateSuccessCallback = (result:StopLocationUpdateSuccess) => void;
|
|
2918
|
+
type StopLocationUpdateFailCallback = (result: IGetLocationFail) => void;
|
|
2919
|
+
type StopLocationUpdateComplete = any;
|
|
2920
|
+
type StopLocationUpdateCompleteCallback = (result: StopLocationUpdateComplete) => void;
|
|
2921
|
+
|
|
2922
|
+
export type StopLocationUpdateOptions = {
|
|
2923
|
+
success?: StopLocationUpdateSuccessCallback | null,
|
|
2924
|
+
fail?: StopLocationUpdateFailCallback | null,
|
|
2925
|
+
complete?: StopLocationUpdateCompleteCallback | null
|
|
2926
|
+
}
|
|
2927
|
+
|
|
2928
|
+
export type StopLocationUpdate = (options: StopLocationUpdateOptions) => void;
|
|
2929
|
+
|
|
2930
|
+
export type OnLocationChangeResult = GetLocationSuccess
|
|
2931
|
+
export type OnLocationChangeCallback =(res:OnLocationChangeResult)=>void
|
|
2932
|
+
export type OnLocationChange = (listener:OnLocationChangeCallback)=>number
|
|
2933
|
+
export type OffLocationChange = (listener?:number|OnLocationChangeCallback|null)=>void
|
|
2934
|
+
|
|
2935
|
+
// #ifdef APP-IOS
|
|
2936
|
+
export type OnLocationChangeErrorCallback =(res:UniError)=>void
|
|
2937
|
+
// #endif
|
|
2938
|
+
|
|
2939
|
+
// #ifndef APP-IOS
|
|
2940
|
+
export type OnLocationChangeErrorCallback =(listener:IGetLocationFail)=>void
|
|
2941
|
+
// #endif
|
|
2942
|
+
|
|
2943
|
+
export type OnLocationChangeError = (listener:OnLocationChangeErrorCallback)=>number
|
|
2944
|
+
export type OffLocationChangeError = (listener?:number|OnLocationChangeErrorCallback|null)=>void
|
|
2945
|
+
|
|
2946
|
+
export type StartLocationUpdateBackgroundSuccess = StartLocationUpdateSuccess
|
|
2947
|
+
type StartLocationUpdateBackgroundSuccessCallback = (result:StartLocationUpdateBackgroundSuccess) => void;
|
|
2948
|
+
type StartLocationUpdateBackgroundFailCallback = (result: IGetLocationFail) => void;
|
|
2949
|
+
type StartLocationUpdateBackgroundComplete = any;
|
|
2950
|
+
type StartLocationUpdateBackgroundCompleteCallback = (result: StartLocationUpdateBackgroundComplete) => void;
|
|
2951
|
+
|
|
2952
|
+
export type StartLocationUpdateBackgroundOptionsType =
|
|
2953
|
+
/**
|
|
2954
|
+
* @description wgs84坐标系,系统定位默认取值wgs84,系统定位仅支持wgs84坐标系
|
|
2955
|
+
* @uniPlatform {
|
|
2956
|
+
* "app": {
|
|
2957
|
+
* "android": {
|
|
2958
|
+
* "osVer": "5.0",
|
|
2959
|
+
* "uniVer": "√",
|
|
2960
|
+
* "unixVer": "4.76"
|
|
2961
|
+
* },
|
|
2962
|
+
* "ios": {
|
|
2963
|
+
* "osVer": "12.0",
|
|
2964
|
+
* "uniVer": "√",
|
|
2965
|
+
* "unixVer": "4.76"
|
|
2966
|
+
* },
|
|
2967
|
+
* "harmony": {
|
|
2968
|
+
* "osVer": "5.0.0(11)",
|
|
2969
|
+
* "uniVer": "4.25",
|
|
2970
|
+
* "unixVer": "4.76"
|
|
2971
|
+
* }
|
|
2972
|
+
* },
|
|
2973
|
+
* "mp": {
|
|
2974
|
+
* "weixin": {
|
|
2975
|
+
* "hostVer": "√",
|
|
2976
|
+
* "uniVer": "√",
|
|
2977
|
+
* "unixVer": "x"
|
|
2978
|
+
* },
|
|
2979
|
+
* "alipay": {
|
|
2980
|
+
* "hostVer": "√",
|
|
2981
|
+
* "uniVer": "√",
|
|
2982
|
+
* "unixVer": "x"
|
|
2983
|
+
* },
|
|
2984
|
+
* "baidu": {
|
|
2985
|
+
* "hostVer": "√",
|
|
2986
|
+
* "uniVer": "√",
|
|
2987
|
+
* "unixVer": "x"
|
|
2988
|
+
* },
|
|
2989
|
+
* "toutiao": {
|
|
2990
|
+
* "hostVer": "√",
|
|
2991
|
+
* "uniVer": "√",
|
|
2992
|
+
* "unixVer": "x"
|
|
2993
|
+
* },
|
|
2994
|
+
* "lark": {
|
|
2995
|
+
* "hostVer": "√",
|
|
2996
|
+
* "uniVer": "√",
|
|
2997
|
+
* "unixVer": "x"
|
|
2998
|
+
* },
|
|
2999
|
+
* "qq": {
|
|
3000
|
+
* "hostVer": "√",
|
|
3001
|
+
* "uniVer": "√",
|
|
3002
|
+
* "unixVer": "x"
|
|
3003
|
+
* },
|
|
3004
|
+
* "kuaishou": {
|
|
3005
|
+
* "hostVer": "√",
|
|
3006
|
+
* "uniVer": "√",
|
|
3007
|
+
* "unixVer": "x"
|
|
3008
|
+
* },
|
|
3009
|
+
* "jd": {
|
|
3010
|
+
* "hostVer": "√",
|
|
3011
|
+
* "uniVer": "√",
|
|
3012
|
+
* "unixVer": "x"
|
|
3013
|
+
* }
|
|
3014
|
+
* },
|
|
3015
|
+
* "web": {
|
|
3016
|
+
* "uniVer": "√",
|
|
3017
|
+
* "unixVer": "4.0"
|
|
3018
|
+
* }
|
|
3019
|
+
* }
|
|
3020
|
+
*
|
|
3021
|
+
*/
|
|
3022
|
+
"wgs84" |
|
|
3023
|
+
/**
|
|
3024
|
+
* @description gcj02坐标系,腾讯定位默认取值gcj02,腾讯定位仅支持gcj02坐标系
|
|
3025
|
+
* @uniPlatform {
|
|
3026
|
+
* "app": {
|
|
3027
|
+
* "android": {
|
|
3028
|
+
* "osVer": "5.0",
|
|
3029
|
+
* "uniVer": "√",
|
|
3030
|
+
* "unixVer": "4.76"
|
|
3031
|
+
* },
|
|
3032
|
+
* "ios": {
|
|
3033
|
+
* "osVer": "12.0",
|
|
3034
|
+
* "uniVer": "√",
|
|
3035
|
+
* "unixVer": "4.76"
|
|
3036
|
+
* },
|
|
3037
|
+
* "harmony": {
|
|
3038
|
+
* "osVer": "5.0.0(11)",
|
|
3039
|
+
* "uniVer": "4.25",
|
|
3040
|
+
* "unixVer": "4.76"
|
|
3041
|
+
* }
|
|
3042
|
+
* },
|
|
3043
|
+
* "mp": {
|
|
3044
|
+
* "weixin": {
|
|
3045
|
+
* "hostVer": "√",
|
|
3046
|
+
* "uniVer": "√",
|
|
3047
|
+
* "unixVer": "x"
|
|
3048
|
+
* },
|
|
3049
|
+
* "alipay": {
|
|
3050
|
+
* "hostVer": "√",
|
|
3051
|
+
* "uniVer": "√",
|
|
3052
|
+
* "unixVer": "x"
|
|
3053
|
+
* },
|
|
3054
|
+
* "baidu": {
|
|
3055
|
+
* "hostVer": "√",
|
|
3056
|
+
* "uniVer": "√",
|
|
3057
|
+
* "unixVer": "x"
|
|
3058
|
+
* },
|
|
3059
|
+
* "toutiao": {
|
|
3060
|
+
* "hostVer": "√",
|
|
3061
|
+
* "uniVer": "√",
|
|
3062
|
+
* "unixVer": "x"
|
|
3063
|
+
* },
|
|
3064
|
+
* "lark": {
|
|
3065
|
+
* "hostVer": "√",
|
|
3066
|
+
* "uniVer": "√",
|
|
3067
|
+
* "unixVer": "x"
|
|
3068
|
+
* },
|
|
3069
|
+
* "qq": {
|
|
3070
|
+
* "hostVer": "√",
|
|
3071
|
+
* "uniVer": "√",
|
|
3072
|
+
* "unixVer": "x"
|
|
3073
|
+
* },
|
|
3074
|
+
* "kuaishou": {
|
|
3075
|
+
* "hostVer": "√",
|
|
3076
|
+
* "uniVer": "√",
|
|
3077
|
+
* "unixVer": "x"
|
|
3078
|
+
* },
|
|
3079
|
+
* "jd": {
|
|
3080
|
+
* "hostVer": "√",
|
|
3081
|
+
* "uniVer": "√",
|
|
3082
|
+
* "unixVer": "x"
|
|
3083
|
+
* }
|
|
3084
|
+
* },
|
|
3085
|
+
* "web": {
|
|
3086
|
+
* "uniVer": "√",
|
|
3087
|
+
* "unixVer": "4.0"
|
|
3088
|
+
* }
|
|
3089
|
+
* }
|
|
3090
|
+
*
|
|
3091
|
+
*/
|
|
3092
|
+
"gcj02"
|
|
3093
|
+
|
|
3094
|
+
export type StartLocationUpdateBackgroundOptions = {
|
|
3095
|
+
/**
|
|
3096
|
+
* @description 定位服务提供商,通过 uni.getProvider 获取,目前支持系统定位(system)、腾讯定位(tencent), web端暂不支持provider机制。
|
|
3097
|
+
* @uniPlatform {
|
|
3098
|
+
* "app": {
|
|
3099
|
+
* "android": {
|
|
3100
|
+
* "osVer": "5.0",
|
|
3101
|
+
* "uniVer": "√",
|
|
3102
|
+
* "unixVer": "4.76"
|
|
3103
|
+
* },
|
|
3104
|
+
* "ios": {
|
|
3105
|
+
* "osVer": "12.0",
|
|
3106
|
+
* "uniVer": "√",
|
|
3107
|
+
* "unixVer": "4.76"
|
|
3108
|
+
* },
|
|
3109
|
+
* "harmony": {
|
|
3110
|
+
* "osVer": "5.0.0(11)",
|
|
3111
|
+
* "uniVer": "4.25",
|
|
3112
|
+
* "unixVer": "4.76"
|
|
3113
|
+
* }
|
|
3114
|
+
* },
|
|
3115
|
+
* "mp": {
|
|
3116
|
+
* "weixin": {
|
|
3117
|
+
* "hostVer": "√",
|
|
3118
|
+
* "uniVer": "√",
|
|
3119
|
+
* "unixVer": "x"
|
|
3120
|
+
* },
|
|
3121
|
+
* "alipay": {
|
|
3122
|
+
* "hostVer": "√",
|
|
3123
|
+
* "uniVer": "√",
|
|
3124
|
+
* "unixVer": "x"
|
|
3125
|
+
* },
|
|
3126
|
+
* "baidu": {
|
|
3127
|
+
* "hostVer": "√",
|
|
3128
|
+
* "uniVer": "√",
|
|
3129
|
+
* "unixVer": "x"
|
|
3130
|
+
* },
|
|
3131
|
+
* "toutiao": {
|
|
3132
|
+
* "hostVer": "√",
|
|
3133
|
+
* "uniVer": "√",
|
|
3134
|
+
* "unixVer": "x"
|
|
3135
|
+
* },
|
|
3136
|
+
* "lark": {
|
|
3137
|
+
* "hostVer": "√",
|
|
3138
|
+
* "uniVer": "√",
|
|
3139
|
+
* "unixVer": "x"
|
|
3140
|
+
* },
|
|
3141
|
+
* "qq": {
|
|
3142
|
+
* "hostVer": "√",
|
|
3143
|
+
* "uniVer": "√",
|
|
3144
|
+
* "unixVer": "x"
|
|
3145
|
+
* },
|
|
3146
|
+
* "kuaishou": {
|
|
3147
|
+
* "hostVer": "√",
|
|
3148
|
+
* "uniVer": "√",
|
|
3149
|
+
* "unixVer": "x"
|
|
3150
|
+
* },
|
|
3151
|
+
* "jd": {
|
|
3152
|
+
* "hostVer": "√",
|
|
3153
|
+
* "uniVer": "√",
|
|
3154
|
+
* "unixVer": "x"
|
|
3155
|
+
* }
|
|
3156
|
+
* },
|
|
3157
|
+
* "web": {
|
|
3158
|
+
* "uniVer": "√",
|
|
3159
|
+
* "unixVer": "4.0"
|
|
3160
|
+
* }
|
|
3161
|
+
* }
|
|
3162
|
+
*
|
|
3163
|
+
*/
|
|
3164
|
+
provider?: string | null,
|
|
3165
|
+
/**
|
|
3166
|
+
* @description 默认为 wgs84 返回 gps 坐标,gcj02 返回可用于uni.openLocation的坐标,web端需配置定位 SDK 信息才可支持 gcj02;
|
|
3167
|
+
* @uniPlatform {
|
|
3168
|
+
* "app": {
|
|
3169
|
+
* "android": {
|
|
3170
|
+
* "osVer": "5.0",
|
|
3171
|
+
* "uniVer": "√",
|
|
3172
|
+
* "unixVer": "4.76"
|
|
3173
|
+
* },
|
|
3174
|
+
* "ios": {
|
|
3175
|
+
* "osVer": "12.0",
|
|
3176
|
+
* "uniVer": "√",
|
|
3177
|
+
* "unixVer": "4.76"
|
|
3178
|
+
* },
|
|
3179
|
+
* "harmony": {
|
|
3180
|
+
* "osVer": "5.0.0(11)",
|
|
3181
|
+
* "uniVer": "4.25",
|
|
3182
|
+
* "unixVer": "4.76"
|
|
3183
|
+
* }
|
|
3184
|
+
* },
|
|
3185
|
+
* "mp": {
|
|
3186
|
+
* "weixin": {
|
|
3187
|
+
* "hostVer": "√",
|
|
3188
|
+
* "uniVer": "√",
|
|
3189
|
+
* "unixVer": "x"
|
|
3190
|
+
* },
|
|
3191
|
+
* "alipay": {
|
|
3192
|
+
* "hostVer": "√",
|
|
3193
|
+
* "uniVer": "√",
|
|
3194
|
+
* "unixVer": "x"
|
|
3195
|
+
* },
|
|
3196
|
+
* "baidu": {
|
|
3197
|
+
* "hostVer": "√",
|
|
3198
|
+
* "uniVer": "√",
|
|
3199
|
+
* "unixVer": "x"
|
|
3200
|
+
* },
|
|
3201
|
+
* "toutiao": {
|
|
3202
|
+
* "hostVer": "√",
|
|
3203
|
+
* "uniVer": "√",
|
|
3204
|
+
* "unixVer": "x"
|
|
3205
|
+
* },
|
|
3206
|
+
* "lark": {
|
|
3207
|
+
* "hostVer": "√",
|
|
3208
|
+
* "uniVer": "√",
|
|
3209
|
+
* "unixVer": "x"
|
|
3210
|
+
* },
|
|
3211
|
+
* "qq": {
|
|
3212
|
+
* "hostVer": "√",
|
|
3213
|
+
* "uniVer": "√",
|
|
3214
|
+
* "unixVer": "x"
|
|
3215
|
+
* },
|
|
3216
|
+
* "kuaishou": {
|
|
3217
|
+
* "hostVer": "√",
|
|
3218
|
+
* "uniVer": "√",
|
|
3219
|
+
* "unixVer": "x"
|
|
3220
|
+
* },
|
|
3221
|
+
* "jd": {
|
|
3222
|
+
* "hostVer": "√",
|
|
3223
|
+
* "uniVer": "√",
|
|
3224
|
+
* "unixVer": "x"
|
|
3225
|
+
* }
|
|
3226
|
+
* },
|
|
3227
|
+
* "web": {
|
|
3228
|
+
* "uniVer": "√",
|
|
3229
|
+
* "unixVer": "4.0"
|
|
3230
|
+
* }
|
|
3231
|
+
* }
|
|
3232
|
+
*
|
|
3233
|
+
*/
|
|
3234
|
+
type?: StartLocationUpdateBackgroundOptionsType | null,
|
|
3235
|
+
/**
|
|
3236
|
+
* @description 接口调用成功的回调函数
|
|
3237
|
+
* @uniPlatform {
|
|
3238
|
+
* "app": {
|
|
3239
|
+
* "android": {
|
|
3240
|
+
* "osVer": "5.0",
|
|
3241
|
+
* "uniVer": "√",
|
|
3242
|
+
* "unixVer": "4.76"
|
|
3243
|
+
* },
|
|
3244
|
+
* "ios": {
|
|
3245
|
+
* "osVer": "12.0",
|
|
3246
|
+
* "uniVer": "√",
|
|
3247
|
+
* "unixVer": "4.76"
|
|
3248
|
+
* },
|
|
3249
|
+
* "harmony": {
|
|
3250
|
+
* "osVer": "5.0.0(11)",
|
|
3251
|
+
* "uniVer": "4.25",
|
|
3252
|
+
* "unixVer": "4.76"
|
|
3253
|
+
* }
|
|
3254
|
+
* },
|
|
3255
|
+
* "mp": {
|
|
3256
|
+
* "weixin": {
|
|
3257
|
+
* "hostVer": "√",
|
|
3258
|
+
* "uniVer": "√",
|
|
3259
|
+
* "unixVer": "x"
|
|
3260
|
+
* },
|
|
3261
|
+
* "alipay": {
|
|
3262
|
+
* "hostVer": "√",
|
|
3263
|
+
* "uniVer": "√",
|
|
3264
|
+
* "unixVer": "x"
|
|
3265
|
+
* },
|
|
3266
|
+
* "baidu": {
|
|
3267
|
+
* "hostVer": "√",
|
|
3268
|
+
* "uniVer": "√",
|
|
3269
|
+
* "unixVer": "x"
|
|
3270
|
+
* },
|
|
3271
|
+
* "toutiao": {
|
|
3272
|
+
* "hostVer": "√",
|
|
3273
|
+
* "uniVer": "√",
|
|
3274
|
+
* "unixVer": "x"
|
|
3275
|
+
* },
|
|
3276
|
+
* "lark": {
|
|
3277
|
+
* "hostVer": "√",
|
|
3278
|
+
* "uniVer": "√",
|
|
3279
|
+
* "unixVer": "x"
|
|
3280
|
+
* },
|
|
3281
|
+
* "qq": {
|
|
3282
|
+
* "hostVer": "√",
|
|
3283
|
+
* "uniVer": "√",
|
|
3284
|
+
* "unixVer": "x"
|
|
3285
|
+
* },
|
|
3286
|
+
* "kuaishou": {
|
|
3287
|
+
* "hostVer": "√",
|
|
3288
|
+
* "uniVer": "√",
|
|
3289
|
+
* "unixVer": "x"
|
|
3290
|
+
* },
|
|
3291
|
+
* "jd": {
|
|
3292
|
+
* "hostVer": "√",
|
|
3293
|
+
* "uniVer": "√",
|
|
3294
|
+
* "unixVer": "x"
|
|
3295
|
+
* }
|
|
3296
|
+
* },
|
|
3297
|
+
* "web": {
|
|
3298
|
+
* "uniVer": "√",
|
|
3299
|
+
* "unixVer": "4.0"
|
|
3300
|
+
* }
|
|
3301
|
+
* }
|
|
3302
|
+
*
|
|
3303
|
+
*/
|
|
3304
|
+
success?: StartLocationUpdateBackgroundSuccessCallback | null,
|
|
3305
|
+
/**
|
|
3306
|
+
* @description 接口调用失败的回调函数
|
|
3307
|
+
* @uniPlatform {
|
|
3308
|
+
* "app": {
|
|
3309
|
+
* "android": {
|
|
3310
|
+
* "osVer": "5.0",
|
|
3311
|
+
* "uniVer": "√",
|
|
3312
|
+
* "unixVer": "4.76"
|
|
3313
|
+
* },
|
|
3314
|
+
* "ios": {
|
|
3315
|
+
* "osVer": "12.0",
|
|
3316
|
+
* "uniVer": "√",
|
|
3317
|
+
* "unixVer": "4.76"
|
|
3318
|
+
* },
|
|
3319
|
+
* "harmony": {
|
|
3320
|
+
* "osVer": "5.0.0(11)",
|
|
3321
|
+
* "uniVer": "4.25",
|
|
3322
|
+
* "unixVer": "4.76"
|
|
3323
|
+
* }
|
|
3324
|
+
* },
|
|
3325
|
+
* "mp": {
|
|
3326
|
+
* "weixin": {
|
|
3327
|
+
* "hostVer": "√",
|
|
3328
|
+
* "uniVer": "√",
|
|
3329
|
+
* "unixVer": "x"
|
|
3330
|
+
* },
|
|
3331
|
+
* "alipay": {
|
|
3332
|
+
* "hostVer": "√",
|
|
3333
|
+
* "uniVer": "√",
|
|
3334
|
+
* "unixVer": "x"
|
|
3335
|
+
* },
|
|
3336
|
+
* "baidu": {
|
|
3337
|
+
* "hostVer": "√",
|
|
3338
|
+
* "uniVer": "√",
|
|
3339
|
+
* "unixVer": "x"
|
|
3340
|
+
* },
|
|
3341
|
+
* "toutiao": {
|
|
3342
|
+
* "hostVer": "√",
|
|
3343
|
+
* "uniVer": "√",
|
|
3344
|
+
* "unixVer": "x"
|
|
3345
|
+
* },
|
|
3346
|
+
* "lark": {
|
|
3347
|
+
* "hostVer": "√",
|
|
3348
|
+
* "uniVer": "√",
|
|
3349
|
+
* "unixVer": "x"
|
|
3350
|
+
* },
|
|
3351
|
+
* "qq": {
|
|
3352
|
+
* "hostVer": "√",
|
|
3353
|
+
* "uniVer": "√",
|
|
3354
|
+
* "unixVer": "x"
|
|
3355
|
+
* },
|
|
3356
|
+
* "kuaishou": {
|
|
3357
|
+
* "hostVer": "√",
|
|
3358
|
+
* "uniVer": "√",
|
|
3359
|
+
* "unixVer": "x"
|
|
3360
|
+
* },
|
|
3361
|
+
* "jd": {
|
|
3362
|
+
* "hostVer": "√",
|
|
3363
|
+
* "uniVer": "√",
|
|
3364
|
+
* "unixVer": "x"
|
|
3365
|
+
* }
|
|
3366
|
+
* },
|
|
3367
|
+
* "web": {
|
|
3368
|
+
* "uniVer": "√",
|
|
3369
|
+
* "unixVer": "4.0"
|
|
3370
|
+
* }
|
|
3371
|
+
* }
|
|
3372
|
+
*
|
|
3373
|
+
*/
|
|
3374
|
+
fail?: StartLocationUpdateBackgroundFailCallback | null,
|
|
3375
|
+
/**
|
|
3376
|
+
* @description 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
3377
|
+
* @uniPlatform {
|
|
3378
|
+
* "app": {
|
|
3379
|
+
* "android": {
|
|
3380
|
+
* "osVer": "5.0",
|
|
3381
|
+
* "uniVer": "√",
|
|
3382
|
+
* "unixVer": "4.76"
|
|
3383
|
+
* },
|
|
3384
|
+
* "ios": {
|
|
3385
|
+
* "osVer": "12.0",
|
|
3386
|
+
* "uniVer": "√",
|
|
3387
|
+
* "unixVer": "4.76"
|
|
3388
|
+
* },
|
|
3389
|
+
* "harmony": {
|
|
3390
|
+
* "osVer": "5.0.0(11)",
|
|
3391
|
+
* "uniVer": "4.25",
|
|
3392
|
+
* "unixVer": "4.76"
|
|
3393
|
+
* }
|
|
3394
|
+
* },
|
|
3395
|
+
* "mp": {
|
|
3396
|
+
* "weixin": {
|
|
3397
|
+
* "hostVer": "√",
|
|
3398
|
+
* "uniVer": "√",
|
|
3399
|
+
* "unixVer": "x"
|
|
3400
|
+
* },
|
|
3401
|
+
* "alipay": {
|
|
3402
|
+
* "hostVer": "√",
|
|
3403
|
+
* "uniVer": "√",
|
|
3404
|
+
* "unixVer": "x"
|
|
3405
|
+
* },
|
|
3406
|
+
* "baidu": {
|
|
3407
|
+
* "hostVer": "√",
|
|
3408
|
+
* "uniVer": "√",
|
|
3409
|
+
* "unixVer": "x"
|
|
3410
|
+
* },
|
|
3411
|
+
* "toutiao": {
|
|
3412
|
+
* "hostVer": "√",
|
|
3413
|
+
* "uniVer": "√",
|
|
3414
|
+
* "unixVer": "x"
|
|
3415
|
+
* },
|
|
3416
|
+
* "lark": {
|
|
3417
|
+
* "hostVer": "√",
|
|
3418
|
+
* "uniVer": "√",
|
|
3419
|
+
* "unixVer": "x"
|
|
3420
|
+
* },
|
|
3421
|
+
* "qq": {
|
|
3422
|
+
* "hostVer": "√",
|
|
3423
|
+
* "uniVer": "√",
|
|
3424
|
+
* "unixVer": "x"
|
|
3425
|
+
* },
|
|
3426
|
+
* "kuaishou": {
|
|
3427
|
+
* "hostVer": "√",
|
|
3428
|
+
* "uniVer": "√",
|
|
3429
|
+
* "unixVer": "x"
|
|
3430
|
+
* },
|
|
3431
|
+
* "jd": {
|
|
3432
|
+
* "hostVer": "√",
|
|
3433
|
+
* "uniVer": "√",
|
|
3434
|
+
* "unixVer": "x"
|
|
3435
|
+
* }
|
|
3436
|
+
* },
|
|
3437
|
+
* "web": {
|
|
3438
|
+
* "uniVer": "√",
|
|
3439
|
+
* "unixVer": "4.0"
|
|
3440
|
+
* }
|
|
3441
|
+
* }
|
|
3442
|
+
*
|
|
3443
|
+
*/
|
|
3444
|
+
complete?: StartLocationUpdateBackgroundCompleteCallback | null
|
|
3445
|
+
}
|
|
3446
|
+
export type StartLocationUpdateBackground = (options:StartLocationUpdateBackgroundOptions)=>void
|