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