@dcloudio/uni-app-x 0.7.14 → 0.7.16

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 (175) hide show
  1. package/options.d.ts +1 -1
  2. package/package.json +1 -1
  3. package/types/native/CSSStyleDeclaration.d.ts +0 -72
  4. package/types/native/CanvasRenderingContext2D.d.ts +1943 -0
  5. package/types/native/DOMRect.d.ts +0 -180
  6. package/types/native/DrawableContext.d.ts +161 -628
  7. package/types/native/IUniElement.d.ts +513 -1868
  8. package/types/native/IUniObjectElement.d.ts +124 -0
  9. package/types/native/Path2D.d.ts +241 -0
  10. package/types/native/SnapshotOptions.d.ts +1 -0
  11. package/types/native/UniApp.d.ts +110 -0
  12. package/types/native/UniCanvasElement.d.ts +9 -0
  13. package/types/native/UniNativePage.d.ts +48 -1
  14. package/types/native/UniPageManager.d.ts +4 -1
  15. package/types/native/UniProvider.d.ts +1 -0
  16. package/types/native/UniResizeObserver.d.ts +9 -99
  17. package/types/native/UniScrollEvent.d.ts +1 -1
  18. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
  19. package/types/native/UniSwiperChangeEvent.d.ts +1 -1
  20. package/types/native/UniVideoElement.d.ts +5 -0
  21. package/types/native/global.d.ts +73 -15
  22. package/types/native/index.d.ts +4 -0
  23. package/types/shim-uts-basic.d.ts +4495 -0
  24. package/types/uni/env/index.d.ts +39 -0
  25. package/types/uni/uts-plugin-api/global.d.ts +20 -1
  26. package/types/uni/uts-plugin-api/index.d.ts +20 -1
  27. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -0
  28. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
  29. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -0
  30. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
  31. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
  32. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
  33. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
  34. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
  35. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
  36. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/global.d.ts +10 -0
  37. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/index.d.ts +4 -0
  38. package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/interface.d.ts +24 -0
  39. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -0
  40. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -0
  41. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +268 -0
  42. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
  43. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
  44. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
  45. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
  46. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
  47. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
  48. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
  49. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +24 -9
  50. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
  51. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -0
  52. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -0
  53. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1335 -0
  54. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
  55. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
  56. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -0
  57. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -0
  58. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -0
  59. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
  60. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
  61. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +28 -20
  62. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
  63. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
  64. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +10 -2
  65. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -0
  66. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -0
  67. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +47 -0
  68. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
  69. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
  70. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
  71. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +564 -0
  72. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
  73. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
  74. package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
  75. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
  76. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
  77. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
  78. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +8 -0
  79. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +114 -34
  81. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
  82. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
  83. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
  84. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +304 -27
  85. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
  86. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
  87. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
  88. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
  89. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
  90. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
  91. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
  92. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
  93. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
  94. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
  95. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
  96. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
  97. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
  98. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +327 -58
  99. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +24 -0
  100. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +12 -0
  101. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +213 -5
  102. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
  103. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
  104. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
  105. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
  106. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
  107. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
  108. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
  109. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
  110. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +161 -11
  111. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
  112. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
  113. package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
  114. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
  115. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
  116. package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
  117. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
  118. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
  119. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
  120. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
  121. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/global.d.ts +12 -0
  122. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/index.d.ts +5 -0
  123. package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/interface.d.ts +28 -0
  124. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +177 -32
  125. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
  126. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
  127. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
  128. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
  129. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
  130. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
  131. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
  132. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
  133. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
  134. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -0
  135. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -0
  136. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1068 -0
  137. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
  138. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
  139. package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
  140. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
  141. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
  142. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
  143. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
  144. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
  145. package/types/uni/uts-plugin-extend/global.d.ts +1 -1
  146. package/types/uni/uts-plugin-extend/index.d.ts +1 -3
  147. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
  148. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -0
  149. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -0
  150. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -0
  151. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -0
  152. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  153. package/types/uni-cloud/interface.d.ts +57 -3
  154. package/types/uni-cloud/unicloud-db/index.ts +3 -3
  155. package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -1
  156. package/types/vue/PickerViewChangeEvent.d.ts +8 -0
  157. package/types/vue/ProgressActiveendEvent.d.ts +4 -0
  158. package/types/vue/RadioGroupChangeEvent.d.ts +9 -1
  159. package/types/vue/SliderChangeEvent.d.ts +4 -0
  160. package/types/vue/SwitchChangeEvent.d.ts +5 -1
  161. package/types/vue/UniCanvasElement.d.ts +6 -1
  162. package/types/vue/UniCloudDBElement.d.ts +5 -0
  163. package/types/vue/UniFormElement.d.ts +6 -1
  164. package/types/vue/UniNavigatorElement.d.ts +5 -0
  165. package/types/vue/global.d.ts +10 -9
  166. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
  167. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
  168. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
  169. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
  170. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
  171. package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
  172. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
  173. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
  174. package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
  175. package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
@@ -1,11 +1,8 @@
1
1
  export interface Uni {
2
2
  /**
3
- * @description
4
3
  * 开启监听系统主题变化
5
- *
6
- * @param {OnOsThemeChangeCallback} callback
7
- * @return {number}
8
- * @tutorial
4
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onosthemechange
5
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onosthemechange
9
6
  * @uniPlatform
10
7
  * {
11
8
  * "app": {
@@ -18,7 +15,12 @@ export interface Uni {
18
15
  * "osVer": "12.0",
19
16
  * "uniVer": "x",
20
17
  * "unixVer": "4.18"
21
- * }
18
+ * },
19
+ * "harmony": {
20
+ * "osVer": "x",
21
+ * "uniVer": "x",
22
+ * "unixVer": "x"
23
+ * }
22
24
  * },
23
25
  * "web": {
24
26
  * "uniVer": "x",
@@ -35,12 +37,9 @@ export interface Uni {
35
37
  onOsThemeChange(callback : OnOsThemeChangeCallback): number
36
38
 
37
39
  /**
38
- * @description
39
40
  * 取消监听系统主题变化
40
- *
41
- * @param {number} id
42
- * @return {void}
43
- * @tutorial
41
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offosthemechange
42
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offosthemechange
44
43
  * @uniPlatform
45
44
  * {
46
45
  * "app": {
@@ -53,7 +52,12 @@ export interface Uni {
53
52
  * "osVer": "12.0",
54
53
  * "uniVer": "x",
55
54
  * "unixVer": "4.18"
56
- * }
55
+ * },
56
+ * "harmony": {
57
+ * "osVer": "x",
58
+ * "uniVer": "x",
59
+ * "unixVer": "x"
60
+ * }
57
61
  * },
58
62
  * "web": {
59
63
  * "uniVer": "x",
@@ -62,120 +66,111 @@ export interface Uni {
62
66
  * }
63
67
  * @example
64
68
  ```typescript
65
- uni.offOsThemeChange(id)
69
+ uni.offOsThemeChange(id)
66
70
  ```
67
71
  */
68
- offOsThemeChange(id : number): void
69
-
70
- /**
71
- * @description
72
- * 设置应用主题
73
- *
74
- * @param {SetAppThemeOptions} options
75
- * @return {void}
76
- * @tutorial
77
- * @uniPlatform
78
- * {
79
- * "app": {
80
- * "android": {
81
- * "osVer": "5.0",
82
- * "uniVer": "x",
83
- * "unixVer": "4.18"
84
- * },
85
- * "ios": {
86
- * "osVer": "12.0",
87
- * "uniVer": "x",
88
- * "unixVer": "4.18"
89
- * }
90
- * },
91
- * "web": {
92
- * "uniVer": "x",
93
- * "unixVer": "x"
94
- * }
95
- * }
96
- * @example
97
- ```typescript
98
- uni.setAppTheme({
99
- theme: 'dark',
100
- success: (res) => {
101
- console.log('success')
102
- },
103
- fail: (err) => {
104
- console.log(err)
105
- },
106
- complete: (res) => {
107
- console.log('complete')
108
- }
109
- })
110
- ```
72
+ offOsThemeChange(id : number): void
73
+
74
+ /**
75
+ * 设置应用主题
76
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#setapptheme
77
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#setapptheme
78
+ * @uniPlatform
79
+ * {
80
+ * "app": {
81
+ * "android": {
82
+ * "osVer": "5.0",
83
+ * "uniVer": "x",
84
+ * "unixVer": "4.18"
85
+ * },
86
+ * "ios": {
87
+ * "osVer": "12.0",
88
+ * "uniVer": "x",
89
+ * "unixVer": "4.18"
90
+ * }
91
+ * },
92
+ * "web": {
93
+ * "uniVer": "x",
94
+ * "unixVer": "x"
95
+ * }
96
+ * }
97
+ * @example
98
+ ```typescript
99
+ uni.setAppTheme({
100
+ theme: 'dark',
101
+ success: (res) => {
102
+ console.log('success')
103
+ },
104
+ fail: (err) => {
105
+ console.log(err)
106
+ },
107
+ complete: (res) => {
108
+ console.log('complete')
109
+ }
110
+ })
111
+ ```
111
112
  */
112
- setAppTheme(options : SetAppThemeOptions): void
113
-
114
- /**
115
- * @description
116
- * 开启监听应用主题变化
117
- *
118
- * @param {OnAppThemeChangeCallback} callback
119
- * @return {number}
120
- * @tutorial
121
- * @uniPlatform
122
- * {
123
- * "app": {
124
- * "android": {
125
- * "osVer": "5.0",
126
- * "uniVer": "x",
127
- * "unixVer": "4.18"
128
- * },
129
- * "ios": {
130
- * "osVer": "12.0",
131
- * "uniVer": "x",
132
- * "unixVer": "4.18"
133
- * }
134
- * },
135
- * "web": {
136
- * "uniVer": "x",
137
- * "unixVer": "x"
138
- * }
139
- * }
140
- * @example
141
- ```typescript
142
- const id = uni.onAppThemeChange((res) => {
143
- console.log(res.appTheme)
144
- })
145
- ```
113
+ setAppTheme(options : SetAppThemeOptions): void
114
+
115
+ /**
116
+ * 开启监听应用主题变化
117
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
118
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#onappthemechange
119
+ * @uniPlatform
120
+ * {
121
+ * "app": {
122
+ * "android": {
123
+ * "osVer": "5.0",
124
+ * "uniVer": "x",
125
+ * "unixVer": "4.18"
126
+ * },
127
+ * "ios": {
128
+ * "osVer": "12.0",
129
+ * "uniVer": "x",
130
+ * "unixVer": "4.18"
131
+ * }
132
+ * },
133
+ * "web": {
134
+ * "uniVer": "x",
135
+ * "unixVer": "x"
136
+ * }
137
+ * }
138
+ * @example
139
+ ```typescript
140
+ const id = uni.onAppThemeChange((res) => {
141
+ console.log(res.appTheme)
142
+ })
143
+ ```
146
144
  */
147
- onAppThemeChange(callback : OnAppThemeChangeCallback): number
148
-
149
- /**
150
- * @description
151
- * 取消监听应用主题变化
152
- *
153
- * @param {number} id
154
- * @return {void}
155
- * @tutorial
156
- * @uniPlatform
157
- * {
158
- * "app": {
159
- * "android": {
160
- * "osVer": "5.0",
161
- * "uniVer": "x",
162
- * "unixVer": "4.18"
163
- * },
164
- * "ios": {
165
- * "osVer": "12.0",
166
- * "uniVer": "x",
167
- * "unixVer": "4.18"
168
- * }
169
- * },
170
- * "web": {
171
- * "uniVer": "x",
172
- * "unixVer": "x"
173
- * }
174
- * }
175
- * @example
176
- ```typescript
177
- uni.offAppThemeChange(id)
178
- ```
145
+ onAppThemeChange(callback : OnAppThemeChangeCallback): number
146
+
147
+ /**
148
+ * 取消监听应用主题变化
149
+ * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
150
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/theme.html#offappthemechange
151
+ * @uniPlatform
152
+ * {
153
+ * "app": {
154
+ * "android": {
155
+ * "osVer": "5.0",
156
+ * "uniVer": "x",
157
+ * "unixVer": "4.18"
158
+ * },
159
+ * "ios": {
160
+ * "osVer": "12.0",
161
+ * "uniVer": "x",
162
+ * "unixVer": "4.18"
163
+ * }
164
+ * },
165
+ * "web": {
166
+ * "uniVer": "x",
167
+ * "unixVer": "x"
168
+ * }
169
+ * }
170
+ * @example
171
+ ```typescript
172
+ uni.offAppThemeChange(id)
173
+ ```
179
174
  */
180
175
  offAppThemeChange(id : number): void
181
176
  }
@@ -193,7 +188,12 @@ export interface Uni {
193
188
  * "osVer": "12.0",
194
189
  * "uniVer": "x",
195
190
  * "unixVer": "4.18"
196
- * }
191
+ * },
192
+ * "harmony": {
193
+ * "osVer": "x",
194
+ * "uniVer": "x",
195
+ * "unixVer": "x"
196
+ * }
197
197
  * },
198
198
  * "web": {
199
199
  * "uniVer": "x",
@@ -216,7 +216,12 @@ export type OsThemeChangeResult = {
216
216
  * "osVer": "12.0",
217
217
  * "uniVer": "x",
218
218
  * "unixVer": "4.18"
219
- * }
219
+ * },
220
+ * "harmony": {
221
+ * "osVer": "x",
222
+ * "uniVer": "x",
223
+ * "unixVer": "x"
224
+ * }
220
225
  * },
221
226
  * "web": {
222
227
  * "uniVer": "x",
@@ -240,7 +245,12 @@ export type OsThemeChangeResult = {
240
245
  * "osVer": "12.0",
241
246
  * "uniVer": "x",
242
247
  * "unixVer": "4.18"
243
- * }
248
+ * },
249
+ * "harmony": {
250
+ * "osVer": "x",
251
+ * "uniVer": "x",
252
+ * "unixVer": "x"
253
+ * }
244
254
  * },
245
255
  * "web": {
246
256
  * "uniVer": "x",
@@ -263,7 +273,12 @@ export type AppThemeChangeResult = {
263
273
  * "osVer": "12.0",
264
274
  * "uniVer": "x",
265
275
  * "unixVer": "4.18"
266
- * }
276
+ * },
277
+ * "harmony": {
278
+ * "osVer": "x",
279
+ * "uniVer": "x",
280
+ * "unixVer": "x"
281
+ * }
267
282
  * },
268
283
  * "web": {
269
284
  * "uniVer": "x",
@@ -274,22 +289,22 @@ export type AppThemeChangeResult = {
274
289
  appTheme : string
275
290
  }
276
291
 
277
- /*
278
- * 系统主题相关类型定义
292
+ /*
293
+ * 系统主题相关类型定义
279
294
  */
280
295
  export type OnOsThemeChangeCallback = (res : OsThemeChangeResult) => void
281
296
  export type OnOsThemeChange = (callback : OnOsThemeChangeCallback) => number
282
297
  export type OffOsThemeChange = (id : number) => void
283
-
284
- /*
285
- * 应用主题相关类型定义
298
+
299
+ /*
300
+ * 应用主题相关类型定义
286
301
  */
287
302
  export type SetAppTheme = (options : SetAppThemeOptions) => void
288
303
  export type OnAppThemeChangeCallback = (res : AppThemeChangeResult) => void
289
304
  export type OnAppThemeChange = (callback : OnAppThemeChangeCallback) => number
290
- export type OffAppThemeChange = (id : number) => void
291
- export type SetAppThemeSuccessResult = {
292
- theme : string
305
+ export type OffAppThemeChange = (id : number) => void
306
+ export type SetAppThemeSuccessResult = {
307
+ theme : string
293
308
  }
294
309
  export type SetAppThemeSuccessCallback = (result : SetAppThemeSuccessResult) => void;
295
310
  export type SetAppThemeFailCallback = (result : AppThemeFail) => void;
@@ -308,7 +323,12 @@ export type SetAppThemeCompleteCallback = (result : any) => void;
308
323
  * "osVer": "12.0",
309
324
  * "uniVer": "x",
310
325
  * "unixVer": "4.18"
311
- * }
326
+ * },
327
+ * "harmony": {
328
+ * "osVer": "x",
329
+ * "uniVer": "x",
330
+ * "unixVer": "x"
331
+ * }
312
332
  * },
313
333
  * "web": {
314
334
  * "uniVer": "x",
@@ -331,7 +351,12 @@ export type SetAppThemeOptions = {
331
351
  * "osVer": "12.0",
332
352
  * "uniVer": "x",
333
353
  * "unixVer": "4.18"
334
- * }
354
+ * },
355
+ * "harmony": {
356
+ * "osVer": "x",
357
+ * "uniVer": "x",
358
+ * "unixVer": "x"
359
+ * }
335
360
  * },
336
361
  * "web": {
337
362
  * "uniVer": "x",
@@ -355,7 +380,12 @@ export type SetAppThemeOptions = {
355
380
  * "osVer": "12.0",
356
381
  * "uniVer": "x",
357
382
  * "unixVer": "4.18"
358
- * }
383
+ * },
384
+ * "harmony": {
385
+ * "osVer": "x",
386
+ * "uniVer": "x",
387
+ * "unixVer": "x"
388
+ * }
359
389
  * },
360
390
  * "web": {
361
391
  * "uniVer": "x",
@@ -379,7 +409,12 @@ export type SetAppThemeOptions = {
379
409
  * "osVer": "12.0",
380
410
  * "uniVer": "x",
381
411
  * "unixVer": "4.18"
382
- * }
412
+ * },
413
+ * "harmony": {
414
+ * "osVer": "x",
415
+ * "uniVer": "x",
416
+ * "unixVer": "x"
417
+ * }
383
418
  * },
384
419
  * "web": {
385
420
  * "uniVer": "x",
@@ -403,7 +438,12 @@ export type SetAppThemeOptions = {
403
438
  * "osVer": "12.0",
404
439
  * "uniVer": "x",
405
440
  * "unixVer": "4.18"
406
- * }
441
+ * },
442
+ * "harmony": {
443
+ * "osVer": "x",
444
+ * "uniVer": "x",
445
+ * "unixVer": "x"
446
+ * }
407
447
  * },
408
448
  * "web": {
409
449
  * "uniVer": "x",
@@ -414,9 +454,9 @@ export type SetAppThemeOptions = {
414
454
  complete? : SetAppThemeCompleteCallback
415
455
  }
416
456
 
417
- /**
418
- * 错误码
419
- * - 702001 参数错误
457
+ /**
458
+ * 错误码
459
+ * - 702001 参数错误
420
460
  * - 2002000 未知错误
421
461
  * @uniPlatform
422
462
  * {
@@ -430,14 +470,19 @@ export type SetAppThemeOptions = {
430
470
  * "osVer": "12.0",
431
471
  * "uniVer": "x",
432
472
  * "unixVer": "4.18"
433
- * }
473
+ * },
474
+ * "harmony": {
475
+ * "osVer": "x",
476
+ * "uniVer": "x",
477
+ * "unixVer": "x"
478
+ * }
434
479
  * },
435
480
  * "web": {
436
481
  * "uniVer": "x",
437
482
  * "unixVer": "x"
438
483
  * }
439
- * }
440
- */
484
+ * }
485
+ */
441
486
  export type AppThemeErrorCode = 702001 | 2002000;
442
487
  export type AppThemeFail = IAppThemeFail;
443
488
  /**
@@ -453,7 +498,12 @@ export type AppThemeFail = IAppThemeFail;
453
498
  * "osVer": "12.0",
454
499
  * "uniVer": "x",
455
500
  * "unixVer": "4.18"
456
- * }
501
+ * },
502
+ * "harmony": {
503
+ * "osVer": "x",
504
+ * "uniVer": "x",
505
+ * "unixVer": "x"
506
+ * }
457
507
  * },
458
508
  * "web": {
459
509
  * "uniVer": "x",
@@ -461,6 +511,6 @@ export type AppThemeFail = IAppThemeFail;
461
511
  * }
462
512
  * }
463
513
  */
464
- export interface IAppThemeFail extends IUniError {
465
- errCode : AppThemeErrorCode
466
- };
514
+ export interface IAppThemeFail extends IUniError {
515
+ errCode : AppThemeErrorCode
516
+ };
@@ -0,0 +1,112 @@
1
+ // 本文件为自动构建生成
2
+ import {
3
+ RequestVirtualPaymentFailImpl as RequestVirtualPaymentFailImplOrigin,
4
+ GetVirtualPaymentManager as GetVirtualPaymentManagerOrigin,
5
+ VirtualPaymentManager as VirtualPaymentManagerOrigin,
6
+ RequestVirtualPaymentErrorCode as RequestVirtualPaymentErrorCodeOrigin,
7
+ RequestVirtualPayment as RequestVirtualPaymentOrigin,
8
+ AppleIAPPromotionalOffer as AppleIAPPromotionalOfferOrigin,
9
+ AppleIAPTransactionOptions as AppleIAPTransactionOptionsOrigin,
10
+ GoolgeIapSuccessOptions as GoolgeIapSuccessOptionsOrigin,
11
+ HuaweiIapSuccessOptions as HuaweiIapSuccessOptionsOrigin,
12
+ WeixinIapSuccessOptions as WeixinIapSuccessOptionsOrigin,
13
+ RequestVirtualPaymentSuccess as RequestVirtualPaymentSuccessOrigin,
14
+ RequestVirtualPaymentSuccessCallback as RequestVirtualPaymentSuccessCallbackOrigin,
15
+ RequestVirtualPaymentFail as RequestVirtualPaymentFailOrigin,
16
+ RequestVirtualPaymentFailCallback as RequestVirtualPaymentFailCallbackOrigin,
17
+ IRequestVirtualPaymentFail as IRequestVirtualPaymentFailOrigin,
18
+ RequestVirtualPaymentComplete as RequestVirtualPaymentCompleteOrigin,
19
+ RequestVirtualPaymentCompleteCallback as RequestVirtualPaymentCompleteCallbackOrigin,
20
+ AppleIAPOptions as AppleIAPOptionsOrigin,
21
+ GoogleIapOptions as GoogleIapOptionsOrigin,
22
+ HuaweiIapOptions as HuaweiIapOptionsOrigin,
23
+ WeixinIapOptions as WeixinIapOptionsOrigin,
24
+ RequestVirtualPaymentOptions as RequestVirtualPaymentOptionsOrigin,
25
+ RestoreTransactions as RestoreTransactionsOrigin,
26
+ AppleIAPRestoreSuccess as AppleIAPRestoreSuccessOrigin,
27
+ AppleIAPRestoreSuccessCallback as AppleIAPRestoreSuccessCallbackOrigin,
28
+ AppleIAPRestoreFail as AppleIAPRestoreFailOrigin,
29
+ AppleIAPRestoreFailCallback as AppleIAPRestoreFailCallbackOrigin,
30
+ IAppleIAPRestoreFail as IAppleIAPRestoreFailOrigin,
31
+ AppleIAPRestoreComplete as AppleIAPRestoreCompleteOrigin,
32
+ AppleIAPRestoreCompleteCallback as AppleIAPRestoreCompleteCallbackOrigin,
33
+ AppleIAPRestoreErrorCode as AppleIAPRestoreErrorCodeOrigin,
34
+ AppleIAPRestoreOptions as AppleIAPRestoreOptionsOrigin,
35
+ GetUnfinishedTransactions as GetUnfinishedTransactionsOrigin,
36
+ AppleIAPUnfinishedTransactionSuccess as AppleIAPUnfinishedTransactionSuccessOrigin,
37
+ AppleIAPUnfinishedTransactionSuccessCallback as AppleIAPUnfinishedTransactionSuccessCallbackOrigin,
38
+ AppleIAPUnfinishedTransactionFail as AppleIAPUnfinishedTransactionFailOrigin,
39
+ AppleIAPUnfinishedTransactionFailCallback as AppleIAPUnfinishedTransactionFailCallbackOrigin,
40
+ IAppleIAPUnfinishedTransactionFail as IAppleIAPUnfinishedTransactionFailOrigin,
41
+ AppleIAPUnfinishedTransactionComplete as AppleIAPUnfinishedTransactionCompleteOrigin,
42
+ AppleIAPUnfinishedTransactionCompleteCallback as AppleIAPUnfinishedTransactionCompleteCallbackOrigin,
43
+ AppleIAPUnfinishedTransactionErrorCode as AppleIAPUnfinishedTransactionErrorCodeOrigin,
44
+ AppleIAPUnfinishedTransactionOptions as AppleIAPUnfinishedTransactionOptionsOrigin,
45
+ FinishTransaction as FinishTransactionOrigin,
46
+ AppleIAPFinishTransactionSuccess as AppleIAPFinishTransactionSuccessOrigin,
47
+ AppleIAPFinishTransactionSuccessCallback as AppleIAPFinishTransactionSuccessCallbackOrigin,
48
+ AppleIAPFinishTransactionFail as AppleIAPFinishTransactionFailOrigin,
49
+ AppleIAPFinishTransactionFailCallback as AppleIAPFinishTransactionFailCallbackOrigin,
50
+ IAppleIAPFinishTransactionFail as IAppleIAPFinishTransactionFailOrigin,
51
+ AppleIAPFinishTransactionComplete as AppleIAPFinishTransactionCompleteOrigin,
52
+ AppleIAPFinishTransactionCompleteCallback as AppleIAPFinishTransactionCompleteCallbackOrigin,
53
+ AppleIAPFinishTransactionFailErrorCode as AppleIAPFinishTransactionFailErrorCodeOrigin,
54
+ AppleIAPFinishTransactionOptions as AppleIAPFinishTransactionOptionsOrigin,
55
+ Uni as UniOrigin
56
+ } from './interface'
57
+
58
+ declare global {
59
+ type RequestVirtualPaymentFailImpl = RequestVirtualPaymentFailImplOrigin
60
+ type GetVirtualPaymentManager = GetVirtualPaymentManagerOrigin
61
+ type VirtualPaymentManager = VirtualPaymentManagerOrigin
62
+ type RequestVirtualPaymentErrorCode = RequestVirtualPaymentErrorCodeOrigin
63
+ type RequestVirtualPayment = RequestVirtualPaymentOrigin
64
+ type AppleIAPPromotionalOffer = AppleIAPPromotionalOfferOrigin
65
+ type AppleIAPTransactionOptions = AppleIAPTransactionOptionsOrigin
66
+ type GoolgeIapSuccessOptions = GoolgeIapSuccessOptionsOrigin
67
+ type HuaweiIapSuccessOptions = HuaweiIapSuccessOptionsOrigin
68
+ type WeixinIapSuccessOptions = WeixinIapSuccessOptionsOrigin
69
+ type RequestVirtualPaymentSuccess = RequestVirtualPaymentSuccessOrigin
70
+ type RequestVirtualPaymentSuccessCallback = RequestVirtualPaymentSuccessCallbackOrigin
71
+ type RequestVirtualPaymentFail = RequestVirtualPaymentFailOrigin
72
+ type RequestVirtualPaymentFailCallback = RequestVirtualPaymentFailCallbackOrigin
73
+ type IRequestVirtualPaymentFail = IRequestVirtualPaymentFailOrigin
74
+ type RequestVirtualPaymentComplete = RequestVirtualPaymentCompleteOrigin
75
+ type RequestVirtualPaymentCompleteCallback = RequestVirtualPaymentCompleteCallbackOrigin
76
+ type AppleIAPOptions = AppleIAPOptionsOrigin
77
+ type GoogleIapOptions = GoogleIapOptionsOrigin
78
+ type HuaweiIapOptions = HuaweiIapOptionsOrigin
79
+ type WeixinIapOptions = WeixinIapOptionsOrigin
80
+ type RequestVirtualPaymentOptions = RequestVirtualPaymentOptionsOrigin
81
+ type RestoreTransactions = RestoreTransactionsOrigin
82
+ type AppleIAPRestoreSuccess = AppleIAPRestoreSuccessOrigin
83
+ type AppleIAPRestoreSuccessCallback = AppleIAPRestoreSuccessCallbackOrigin
84
+ type AppleIAPRestoreFail = AppleIAPRestoreFailOrigin
85
+ type AppleIAPRestoreFailCallback = AppleIAPRestoreFailCallbackOrigin
86
+ type IAppleIAPRestoreFail = IAppleIAPRestoreFailOrigin
87
+ type AppleIAPRestoreComplete = AppleIAPRestoreCompleteOrigin
88
+ type AppleIAPRestoreCompleteCallback = AppleIAPRestoreCompleteCallbackOrigin
89
+ type AppleIAPRestoreErrorCode = AppleIAPRestoreErrorCodeOrigin
90
+ type AppleIAPRestoreOptions = AppleIAPRestoreOptionsOrigin
91
+ type GetUnfinishedTransactions = GetUnfinishedTransactionsOrigin
92
+ type AppleIAPUnfinishedTransactionSuccess = AppleIAPUnfinishedTransactionSuccessOrigin
93
+ type AppleIAPUnfinishedTransactionSuccessCallback = AppleIAPUnfinishedTransactionSuccessCallbackOrigin
94
+ type AppleIAPUnfinishedTransactionFail = AppleIAPUnfinishedTransactionFailOrigin
95
+ type AppleIAPUnfinishedTransactionFailCallback = AppleIAPUnfinishedTransactionFailCallbackOrigin
96
+ type IAppleIAPUnfinishedTransactionFail = IAppleIAPUnfinishedTransactionFailOrigin
97
+ type AppleIAPUnfinishedTransactionComplete = AppleIAPUnfinishedTransactionCompleteOrigin
98
+ type AppleIAPUnfinishedTransactionCompleteCallback = AppleIAPUnfinishedTransactionCompleteCallbackOrigin
99
+ type AppleIAPUnfinishedTransactionErrorCode = AppleIAPUnfinishedTransactionErrorCodeOrigin
100
+ type AppleIAPUnfinishedTransactionOptions = AppleIAPUnfinishedTransactionOptionsOrigin
101
+ type FinishTransaction = FinishTransactionOrigin
102
+ type AppleIAPFinishTransactionSuccess = AppleIAPFinishTransactionSuccessOrigin
103
+ type AppleIAPFinishTransactionSuccessCallback = AppleIAPFinishTransactionSuccessCallbackOrigin
104
+ type AppleIAPFinishTransactionFail = AppleIAPFinishTransactionFailOrigin
105
+ type AppleIAPFinishTransactionFailCallback = AppleIAPFinishTransactionFailCallbackOrigin
106
+ type IAppleIAPFinishTransactionFail = IAppleIAPFinishTransactionFailOrigin
107
+ type AppleIAPFinishTransactionComplete = AppleIAPFinishTransactionCompleteOrigin
108
+ type AppleIAPFinishTransactionCompleteCallback = AppleIAPFinishTransactionCompleteCallbackOrigin
109
+ type AppleIAPFinishTransactionFailErrorCode = AppleIAPFinishTransactionFailErrorCodeOrigin
110
+ type AppleIAPFinishTransactionOptions = AppleIAPFinishTransactionOptionsOrigin
111
+ interface Uni extends UniOrigin { }
112
+ }
@@ -0,0 +1,55 @@
1
+ // 本文件为自动构建生成
2
+ export {
3
+ RequestVirtualPaymentFailImpl,
4
+ GetVirtualPaymentManager,
5
+ VirtualPaymentManager,
6
+ RequestVirtualPaymentErrorCode,
7
+ RequestVirtualPayment,
8
+ AppleIAPPromotionalOffer,
9
+ AppleIAPTransactionOptions,
10
+ GoolgeIapSuccessOptions,
11
+ HuaweiIapSuccessOptions,
12
+ WeixinIapSuccessOptions,
13
+ RequestVirtualPaymentSuccess,
14
+ RequestVirtualPaymentSuccessCallback,
15
+ RequestVirtualPaymentFail,
16
+ RequestVirtualPaymentFailCallback,
17
+ IRequestVirtualPaymentFail,
18
+ RequestVirtualPaymentComplete,
19
+ RequestVirtualPaymentCompleteCallback,
20
+ AppleIAPOptions,
21
+ GoogleIapOptions,
22
+ HuaweiIapOptions,
23
+ WeixinIapOptions,
24
+ RequestVirtualPaymentOptions,
25
+ RestoreTransactions,
26
+ AppleIAPRestoreSuccess,
27
+ AppleIAPRestoreSuccessCallback,
28
+ AppleIAPRestoreFail,
29
+ AppleIAPRestoreFailCallback,
30
+ IAppleIAPRestoreFail,
31
+ AppleIAPRestoreComplete,
32
+ AppleIAPRestoreCompleteCallback,
33
+ AppleIAPRestoreErrorCode,
34
+ AppleIAPRestoreOptions,
35
+ GetUnfinishedTransactions,
36
+ AppleIAPUnfinishedTransactionSuccess,
37
+ AppleIAPUnfinishedTransactionSuccessCallback,
38
+ AppleIAPUnfinishedTransactionFail,
39
+ AppleIAPUnfinishedTransactionFailCallback,
40
+ IAppleIAPUnfinishedTransactionFail,
41
+ AppleIAPUnfinishedTransactionComplete,
42
+ AppleIAPUnfinishedTransactionCompleteCallback,
43
+ AppleIAPUnfinishedTransactionErrorCode,
44
+ AppleIAPUnfinishedTransactionOptions,
45
+ FinishTransaction,
46
+ AppleIAPFinishTransactionSuccess,
47
+ AppleIAPFinishTransactionSuccessCallback,
48
+ AppleIAPFinishTransactionFail,
49
+ AppleIAPFinishTransactionFailCallback,
50
+ IAppleIAPFinishTransactionFail,
51
+ AppleIAPFinishTransactionComplete,
52
+ AppleIAPFinishTransactionCompleteCallback,
53
+ AppleIAPFinishTransactionFailErrorCode,
54
+ AppleIAPFinishTransactionOptions,
55
+ } from './interface'