@dcloudio/uni-app-x 0.7.30 → 0.7.32
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 +1 -1
- package/types/app.d.ts +10 -154
- package/types/native/IUniElement.d.ts +22 -0
- package/types/native/IUniNativeViewElement.d.ts +8 -8
- package/types/native/UniElement.d.ts +1 -0
- package/types/native/UniEvent.d.ts +7 -0
- package/types/native/UniRichTextItemClickEvent.d.ts +1 -5
- package/types/native/global.d.ts +3 -0
- package/types/page.d.ts +38 -182
- 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-authentication/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +55 -59
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +6 -7
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +30 -0
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +30 -7
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +18 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +136 -0
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +80 -26
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +30 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +14 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +273 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-biz/global.d.ts +1 -0
- package/types/uni/uts-plugin-biz/index.d.ts +1 -0
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +198 -0
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +60 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +454 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +7 -7
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
export interface Uni {
|
|
2
|
+
/**
|
|
3
|
+
* 开启监听隐私协议状态改变
|
|
4
|
+
* @uniPlatform
|
|
5
|
+
* {
|
|
6
|
+
* "app": {
|
|
7
|
+
* "android": {
|
|
8
|
+
* "osVer": "5.0",
|
|
9
|
+
* "uniVer": "x",
|
|
10
|
+
* "unixVer": "x"
|
|
11
|
+
* },
|
|
12
|
+
* "ios": {
|
|
13
|
+
* "osVer": "12.0",
|
|
14
|
+
* "uniVer": "x",
|
|
15
|
+
* "unixVer": "x"
|
|
16
|
+
* },
|
|
17
|
+
* "harmony": {
|
|
18
|
+
* "osVer": "x",
|
|
19
|
+
* "uniVer": "x",
|
|
20
|
+
* "unixVer": "x"
|
|
21
|
+
* }
|
|
22
|
+
* },
|
|
23
|
+
* "web": {
|
|
24
|
+
* "uniVer": "x",
|
|
25
|
+
* "unixVer": "x"
|
|
26
|
+
* }
|
|
27
|
+
* }
|
|
28
|
+
* @example
|
|
29
|
+
```typescript
|
|
30
|
+
const id = uni.onPrivacyAuthorizationChange((res) => {
|
|
31
|
+
console.log(res.isAgree)
|
|
32
|
+
})
|
|
33
|
+
```
|
|
34
|
+
*/
|
|
35
|
+
onPrivacyAuthorizationChange(callback : OnPrivacyAuthorizationChangeCallback) : number
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 取消监听隐私协议状态改变
|
|
39
|
+
* @uniPlatform
|
|
40
|
+
* {
|
|
41
|
+
* "app": {
|
|
42
|
+
* "android": {
|
|
43
|
+
* "osVer": "5.0",
|
|
44
|
+
* "uniVer": "x",
|
|
45
|
+
* "unixVer": "x"
|
|
46
|
+
* },
|
|
47
|
+
* "ios": {
|
|
48
|
+
* "osVer": "12.0",
|
|
49
|
+
* "uniVer": "x",
|
|
50
|
+
* "unixVer": "x"
|
|
51
|
+
* },
|
|
52
|
+
* "harmony": {
|
|
53
|
+
* "osVer": "x",
|
|
54
|
+
* "uniVer": "x",
|
|
55
|
+
* "unixVer": "x"
|
|
56
|
+
* }
|
|
57
|
+
* },
|
|
58
|
+
* "web": {
|
|
59
|
+
* "uniVer": "x",
|
|
60
|
+
* "unixVer": "x"
|
|
61
|
+
* }
|
|
62
|
+
* }
|
|
63
|
+
* @example
|
|
64
|
+
```typescript
|
|
65
|
+
uni.offPrivacyAuthorizationChange(id)
|
|
66
|
+
```
|
|
67
|
+
*/
|
|
68
|
+
offPrivacyAuthorizationChange(id : number) : void
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 获取隐私协议状态
|
|
72
|
+
* @uniPlatform
|
|
73
|
+
* {
|
|
74
|
+
* "app": {
|
|
75
|
+
* "android": {
|
|
76
|
+
* "osVer": "5.0",
|
|
77
|
+
* "uniVer": "x",
|
|
78
|
+
* "unixVer": "x"
|
|
79
|
+
* },
|
|
80
|
+
* "ios": {
|
|
81
|
+
* "osVer": "12.0",
|
|
82
|
+
* "uniVer": "x",
|
|
83
|
+
* "unixVer": "x"
|
|
84
|
+
* }
|
|
85
|
+
* },
|
|
86
|
+
* "web": {
|
|
87
|
+
* "uniVer": "x",
|
|
88
|
+
* "unixVer": "x"
|
|
89
|
+
* }
|
|
90
|
+
* }
|
|
91
|
+
* @example
|
|
92
|
+
```typescript
|
|
93
|
+
uni.getPrivacySetting({
|
|
94
|
+
success: (res) => {
|
|
95
|
+
console.log('success')
|
|
96
|
+
},
|
|
97
|
+
fail: (err) => {
|
|
98
|
+
console.log(err)
|
|
99
|
+
},
|
|
100
|
+
complete: (res) => {
|
|
101
|
+
console.log('complete')
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
```
|
|
105
|
+
*/
|
|
106
|
+
getPrivacySetting(options : GetPrivacySettingOptions) : void
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* 重置隐私协议状态为未同意
|
|
110
|
+
* @uniPlatform
|
|
111
|
+
* {
|
|
112
|
+
* "app": {
|
|
113
|
+
* "android": {
|
|
114
|
+
* "osVer": "5.0",
|
|
115
|
+
* "uniVer": "x",
|
|
116
|
+
* "unixVer": "x"
|
|
117
|
+
* },
|
|
118
|
+
* "ios": {
|
|
119
|
+
* "osVer": "12.0",
|
|
120
|
+
* "uniVer": "x",
|
|
121
|
+
* "unixVer": "x"
|
|
122
|
+
* }
|
|
123
|
+
* },
|
|
124
|
+
* "web": {
|
|
125
|
+
* "uniVer": "x",
|
|
126
|
+
* "unixVer": "x"
|
|
127
|
+
* }
|
|
128
|
+
* }
|
|
129
|
+
* @example
|
|
130
|
+
```typescript
|
|
131
|
+
uni.resetPrivacyAuthorization()
|
|
132
|
+
```
|
|
133
|
+
*/
|
|
134
|
+
resetPrivacyAuthorization() : void
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type OnPrivacyAuthorizationChange = (callback : OnPrivacyAuthorizationChangeCallback) => number
|
|
138
|
+
|
|
139
|
+
export type OffPrivacyAuthorizationChange = (id : number) => void
|
|
140
|
+
|
|
141
|
+
export type OnPrivacyAuthorizationChangeCallback = (res : PrivacyChangeResult) => void
|
|
142
|
+
|
|
143
|
+
export type PrivacyChangeResult = {
|
|
144
|
+
/**
|
|
145
|
+
* 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
|
|
146
|
+
* @uniPlatform
|
|
147
|
+
* {
|
|
148
|
+
* "app": {
|
|
149
|
+
* "android": {
|
|
150
|
+
* "osVer": "5.0",
|
|
151
|
+
* "uniVer": "x",
|
|
152
|
+
* "unixVer": "x"
|
|
153
|
+
* },
|
|
154
|
+
* "ios": {
|
|
155
|
+
* "osVer": "12.0",
|
|
156
|
+
* "uniVer": "x",
|
|
157
|
+
* "unixVer": "x"
|
|
158
|
+
* },
|
|
159
|
+
* "harmony": {
|
|
160
|
+
* "osVer": "x",
|
|
161
|
+
* "uniVer": "x",
|
|
162
|
+
* "unixVer": "x"
|
|
163
|
+
* }
|
|
164
|
+
* },
|
|
165
|
+
* "web": {
|
|
166
|
+
* "uniVer": "x",
|
|
167
|
+
* "unixVer": "x"
|
|
168
|
+
* }
|
|
169
|
+
* }
|
|
170
|
+
*/
|
|
171
|
+
needAuthorization : boolean
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type GetPrivacySetting = (options : GetPrivacySettingOptions) => void
|
|
175
|
+
|
|
176
|
+
export type GetPrivacySettingSuccessCallback = (result : GetPrivacySettingSuccessResult) => void;
|
|
177
|
+
export type GetPrivacySettingFailCallback = (result : any) => void;
|
|
178
|
+
export type GetPrivacySettingCompleteCallback = (result : any) => void;
|
|
179
|
+
export type ResetPrivacyAuthorization = () => void
|
|
180
|
+
|
|
181
|
+
export type GetPrivacySettingSuccessResult = {
|
|
182
|
+
needAuthorization : boolean
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export type GetPrivacySettingOptions = {
|
|
186
|
+
/**
|
|
187
|
+
* 接口调用成功的回调函数
|
|
188
|
+
* @defaultValue null
|
|
189
|
+
* @uniPlatform
|
|
190
|
+
* {
|
|
191
|
+
* "app": {
|
|
192
|
+
* "android": {
|
|
193
|
+
* "osVer": "5.0",
|
|
194
|
+
* "uniVer": "x",
|
|
195
|
+
* "unixVer": "x"
|
|
196
|
+
* },
|
|
197
|
+
* "ios": {
|
|
198
|
+
* "osVer": "12.0",
|
|
199
|
+
* "uniVer": "x",
|
|
200
|
+
* "unixVer": "x"
|
|
201
|
+
* },
|
|
202
|
+
* "harmony": {
|
|
203
|
+
* "osVer": "x",
|
|
204
|
+
* "uniVer": "x",
|
|
205
|
+
* "unixVer": "x"
|
|
206
|
+
* }
|
|
207
|
+
* },
|
|
208
|
+
* "web": {
|
|
209
|
+
* "uniVer": "x",
|
|
210
|
+
* "unixVer": "x"
|
|
211
|
+
* }
|
|
212
|
+
* }
|
|
213
|
+
*/
|
|
214
|
+
success ?: GetPrivacySettingSuccessCallback
|
|
215
|
+
/**
|
|
216
|
+
* 接口调用失败的回调函数
|
|
217
|
+
* @defaultValue null
|
|
218
|
+
* @uniPlatform
|
|
219
|
+
* { e
|
|
220
|
+
* "app": {
|
|
221
|
+
* "android": {
|
|
222
|
+
* "osVer": "5.0",
|
|
223
|
+
* "uniVer": "x",
|
|
224
|
+
* "unixVer": "x"
|
|
225
|
+
* },
|
|
226
|
+
* "ios": {
|
|
227
|
+
* "osVer": "12.0",
|
|
228
|
+
* "uniVer": "x",
|
|
229
|
+
* "unixVer": "x"
|
|
230
|
+
* },
|
|
231
|
+
* "harmony": {
|
|
232
|
+
* "osVer": "x",
|
|
233
|
+
* "uniVer": "x",
|
|
234
|
+
* "unixVer": "x"
|
|
235
|
+
* }
|
|
236
|
+
* },
|
|
237
|
+
* "web": {
|
|
238
|
+
* "uniVer": "x",
|
|
239
|
+
* "unixVer": "x"
|
|
240
|
+
* }
|
|
241
|
+
* }
|
|
242
|
+
*/
|
|
243
|
+
fail ?: GetPrivacySettingFailCallback
|
|
244
|
+
/**
|
|
245
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
246
|
+
* @defaultValue null
|
|
247
|
+
* @uniPlatform
|
|
248
|
+
* {
|
|
249
|
+
* "app": {
|
|
250
|
+
* "android": {
|
|
251
|
+
* "osVer": "5.0",
|
|
252
|
+
* "uniVer": "x",
|
|
253
|
+
* "unixVer": "x"
|
|
254
|
+
* },
|
|
255
|
+
* "ios": {
|
|
256
|
+
* "osVer": "12.0",
|
|
257
|
+
* "uniVer": "x",
|
|
258
|
+
* "unixVer": "x"
|
|
259
|
+
* },
|
|
260
|
+
* "harmony": {
|
|
261
|
+
* "osVer": "x",
|
|
262
|
+
* "uniVer": "x",
|
|
263
|
+
* "unixVer": "x"
|
|
264
|
+
* }
|
|
265
|
+
* },
|
|
266
|
+
* "web": {
|
|
267
|
+
* "uniVer": "x",
|
|
268
|
+
* "unixVer": "x"
|
|
269
|
+
* }
|
|
270
|
+
* }
|
|
271
|
+
*/
|
|
272
|
+
complete ?: GetPrivacySettingCompleteCallback
|
|
273
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference path='./lib/uni-verify/utssdk/global.d.ts' />
|
|
2
2
|
/// <reference path='./lib/uni-push/utssdk/global.d.ts' />
|
|
3
|
+
/// <reference path='./lib/uni-map-tencent/utssdk/global.d.ts' />
|
|
3
4
|
/// <reference path='./lib/uni-facialRecognitionVerify/utssdk/global.d.ts' />
|
|
4
5
|
/// <reference path='./lib/uni-ad/utssdk/global.d.ts' />
|
|
@@ -38,42 +38,222 @@ export interface InterstitialAd extends IVideoAd {
|
|
|
38
38
|
export interface IVideoAd {
|
|
39
39
|
/**
|
|
40
40
|
* 广告加载成功之后,调用此方法展示广告
|
|
41
|
+
* @uniPlatform {
|
|
42
|
+
* "app": {
|
|
43
|
+
* "android": {
|
|
44
|
+
* "osVer": "4.4",
|
|
45
|
+
* "uniVer": "√",
|
|
46
|
+
* "unixVer": "4.0+"
|
|
47
|
+
* },
|
|
48
|
+
* "ios": {
|
|
49
|
+
* "osVer": "12.0",
|
|
50
|
+
* "uniVer": "√",
|
|
51
|
+
* "unixVer": "4.22"
|
|
52
|
+
* }
|
|
53
|
+
* },
|
|
54
|
+
* "web": {
|
|
55
|
+
* "uniVer": "x",
|
|
56
|
+
* "unixVer": "x"
|
|
57
|
+
* }
|
|
58
|
+
* }
|
|
41
59
|
*/
|
|
42
60
|
show() : Promise<any>
|
|
43
61
|
/**
|
|
44
62
|
* 加载广告
|
|
63
|
+
* @uniPlatform {
|
|
64
|
+
* "app": {
|
|
65
|
+
* "android": {
|
|
66
|
+
* "osVer": "4.4",
|
|
67
|
+
* "uniVer": "√",
|
|
68
|
+
* "unixVer": "4.0+"
|
|
69
|
+
* },
|
|
70
|
+
* "ios": {
|
|
71
|
+
* "osVer": "12.0",
|
|
72
|
+
* "uniVer": "√",
|
|
73
|
+
* "unixVer": "4.22"
|
|
74
|
+
* }
|
|
75
|
+
* },
|
|
76
|
+
* "web": {
|
|
77
|
+
* "uniVer": "x",
|
|
78
|
+
* "unixVer": "x"
|
|
79
|
+
* }
|
|
80
|
+
* }
|
|
45
81
|
*/
|
|
46
82
|
load() : Promise<any>
|
|
47
83
|
/**
|
|
48
84
|
* 销毁广告
|
|
85
|
+
* @uniPlatform {
|
|
86
|
+
* "app": {
|
|
87
|
+
* "android": {
|
|
88
|
+
* "osVer": "4.4",
|
|
89
|
+
* "uniVer": "√",
|
|
90
|
+
* "unixVer": "4.0+"
|
|
91
|
+
* },
|
|
92
|
+
* "ios": {
|
|
93
|
+
* "osVer": "12.0",
|
|
94
|
+
* "uniVer": "√",
|
|
95
|
+
* "unixVer": "4.22"
|
|
96
|
+
* }
|
|
97
|
+
* },
|
|
98
|
+
* "web": {
|
|
99
|
+
* "uniVer": "x",
|
|
100
|
+
* "unixVer": "x"
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
49
103
|
*/
|
|
50
104
|
destroy() : void
|
|
51
105
|
/**
|
|
52
106
|
* 绑定广告 load 事件的监听器
|
|
107
|
+
* @uniPlatform {
|
|
108
|
+
* "app": {
|
|
109
|
+
* "android": {
|
|
110
|
+
* "osVer": "4.4",
|
|
111
|
+
* "uniVer": "√",
|
|
112
|
+
* "unixVer": "4.0+"
|
|
113
|
+
* },
|
|
114
|
+
* "ios": {
|
|
115
|
+
* "osVer": "12.0",
|
|
116
|
+
* "uniVer": "√",
|
|
117
|
+
* "unixVer": "4.22"
|
|
118
|
+
* }
|
|
119
|
+
* },
|
|
120
|
+
* "web": {
|
|
121
|
+
* "uniVer": "x",
|
|
122
|
+
* "unixVer": "x"
|
|
123
|
+
* }
|
|
124
|
+
* }
|
|
53
125
|
*/
|
|
54
126
|
onLoad(callback : AdCallBackEvent) : void
|
|
55
127
|
/**
|
|
56
128
|
* 解除绑定 load 事件的监听器
|
|
129
|
+
* @uniPlatform {
|
|
130
|
+
* "app": {
|
|
131
|
+
* "android": {
|
|
132
|
+
* "osVer": "4.4",
|
|
133
|
+
* "uniVer": "√",
|
|
134
|
+
* "unixVer": "4.0+"
|
|
135
|
+
* },
|
|
136
|
+
* "ios": {
|
|
137
|
+
* "osVer": "12.0",
|
|
138
|
+
* "uniVer": "√",
|
|
139
|
+
* "unixVer": "4.22"
|
|
140
|
+
* }
|
|
141
|
+
* },
|
|
142
|
+
* "web": {
|
|
143
|
+
* "uniVer": "x",
|
|
144
|
+
* "unixVer": "x"
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
57
147
|
*/
|
|
58
148
|
offLoad(callback : AdCallBackEvent) : void
|
|
59
149
|
/**
|
|
60
150
|
* 绑定 error 事件的监听器
|
|
151
|
+
* @uniPlatform {
|
|
152
|
+
* "app": {
|
|
153
|
+
* "android": {
|
|
154
|
+
* "osVer": "4.4",
|
|
155
|
+
* "uniVer": "√",
|
|
156
|
+
* "unixVer": "4.0+"
|
|
157
|
+
* },
|
|
158
|
+
* "ios": {
|
|
159
|
+
* "osVer": "12.0",
|
|
160
|
+
* "uniVer": "√",
|
|
161
|
+
* "unixVer": "4.22"
|
|
162
|
+
* }
|
|
163
|
+
* },
|
|
164
|
+
* "web": {
|
|
165
|
+
* "uniVer": "x",
|
|
166
|
+
* "unixVer": "x"
|
|
167
|
+
* }
|
|
168
|
+
* }
|
|
61
169
|
*/
|
|
62
170
|
onError(callback : AdErrorCallBackEvent) : void
|
|
63
171
|
/**
|
|
64
172
|
* 解除绑定 error 事件的监听器
|
|
173
|
+
* @uniPlatform {
|
|
174
|
+
* "app": {
|
|
175
|
+
* "android": {
|
|
176
|
+
* "osVer": "4.4",
|
|
177
|
+
* "uniVer": "√",
|
|
178
|
+
* "unixVer": "4.0+"
|
|
179
|
+
* },
|
|
180
|
+
* "ios": {
|
|
181
|
+
* "osVer": "12.0",
|
|
182
|
+
* "uniVer": "√",
|
|
183
|
+
* "unixVer": "4.22"
|
|
184
|
+
* }
|
|
185
|
+
* },
|
|
186
|
+
* "web": {
|
|
187
|
+
* "uniVer": "x",
|
|
188
|
+
* "unixVer": "x"
|
|
189
|
+
* }
|
|
190
|
+
* }
|
|
65
191
|
*/
|
|
66
192
|
offError(callback : AdErrorCallBackEvent) : void
|
|
67
193
|
/**
|
|
68
194
|
* 绑定 close 事件的监听器
|
|
195
|
+
* @uniPlatform {
|
|
196
|
+
* "app": {
|
|
197
|
+
* "android": {
|
|
198
|
+
* "osVer": "4.4",
|
|
199
|
+
* "uniVer": "√",
|
|
200
|
+
* "unixVer": "4.0+"
|
|
201
|
+
* },
|
|
202
|
+
* "ios": {
|
|
203
|
+
* "osVer": "12.0",
|
|
204
|
+
* "uniVer": "√",
|
|
205
|
+
* "unixVer": "4.22"
|
|
206
|
+
* }
|
|
207
|
+
* },
|
|
208
|
+
* "web": {
|
|
209
|
+
* "uniVer": "x",
|
|
210
|
+
* "unixVer": "x"
|
|
211
|
+
* }
|
|
212
|
+
* }
|
|
69
213
|
*/
|
|
70
214
|
onClose(callback : AdCloseCallBackEvent) : void
|
|
71
215
|
/**
|
|
72
216
|
* 解除绑定 close 事件的监听器
|
|
217
|
+
* @uniPlatform {
|
|
218
|
+
* "app": {
|
|
219
|
+
* "android": {
|
|
220
|
+
* "osVer": "4.4",
|
|
221
|
+
* "uniVer": "√",
|
|
222
|
+
* "unixVer": "4.0+"
|
|
223
|
+
* },
|
|
224
|
+
* "ios": {
|
|
225
|
+
* "osVer": "12.0",
|
|
226
|
+
* "uniVer": "√",
|
|
227
|
+
* "unixVer": "4.22"
|
|
228
|
+
* }
|
|
229
|
+
* },
|
|
230
|
+
* "web": {
|
|
231
|
+
* "uniVer": "x",
|
|
232
|
+
* "unixVer": "x"
|
|
233
|
+
* }
|
|
234
|
+
* }
|
|
73
235
|
*/
|
|
74
236
|
offClose(callback : AdCloseCallBackEvent) : void
|
|
75
237
|
/**
|
|
76
238
|
* 绑定广告可点击屏幕区域事件的监听器
|
|
239
|
+
* @uniPlatform {
|
|
240
|
+
* "app": {
|
|
241
|
+
* "android": {
|
|
242
|
+
* "osVer": "4.4",
|
|
243
|
+
* "uniVer": "√",
|
|
244
|
+
* "unixVer": "4.0+"
|
|
245
|
+
* },
|
|
246
|
+
* "ios": {
|
|
247
|
+
* "osVer": "12.0",
|
|
248
|
+
* "uniVer": "√",
|
|
249
|
+
* "unixVer": "4.22"
|
|
250
|
+
* }
|
|
251
|
+
* },
|
|
252
|
+
* "web": {
|
|
253
|
+
* "uniVer": "x",
|
|
254
|
+
* "unixVer": "x"
|
|
255
|
+
* }
|
|
256
|
+
* }
|
|
77
257
|
*/
|
|
78
258
|
onAdClicked(callback : AdCallBackEvent) : void;
|
|
79
259
|
}
|
|
@@ -81,6 +261,24 @@ export interface IVideoAd {
|
|
|
81
261
|
export interface IRewardedVideoAd {
|
|
82
262
|
/**
|
|
83
263
|
* 绑定 verify 事件的监听器
|
|
264
|
+
* @uniPlatform {
|
|
265
|
+
* "app": {
|
|
266
|
+
* "android": {
|
|
267
|
+
* "osVer": "4.4",
|
|
268
|
+
* "uniVer": "√",
|
|
269
|
+
* "unixVer": "4.0+"
|
|
270
|
+
* },
|
|
271
|
+
* "ios": {
|
|
272
|
+
* "osVer": "12.0",
|
|
273
|
+
* "uniVer": "√",
|
|
274
|
+
* "unixVer": "4.22"
|
|
275
|
+
* }
|
|
276
|
+
* },
|
|
277
|
+
* "web": {
|
|
278
|
+
* "uniVer": "x",
|
|
279
|
+
* "unixVer": "x"
|
|
280
|
+
* }
|
|
281
|
+
* }
|
|
84
282
|
*/
|
|
85
283
|
onVerify(callback : AdVerifyCallBackEvent) : void;
|
|
86
284
|
}
|
|
@@ -168,7 +168,7 @@ export interface Uni {
|
|
|
168
168
|
* },
|
|
169
169
|
* "harmony": {
|
|
170
170
|
* "osVer": "3.0",
|
|
171
|
-
* "uniVer": "4.
|
|
171
|
+
* "uniVer": "4.31",
|
|
172
172
|
* "unixVer": "x"
|
|
173
173
|
* }
|
|
174
174
|
* },
|
|
@@ -197,7 +197,7 @@ export interface Uni {
|
|
|
197
197
|
* },
|
|
198
198
|
* "harmony": {
|
|
199
199
|
* "osVer": "3.0",
|
|
200
|
-
* "uniVer": "4.
|
|
200
|
+
* "uniVer": "4.31",
|
|
201
201
|
* "unixVer": "x"
|
|
202
202
|
* }
|
|
203
203
|
* },
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
LatLng as LatLngOrigin,
|
|
4
|
+
Marker as MarkerOrigin,
|
|
5
|
+
Polyline as PolylineOrigin,
|
|
6
|
+
Polygon as PolygonOrigin,
|
|
7
|
+
Circle as CircleOrigin,
|
|
8
|
+
Position as PositionOrigin,
|
|
9
|
+
Control as ControlOrigin,
|
|
10
|
+
Bounds as BoundsOrigin,
|
|
11
|
+
GroundOverlay as GroundOverlayOrigin,
|
|
12
|
+
CreateMapContext as CreateMapContextOrigin,
|
|
13
|
+
LocationObject as LocationObjectOrigin,
|
|
14
|
+
MapContextGetCenterLocationOptions as MapContextGetCenterLocationOptionsOrigin,
|
|
15
|
+
MapContextMoveToLocationOptions as MapContextMoveToLocationOptionsOrigin,
|
|
16
|
+
MapContextTranslateMarkerOptions as MapContextTranslateMarkerOptionsOrigin,
|
|
17
|
+
MapContextIncludePointsOptions as MapContextIncludePointsOptionsOrigin,
|
|
18
|
+
MapContextGetRegionResult as MapContextGetRegionResultOrigin,
|
|
19
|
+
MapContextGetRegionOptions as MapContextGetRegionOptionsOrigin,
|
|
20
|
+
MapContextGetScaleResult as MapContextGetScaleResultOrigin,
|
|
21
|
+
MapContextGetScaleOptions as MapContextGetScaleOptionsOrigin,
|
|
22
|
+
MapContextAddGroundOverlayOptions as MapContextAddGroundOverlayOptionsOrigin,
|
|
23
|
+
MapContextAddMarkersOptions as MapContextAddMarkersOptionsOrigin,
|
|
24
|
+
MapContextMoveAlongOptions as MapContextMoveAlongOptionsOrigin,
|
|
25
|
+
MapContextRemoveGroundOverlayOptions as MapContextRemoveGroundOverlayOptionsOrigin,
|
|
26
|
+
MapContextRemoveMarkersOptions as MapContextRemoveMarkersOptionsOrigin,
|
|
27
|
+
MapContextUpdateGroundOverlayOptions as MapContextUpdateGroundOverlayOptionsOrigin,
|
|
28
|
+
MapContext as MapContextOrigin,
|
|
29
|
+
Uni as UniOrigin
|
|
30
|
+
} from './interface'
|
|
31
|
+
|
|
32
|
+
declare global {
|
|
33
|
+
type LatLng = LatLngOrigin
|
|
34
|
+
type Marker = MarkerOrigin
|
|
35
|
+
type Polyline = PolylineOrigin
|
|
36
|
+
type Polygon = PolygonOrigin
|
|
37
|
+
type Circle = CircleOrigin
|
|
38
|
+
type Position = PositionOrigin
|
|
39
|
+
type Control = ControlOrigin
|
|
40
|
+
type Bounds = BoundsOrigin
|
|
41
|
+
type GroundOverlay = GroundOverlayOrigin
|
|
42
|
+
type CreateMapContext = CreateMapContextOrigin
|
|
43
|
+
type LocationObject = LocationObjectOrigin
|
|
44
|
+
type MapContextGetCenterLocationOptions = MapContextGetCenterLocationOptionsOrigin
|
|
45
|
+
type MapContextMoveToLocationOptions = MapContextMoveToLocationOptionsOrigin
|
|
46
|
+
type MapContextTranslateMarkerOptions = MapContextTranslateMarkerOptionsOrigin
|
|
47
|
+
type MapContextIncludePointsOptions = MapContextIncludePointsOptionsOrigin
|
|
48
|
+
type MapContextGetRegionResult = MapContextGetRegionResultOrigin
|
|
49
|
+
type MapContextGetRegionOptions = MapContextGetRegionOptionsOrigin
|
|
50
|
+
type MapContextGetScaleResult = MapContextGetScaleResultOrigin
|
|
51
|
+
type MapContextGetScaleOptions = MapContextGetScaleOptionsOrigin
|
|
52
|
+
type MapContextAddGroundOverlayOptions = MapContextAddGroundOverlayOptionsOrigin
|
|
53
|
+
type MapContextAddMarkersOptions = MapContextAddMarkersOptionsOrigin
|
|
54
|
+
type MapContextMoveAlongOptions = MapContextMoveAlongOptionsOrigin
|
|
55
|
+
type MapContextRemoveGroundOverlayOptions = MapContextRemoveGroundOverlayOptionsOrigin
|
|
56
|
+
type MapContextRemoveMarkersOptions = MapContextRemoveMarkersOptionsOrigin
|
|
57
|
+
type MapContextUpdateGroundOverlayOptions = MapContextUpdateGroundOverlayOptionsOrigin
|
|
58
|
+
type MapContext = MapContextOrigin
|
|
59
|
+
interface Uni extends UniOrigin { }
|
|
60
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
export {
|
|
3
|
+
LatLng,
|
|
4
|
+
Marker,
|
|
5
|
+
Polyline,
|
|
6
|
+
Polygon,
|
|
7
|
+
Circle,
|
|
8
|
+
Position,
|
|
9
|
+
Control,
|
|
10
|
+
Bounds,
|
|
11
|
+
GroundOverlay,
|
|
12
|
+
CreateMapContext,
|
|
13
|
+
LocationObject,
|
|
14
|
+
MapContextGetCenterLocationOptions,
|
|
15
|
+
MapContextMoveToLocationOptions,
|
|
16
|
+
MapContextTranslateMarkerOptions,
|
|
17
|
+
MapContextIncludePointsOptions,
|
|
18
|
+
MapContextGetRegionResult,
|
|
19
|
+
MapContextGetRegionOptions,
|
|
20
|
+
MapContextGetScaleResult,
|
|
21
|
+
MapContextGetScaleOptions,
|
|
22
|
+
MapContextAddGroundOverlayOptions,
|
|
23
|
+
MapContextAddMarkersOptions,
|
|
24
|
+
MapContextMoveAlongOptions,
|
|
25
|
+
MapContextRemoveGroundOverlayOptions,
|
|
26
|
+
MapContextRemoveMarkersOptions,
|
|
27
|
+
MapContextUpdateGroundOverlayOptions,
|
|
28
|
+
MapContext,
|
|
29
|
+
} from './interface'
|