@dcloudio/uni-app-x 0.7.61 → 0.7.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +36 -1
  3. package/types/dom2/UniCSSProperty.d.ts +446 -0
  4. package/types/dom2/UniCSSType.d.ts +72 -0
  5. package/types/dom2/UniCommon.d.ts +40 -0
  6. package/types/dom2/UniCustomViewElement.d.ts +12 -0
  7. package/types/dom2/UniElement.d.ts +354 -0
  8. package/types/dom2/UniElementType.d.ts +37 -0
  9. package/types/dom2/UniImageElement.d.ts +102 -0
  10. package/types/dom2/UniNativeBaseView.d.ts +178 -0
  11. package/types/dom2/UniNativeCustomView.d.ts +13 -0
  12. package/types/dom2/UniNativeDefines.d.ts +435 -0
  13. package/types/dom2/UniNativeImageView.d.ts +34 -0
  14. package/types/dom2/UniNativeScrollView.d.ts +42 -0
  15. package/types/dom2/UniNativeTextView.d.ts +25 -0
  16. package/types/dom2/UniNativeView.d.ts +51 -0
  17. package/types/dom2/UniNativeViewType.d.ts +22 -0
  18. package/types/dom2/UniPage.d.ts +55 -0
  19. package/types/dom2/UniScrollViewElement.d.ts +13 -0
  20. package/types/dom2/UniTextElement.d.ts +20 -0
  21. package/types/dom2/UniTextLayout.d.ts +386 -0
  22. package/types/dom2/UniViewElement.d.ts +57 -0
  23. package/types/dom2/global.d.ts +189 -0
  24. package/types/dom2/index.d.ts +40 -0
  25. package/types/dom2/sharedData.d.ts +227 -0
  26. package/types/index.d.ts +2 -1
  27. package/types/native/DOMRect.d.ts +2 -1
  28. package/types/native/DrawableContext.d.ts +1665 -1661
  29. package/types/native/IUniElement.d.ts +3514 -2877
  30. package/types/native/SnapshotOptions.d.ts +2 -2
  31. package/types/native/UniAnimation.d.ts +11 -10
  32. package/types/native/UniEvent.d.ts +108 -3
  33. package/types/native/UniPage.d.ts +891 -882
  34. package/types/native/UniTextElement.d.ts +37 -0
  35. package/types/native/UniTextLayout.d.ts +387 -0
  36. package/types/native/UniVideoElement.d.ts +20 -17
  37. package/types/native/Worker.d.ts +19 -0
  38. package/types/native/global.d.ts +28 -68
  39. package/types/native/index.d.ts +18 -1
  40. package/types/page.d.ts +1862 -599
  41. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  42. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  43. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +1 -1
  44. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +10 -10
  45. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +0 -1
  46. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/global.d.ts +22 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/index.d.ts +10 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createWorker/utssdk/interface.d.ts +524 -0
  49. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +985 -76
  50. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +79 -55
  51. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +77 -53
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +458 -407
  53. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +420 -0
  54. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +80 -80
  55. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/global.d.ts +12 -4
  56. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/index.d.ts +6 -2
  57. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +713 -91
  58. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +4 -0
  59. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +3 -3
  60. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +3 -1
  61. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -1
  62. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +1 -1
  63. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/global.d.ts +56 -0
  64. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/index.d.ts +27 -0
  65. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +842 -0
  66. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +11 -11
  67. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -1
  68. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +63 -42
  69. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +2 -2
  70. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +2 -2
  71. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +4 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +2 -0
  73. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +1007 -314
  74. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +4 -0
  75. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +2 -0
  76. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +1727 -10
  77. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +235 -30
  78. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +1 -1
  79. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +17 -17
  80. package/uts-plugin.d.ts +11 -0
@@ -0,0 +1,842 @@
1
+ export interface Uni {
2
+ /**
3
+ * 设置屏幕亮度。
4
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
5
+ * @tutorial_uni_app_x https://uniapp.dcloud.net.cn/api/system/brightness.html
6
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
7
+ *
8
+ * @uniPlatform {
9
+ * "app": {
10
+ * "android": {
11
+ * "osVer": "5.0",
12
+ * "uniVer": "√",
13
+ * "unixVer": "x"
14
+ * },
15
+ * "ios": {
16
+ * "osVer": "12.0",
17
+ * "uniVer": "√",
18
+ * "unixVer": "x"
19
+ * },
20
+ * "harmony": {
21
+ * "osVer": "3.0",
22
+ * "uniVer": "4.81",
23
+ * "unixVer": "4.81"
24
+ * }
25
+ * },
26
+ * "web": {
27
+ * "uniVer": "x",
28
+ * "unixVer": "x"
29
+ * },
30
+ * "mp": {
31
+ * "weixin": {
32
+ * "hostVer": "1.2.0",
33
+ * "uniVer": "√",
34
+ * "unixVer": "4.41"
35
+ * },
36
+ * "alipay": {
37
+ * "hostVer": "√",
38
+ * "uniVer": "√",
39
+ * "unixVer": "x"
40
+ * },
41
+ * "baidu": {
42
+ * "hostVer": "√",
43
+ * "uniVer": "√",
44
+ * "unixVer": "x"
45
+ * },
46
+ * "toutiao": {
47
+ * "hostVer": "√",
48
+ * "uniVer": "√",
49
+ * "unixVer": "x"
50
+ * },
51
+ * "lark": {
52
+ * "hostVer": "√",
53
+ * "uniVer": "√",
54
+ * "unixVer": "x"
55
+ * },
56
+ * "qq": {
57
+ * "hostVer": "√",
58
+ * "uniVer": "√",
59
+ * "unixVer": "x"
60
+ * },
61
+ * "kuaishou": {
62
+ * "hostVer": "√",
63
+ * "uniVer": "√",
64
+ * "unixVer": "x"
65
+ * },
66
+ * "jd": {
67
+ * "hostVer": "√",
68
+ * "uniVer": "√",
69
+ * "unixVer": "x"
70
+ * }
71
+ * }
72
+ * }
73
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setScreenBrightness.html
74
+ */
75
+ setScreenBrightness(options : SetScreenBrightnessOptions) : void;
76
+ /**
77
+ * 获取屏幕亮度。
78
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
79
+ * @tutorial_uni_app_x https://uniapp.dcloud.net.cn/api/system/brightness.html
80
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
81
+ *
82
+ * @uniPlatform {
83
+ * "app": {
84
+ * "android": {
85
+ * "osVer": "5.0",
86
+ * "uniVer": "√",
87
+ * "unixVer": "x"
88
+ * },
89
+ * "ios": {
90
+ * "osVer": "12.0",
91
+ * "uniVer": "√",
92
+ * "unixVer": "x"
93
+ * },
94
+ * "harmony": {
95
+ * "osVer": "3.0",
96
+ * "uniVer": "4.81",
97
+ * "unixVer": "4.81"
98
+ * }
99
+ * },
100
+ * "web": {
101
+ * "uniVer": "x",
102
+ * "unixVer": "x"
103
+ * },
104
+ * "mp": {
105
+ * "weixin": {
106
+ * "hostVer": "1.2.0",
107
+ * "uniVer": "√",
108
+ * "unixVer": "4.41"
109
+ * },
110
+ * "alipay": {
111
+ * "hostVer": "√",
112
+ * "uniVer": "√",
113
+ * "unixVer": "x"
114
+ * },
115
+ * "baidu": {
116
+ * "hostVer": "√",
117
+ * "uniVer": "√",
118
+ * "unixVer": "x"
119
+ * },
120
+ * "toutiao": {
121
+ * "hostVer": "√",
122
+ * "uniVer": "√",
123
+ * "unixVer": "x"
124
+ * },
125
+ * "lark": {
126
+ * "hostVer": "√",
127
+ * "uniVer": "√",
128
+ * "unixVer": "x"
129
+ * },
130
+ * "qq": {
131
+ * "hostVer": "√",
132
+ * "uniVer": "√",
133
+ * "unixVer": "x"
134
+ * },
135
+ * "kuaishou": {
136
+ * "hostVer": "√",
137
+ * "uniVer": "√",
138
+ * "unixVer": "x"
139
+ * },
140
+ * "jd": {
141
+ * "hostVer": "√",
142
+ * "uniVer": "√",
143
+ * "unixVer": "x"
144
+ * }
145
+ * }
146
+ * }
147
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.getScreenBrightness.html
148
+ */
149
+ getScreenBrightness(options : GetScreenBrightnessOptions) : void;
150
+ /**
151
+ * 设置是否保持常亮状态。仅在当前应用生效,离开应用后设置失效。
152
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
153
+ * @tutorial_uni_app_x https://uniapp.dcloud.net.cn/api/system/brightness.html
154
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
155
+ *
156
+ * @uniPlatform {
157
+ * "app": {
158
+ * "android": {
159
+ * "osVer": "5.0",
160
+ * "uniVer": "√",
161
+ * "unixVer": "x"
162
+ * },
163
+ * "ios": {
164
+ * "osVer": "12.0",
165
+ * "uniVer": "√",
166
+ * "unixVer": "x"
167
+ * },
168
+ * "harmony": {
169
+ * "osVer": "3.0",
170
+ * "uniVer": "4.81",
171
+ * "unixVer": "4.81"
172
+ * }
173
+ * },
174
+ * "web": {
175
+ * "uniVer": "x",
176
+ * "unixVer": "x"
177
+ * },
178
+ * "mp": {
179
+ * "weixin": {
180
+ * "hostVer": "1.4.0",
181
+ * "uniVer": "√",
182
+ * "unixVer": "4.41"
183
+ * },
184
+ * "alipay": {
185
+ * "hostVer": "√",
186
+ * "uniVer": "√",
187
+ * "unixVer": "x"
188
+ * },
189
+ * "baidu": {
190
+ * "hostVer": "√",
191
+ * "uniVer": "√",
192
+ * "unixVer": "x"
193
+ * },
194
+ * "toutiao": {
195
+ * "hostVer": "√",
196
+ * "uniVer": "√",
197
+ * "unixVer": "x"
198
+ * },
199
+ * "lark": {
200
+ * "hostVer": "√",
201
+ * "uniVer": "√",
202
+ * "unixVer": "x"
203
+ * },
204
+ * "qq": {
205
+ * "hostVer": "√",
206
+ * "uniVer": "√",
207
+ * "unixVer": "x"
208
+ * },
209
+ * "kuaishou": {
210
+ * "hostVer": "√",
211
+ * "uniVer": "√",
212
+ * "unixVer": "x"
213
+ * },
214
+ * "jd": {
215
+ * "hostVer": "√",
216
+ * "uniVer": "√",
217
+ * "unixVer": "x"
218
+ * }
219
+ * }
220
+ * }
221
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setKeepScreenOn.html
222
+ */
223
+ setKeepScreenOn(options : SetKeepScreenOnOptions) : void;
224
+ }
225
+
226
+ export type SetScreenBrightness = (options : SetScreenBrightnessOptions) => void;
227
+ export type SetScreenBrightnessSuccess = {};
228
+ export type SetScreenBrightnessSuccessCallback = (result : SetScreenBrightnessSuccess) => void;
229
+ export type SetScreenBrightnessFail = UniError;
230
+ export type SetScreenBrightnessFailCallback = (result : SetScreenBrightnessFail) => void;
231
+ export type SetScreenBrightnessComplete = any;
232
+ export type SetScreenBrightnessCompleteCallback = (result : SetScreenBrightnessComplete) => void;
233
+
234
+ export type SetScreenBrightnessOptions = {
235
+ /**
236
+ * 屏幕亮度值,范围 0~1,0 最暗,1 最亮
237
+ * @uniPlatform {
238
+ * "mp": {
239
+ * "weixin": {
240
+ * "hostVer": "√",
241
+ * "uniVer": "√",
242
+ * "unixVer": "4.41"
243
+ * },
244
+ * "alipay": {
245
+ * "hostVer": "-",
246
+ * "uniVer": "-",
247
+ * "unixVer": "-"
248
+ * },
249
+ * "baidu": {
250
+ * "hostVer": "-",
251
+ * "uniVer": "-",
252
+ * "unixVer": "-"
253
+ * },
254
+ * "toutiao": {
255
+ * "hostVer": "-",
256
+ * "uniVer": "-",
257
+ * "unixVer": "-"
258
+ * },
259
+ * "lark": {
260
+ * "hostVer": "-",
261
+ * "uniVer": "-",
262
+ * "unixVer": "-"
263
+ * },
264
+ * "qq": {
265
+ * "hostVer": "-",
266
+ * "uniVer": "-",
267
+ * "unixVer": "-"
268
+ * },
269
+ * "kuaishou": {
270
+ * "hostVer": "-",
271
+ * "uniVer": "-",
272
+ * "unixVer": "-"
273
+ * },
274
+ * "jd": {
275
+ * "hostVer": "-",
276
+ * "uniVer": "-",
277
+ * "unixVer": "-"
278
+ * }
279
+ * }
280
+ * }
281
+ */
282
+ value : number,
283
+ /**
284
+ * 接口调用成功的回调函数
285
+ * @uniPlatform {
286
+ * "mp": {
287
+ * "weixin": {
288
+ * "hostVer": "√",
289
+ * "uniVer": "√",
290
+ * "unixVer": "4.41"
291
+ * },
292
+ * "alipay": {
293
+ * "hostVer": "-",
294
+ * "uniVer": "-",
295
+ * "unixVer": "-"
296
+ * },
297
+ * "baidu": {
298
+ * "hostVer": "-",
299
+ * "uniVer": "-",
300
+ * "unixVer": "-"
301
+ * },
302
+ * "toutiao": {
303
+ * "hostVer": "-",
304
+ * "uniVer": "-",
305
+ * "unixVer": "-"
306
+ * },
307
+ * "lark": {
308
+ * "hostVer": "-",
309
+ * "uniVer": "-",
310
+ * "unixVer": "-"
311
+ * },
312
+ * "qq": {
313
+ * "hostVer": "-",
314
+ * "uniVer": "-",
315
+ * "unixVer": "-"
316
+ * },
317
+ * "kuaishou": {
318
+ * "hostVer": "-",
319
+ * "uniVer": "-",
320
+ * "unixVer": "-"
321
+ * },
322
+ * "jd": {
323
+ * "hostVer": "-",
324
+ * "uniVer": "-",
325
+ * "unixVer": "-"
326
+ * }
327
+ * }
328
+ * }
329
+ */
330
+ success ?: SetScreenBrightnessSuccessCallback | null,
331
+ /**
332
+ * 接口调用失败的回调函数
333
+ * @uniPlatform {
334
+ * "mp": {
335
+ * "weixin": {
336
+ * "hostVer": "√",
337
+ * "uniVer": "√",
338
+ * "unixVer": "4.41"
339
+ * },
340
+ * "alipay": {
341
+ * "hostVer": "-",
342
+ * "uniVer": "-",
343
+ * "unixVer": "-"
344
+ * },
345
+ * "baidu": {
346
+ * "hostVer": "-",
347
+ * "uniVer": "-",
348
+ * "unixVer": "-"
349
+ * },
350
+ * "toutiao": {
351
+ * "hostVer": "-",
352
+ * "uniVer": "-",
353
+ * "unixVer": "-"
354
+ * },
355
+ * "lark": {
356
+ * "hostVer": "-",
357
+ * "uniVer": "-",
358
+ * "unixVer": "-"
359
+ * },
360
+ * "qq": {
361
+ * "hostVer": "-",
362
+ * "uniVer": "-",
363
+ * "unixVer": "-"
364
+ * },
365
+ * "kuaishou": {
366
+ * "hostVer": "-",
367
+ * "uniVer": "-",
368
+ * "unixVer": "-"
369
+ * },
370
+ * "jd": {
371
+ * "hostVer": "-",
372
+ * "uniVer": "-",
373
+ * "unixVer": "-"
374
+ * }
375
+ * }
376
+ * }
377
+ */
378
+ fail ?: SetScreenBrightnessFailCallback | null,
379
+ /**
380
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
381
+ * @uniPlatform {
382
+ * "mp": {
383
+ * "weixin": {
384
+ * "hostVer": "√",
385
+ * "uniVer": "√",
386
+ * "unixVer": "4.41"
387
+ * },
388
+ * "alipay": {
389
+ * "hostVer": "-",
390
+ * "uniVer": "-",
391
+ * "unixVer": "-"
392
+ * },
393
+ * "baidu": {
394
+ * "hostVer": "-",
395
+ * "uniVer": "-",
396
+ * "unixVer": "-"
397
+ * },
398
+ * "toutiao": {
399
+ * "hostVer": "-",
400
+ * "uniVer": "-",
401
+ * "unixVer": "-"
402
+ * },
403
+ * "lark": {
404
+ * "hostVer": "-",
405
+ * "uniVer": "-",
406
+ * "unixVer": "-"
407
+ * },
408
+ * "qq": {
409
+ * "hostVer": "-",
410
+ * "uniVer": "-",
411
+ * "unixVer": "-"
412
+ * },
413
+ * "kuaishou": {
414
+ * "hostVer": "-",
415
+ * "uniVer": "-",
416
+ * "unixVer": "-"
417
+ * },
418
+ * "jd": {
419
+ * "hostVer": "-",
420
+ * "uniVer": "-",
421
+ * "unixVer": "-"
422
+ * }
423
+ * }
424
+ * }
425
+ */
426
+ complete ?: SetScreenBrightnessCompleteCallback | null
427
+ };
428
+
429
+
430
+
431
+ export type GetScreenBrightness = (options : GetScreenBrightnessOptions) => void;
432
+ export type GetScreenBrightnessSuccess = {
433
+ /**
434
+ * 屏幕亮度值,范围 0~1,0 最暗,1 最亮。
435
+ * @uniPlatform {
436
+ * "mp": {
437
+ * "weixin": {
438
+ * "hostVer": "√",
439
+ * "uniVer": "√",
440
+ * "unixVer": "4.41"
441
+ * },
442
+ * "alipay": {
443
+ * "hostVer": "-",
444
+ * "uniVer": "-",
445
+ * "unixVer": "-"
446
+ * },
447
+ * "baidu": {
448
+ * "hostVer": "-",
449
+ * "uniVer": "-",
450
+ * "unixVer": "-"
451
+ * },
452
+ * "toutiao": {
453
+ * "hostVer": "-",
454
+ * "uniVer": "-",
455
+ * "unixVer": "-"
456
+ * },
457
+ * "lark": {
458
+ * "hostVer": "-",
459
+ * "uniVer": "-",
460
+ * "unixVer": "-"
461
+ * },
462
+ * "qq": {
463
+ * "hostVer": "-",
464
+ * "uniVer": "-",
465
+ * "unixVer": "-"
466
+ * },
467
+ * "kuaishou": {
468
+ * "hostVer": "-",
469
+ * "uniVer": "-",
470
+ * "unixVer": "-"
471
+ * },
472
+ * "jd": {
473
+ * "hostVer": "-",
474
+ * "uniVer": "-",
475
+ * "unixVer": "-"
476
+ * }
477
+ * }
478
+ * }
479
+ */
480
+ value : number
481
+ };
482
+ export type GetScreenBrightnessSuccessCallback = (result : GetScreenBrightnessSuccess) => void;
483
+ export type GetScreenBrightnessFail = UniError;
484
+ export type GetScreenBrightnessFailCallback = (result : GetScreenBrightnessFail) => void;
485
+ export type GetScreenBrightnessComplete = any;
486
+ export type GetScreenBrightnessCompleteCallback = (result : GetScreenBrightnessComplete) => void;
487
+ export type GetScreenBrightnessOptions = {
488
+ /**
489
+ * 成功返回的回调函数
490
+ * @uniPlatform {
491
+ * "mp": {
492
+ * "weixin": {
493
+ * "hostVer": "√",
494
+ * "uniVer": "√",
495
+ * "unixVer": "4.41"
496
+ * },
497
+ * "alipay": {
498
+ * "hostVer": "-",
499
+ * "uniVer": "-",
500
+ * "unixVer": "-"
501
+ * },
502
+ * "baidu": {
503
+ * "hostVer": "-",
504
+ * "uniVer": "-",
505
+ * "unixVer": "-"
506
+ * },
507
+ * "toutiao": {
508
+ * "hostVer": "-",
509
+ * "uniVer": "-",
510
+ * "unixVer": "-"
511
+ * },
512
+ * "lark": {
513
+ * "hostVer": "-",
514
+ * "uniVer": "-",
515
+ * "unixVer": "-"
516
+ * },
517
+ * "qq": {
518
+ * "hostVer": "-",
519
+ * "uniVer": "-",
520
+ * "unixVer": "-"
521
+ * },
522
+ * "kuaishou": {
523
+ * "hostVer": "-",
524
+ * "uniVer": "-",
525
+ * "unixVer": "-"
526
+ * },
527
+ * "jd": {
528
+ * "hostVer": "-",
529
+ * "uniVer": "-",
530
+ * "unixVer": "-"
531
+ * }
532
+ * }
533
+ * }
534
+ */
535
+ success ?: GetScreenBrightnessSuccessCallback | null,
536
+ /**
537
+ * 失败的回调函数
538
+ * @uniPlatform {
539
+ * "mp": {
540
+ * "weixin": {
541
+ * "hostVer": "√",
542
+ * "uniVer": "√",
543
+ * "unixVer": "4.41"
544
+ * },
545
+ * "alipay": {
546
+ * "hostVer": "-",
547
+ * "uniVer": "-",
548
+ * "unixVer": "-"
549
+ * },
550
+ * "baidu": {
551
+ * "hostVer": "-",
552
+ * "uniVer": "-",
553
+ * "unixVer": "-"
554
+ * },
555
+ * "toutiao": {
556
+ * "hostVer": "-",
557
+ * "uniVer": "-",
558
+ * "unixVer": "-"
559
+ * },
560
+ * "lark": {
561
+ * "hostVer": "-",
562
+ * "uniVer": "-",
563
+ * "unixVer": "-"
564
+ * },
565
+ * "qq": {
566
+ * "hostVer": "-",
567
+ * "uniVer": "-",
568
+ * "unixVer": "-"
569
+ * },
570
+ * "kuaishou": {
571
+ * "hostVer": "-",
572
+ * "uniVer": "-",
573
+ * "unixVer": "-"
574
+ * },
575
+ * "jd": {
576
+ * "hostVer": "-",
577
+ * "uniVer": "-",
578
+ * "unixVer": "-"
579
+ * }
580
+ * }
581
+ * }
582
+ */
583
+ fail ?: GetScreenBrightnessFailCallback | null,
584
+ /**
585
+ * 结束的回调函数(调用成功、失败都会执行)
586
+ * @uniPlatform {
587
+ * "mp": {
588
+ * "weixin": {
589
+ * "hostVer": "√",
590
+ * "uniVer": "√",
591
+ * "unixVer": "4.41"
592
+ * },
593
+ * "alipay": {
594
+ * "hostVer": "-",
595
+ * "uniVer": "-",
596
+ * "unixVer": "-"
597
+ * },
598
+ * "baidu": {
599
+ * "hostVer": "-",
600
+ * "uniVer": "-",
601
+ * "unixVer": "-"
602
+ * },
603
+ * "toutiao": {
604
+ * "hostVer": "-",
605
+ * "uniVer": "-",
606
+ * "unixVer": "-"
607
+ * },
608
+ * "lark": {
609
+ * "hostVer": "-",
610
+ * "uniVer": "-",
611
+ * "unixVer": "-"
612
+ * },
613
+ * "qq": {
614
+ * "hostVer": "-",
615
+ * "uniVer": "-",
616
+ * "unixVer": "-"
617
+ * },
618
+ * "kuaishou": {
619
+ * "hostVer": "-",
620
+ * "uniVer": "-",
621
+ * "unixVer": "-"
622
+ * },
623
+ * "jd": {
624
+ * "hostVer": "-",
625
+ * "uniVer": "-",
626
+ * "unixVer": "-"
627
+ * }
628
+ * }
629
+ * }
630
+ */
631
+ complete ?: GetScreenBrightnessCompleteCallback | null
632
+ };
633
+
634
+
635
+
636
+ export type SetKeepScreenOn = (options : SetKeepScreenOnOptions) => void;
637
+ export type SetKeepScreenOnSuccess = {
638
+ /**
639
+ * 调用结果
640
+ */
641
+ errMsg:string
642
+ };
643
+ export type SetKeepScreenOnSuccessCallback = (result : SetKeepScreenOnSuccess) => void;
644
+ export type SetKeepScreenOnFail = UniError;
645
+ export type SetKeepScreenOnFailCallback = (result : SetKeepScreenOnFail) => void;
646
+ export type SetKeepScreenOnComplete = any;
647
+ export type SetKeepScreenOnCompleteCallback = (result : SetKeepScreenOnComplete) => void;
648
+
649
+ export type SetKeepScreenOnOptions = {
650
+ /**
651
+ * 是否保持屏幕常亮
652
+ * @uniPlatform {
653
+ * "mp": {
654
+ * "weixin": {
655
+ * "hostVer": "√",
656
+ * "uniVer": "√",
657
+ * "unixVer": "4.41"
658
+ * },
659
+ * "alipay": {
660
+ * "hostVer": "-",
661
+ * "uniVer": "-",
662
+ * "unixVer": "-"
663
+ * },
664
+ * "baidu": {
665
+ * "hostVer": "-",
666
+ * "uniVer": "-",
667
+ * "unixVer": "-"
668
+ * },
669
+ * "toutiao": {
670
+ * "hostVer": "-",
671
+ * "uniVer": "-",
672
+ * "unixVer": "-"
673
+ * },
674
+ * "lark": {
675
+ * "hostVer": "-",
676
+ * "uniVer": "-",
677
+ * "unixVer": "-"
678
+ * },
679
+ * "qq": {
680
+ * "hostVer": "-",
681
+ * "uniVer": "-",
682
+ * "unixVer": "-"
683
+ * },
684
+ * "kuaishou": {
685
+ * "hostVer": "-",
686
+ * "uniVer": "-",
687
+ * "unixVer": "-"
688
+ * },
689
+ * "jd": {
690
+ * "hostVer": "-",
691
+ * "uniVer": "-",
692
+ * "unixVer": "-"
693
+ * }
694
+ * }
695
+ * }
696
+ */
697
+ keepScreenOn : Boolean,
698
+ /**
699
+ * 接口调用成功的回调函数
700
+ * @uniPlatform {
701
+ * "mp": {
702
+ * "weixin": {
703
+ * "hostVer": "√",
704
+ * "uniVer": "√",
705
+ * "unixVer": "4.41"
706
+ * },
707
+ * "alipay": {
708
+ * "hostVer": "-",
709
+ * "uniVer": "-",
710
+ * "unixVer": "-"
711
+ * },
712
+ * "baidu": {
713
+ * "hostVer": "-",
714
+ * "uniVer": "-",
715
+ * "unixVer": "-"
716
+ * },
717
+ * "toutiao": {
718
+ * "hostVer": "-",
719
+ * "uniVer": "-",
720
+ * "unixVer": "-"
721
+ * },
722
+ * "lark": {
723
+ * "hostVer": "-",
724
+ * "uniVer": "-",
725
+ * "unixVer": "-"
726
+ * },
727
+ * "qq": {
728
+ * "hostVer": "-",
729
+ * "uniVer": "-",
730
+ * "unixVer": "-"
731
+ * },
732
+ * "kuaishou": {
733
+ * "hostVer": "-",
734
+ * "uniVer": "-",
735
+ * "unixVer": "-"
736
+ * },
737
+ * "jd": {
738
+ * "hostVer": "-",
739
+ * "uniVer": "-",
740
+ * "unixVer": "-"
741
+ * }
742
+ * }
743
+ * }
744
+ */
745
+ success ?: SetScreenBrightnessSuccessCallback | null,
746
+ /**
747
+ * 接口调用失败的回调函数
748
+ * @uniPlatform {
749
+ * "mp": {
750
+ * "weixin": {
751
+ * "hostVer": "√",
752
+ * "uniVer": "√",
753
+ * "unixVer": "4.41"
754
+ * },
755
+ * "alipay": {
756
+ * "hostVer": "-",
757
+ * "uniVer": "-",
758
+ * "unixVer": "-"
759
+ * },
760
+ * "baidu": {
761
+ * "hostVer": "-",
762
+ * "uniVer": "-",
763
+ * "unixVer": "-"
764
+ * },
765
+ * "toutiao": {
766
+ * "hostVer": "-",
767
+ * "uniVer": "-",
768
+ * "unixVer": "-"
769
+ * },
770
+ * "lark": {
771
+ * "hostVer": "-",
772
+ * "uniVer": "-",
773
+ * "unixVer": "-"
774
+ * },
775
+ * "qq": {
776
+ * "hostVer": "-",
777
+ * "uniVer": "-",
778
+ * "unixVer": "-"
779
+ * },
780
+ * "kuaishou": {
781
+ * "hostVer": "-",
782
+ * "uniVer": "-",
783
+ * "unixVer": "-"
784
+ * },
785
+ * "jd": {
786
+ * "hostVer": "-",
787
+ * "uniVer": "-",
788
+ * "unixVer": "-"
789
+ * }
790
+ * }
791
+ * }
792
+ */
793
+ fail ?: SetScreenBrightnessFailCallback | null,
794
+ /**
795
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
796
+ * @uniPlatform {
797
+ * "mp": {
798
+ * "weixin": {
799
+ * "hostVer": "√",
800
+ * "uniVer": "√",
801
+ * "unixVer": "4.41"
802
+ * },
803
+ * "alipay": {
804
+ * "hostVer": "-",
805
+ * "uniVer": "-",
806
+ * "unixVer": "-"
807
+ * },
808
+ * "baidu": {
809
+ * "hostVer": "-",
810
+ * "uniVer": "-",
811
+ * "unixVer": "-"
812
+ * },
813
+ * "toutiao": {
814
+ * "hostVer": "-",
815
+ * "uniVer": "-",
816
+ * "unixVer": "-"
817
+ * },
818
+ * "lark": {
819
+ * "hostVer": "-",
820
+ * "uniVer": "-",
821
+ * "unixVer": "-"
822
+ * },
823
+ * "qq": {
824
+ * "hostVer": "-",
825
+ * "uniVer": "-",
826
+ * "unixVer": "-"
827
+ * },
828
+ * "kuaishou": {
829
+ * "hostVer": "-",
830
+ * "uniVer": "-",
831
+ * "unixVer": "-"
832
+ * },
833
+ * "jd": {
834
+ * "hostVer": "-",
835
+ * "uniVer": "-",
836
+ * "unixVer": "-"
837
+ * }
838
+ * }
839
+ * }
840
+ */
841
+ complete ?: SetScreenBrightnessCompleteCallback | null
842
+ };