@dcloudio/uni-app-x 0.7.121 → 0.7.122

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 (110) hide show
  1. package/README.md +87 -0
  2. package/package.json +1 -1
  3. package/types/dom2-internal/UniCommon.d.ts +7 -2
  4. package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
  5. package/types/uni/uts-plugin-api/global.d.ts +8 -0
  6. package/types/uni/uts-plugin-api/index.d.ts +8 -0
  7. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  8. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  9. package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  10. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
  11. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
  12. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
  13. package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  14. package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  15. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
  16. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
  17. package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
  18. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
  19. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
  20. package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
  21. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  22. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  23. package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  24. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  25. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  26. package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  27. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  28. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  29. package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
  30. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  31. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  32. package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  33. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
  34. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
  35. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
  36. package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  37. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  38. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  39. package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  40. package/types/uni/uts-plugin-biz/global.d.ts +9 -0
  41. package/types/uni/uts-plugin-biz/index.d.ts +9 -0
  42. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  43. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  44. package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  45. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
  46. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
  47. package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
  48. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
  49. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
  50. package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  51. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
  52. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
  53. package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
  54. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  55. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  56. package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  57. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  58. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  59. package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  60. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  61. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  62. package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  63. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
  64. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
  65. package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
  67. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  68. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  69. package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  70. package/types/uni/uts-plugin-component/global.d.ts +8 -1
  71. package/types/uni/uts-plugin-component/index.d.ts +8 -1
  72. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
  73. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
  74. package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
  75. package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
  76. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
  77. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
  78. package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
  79. package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
  80. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
  81. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
  82. package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
  83. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
  84. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
  85. package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
  86. package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
  87. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
  88. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
  89. package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
  90. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
  91. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
  92. package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
  93. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
  94. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
  95. package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
  96. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
  97. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
  98. package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
  99. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
  100. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
  101. package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
  102. package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
  103. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
  104. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
  105. package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
  106. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
  107. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
  108. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
  109. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
  110. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
@@ -0,0 +1,1172 @@
1
+ export interface Uni {
2
+ /**
3
+ * 设置屏幕亮度。
4
+ * @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
5
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/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": "5.08"
14
+ * },
15
+ * "ios": {
16
+ * "osVer": "12.0",
17
+ * "uniVer": "√",
18
+ * "unixVer": "5.08"
19
+ * },
20
+ * "harmony": {
21
+ * "osVer": "3.0",
22
+ * "uniVer": "4.81",
23
+ * "unixVer": "4.81",
24
+ * "unixVaporVer": "5.0"
25
+ * }
26
+ * },
27
+ * "web": {
28
+ * "uniVer": "x",
29
+ * "unixVer": "x"
30
+ * },
31
+ * "mp":{
32
+ * "weixin": {
33
+ * "hostVer": "√",
34
+ * "uniVer": "√",
35
+ * "unixVer": "4.41"
36
+ * },
37
+ * "alipay": {
38
+ * "hostVer": "√",
39
+ * "uniVer": "√",
40
+ * "unixVer": "x"
41
+ * },
42
+ * "baidu": {
43
+ * "hostVer": "√",
44
+ * "uniVer": "√",
45
+ * "unixVer": "x"
46
+ * },
47
+ * "toutiao": {
48
+ * "hostVer": "√",
49
+ * "uniVer": "√",
50
+ * "unixVer": "x"
51
+ * },
52
+ * "lark": {
53
+ * "hostVer": "√",
54
+ * "uniVer": "√",
55
+ * "unixVer": "x"
56
+ * },
57
+ * "qq": {
58
+ * "hostVer": "√",
59
+ * "uniVer": "√",
60
+ * "unixVer": "x"
61
+ * },
62
+ * "kuaishou": {
63
+ * "hostVer": "√",
64
+ * "uniVer": "√",
65
+ * "unixVer": "x"
66
+ * },
67
+ * "jd": {
68
+ * "hostVer": "√",
69
+ * "uniVer": "√",
70
+ * "unixVer": "x"
71
+ * }
72
+ * }
73
+ * }
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://doc.dcloud.net.cn/uni-app-x/api/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": "5.08"
88
+ * },
89
+ * "ios": {
90
+ * "osVer": "12.0",
91
+ * "uniVer": "√",
92
+ * "unixVer": "5.08"
93
+ * },
94
+ * "harmony": {
95
+ * "osVer": "3.0",
96
+ * "uniVer": "4.81",
97
+ * "unixVer": "4.81",
98
+ * "unixVaporVer": "5.0"
99
+ * }
100
+ * },
101
+ * "web": {
102
+ * "uniVer": "x",
103
+ * "unixVer": "x"
104
+ * },
105
+ * "mp":{
106
+ * "weixin": {
107
+ * "hostVer": "√",
108
+ * "uniVer": "√",
109
+ * "unixVer": "4.41"
110
+ * },
111
+ * "alipay": {
112
+ * "hostVer": "√",
113
+ * "uniVer": "√",
114
+ * "unixVer": "x"
115
+ * },
116
+ * "baidu": {
117
+ * "hostVer": "√",
118
+ * "uniVer": "√",
119
+ * "unixVer": "x"
120
+ * },
121
+ * "toutiao": {
122
+ * "hostVer": "√",
123
+ * "uniVer": "√",
124
+ * "unixVer": "x"
125
+ * },
126
+ * "lark": {
127
+ * "hostVer": "√",
128
+ * "uniVer": "√",
129
+ * "unixVer": "x"
130
+ * },
131
+ * "qq": {
132
+ * "hostVer": "√",
133
+ * "uniVer": "√",
134
+ * "unixVer": "x"
135
+ * },
136
+ * "kuaishou": {
137
+ * "hostVer": "√",
138
+ * "uniVer": "√",
139
+ * "unixVer": "x"
140
+ * },
141
+ * "jd": {
142
+ * "hostVer": "√",
143
+ * "uniVer": "√",
144
+ * "unixVer": "x"
145
+ * }
146
+ * }
147
+ * }
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://doc.dcloud.net.cn/uni-app-x/api/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": "5.08"
162
+ * },
163
+ * "ios": {
164
+ * "osVer": "12.0",
165
+ * "uniVer": "√",
166
+ * "unixVer": "5.08"
167
+ * },
168
+ * "harmony": {
169
+ * "osVer": "3.0",
170
+ * "uniVer": "4.81",
171
+ * "unixVer": "4.81",
172
+ * "unixVaporVer": "5.0"
173
+ * }
174
+ * },
175
+ * "web": {
176
+ * "uniVer": "x",
177
+ * "unixVer": "5.08"
178
+ * },
179
+ * "mp":{
180
+ * "weixin": {
181
+ * "hostVer": "√",
182
+ * "uniVer": "√",
183
+ * "unixVer": "4.41"
184
+ * },
185
+ * "alipay": {
186
+ * "hostVer": "√",
187
+ * "uniVer": "√",
188
+ * "unixVer": "x"
189
+ * },
190
+ * "baidu": {
191
+ * "hostVer": "√",
192
+ * "uniVer": "√",
193
+ * "unixVer": "x"
194
+ * },
195
+ * "toutiao": {
196
+ * "hostVer": "√",
197
+ * "uniVer": "√",
198
+ * "unixVer": "x"
199
+ * },
200
+ * "lark": {
201
+ * "hostVer": "√",
202
+ * "uniVer": "√",
203
+ * "unixVer": "x"
204
+ * },
205
+ * "qq": {
206
+ * "hostVer": "√",
207
+ * "uniVer": "√",
208
+ * "unixVer": "x"
209
+ * },
210
+ * "kuaishou": {
211
+ * "hostVer": "√",
212
+ * "uniVer": "√",
213
+ * "unixVer": "x"
214
+ * },
215
+ * "jd": {
216
+ * "hostVer": "√",
217
+ * "uniVer": "√",
218
+ * "unixVer": "x"
219
+ * }
220
+ * }
221
+ * }
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 = SetScreenBrightnessSuccess | SetScreenBrightnessFail;
232
+ export type SetScreenBrightnessCompleteCallback = (result : SetScreenBrightnessComplete) => void;
233
+
234
+ export type SetScreenBrightnessOptions = {
235
+ /**
236
+ * 屏幕亮度值,范围 0~1,0 最暗,1 最亮
237
+ * @uniPlatform {
238
+ * "app": {
239
+ * "android": {
240
+ * "osVer": "5.0",
241
+ * "uniVer": "√",
242
+ * "unixVer": "5.08"
243
+ * },
244
+ * "ios": {
245
+ * "osVer": "12.0",
246
+ * "uniVer": "√",
247
+ * "unixVer": "5.08"
248
+ * },
249
+ * "harmony": {
250
+ * "osVer": "3.0",
251
+ * "uniVer": "4.81",
252
+ * "unixVer": "4.81",
253
+ * "unixVaporVer": "5.0"
254
+ * }
255
+ * },
256
+ * "web": {
257
+ * "uniVer": "x",
258
+ * "unixVer": "x"
259
+ * },
260
+ * "mp":{
261
+ * "weixin": {
262
+ * "hostVer": "√",
263
+ * "uniVer": "√",
264
+ * "unixVer": "4.41"
265
+ * },
266
+ * "alipay": {
267
+ * "hostVer": "√",
268
+ * "uniVer": "√",
269
+ * "unixVer": "x"
270
+ * },
271
+ * "baidu": {
272
+ * "hostVer": "√",
273
+ * "uniVer": "√",
274
+ * "unixVer": "x"
275
+ * },
276
+ * "toutiao": {
277
+ * "hostVer": "√",
278
+ * "uniVer": "√",
279
+ * "unixVer": "x"
280
+ * },
281
+ * "lark": {
282
+ * "hostVer": "√",
283
+ * "uniVer": "√",
284
+ * "unixVer": "x"
285
+ * },
286
+ * "qq": {
287
+ * "hostVer": "√",
288
+ * "uniVer": "√",
289
+ * "unixVer": "x"
290
+ * },
291
+ * "kuaishou": {
292
+ * "hostVer": "√",
293
+ * "uniVer": "√",
294
+ * "unixVer": "x"
295
+ * },
296
+ * "jd": {
297
+ * "hostVer": "√",
298
+ * "uniVer": "√",
299
+ * "unixVer": "x"
300
+ * }
301
+ * }
302
+ * }
303
+ */
304
+ value : number,
305
+ /**
306
+ * 接口调用成功的回调函数
307
+ * @uniPlatform {
308
+ * "app": {
309
+ * "android": {
310
+ * "osVer": "5.0",
311
+ * "uniVer": "√",
312
+ * "unixVer": "5.08"
313
+ * },
314
+ * "ios": {
315
+ * "osVer": "12.0",
316
+ * "uniVer": "√",
317
+ * "unixVer": "5.08"
318
+ * },
319
+ * "harmony": {
320
+ * "osVer": "3.0",
321
+ * "uniVer": "4.81",
322
+ * "unixVer": "4.81",
323
+ * "unixVaporVer": "5.0"
324
+ * }
325
+ * },
326
+ * "web": {
327
+ * "uniVer": "x",
328
+ * "unixVer": "x"
329
+ * },
330
+ * "mp":{
331
+ * "weixin": {
332
+ * "hostVer": "√",
333
+ * "uniVer": "√",
334
+ * "unixVer": "4.41"
335
+ * },
336
+ * "alipay": {
337
+ * "hostVer": "√",
338
+ * "uniVer": "√",
339
+ * "unixVer": "x"
340
+ * },
341
+ * "baidu": {
342
+ * "hostVer": "√",
343
+ * "uniVer": "√",
344
+ * "unixVer": "x"
345
+ * },
346
+ * "toutiao": {
347
+ * "hostVer": "√",
348
+ * "uniVer": "√",
349
+ * "unixVer": "x"
350
+ * },
351
+ * "lark": {
352
+ * "hostVer": "√",
353
+ * "uniVer": "√",
354
+ * "unixVer": "x"
355
+ * },
356
+ * "qq": {
357
+ * "hostVer": "√",
358
+ * "uniVer": "√",
359
+ * "unixVer": "x"
360
+ * },
361
+ * "kuaishou": {
362
+ * "hostVer": "√",
363
+ * "uniVer": "√",
364
+ * "unixVer": "x"
365
+ * },
366
+ * "jd": {
367
+ * "hostVer": "√",
368
+ * "uniVer": "√",
369
+ * "unixVer": "x"
370
+ * }
371
+ * }
372
+ * }
373
+ */
374
+ success ?: SetScreenBrightnessSuccessCallback | null,
375
+ /**
376
+ * 接口调用失败的回调函数
377
+ * @uniPlatform {
378
+ * "app": {
379
+ * "android": {
380
+ * "osVer": "5.0",
381
+ * "uniVer": "√",
382
+ * "unixVer": "5.08"
383
+ * },
384
+ * "ios": {
385
+ * "osVer": "12.0",
386
+ * "uniVer": "√",
387
+ * "unixVer": "5.08"
388
+ * },
389
+ * "harmony": {
390
+ * "osVer": "3.0",
391
+ * "uniVer": "4.81",
392
+ * "unixVer": "4.81",
393
+ * "unixVaporVer": "5.0"
394
+ * }
395
+ * },
396
+ * "web": {
397
+ * "uniVer": "x",
398
+ * "unixVer": "x"
399
+ * },
400
+ * "mp":{
401
+ * "weixin": {
402
+ * "hostVer": "√",
403
+ * "uniVer": "√",
404
+ * "unixVer": "4.41"
405
+ * },
406
+ * "alipay": {
407
+ * "hostVer": "√",
408
+ * "uniVer": "√",
409
+ * "unixVer": "x"
410
+ * },
411
+ * "baidu": {
412
+ * "hostVer": "√",
413
+ * "uniVer": "√",
414
+ * "unixVer": "x"
415
+ * },
416
+ * "toutiao": {
417
+ * "hostVer": "√",
418
+ * "uniVer": "√",
419
+ * "unixVer": "x"
420
+ * },
421
+ * "lark": {
422
+ * "hostVer": "√",
423
+ * "uniVer": "√",
424
+ * "unixVer": "x"
425
+ * },
426
+ * "qq": {
427
+ * "hostVer": "√",
428
+ * "uniVer": "√",
429
+ * "unixVer": "x"
430
+ * },
431
+ * "kuaishou": {
432
+ * "hostVer": "√",
433
+ * "uniVer": "√",
434
+ * "unixVer": "x"
435
+ * },
436
+ * "jd": {
437
+ * "hostVer": "√",
438
+ * "uniVer": "√",
439
+ * "unixVer": "x"
440
+ * }
441
+ * }
442
+ * }
443
+ */
444
+ fail ?: SetScreenBrightnessFailCallback | null,
445
+ /**
446
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
447
+ * @uniPlatform {
448
+ * "app": {
449
+ * "android": {
450
+ * "osVer": "5.0",
451
+ * "uniVer": "√",
452
+ * "unixVer": "5.08"
453
+ * },
454
+ * "ios": {
455
+ * "osVer": "12.0",
456
+ * "uniVer": "√",
457
+ * "unixVer": "5.08"
458
+ * },
459
+ * "harmony": {
460
+ * "osVer": "3.0",
461
+ * "uniVer": "4.81",
462
+ * "unixVer": "4.81",
463
+ * "unixVaporVer": "5.0"
464
+ * }
465
+ * },
466
+ * "web": {
467
+ * "uniVer": "x",
468
+ * "unixVer": "x"
469
+ * },
470
+ * "mp":{
471
+ * "weixin": {
472
+ * "hostVer": "√",
473
+ * "uniVer": "√",
474
+ * "unixVer": "4.41"
475
+ * },
476
+ * "alipay": {
477
+ * "hostVer": "√",
478
+ * "uniVer": "√",
479
+ * "unixVer": "x"
480
+ * },
481
+ * "baidu": {
482
+ * "hostVer": "√",
483
+ * "uniVer": "√",
484
+ * "unixVer": "x"
485
+ * },
486
+ * "toutiao": {
487
+ * "hostVer": "√",
488
+ * "uniVer": "√",
489
+ * "unixVer": "x"
490
+ * },
491
+ * "lark": {
492
+ * "hostVer": "√",
493
+ * "uniVer": "√",
494
+ * "unixVer": "x"
495
+ * },
496
+ * "qq": {
497
+ * "hostVer": "√",
498
+ * "uniVer": "√",
499
+ * "unixVer": "x"
500
+ * },
501
+ * "kuaishou": {
502
+ * "hostVer": "√",
503
+ * "uniVer": "√",
504
+ * "unixVer": "x"
505
+ * },
506
+ * "jd": {
507
+ * "hostVer": "√",
508
+ * "uniVer": "√",
509
+ * "unixVer": "x"
510
+ * }
511
+ * }
512
+ * }
513
+ */
514
+ complete ?: SetScreenBrightnessCompleteCallback | null
515
+ };
516
+
517
+
518
+
519
+ export type GetScreenBrightness = (options : GetScreenBrightnessOptions) => void;
520
+ export type GetScreenBrightnessSuccess = {
521
+ /**
522
+ * 屏幕亮度值,范围 0~1,0 最暗,1 最亮。
523
+ * @uniPlatform {
524
+ * "app": {
525
+ * "android": {
526
+ * "osVer": "5.0",
527
+ * "uniVer": "√",
528
+ * "unixVer": "5.08"
529
+ * },
530
+ * "ios": {
531
+ * "osVer": "12.0",
532
+ * "uniVer": "√",
533
+ * "unixVer": "5.08"
534
+ * },
535
+ * "harmony": {
536
+ * "osVer": "3.0",
537
+ * "uniVer": "4.81",
538
+ * "unixVer": "4.81",
539
+ * "unixVaporVer": "5.0"
540
+ * }
541
+ * },
542
+ * "web": {
543
+ * "uniVer": "x",
544
+ * "unixVer": "x"
545
+ * },
546
+ * "mp":{
547
+ * "weixin": {
548
+ * "hostVer": "√",
549
+ * "uniVer": "√",
550
+ * "unixVer": "4.41"
551
+ * },
552
+ * "alipay": {
553
+ * "hostVer": "√",
554
+ * "uniVer": "√",
555
+ * "unixVer": "x"
556
+ * },
557
+ * "baidu": {
558
+ * "hostVer": "√",
559
+ * "uniVer": "√",
560
+ * "unixVer": "x"
561
+ * },
562
+ * "toutiao": {
563
+ * "hostVer": "√",
564
+ * "uniVer": "√",
565
+ * "unixVer": "x"
566
+ * },
567
+ * "lark": {
568
+ * "hostVer": "√",
569
+ * "uniVer": "√",
570
+ * "unixVer": "x"
571
+ * },
572
+ * "qq": {
573
+ * "hostVer": "√",
574
+ * "uniVer": "√",
575
+ * "unixVer": "x"
576
+ * },
577
+ * "kuaishou": {
578
+ * "hostVer": "√",
579
+ * "uniVer": "√",
580
+ * "unixVer": "x"
581
+ * },
582
+ * "jd": {
583
+ * "hostVer": "√",
584
+ * "uniVer": "√",
585
+ * "unixVer": "x"
586
+ * }
587
+ * }
588
+ * }
589
+ */
590
+ value : number
591
+ };
592
+ export type GetScreenBrightnessSuccessCallback = (result : GetScreenBrightnessSuccess) => void;
593
+ export type GetScreenBrightnessFail = UniError;
594
+ export type GetScreenBrightnessFailCallback = (result : GetScreenBrightnessFail) => void;
595
+ export type GetScreenBrightnessComplete = GetScreenBrightnessSuccess | GetScreenBrightnessFail;
596
+ export type GetScreenBrightnessCompleteCallback = (result : GetScreenBrightnessComplete) => void;
597
+ export type GetScreenBrightnessOptions = {
598
+ /**
599
+ * 成功返回的回调函数
600
+ * @uniPlatform {
601
+ * "app": {
602
+ * "android": {
603
+ * "osVer": "5.0",
604
+ * "uniVer": "√",
605
+ * "unixVer": "5.08"
606
+ * },
607
+ * "ios": {
608
+ * "osVer": "12.0",
609
+ * "uniVer": "√",
610
+ * "unixVer": "5.08"
611
+ * },
612
+ * "harmony": {
613
+ * "osVer": "3.0",
614
+ * "uniVer": "4.81",
615
+ * "unixVer": "4.81",
616
+ * "unixVaporVer": "5.0"
617
+ * }
618
+ * },
619
+ * "web": {
620
+ * "uniVer": "x",
621
+ * "unixVer": "x"
622
+ * },
623
+ * "mp":{
624
+ * "weixin": {
625
+ * "hostVer": "√",
626
+ * "uniVer": "√",
627
+ * "unixVer": "4.41"
628
+ * },
629
+ * "alipay": {
630
+ * "hostVer": "√",
631
+ * "uniVer": "√",
632
+ * "unixVer": "x"
633
+ * },
634
+ * "baidu": {
635
+ * "hostVer": "√",
636
+ * "uniVer": "√",
637
+ * "unixVer": "x"
638
+ * },
639
+ * "toutiao": {
640
+ * "hostVer": "√",
641
+ * "uniVer": "√",
642
+ * "unixVer": "x"
643
+ * },
644
+ * "lark": {
645
+ * "hostVer": "√",
646
+ * "uniVer": "√",
647
+ * "unixVer": "x"
648
+ * },
649
+ * "qq": {
650
+ * "hostVer": "√",
651
+ * "uniVer": "√",
652
+ * "unixVer": "x"
653
+ * },
654
+ * "kuaishou": {
655
+ * "hostVer": "√",
656
+ * "uniVer": "√",
657
+ * "unixVer": "x"
658
+ * },
659
+ * "jd": {
660
+ * "hostVer": "√",
661
+ * "uniVer": "√",
662
+ * "unixVer": "x"
663
+ * }
664
+ * }
665
+ * }
666
+ */
667
+ success ?: GetScreenBrightnessSuccessCallback | null,
668
+ /**
669
+ * 失败的回调函数
670
+ * @uniPlatform {
671
+ * "app": {
672
+ * "android": {
673
+ * "osVer": "5.0",
674
+ * "uniVer": "√",
675
+ * "unixVer": "5.08"
676
+ * },
677
+ * "ios": {
678
+ * "osVer": "12.0",
679
+ * "uniVer": "√",
680
+ * "unixVer": "5.08"
681
+ * },
682
+ * "harmony": {
683
+ * "osVer": "3.0",
684
+ * "uniVer": "4.81",
685
+ * "unixVer": "4.81",
686
+ * "unixVaporVer": "5.0"
687
+ * }
688
+ * },
689
+ * "web": {
690
+ * "uniVer": "x",
691
+ * "unixVer": "x"
692
+ * },
693
+ * "mp":{
694
+ * "weixin": {
695
+ * "hostVer": "√",
696
+ * "uniVer": "√",
697
+ * "unixVer": "4.41"
698
+ * },
699
+ * "alipay": {
700
+ * "hostVer": "√",
701
+ * "uniVer": "√",
702
+ * "unixVer": "x"
703
+ * },
704
+ * "baidu": {
705
+ * "hostVer": "√",
706
+ * "uniVer": "√",
707
+ * "unixVer": "x"
708
+ * },
709
+ * "toutiao": {
710
+ * "hostVer": "√",
711
+ * "uniVer": "√",
712
+ * "unixVer": "x"
713
+ * },
714
+ * "lark": {
715
+ * "hostVer": "√",
716
+ * "uniVer": "√",
717
+ * "unixVer": "x"
718
+ * },
719
+ * "qq": {
720
+ * "hostVer": "√",
721
+ * "uniVer": "√",
722
+ * "unixVer": "x"
723
+ * },
724
+ * "kuaishou": {
725
+ * "hostVer": "√",
726
+ * "uniVer": "√",
727
+ * "unixVer": "x"
728
+ * },
729
+ * "jd": {
730
+ * "hostVer": "√",
731
+ * "uniVer": "√",
732
+ * "unixVer": "x"
733
+ * }
734
+ * }
735
+ * }
736
+ */
737
+ fail ?: GetScreenBrightnessFailCallback | null,
738
+ /**
739
+ * 结束的回调函数(调用成功、失败都会执行)
740
+ * @uniPlatform {
741
+ * "app": {
742
+ * "android": {
743
+ * "osVer": "5.0",
744
+ * "uniVer": "√",
745
+ * "unixVer": "5.08"
746
+ * },
747
+ * "ios": {
748
+ * "osVer": "12.0",
749
+ * "uniVer": "√",
750
+ * "unixVer": "5.08"
751
+ * },
752
+ * "harmony": {
753
+ * "osVer": "3.0",
754
+ * "uniVer": "4.81",
755
+ * "unixVer": "4.81",
756
+ * "unixVaporVer": "5.0"
757
+ * }
758
+ * },
759
+ * "web": {
760
+ * "uniVer": "x",
761
+ * "unixVer": "x"
762
+ * },
763
+ * "mp":{
764
+ * "weixin": {
765
+ * "hostVer": "√",
766
+ * "uniVer": "√",
767
+ * "unixVer": "4.41"
768
+ * },
769
+ * "alipay": {
770
+ * "hostVer": "√",
771
+ * "uniVer": "√",
772
+ * "unixVer": "x"
773
+ * },
774
+ * "baidu": {
775
+ * "hostVer": "√",
776
+ * "uniVer": "√",
777
+ * "unixVer": "x"
778
+ * },
779
+ * "toutiao": {
780
+ * "hostVer": "√",
781
+ * "uniVer": "√",
782
+ * "unixVer": "x"
783
+ * },
784
+ * "lark": {
785
+ * "hostVer": "√",
786
+ * "uniVer": "√",
787
+ * "unixVer": "x"
788
+ * },
789
+ * "qq": {
790
+ * "hostVer": "√",
791
+ * "uniVer": "√",
792
+ * "unixVer": "x"
793
+ * },
794
+ * "kuaishou": {
795
+ * "hostVer": "√",
796
+ * "uniVer": "√",
797
+ * "unixVer": "x"
798
+ * },
799
+ * "jd": {
800
+ * "hostVer": "√",
801
+ * "uniVer": "√",
802
+ * "unixVer": "x"
803
+ * }
804
+ * }
805
+ * }
806
+ */
807
+ complete ?: GetScreenBrightnessCompleteCallback | null
808
+ };
809
+
810
+
811
+
812
+ export type SetKeepScreenOn = (options : SetKeepScreenOnOptions) => void;
813
+ export type SetKeepScreenOnSuccess = {
814
+ /**
815
+ * 调用结果
816
+ * @uniPlatform {
817
+ * "app": {
818
+ * "android": {
819
+ * "osVer": "5.0",
820
+ * "uniVer": "√",
821
+ * "unixVer": "5.08"
822
+ * },
823
+ * "ios": {
824
+ * "osVer": "12.0",
825
+ * "uniVer": "√",
826
+ * "unixVer": "5.08"
827
+ * },
828
+ * "harmony": {
829
+ * "osVer": "3.0",
830
+ * "uniVer": "4.81",
831
+ * "unixVer": "4.81",
832
+ * "unixVaporVer": "5.0"
833
+ * }
834
+ * },
835
+ * "web": {
836
+ * "uniVer": "x",
837
+ * "unixVer": "5.08"
838
+ * },
839
+ * "mp":{
840
+ * "weixin": {
841
+ * "hostVer": "√",
842
+ * "uniVer": "√",
843
+ * "unixVer": "4.41"
844
+ * },
845
+ * "alipay": {
846
+ * "hostVer": "√",
847
+ * "uniVer": "√",
848
+ * "unixVer": "x"
849
+ * },
850
+ * "baidu": {
851
+ * "hostVer": "√",
852
+ * "uniVer": "√",
853
+ * "unixVer": "x"
854
+ * },
855
+ * "toutiao": {
856
+ * "hostVer": "√",
857
+ * "uniVer": "√",
858
+ * "unixVer": "x"
859
+ * },
860
+ * "lark": {
861
+ * "hostVer": "√",
862
+ * "uniVer": "√",
863
+ * "unixVer": "x"
864
+ * },
865
+ * "qq": {
866
+ * "hostVer": "√",
867
+ * "uniVer": "√",
868
+ * "unixVer": "x"
869
+ * },
870
+ * "kuaishou": {
871
+ * "hostVer": "√",
872
+ * "uniVer": "√",
873
+ * "unixVer": "x"
874
+ * },
875
+ * "jd": {
876
+ * "hostVer": "√",
877
+ * "uniVer": "√",
878
+ * "unixVer": "x"
879
+ * }
880
+ * }
881
+ * }
882
+ */
883
+ errMsg:string
884
+ };
885
+ export type SetKeepScreenOnSuccessCallback = (result : SetKeepScreenOnSuccess) => void;
886
+ export type SetKeepScreenOnFail = UniError;
887
+ export type SetKeepScreenOnFailCallback = (result : SetKeepScreenOnFail) => void;
888
+ export type SetKeepScreenOnComplete = SetKeepScreenOnSuccess | SetKeepScreenOnFail;
889
+ export type SetKeepScreenOnCompleteCallback = (result : SetKeepScreenOnComplete) => void;
890
+
891
+ export type SetKeepScreenOnOptions = {
892
+ /**
893
+ * 是否保持屏幕常亮
894
+ * @uniPlatform {
895
+ * "app": {
896
+ * "android": {
897
+ * "osVer": "5.0",
898
+ * "uniVer": "√",
899
+ * "unixVer": "5.08"
900
+ * },
901
+ * "ios": {
902
+ * "osVer": "12.0",
903
+ * "uniVer": "√",
904
+ * "unixVer": "5.08"
905
+ * },
906
+ * "harmony": {
907
+ * "osVer": "3.0",
908
+ * "uniVer": "4.81",
909
+ * "unixVer": "4.81",
910
+ * "unixVaporVer": "5.0"
911
+ * }
912
+ * },
913
+ * "web": {
914
+ * "uniVer": "x",
915
+ * "unixVer": "5.08"
916
+ * },
917
+ * "mp":{
918
+ * "weixin": {
919
+ * "hostVer": "√",
920
+ * "uniVer": "√",
921
+ * "unixVer": "4.41"
922
+ * },
923
+ * "alipay": {
924
+ * "hostVer": "√",
925
+ * "uniVer": "√",
926
+ * "unixVer": "x"
927
+ * },
928
+ * "baidu": {
929
+ * "hostVer": "√",
930
+ * "uniVer": "√",
931
+ * "unixVer": "x"
932
+ * },
933
+ * "toutiao": {
934
+ * "hostVer": "√",
935
+ * "uniVer": "√",
936
+ * "unixVer": "x"
937
+ * },
938
+ * "lark": {
939
+ * "hostVer": "√",
940
+ * "uniVer": "√",
941
+ * "unixVer": "x"
942
+ * },
943
+ * "qq": {
944
+ * "hostVer": "√",
945
+ * "uniVer": "√",
946
+ * "unixVer": "x"
947
+ * },
948
+ * "kuaishou": {
949
+ * "hostVer": "√",
950
+ * "uniVer": "√",
951
+ * "unixVer": "x"
952
+ * },
953
+ * "jd": {
954
+ * "hostVer": "√",
955
+ * "uniVer": "√",
956
+ * "unixVer": "x"
957
+ * }
958
+ * }
959
+ * }
960
+ */
961
+ keepScreenOn : boolean,
962
+ /**
963
+ * 接口调用成功的回调函数
964
+ * @uniPlatform {
965
+ * "app": {
966
+ * "android": {
967
+ * "osVer": "5.0",
968
+ * "uniVer": "√",
969
+ * "unixVer": "5.08"
970
+ * },
971
+ * "ios": {
972
+ * "osVer": "12.0",
973
+ * "uniVer": "√",
974
+ * "unixVer": "5.08"
975
+ * },
976
+ * "harmony": {
977
+ * "osVer": "3.0",
978
+ * "uniVer": "4.81",
979
+ * "unixVer": "4.81",
980
+ * "unixVaporVer": "5.0"
981
+ * }
982
+ * },
983
+ * "web": {
984
+ * "uniVer": "x",
985
+ * "unixVer": "5.08"
986
+ * },
987
+ * "mp":{
988
+ * "weixin": {
989
+ * "hostVer": "√",
990
+ * "uniVer": "√",
991
+ * "unixVer": "4.41"
992
+ * },
993
+ * "alipay": {
994
+ * "hostVer": "√",
995
+ * "uniVer": "√",
996
+ * "unixVer": "x"
997
+ * },
998
+ * "baidu": {
999
+ * "hostVer": "√",
1000
+ * "uniVer": "√",
1001
+ * "unixVer": "x"
1002
+ * },
1003
+ * "toutiao": {
1004
+ * "hostVer": "√",
1005
+ * "uniVer": "√",
1006
+ * "unixVer": "x"
1007
+ * },
1008
+ * "lark": {
1009
+ * "hostVer": "√",
1010
+ * "uniVer": "√",
1011
+ * "unixVer": "x"
1012
+ * },
1013
+ * "qq": {
1014
+ * "hostVer": "√",
1015
+ * "uniVer": "√",
1016
+ * "unixVer": "x"
1017
+ * },
1018
+ * "kuaishou": {
1019
+ * "hostVer": "√",
1020
+ * "uniVer": "√",
1021
+ * "unixVer": "x"
1022
+ * },
1023
+ * "jd": {
1024
+ * "hostVer": "√",
1025
+ * "uniVer": "√",
1026
+ * "unixVer": "x"
1027
+ * }
1028
+ * }
1029
+ * }
1030
+ */
1031
+ success ?: SetKeepScreenOnSuccessCallback | null,
1032
+ /**
1033
+ * 接口调用失败的回调函数
1034
+ * @uniPlatform {
1035
+ * "app": {
1036
+ * "android": {
1037
+ * "osVer": "5.0",
1038
+ * "uniVer": "√",
1039
+ * "unixVer": "5.08"
1040
+ * },
1041
+ * "ios": {
1042
+ * "osVer": "12.0",
1043
+ * "uniVer": "√",
1044
+ * "unixVer": "5.08"
1045
+ * },
1046
+ * "harmony": {
1047
+ * "osVer": "3.0",
1048
+ * "uniVer": "4.81",
1049
+ * "unixVer": "4.81",
1050
+ * "unixVaporVer": "5.0"
1051
+ * }
1052
+ * },
1053
+ * "web": {
1054
+ * "uniVer": "x",
1055
+ * "unixVer": "5.08"
1056
+ * },
1057
+ * "mp":{
1058
+ * "weixin": {
1059
+ * "hostVer": "√",
1060
+ * "uniVer": "√",
1061
+ * "unixVer": "4.41"
1062
+ * },
1063
+ * "alipay": {
1064
+ * "hostVer": "√",
1065
+ * "uniVer": "√",
1066
+ * "unixVer": "x"
1067
+ * },
1068
+ * "baidu": {
1069
+ * "hostVer": "√",
1070
+ * "uniVer": "√",
1071
+ * "unixVer": "x"
1072
+ * },
1073
+ * "toutiao": {
1074
+ * "hostVer": "√",
1075
+ * "uniVer": "√",
1076
+ * "unixVer": "x"
1077
+ * },
1078
+ * "lark": {
1079
+ * "hostVer": "√",
1080
+ * "uniVer": "√",
1081
+ * "unixVer": "x"
1082
+ * },
1083
+ * "qq": {
1084
+ * "hostVer": "√",
1085
+ * "uniVer": "√",
1086
+ * "unixVer": "x"
1087
+ * },
1088
+ * "kuaishou": {
1089
+ * "hostVer": "√",
1090
+ * "uniVer": "√",
1091
+ * "unixVer": "x"
1092
+ * },
1093
+ * "jd": {
1094
+ * "hostVer": "√",
1095
+ * "uniVer": "√",
1096
+ * "unixVer": "x"
1097
+ * }
1098
+ * }
1099
+ * }
1100
+ */
1101
+ fail ?: SetKeepScreenOnFailCallback | null,
1102
+ /**
1103
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
1104
+ * @uniPlatform {
1105
+ * "app": {
1106
+ * "android": {
1107
+ * "osVer": "5.0",
1108
+ * "uniVer": "√",
1109
+ * "unixVer": "5.08"
1110
+ * },
1111
+ * "ios": {
1112
+ * "osVer": "12.0",
1113
+ * "uniVer": "√",
1114
+ * "unixVer": "5.08"
1115
+ * },
1116
+ * "harmony": {
1117
+ * "osVer": "3.0",
1118
+ * "uniVer": "4.81",
1119
+ * "unixVer": "4.81",
1120
+ * "unixVaporVer": "5.0"
1121
+ * }
1122
+ * },
1123
+ * "web": {
1124
+ * "uniVer": "x",
1125
+ * "unixVer": "5.08"
1126
+ * },
1127
+ * "mp":{
1128
+ * "weixin": {
1129
+ * "hostVer": "√",
1130
+ * "uniVer": "√",
1131
+ * "unixVer": "4.41"
1132
+ * },
1133
+ * "alipay": {
1134
+ * "hostVer": "√",
1135
+ * "uniVer": "√",
1136
+ * "unixVer": "x"
1137
+ * },
1138
+ * "baidu": {
1139
+ * "hostVer": "√",
1140
+ * "uniVer": "√",
1141
+ * "unixVer": "x"
1142
+ * },
1143
+ * "toutiao": {
1144
+ * "hostVer": "√",
1145
+ * "uniVer": "√",
1146
+ * "unixVer": "x"
1147
+ * },
1148
+ * "lark": {
1149
+ * "hostVer": "√",
1150
+ * "uniVer": "√",
1151
+ * "unixVer": "x"
1152
+ * },
1153
+ * "qq": {
1154
+ * "hostVer": "√",
1155
+ * "uniVer": "√",
1156
+ * "unixVer": "x"
1157
+ * },
1158
+ * "kuaishou": {
1159
+ * "hostVer": "√",
1160
+ * "uniVer": "√",
1161
+ * "unixVer": "x"
1162
+ * },
1163
+ * "jd": {
1164
+ * "hostVer": "√",
1165
+ * "uniVer": "√",
1166
+ * "unixVer": "x"
1167
+ * }
1168
+ * }
1169
+ * }
1170
+ */
1171
+ complete ?: SetKeepScreenOnCompleteCallback | null
1172
+ };