@dcloudio/uni-app-x 0.7.39 → 0.7.41
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 +9 -7
- package/types/UniPage.d.ts +168 -22
- package/types/app.d.ts +178 -174
- package/types/native/CSSStyleDeclaration.d.ts +16 -2
- package/types/native/DOMRect.d.ts +430 -10
- package/types/native/DrawableContext.d.ts +1137 -45
- package/types/native/IUniElement.d.ts +1875 -93
- package/types/native/UniNativePage.d.ts +94 -0
- package/types/native/UniResizeObserver.d.ts +215 -5
- package/types/native/UniSafeArea.d.ts +185 -0
- package/types/native/UniVideoElement.d.ts +432 -0
- package/types/native/global.d.ts +7 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/uni-map-tencent-map.d.ts +12 -8
- package/types/uni/uts-plugin-api/global.d.ts +62 -61
- package/types/uni/uts-plugin-api/index.d.ts +62 -61
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
- package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
- package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
- package/types/uni/uts-plugin-biz/global.d.ts +6 -5
- package/types/uni/uts-plugin-biz/index.d.ts +6 -5
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
- package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
- package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
- package/types/uni/uts-plugin-extend/global.d.ts +0 -4
- package/types/uni/uts-plugin-extend/index.d.ts +0 -4
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
- package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
- package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
|
@@ -3,42 +3,474 @@ import { UniElement } from "./IUniElement"
|
|
|
3
3
|
/**
|
|
4
4
|
* video元素对象
|
|
5
5
|
* @package io.dcloud.uniapp.runtime
|
|
6
|
+
* @uniPlatform {
|
|
7
|
+
* "mp": {
|
|
8
|
+
* "weixin": {
|
|
9
|
+
* "hostVer": "√",
|
|
10
|
+
* "uniVer": "x",
|
|
11
|
+
* "unixVer": "x"
|
|
12
|
+
* },
|
|
13
|
+
* "alipay": {
|
|
14
|
+
* "hostVer": "√",
|
|
15
|
+
* "uniVer": "x",
|
|
16
|
+
* "unixVer": "x"
|
|
17
|
+
* },
|
|
18
|
+
* "baidu": {
|
|
19
|
+
* "hostVer": "√",
|
|
20
|
+
* "uniVer": "x",
|
|
21
|
+
* "unixVer": "x"
|
|
22
|
+
* },
|
|
23
|
+
* "toutiao": {
|
|
24
|
+
* "hostVer": "√",
|
|
25
|
+
* "uniVer": "x",
|
|
26
|
+
* "unixVer": "x"
|
|
27
|
+
* },
|
|
28
|
+
* "lark": {
|
|
29
|
+
* "hostVer": "√",
|
|
30
|
+
* "uniVer": "x",
|
|
31
|
+
* "unixVer": "x"
|
|
32
|
+
* },
|
|
33
|
+
* "qq": {
|
|
34
|
+
* "hostVer": "√",
|
|
35
|
+
* "uniVer": "x",
|
|
36
|
+
* "unixVer": "x"
|
|
37
|
+
* },
|
|
38
|
+
* "kuaishou": {
|
|
39
|
+
* "hostVer": "√",
|
|
40
|
+
* "uniVer": "x",
|
|
41
|
+
* "unixVer": "x"
|
|
42
|
+
* },
|
|
43
|
+
* "jd": {
|
|
44
|
+
* "hostVer": "√",
|
|
45
|
+
* "uniVer": "x",
|
|
46
|
+
* "unixVer": "x"
|
|
47
|
+
* }
|
|
48
|
+
* },
|
|
49
|
+
* "web": {
|
|
50
|
+
* "uniVer": "x",
|
|
51
|
+
* "unixVer": "4.0"
|
|
52
|
+
* }
|
|
53
|
+
* }
|
|
6
54
|
*/
|
|
7
55
|
export interface UniVideoElement extends UniElement {
|
|
8
56
|
/**
|
|
9
57
|
* 播放
|
|
58
|
+
* @uniPlatform {
|
|
59
|
+
* "mp": {
|
|
60
|
+
* "weixin": {
|
|
61
|
+
* "hostVer": "√",
|
|
62
|
+
* "uniVer": "x",
|
|
63
|
+
* "unixVer": "x"
|
|
64
|
+
* },
|
|
65
|
+
* "alipay": {
|
|
66
|
+
* "hostVer": "√",
|
|
67
|
+
* "uniVer": "x",
|
|
68
|
+
* "unixVer": "x"
|
|
69
|
+
* },
|
|
70
|
+
* "baidu": {
|
|
71
|
+
* "hostVer": "√",
|
|
72
|
+
* "uniVer": "x",
|
|
73
|
+
* "unixVer": "x"
|
|
74
|
+
* },
|
|
75
|
+
* "toutiao": {
|
|
76
|
+
* "hostVer": "√",
|
|
77
|
+
* "uniVer": "x",
|
|
78
|
+
* "unixVer": "x"
|
|
79
|
+
* },
|
|
80
|
+
* "lark": {
|
|
81
|
+
* "hostVer": "√",
|
|
82
|
+
* "uniVer": "x",
|
|
83
|
+
* "unixVer": "x"
|
|
84
|
+
* },
|
|
85
|
+
* "qq": {
|
|
86
|
+
* "hostVer": "√",
|
|
87
|
+
* "uniVer": "x",
|
|
88
|
+
* "unixVer": "x"
|
|
89
|
+
* },
|
|
90
|
+
* "kuaishou": {
|
|
91
|
+
* "hostVer": "√",
|
|
92
|
+
* "uniVer": "x",
|
|
93
|
+
* "unixVer": "x"
|
|
94
|
+
* },
|
|
95
|
+
* "jd": {
|
|
96
|
+
* "hostVer": "√",
|
|
97
|
+
* "uniVer": "x",
|
|
98
|
+
* "unixVer": "x"
|
|
99
|
+
* }
|
|
100
|
+
* },
|
|
101
|
+
* "web": {
|
|
102
|
+
* "uniVer": "x",
|
|
103
|
+
* "unixVer": "4.0"
|
|
104
|
+
* }
|
|
105
|
+
* }
|
|
10
106
|
*/
|
|
11
107
|
play(): void
|
|
12
108
|
/**
|
|
13
109
|
* 暂停
|
|
110
|
+
* @uniPlatform {
|
|
111
|
+
* "mp": {
|
|
112
|
+
* "weixin": {
|
|
113
|
+
* "hostVer": "√",
|
|
114
|
+
* "uniVer": "x",
|
|
115
|
+
* "unixVer": "x"
|
|
116
|
+
* },
|
|
117
|
+
* "alipay": {
|
|
118
|
+
* "hostVer": "√",
|
|
119
|
+
* "uniVer": "x",
|
|
120
|
+
* "unixVer": "x"
|
|
121
|
+
* },
|
|
122
|
+
* "baidu": {
|
|
123
|
+
* "hostVer": "√",
|
|
124
|
+
* "uniVer": "x",
|
|
125
|
+
* "unixVer": "x"
|
|
126
|
+
* },
|
|
127
|
+
* "toutiao": {
|
|
128
|
+
* "hostVer": "√",
|
|
129
|
+
* "uniVer": "x",
|
|
130
|
+
* "unixVer": "x"
|
|
131
|
+
* },
|
|
132
|
+
* "lark": {
|
|
133
|
+
* "hostVer": "√",
|
|
134
|
+
* "uniVer": "x",
|
|
135
|
+
* "unixVer": "x"
|
|
136
|
+
* },
|
|
137
|
+
* "qq": {
|
|
138
|
+
* "hostVer": "√",
|
|
139
|
+
* "uniVer": "x",
|
|
140
|
+
* "unixVer": "x"
|
|
141
|
+
* },
|
|
142
|
+
* "kuaishou": {
|
|
143
|
+
* "hostVer": "√",
|
|
144
|
+
* "uniVer": "x",
|
|
145
|
+
* "unixVer": "x"
|
|
146
|
+
* },
|
|
147
|
+
* "jd": {
|
|
148
|
+
* "hostVer": "√",
|
|
149
|
+
* "uniVer": "x",
|
|
150
|
+
* "unixVer": "x"
|
|
151
|
+
* }
|
|
152
|
+
* },
|
|
153
|
+
* "web": {
|
|
154
|
+
* "uniVer": "x",
|
|
155
|
+
* "unixVer": "4.0"
|
|
156
|
+
* }
|
|
157
|
+
* }
|
|
14
158
|
*/
|
|
15
159
|
pause(): void
|
|
16
160
|
/**
|
|
17
161
|
* 跳转到指定位置
|
|
18
162
|
* @param {number} position 跳转到指定位置(秒)
|
|
163
|
+
* @uniPlatform {
|
|
164
|
+
* "mp": {
|
|
165
|
+
* "weixin": {
|
|
166
|
+
* "hostVer": "√",
|
|
167
|
+
* "uniVer": "x",
|
|
168
|
+
* "unixVer": "x"
|
|
169
|
+
* },
|
|
170
|
+
* "alipay": {
|
|
171
|
+
* "hostVer": "√",
|
|
172
|
+
* "uniVer": "x",
|
|
173
|
+
* "unixVer": "x"
|
|
174
|
+
* },
|
|
175
|
+
* "baidu": {
|
|
176
|
+
* "hostVer": "√",
|
|
177
|
+
* "uniVer": "x",
|
|
178
|
+
* "unixVer": "x"
|
|
179
|
+
* },
|
|
180
|
+
* "toutiao": {
|
|
181
|
+
* "hostVer": "√",
|
|
182
|
+
* "uniVer": "x",
|
|
183
|
+
* "unixVer": "x"
|
|
184
|
+
* },
|
|
185
|
+
* "lark": {
|
|
186
|
+
* "hostVer": "√",
|
|
187
|
+
* "uniVer": "x",
|
|
188
|
+
* "unixVer": "x"
|
|
189
|
+
* },
|
|
190
|
+
* "qq": {
|
|
191
|
+
* "hostVer": "√",
|
|
192
|
+
* "uniVer": "x",
|
|
193
|
+
* "unixVer": "x"
|
|
194
|
+
* },
|
|
195
|
+
* "kuaishou": {
|
|
196
|
+
* "hostVer": "√",
|
|
197
|
+
* "uniVer": "x",
|
|
198
|
+
* "unixVer": "x"
|
|
199
|
+
* },
|
|
200
|
+
* "jd": {
|
|
201
|
+
* "hostVer": "√",
|
|
202
|
+
* "uniVer": "x",
|
|
203
|
+
* "unixVer": "x"
|
|
204
|
+
* }
|
|
205
|
+
* },
|
|
206
|
+
* "web": {
|
|
207
|
+
* "uniVer": "x",
|
|
208
|
+
* "unixVer": "4.0"
|
|
209
|
+
* }
|
|
210
|
+
* }
|
|
19
211
|
*/
|
|
20
212
|
seek(position: number): void
|
|
21
213
|
/**
|
|
22
214
|
* 停止视频
|
|
215
|
+
* @uniPlatform {
|
|
216
|
+
* "mp": {
|
|
217
|
+
* "weixin": {
|
|
218
|
+
* "hostVer": "√",
|
|
219
|
+
* "uniVer": "x",
|
|
220
|
+
* "unixVer": "x"
|
|
221
|
+
* },
|
|
222
|
+
* "alipay": {
|
|
223
|
+
* "hostVer": "√",
|
|
224
|
+
* "uniVer": "x",
|
|
225
|
+
* "unixVer": "x"
|
|
226
|
+
* },
|
|
227
|
+
* "baidu": {
|
|
228
|
+
* "hostVer": "√",
|
|
229
|
+
* "uniVer": "x",
|
|
230
|
+
* "unixVer": "x"
|
|
231
|
+
* },
|
|
232
|
+
* "toutiao": {
|
|
233
|
+
* "hostVer": "√",
|
|
234
|
+
* "uniVer": "x",
|
|
235
|
+
* "unixVer": "x"
|
|
236
|
+
* },
|
|
237
|
+
* "lark": {
|
|
238
|
+
* "hostVer": "√",
|
|
239
|
+
* "uniVer": "x",
|
|
240
|
+
* "unixVer": "x"
|
|
241
|
+
* },
|
|
242
|
+
* "qq": {
|
|
243
|
+
* "hostVer": "√",
|
|
244
|
+
* "uniVer": "x",
|
|
245
|
+
* "unixVer": "x"
|
|
246
|
+
* },
|
|
247
|
+
* "kuaishou": {
|
|
248
|
+
* "hostVer": "√",
|
|
249
|
+
* "uniVer": "x",
|
|
250
|
+
* "unixVer": "x"
|
|
251
|
+
* },
|
|
252
|
+
* "jd": {
|
|
253
|
+
* "hostVer": "√",
|
|
254
|
+
* "uniVer": "x",
|
|
255
|
+
* "unixVer": "x"
|
|
256
|
+
* }
|
|
257
|
+
* },
|
|
258
|
+
* "web": {
|
|
259
|
+
* "uniVer": "x",
|
|
260
|
+
* "unixVer": "4.0"
|
|
261
|
+
* }
|
|
262
|
+
* }
|
|
23
263
|
*/
|
|
24
264
|
stop(): void
|
|
25
265
|
/**
|
|
26
266
|
* 发送弹幕
|
|
27
267
|
* @param {Danmu} danmu 弹幕数据
|
|
268
|
+
* @uniPlatform {
|
|
269
|
+
* "mp": {
|
|
270
|
+
* "weixin": {
|
|
271
|
+
* "hostVer": "√",
|
|
272
|
+
* "uniVer": "x",
|
|
273
|
+
* "unixVer": "x"
|
|
274
|
+
* },
|
|
275
|
+
* "alipay": {
|
|
276
|
+
* "hostVer": "√",
|
|
277
|
+
* "uniVer": "x",
|
|
278
|
+
* "unixVer": "x"
|
|
279
|
+
* },
|
|
280
|
+
* "baidu": {
|
|
281
|
+
* "hostVer": "√",
|
|
282
|
+
* "uniVer": "x",
|
|
283
|
+
* "unixVer": "x"
|
|
284
|
+
* },
|
|
285
|
+
* "toutiao": {
|
|
286
|
+
* "hostVer": "√",
|
|
287
|
+
* "uniVer": "x",
|
|
288
|
+
* "unixVer": "x"
|
|
289
|
+
* },
|
|
290
|
+
* "lark": {
|
|
291
|
+
* "hostVer": "√",
|
|
292
|
+
* "uniVer": "x",
|
|
293
|
+
* "unixVer": "x"
|
|
294
|
+
* },
|
|
295
|
+
* "qq": {
|
|
296
|
+
* "hostVer": "√",
|
|
297
|
+
* "uniVer": "x",
|
|
298
|
+
* "unixVer": "x"
|
|
299
|
+
* },
|
|
300
|
+
* "kuaishou": {
|
|
301
|
+
* "hostVer": "√",
|
|
302
|
+
* "uniVer": "x",
|
|
303
|
+
* "unixVer": "x"
|
|
304
|
+
* },
|
|
305
|
+
* "jd": {
|
|
306
|
+
* "hostVer": "√",
|
|
307
|
+
* "uniVer": "x",
|
|
308
|
+
* "unixVer": "x"
|
|
309
|
+
* }
|
|
310
|
+
* },
|
|
311
|
+
* "web": {
|
|
312
|
+
* "uniVer": "x",
|
|
313
|
+
* "unixVer": "4.0"
|
|
314
|
+
* }
|
|
315
|
+
* }
|
|
28
316
|
*/
|
|
29
317
|
sendDanmu(danmu: Danmu): void
|
|
30
318
|
/**
|
|
31
319
|
* 设置倍速播放
|
|
32
320
|
* @param {number} rate 支持倍率 0.5/0.8/1.0/1.25/1.5
|
|
321
|
+
* @uniPlatform {
|
|
322
|
+
* "mp": {
|
|
323
|
+
* "weixin": {
|
|
324
|
+
* "hostVer": "√",
|
|
325
|
+
* "uniVer": "x",
|
|
326
|
+
* "unixVer": "x"
|
|
327
|
+
* },
|
|
328
|
+
* "alipay": {
|
|
329
|
+
* "hostVer": "√",
|
|
330
|
+
* "uniVer": "x",
|
|
331
|
+
* "unixVer": "x"
|
|
332
|
+
* },
|
|
333
|
+
* "baidu": {
|
|
334
|
+
* "hostVer": "√",
|
|
335
|
+
* "uniVer": "x",
|
|
336
|
+
* "unixVer": "x"
|
|
337
|
+
* },
|
|
338
|
+
* "toutiao": {
|
|
339
|
+
* "hostVer": "√",
|
|
340
|
+
* "uniVer": "x",
|
|
341
|
+
* "unixVer": "x"
|
|
342
|
+
* },
|
|
343
|
+
* "lark": {
|
|
344
|
+
* "hostVer": "√",
|
|
345
|
+
* "uniVer": "x",
|
|
346
|
+
* "unixVer": "x"
|
|
347
|
+
* },
|
|
348
|
+
* "qq": {
|
|
349
|
+
* "hostVer": "√",
|
|
350
|
+
* "uniVer": "x",
|
|
351
|
+
* "unixVer": "x"
|
|
352
|
+
* },
|
|
353
|
+
* "kuaishou": {
|
|
354
|
+
* "hostVer": "√",
|
|
355
|
+
* "uniVer": "x",
|
|
356
|
+
* "unixVer": "x"
|
|
357
|
+
* },
|
|
358
|
+
* "jd": {
|
|
359
|
+
* "hostVer": "√",
|
|
360
|
+
* "uniVer": "x",
|
|
361
|
+
* "unixVer": "x"
|
|
362
|
+
* }
|
|
363
|
+
* },
|
|
364
|
+
* "web": {
|
|
365
|
+
* "uniVer": "x",
|
|
366
|
+
* "unixVer": "4.0"
|
|
367
|
+
* }
|
|
368
|
+
* }
|
|
33
369
|
*/
|
|
34
370
|
playbackRate(rate: number): void
|
|
35
371
|
/**
|
|
36
372
|
* 进入全屏
|
|
37
373
|
* @param {RequestFullScreenOptions} direction 0|正常竖向, 90|屏幕逆时针90度, -90|屏幕顺时针90度
|
|
374
|
+
* @uniPlatform {
|
|
375
|
+
* "mp": {
|
|
376
|
+
* "weixin": {
|
|
377
|
+
* "hostVer": "√",
|
|
378
|
+
* "uniVer": "x",
|
|
379
|
+
* "unixVer": "x"
|
|
380
|
+
* },
|
|
381
|
+
* "alipay": {
|
|
382
|
+
* "hostVer": "√",
|
|
383
|
+
* "uniVer": "x",
|
|
384
|
+
* "unixVer": "x"
|
|
385
|
+
* },
|
|
386
|
+
* "baidu": {
|
|
387
|
+
* "hostVer": "√",
|
|
388
|
+
* "uniVer": "x",
|
|
389
|
+
* "unixVer": "x"
|
|
390
|
+
* },
|
|
391
|
+
* "toutiao": {
|
|
392
|
+
* "hostVer": "√",
|
|
393
|
+
* "uniVer": "x",
|
|
394
|
+
* "unixVer": "x"
|
|
395
|
+
* },
|
|
396
|
+
* "lark": {
|
|
397
|
+
* "hostVer": "√",
|
|
398
|
+
* "uniVer": "x",
|
|
399
|
+
* "unixVer": "x"
|
|
400
|
+
* },
|
|
401
|
+
* "qq": {
|
|
402
|
+
* "hostVer": "√",
|
|
403
|
+
* "uniVer": "x",
|
|
404
|
+
* "unixVer": "x"
|
|
405
|
+
* },
|
|
406
|
+
* "kuaishou": {
|
|
407
|
+
* "hostVer": "√",
|
|
408
|
+
* "uniVer": "x",
|
|
409
|
+
* "unixVer": "x"
|
|
410
|
+
* },
|
|
411
|
+
* "jd": {
|
|
412
|
+
* "hostVer": "√",
|
|
413
|
+
* "uniVer": "x",
|
|
414
|
+
* "unixVer": "x"
|
|
415
|
+
* }
|
|
416
|
+
* },
|
|
417
|
+
* "web": {
|
|
418
|
+
* "uniVer": "x",
|
|
419
|
+
* "unixVer": "4.0"
|
|
420
|
+
* }
|
|
421
|
+
* }
|
|
38
422
|
*/
|
|
39
423
|
requestFullScreen(direction?: RequestFullScreenOptions | null): void
|
|
40
424
|
/**
|
|
41
425
|
* 退出全屏
|
|
426
|
+
* @uniPlatform {
|
|
427
|
+
* "mp": {
|
|
428
|
+
* "weixin": {
|
|
429
|
+
* "hostVer": "√",
|
|
430
|
+
* "uniVer": "x",
|
|
431
|
+
* "unixVer": "x"
|
|
432
|
+
* },
|
|
433
|
+
* "alipay": {
|
|
434
|
+
* "hostVer": "√",
|
|
435
|
+
* "uniVer": "x",
|
|
436
|
+
* "unixVer": "x"
|
|
437
|
+
* },
|
|
438
|
+
* "baidu": {
|
|
439
|
+
* "hostVer": "√",
|
|
440
|
+
* "uniVer": "x",
|
|
441
|
+
* "unixVer": "x"
|
|
442
|
+
* },
|
|
443
|
+
* "toutiao": {
|
|
444
|
+
* "hostVer": "√",
|
|
445
|
+
* "uniVer": "x",
|
|
446
|
+
* "unixVer": "x"
|
|
447
|
+
* },
|
|
448
|
+
* "lark": {
|
|
449
|
+
* "hostVer": "√",
|
|
450
|
+
* "uniVer": "x",
|
|
451
|
+
* "unixVer": "x"
|
|
452
|
+
* },
|
|
453
|
+
* "qq": {
|
|
454
|
+
* "hostVer": "√",
|
|
455
|
+
* "uniVer": "x",
|
|
456
|
+
* "unixVer": "x"
|
|
457
|
+
* },
|
|
458
|
+
* "kuaishou": {
|
|
459
|
+
* "hostVer": "√",
|
|
460
|
+
* "uniVer": "x",
|
|
461
|
+
* "unixVer": "x"
|
|
462
|
+
* },
|
|
463
|
+
* "jd": {
|
|
464
|
+
* "hostVer": "√",
|
|
465
|
+
* "uniVer": "x",
|
|
466
|
+
* "unixVer": "x"
|
|
467
|
+
* }
|
|
468
|
+
* },
|
|
469
|
+
* "web": {
|
|
470
|
+
* "uniVer": "x",
|
|
471
|
+
* "unixVer": "4.0"
|
|
472
|
+
* }
|
|
473
|
+
* }
|
|
42
474
|
*/
|
|
43
475
|
exitFullScreen(): void
|
|
44
476
|
}
|
package/types/native/global.d.ts
CHANGED
|
@@ -73,6 +73,8 @@ import {
|
|
|
73
73
|
UniScrollEventDetail as UniScrollEventDetailOrigin,
|
|
74
74
|
UniScrollEvent as UniScrollEventOrigin,
|
|
75
75
|
ScrollEvent as ScrollEventOrigin,
|
|
76
|
+
UniSafeArea as UniSafeAreaOrigin,
|
|
77
|
+
UniSafeAreaInsets as UniSafeAreaInsetsOrigin,
|
|
76
78
|
UniRichTextItemClickEventDetail as UniRichTextItemClickEventDetailOrigin,
|
|
77
79
|
UniRichTextItemClickEvent as UniRichTextItemClickEventOrigin,
|
|
78
80
|
RichTextItemClickEventDetail as RichTextItemClickEventDetailOrigin,
|
|
@@ -196,6 +198,7 @@ import {
|
|
|
196
198
|
UniWebViewElement as UniWebViewElementOrigin,
|
|
197
199
|
UniWaterFlowElement as UniWaterFlowElementOrigin,
|
|
198
200
|
UniFlowItemElement as UniFlowItemElementOrigin,
|
|
201
|
+
UniShareElement as UniShareElementOrigin,
|
|
199
202
|
GetBoundingClientRectAsyncSuccessCallback as GetBoundingClientRectAsyncSuccessCallbackOrigin,
|
|
200
203
|
GetBoundingClientRectAsyncFailCallback as GetBoundingClientRectAsyncFailCallbackOrigin,
|
|
201
204
|
GetBoundingClientRectAsyncCompleteCallback as GetBoundingClientRectAsyncCompleteCallbackOrigin,
|
|
@@ -373,6 +376,8 @@ declare global {
|
|
|
373
376
|
type UniScrollEvent = UniScrollEventOrigin
|
|
374
377
|
const ScrollEvent: typeof ScrollEventOrigin
|
|
375
378
|
type ScrollEvent = ScrollEventOrigin
|
|
379
|
+
type UniSafeArea = UniSafeAreaOrigin
|
|
380
|
+
type UniSafeAreaInsets = UniSafeAreaInsetsOrigin
|
|
376
381
|
const UniRichTextItemClickEventDetail: typeof UniRichTextItemClickEventDetailOrigin
|
|
377
382
|
type UniRichTextItemClickEventDetail = UniRichTextItemClickEventDetailOrigin
|
|
378
383
|
const UniRichTextItemClickEvent: typeof UniRichTextItemClickEventOrigin
|
|
@@ -573,6 +578,7 @@ declare global {
|
|
|
573
578
|
const UniWebViewElement: typeof UniWebViewElementOrigin
|
|
574
579
|
const UniWaterFlowElement: typeof UniWaterFlowElementOrigin
|
|
575
580
|
const UniFlowItemElement: typeof UniFlowItemElementOrigin
|
|
581
|
+
const UniShareElement: typeof UniShareElementOrigin
|
|
576
582
|
type GetBoundingClientRectAsyncSuccessCallback = GetBoundingClientRectAsyncSuccessCallbackOrigin
|
|
577
583
|
type GetBoundingClientRectAsyncFailCallback = GetBoundingClientRectAsyncFailCallbackOrigin
|
|
578
584
|
type GetBoundingClientRectAsyncCompleteCallback = GetBoundingClientRectAsyncCompleteCallbackOrigin
|
|
@@ -607,6 +613,7 @@ declare global {
|
|
|
607
613
|
type UniCanvasElement = UniCanvasElementOrigin
|
|
608
614
|
type UniWaterFlowElement = UniWaterFlowElementOrigin
|
|
609
615
|
type UniFlowItemElement = UniFlowItemElementOrigin
|
|
616
|
+
type UniShareElement = UniShareElementOrigin
|
|
610
617
|
type INavigationBar = INavigationBarOrigin
|
|
611
618
|
const DrawableContext: typeof DrawableContextOrigin
|
|
612
619
|
type DrawableContext = DrawableContextOrigin
|
package/types/native/index.d.ts
CHANGED
|
@@ -24,6 +24,7 @@ export * from './UniStartNestedScrollEvent'
|
|
|
24
24
|
export * from './UniScrollToUpperEvent'
|
|
25
25
|
export * from './UniScrollToLowerEvent'
|
|
26
26
|
export * from './UniScrollEvent'
|
|
27
|
+
export * from './UniSafeArea'
|
|
27
28
|
export * from './UniRichTextItemClickEvent'
|
|
28
29
|
export * from './UniResizeObserver'
|
|
29
30
|
export * from './UniResizeEvent'
|
|
@@ -7,8 +7,9 @@ export declare type UniMapTapEventDetail = {
|
|
|
7
7
|
latitude: number | null
|
|
8
8
|
longitude: number | null
|
|
9
9
|
}
|
|
10
|
-
export declare class UniMapTapEvent extends
|
|
11
|
-
|
|
10
|
+
export declare class UniMapTapEvent extends UniPointerEvent {
|
|
11
|
+
detail ?: UniMapTapEventDetail | null
|
|
12
|
+
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
export declare type UniMapRegionChangeEventDetail = {
|
|
@@ -23,8 +24,9 @@ export declare class UniMapRegionChangeEvent extends UniCustomEvent<UniMapRegion
|
|
|
23
24
|
export declare type UniMapMarkerTapEventDetail = {
|
|
24
25
|
markerId: number | null
|
|
25
26
|
}
|
|
26
|
-
export declare class UniMapMarkerTapEvent extends
|
|
27
|
-
|
|
27
|
+
export declare class UniMapMarkerTapEvent extends UniPointerEvent {
|
|
28
|
+
detail ?: UniMapMarkerTapEventDetail | null
|
|
29
|
+
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
28
30
|
}
|
|
29
31
|
|
|
30
32
|
export declare type UniMapControlTapEventDetail = {
|
|
@@ -38,8 +40,9 @@ export declare type UniMapAnchorPointTapEventDetail = {
|
|
|
38
40
|
latitude: number | null
|
|
39
41
|
longitude: number | null
|
|
40
42
|
}
|
|
41
|
-
export declare class UniMapAnchorPointTapEvent extends
|
|
42
|
-
|
|
43
|
+
export declare class UniMapAnchorPointTapEvent extends UniPointerEvent {
|
|
44
|
+
detail ?: UniMapAnchorPointTapEventDetail | null
|
|
45
|
+
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
export declare type UniMapPoiTapEventDetail = {
|
|
@@ -47,6 +50,7 @@ export declare type UniMapPoiTapEventDetail = {
|
|
|
47
50
|
longitude: number | null
|
|
48
51
|
name: string | null
|
|
49
52
|
}
|
|
50
|
-
export declare class UniMapPoiTapEvent extends
|
|
51
|
-
|
|
53
|
+
export declare class UniMapPoiTapEvent extends UniPointerEvent {
|
|
54
|
+
detail ?: UniMapPoiTapEventDetail | null
|
|
55
|
+
constructor(type : string, x : number, y : number, clientX : number, clientY : number, pageX : number, pageY : number, screenX : number, screenY : number)
|
|
52
56
|
}
|