@dcloudio/uni-app-x 0.7.120 → 0.7.121

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