@dcloudio/uni-app-x 0.7.59 → 0.7.61

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 (224) hide show
  1. package/package.json +2 -2
  2. package/types/app.d.ts +24 -9
  3. package/types/native/IUniElement.d.ts +1 -3
  4. package/types/native/UniCustomElement.d.ts +2 -2
  5. package/types/native/UniFormControl.d.ts +1 -1
  6. package/types/native/UniInputChangeEvent.d.ts +31 -0
  7. package/types/native/UniPage.d.ts +10 -2
  8. package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -0
  9. package/types/native/UniSwiperChangeEvent.d.ts +1 -0
  10. package/types/native/WebViewStyles.d.ts +1 -1
  11. package/types/native/global.d.ts +14 -0
  12. package/types/native/index.d.ts +1 -0
  13. package/types/page.d.ts +134 -22
  14. package/types/uni/uni-camera-global.d.ts +4 -0
  15. package/types/uni/uni-camera.d.ts +10 -9
  16. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  17. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +3 -2
  20. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +3 -2
  21. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +9 -6
  22. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +3 -2
  23. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
  24. package/types/uni/uts-plugin-api/lib/uni-chooseMedia/utssdk/interface.d.ts +4 -4
  25. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +10 -8
  26. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
  27. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
  28. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +569 -139
  29. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +3 -2
  30. package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +2 -2
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +2 -2
  32. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +7 -6
  33. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +22 -37
  34. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +12 -16
  35. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +5 -3
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +34 -15
  38. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
  39. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +2 -2
  40. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +32 -61
  41. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +45 -80
  42. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +5 -3
  43. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +2 -2
  44. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +13 -11
  45. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +16 -15
  46. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +12 -10
  47. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +1 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +88 -4
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +54 -7
  50. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
  51. package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +1 -1
  52. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +4 -4
  53. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +246 -236
  54. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +5 -5
  55. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
  56. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
  57. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
  58. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +16 -20
  59. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +209 -451
  60. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +80 -698
  61. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +10 -8
  62. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +474 -184
  63. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
  64. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
  65. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +755 -405
  66. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
  67. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
  68. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
  69. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
  70. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +116 -124
  71. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +2 -2
  72. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +11 -11
  73. package/types/uni/uts-plugin-api/lib/uni-previewImage/utssdk/interface.d.ts +5 -5
  74. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
  75. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +54 -84
  76. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +4 -4
  77. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +71 -89
  78. package/types/uni/uts-plugin-api/lib/uni-requestMerchantTransfer/utssdk/interface.d.ts +3 -0
  79. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +10 -10
  80. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +2 -2
  81. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +300 -6
  82. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
  83. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
  84. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
  85. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
  86. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
  87. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
  88. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +20 -20
  89. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +18 -18
  90. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
  91. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
  92. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +70 -82
  93. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +6 -5
  94. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +49 -72
  95. package/types/uni/uts-plugin-biz/global.d.ts +11 -0
  96. package/types/uni/uts-plugin-biz/index.d.ts +11 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
  98. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
  99. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
  100. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
  101. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
  102. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
  103. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
  104. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
  105. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
  106. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
  107. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
  108. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
  109. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
  110. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
  111. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
  112. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
  113. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
  114. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
  115. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
  116. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
  117. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
  118. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
  119. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
  120. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
  121. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
  122. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
  123. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
  124. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
  125. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
  126. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
  127. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
  128. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
  129. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
  130. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
  131. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
  132. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
  133. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +21 -16
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -2
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -1
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +153 -6
  137. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
  138. package/types/uni/uts-plugin-extend/global.d.ts +0 -2
  139. package/types/uni/uts-plugin-extend/index.d.ts +0 -2
  140. package/types/uni-cloud/interface.d.ts +13 -9
  141. package/types/vue/LifeCycle.d.ts +723 -1
  142. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +0 -554
  143. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +0 -224
  144. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +0 -77
  145. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +0 -365
  146. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +0 -77
  147. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +0 -972
  148. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +0 -410
  149. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +0 -459
  150. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +0 -203
  151. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +0 -2613
  152. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +0 -152
  153. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +0 -61
  154. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +0 -548
  155. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +0 -137
  156. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +0 -1380
  157. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +0 -76
  158. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +0 -338
  159. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +0 -102
  160. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +0 -384
  161. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +0 -5316
  162. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +0 -35
  163. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +0 -616
  164. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +0 -2157
  165. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +0 -895
  166. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +0 -1755
  167. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +0 -82
  168. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +0 -295
  169. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +0 -299
  170. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +0 -1764
  171. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +0 -1
  172. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +0 -1
  173. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +0 -736
  174. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +0 -274
  175. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +0 -198
  176. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +0 -634
  177. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +0 -980
  178. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +0 -5550
  179. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +0 -501
  180. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +0 -83
  181. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +0 -169
  182. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +0 -102
  183. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +0 -580
  184. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +0 -100
  185. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +0 -2980
  186. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +0 -190
  187. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +0 -1002
  188. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +0 -3620
  189. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +0 -1592
  190. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +0 -1
  191. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +0 -254
  192. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +0 -112
  193. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +0 -153
  194. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +0 -833
  195. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +0 -1
  196. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +0 -1
  197. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +0 -3
  198. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +0 -518
  199. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +0 -560
  200. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +0 -2607
  201. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +0 -189
  202. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +0 -710
  203. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +0 -2695
  204. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +0 -80
  205. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +0 -130
  206. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +0 -719
  207. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +0 -277
  208. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +0 -1020
  209. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +0 -1148
  210. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +0 -1059
  211. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +0 -1660
  212. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +0 -1941
  213. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +0 -726
  214. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +0 -89
  215. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +0 -212
  216. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +0 -2359
  217. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +0 -960
  218. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +0 -204
  219. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +0 -730
  220. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +0 -221
  221. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +0 -935
  222. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
  223. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
  224. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
@@ -1,960 +0,0 @@
1
- export interface Uni {
2
- /**
3
- * getPushClientId()
4
- * @description
5
- * 获取客户端唯一的推送标识
6
- * @param {GetPushClientIdOptions}
7
- * @return {void}
8
- * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#getpushclientid
9
- * @uniPlatform {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "4.4",
13
- * "uniVer": "√",
14
- * "unixVer": "3.98"
15
- * },
16
- * "ios": {
17
- * "osVer": "12.0",
18
- * "uniVer": "√",
19
- * "unixVer": "4.18"
20
- * },
21
- * "harmony": {
22
- * "osVer": "3.0",
23
- * "uniVer": "4.31",
24
- * "unixVer": "4.61"
25
- * }
26
- * },
27
- * "mp": {
28
- * "weixin": {
29
- * "hostVer": "x",
30
- * "uniVer": "x",
31
- * "unixVer": "4.41"
32
- * },
33
- * "alipay": {
34
- * "hostVer": "x",
35
- * "uniVer": "x",
36
- * "unixVer": "x"
37
- * },
38
- * "baidu": {
39
- * "hostVer": "x",
40
- * "uniVer": "x",
41
- * "unixVer": "x"
42
- * },
43
- * "toutiao": {
44
- * "hostVer": "x",
45
- * "uniVer": "x",
46
- * "unixVer": "x"
47
- * },
48
- * "lark": {
49
- * "hostVer": "x",
50
- * "uniVer": "x",
51
- * "unixVer": "x"
52
- * },
53
- * "qq": {
54
- * "hostVer": "x",
55
- * "uniVer": "x",
56
- * "unixVer": "x"
57
- * },
58
- * "kuaishou": {
59
- * "hostVer": "x",
60
- * "uniVer": "x",
61
- * "unixVer": "x"
62
- * },
63
- * "jd": {
64
- * "hostVer": "x",
65
- * "uniVer": "x",
66
- * "unixVer": "x"
67
- * }
68
- * },
69
- * "web": {
70
- * "uniVer": "x",
71
- * "unixVer": "4.27"
72
- * }
73
- * }
74
- * @example
75
- ```typescript
76
- uni.getPushClientId({
77
- complete: (res: any) => {
78
- console.log("getPushClientId complete => " + JSON.stringify(res));
79
- }
80
- });
81
- ```
82
- */
83
- getPushClientId(options: GetPushClientIdOptions): void;
84
- /**
85
- * onPushMessage()
86
- * @description
87
- * 启动监听推送消息事件
88
- * @param {OnPushMessageCallback}
89
- * @return {void}
90
- * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#onpushmessage
91
- * @uniPlatform {
92
- * "app": {
93
- * "android": {
94
- * "osVer": "4.4",
95
- * "uniVer": "√",
96
- * "unixVer": "3.98"
97
- * },
98
- * "ios": {
99
- * "osVer": "12.0",
100
- * "uniVer": "√",
101
- * "unixVer": "4.18"
102
- * },
103
- * "harmony": {
104
- * "osVer": "3.0",
105
- * "uniVer": "4.31",
106
- * "unixVer": "4.61"
107
- * }
108
- * },
109
- * "mp": {
110
- * "weixin": {
111
- * "hostVer": "x",
112
- * "uniVer": "x",
113
- * "unixVer": "4.41"
114
- * },
115
- * "alipay": {
116
- * "hostVer": "x",
117
- * "uniVer": "x",
118
- * "unixVer": "x"
119
- * },
120
- * "baidu": {
121
- * "hostVer": "x",
122
- * "uniVer": "x",
123
- * "unixVer": "x"
124
- * },
125
- * "toutiao": {
126
- * "hostVer": "x",
127
- * "uniVer": "x",
128
- * "unixVer": "x"
129
- * },
130
- * "lark": {
131
- * "hostVer": "x",
132
- * "uniVer": "x",
133
- * "unixVer": "x"
134
- * },
135
- * "qq": {
136
- * "hostVer": "x",
137
- * "uniVer": "x",
138
- * "unixVer": "x"
139
- * },
140
- * "kuaishou": {
141
- * "hostVer": "x",
142
- * "uniVer": "x",
143
- * "unixVer": "x"
144
- * },
145
- * "jd": {
146
- * "hostVer": "x",
147
- * "uniVer": "x",
148
- * "unixVer": "x"
149
- * }
150
- * },
151
- * "web": {
152
- * "uniVer": "x",
153
- * "unixVer": "4.27"
154
- * }
155
- * }
156
- * @example
157
- ```typescript
158
- uni.onPushMessage((res : OnPushMessageCallbackResult) => {
159
- console.log("onPushMessage => " + JSON.stringify(res))
160
- });
161
- ```
162
- */
163
- onPushMessage(callback: OnPushMessageCallback): void;
164
- /**
165
- * offPushMessage()
166
- * @description
167
- * 关闭推送消息监听事件,iOS端调用会关闭所有监听。
168
- * @param {OnPushMessageCallback}
169
- * @return {void}
170
- * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#offpushmessage
171
- * @uniPlatform {
172
- * "app": {
173
- * "android": {
174
- * "osVer": "4.4",
175
- * "uniVer": "√",
176
- * "unixVer": "3.98"
177
- * },
178
- * "ios": {
179
- * "osVer": "12.0",
180
- * "uniVer": "√",
181
- * "unixVer": "4.18"
182
- * },
183
- * "harmony": {
184
- * "osVer": "3.0",
185
- * "uniVer": "4.31",
186
- * "unixVer": "4.61"
187
- * }
188
- * },
189
- * "mp": {
190
- * "weixin": {
191
- * "hostVer": "x",
192
- * "uniVer": "x",
193
- * "unixVer": "4.41"
194
- * },
195
- * "alipay": {
196
- * "hostVer": "x",
197
- * "uniVer": "x",
198
- * "unixVer": "x"
199
- * },
200
- * "baidu": {
201
- * "hostVer": "x",
202
- * "uniVer": "x",
203
- * "unixVer": "x"
204
- * },
205
- * "toutiao": {
206
- * "hostVer": "x",
207
- * "uniVer": "x",
208
- * "unixVer": "x"
209
- * },
210
- * "lark": {
211
- * "hostVer": "x",
212
- * "uniVer": "x",
213
- * "unixVer": "x"
214
- * },
215
- * "qq": {
216
- * "hostVer": "x",
217
- * "uniVer": "x",
218
- * "unixVer": "x"
219
- * },
220
- * "kuaishou": {
221
- * "hostVer": "x",
222
- * "uniVer": "x",
223
- * "unixVer": "x"
224
- * },
225
- * "jd": {
226
- * "hostVer": "x",
227
- * "uniVer": "x",
228
- * "unixVer": "x"
229
- * }
230
- * },
231
- * "web": {
232
- * "uniVer": "x",
233
- * "unixVer": "4.27"
234
- * }
235
- * }
236
- * @example
237
- ```typescript
238
- const cb = (res : OnPushMessageCallbackResult) => {
239
- console.log("onPushMessage => " + JSON.stringify(res))
240
- }
241
- uni.offPushMessage(cb);
242
- ```
243
- */
244
- offPushMessage(callback: OnPushMessageCallback): void;
245
- /**
246
- * getChannelManager()
247
- * @description
248
- * 获取通知渠道管理器,Android 8系统以上才可以设置通知渠道,Android 8系统以下返回null,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn) ,iOS不支持。
249
- * @deprecated 已废弃,仅为了向下兼容保留,建议使用`getPushChannelManager`。
250
- * @param {void}
251
- * @return {ChannelManager}
252
- * @uniPlatform {
253
- * "app": {
254
- * "android": {
255
- * "osVer": "4.4",
256
- * "uniVer": "3.98",
257
- * "unixVer": "3.98"
258
- * },
259
- * "ios": {
260
- * "osVer": "x",
261
- * "uniVer": "x",
262
- * "unixVer": "x"
263
- * }
264
- * },
265
- * "web": {
266
- * "uniVer": "x",
267
- * "unixVer": "x"
268
- * }
269
- * }
270
- * @example
271
- ```typescript
272
- const channelManager = uni.getChannelManager();
273
- channelManager.setPushChannel({
274
- channelId: "test1",
275
- channelDesc: "test1 desc",
276
- soundName: "pushsound",
277
- enableLights: true,
278
- enableVibration: true,
279
- importance: 4,
280
- lockscreenVisibility: 1
281
- })
282
- const channels = channelManager.getAllChannels() as string[]
283
- console.log("channels : " + channels);
284
- ```
285
- */
286
- getChannelManager(): ChannelManager;
287
-
288
- /**
289
- * getPushChannelManager()
290
- * @description
291
- * 获取通知渠道管理器,Android 8系统以上才可以设置通知渠道,Android 8系统以下返回null,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),iOS不支持。
292
- * @param {void}
293
- * @return {PushChannelManager}
294
- * @uniPlatform {
295
- * "app": {
296
- * "android": {
297
- * "osVer": "4.4",
298
- * "uniVer": "4.25",
299
- * "unixVer": "4.25"
300
- * },
301
- * "ios": {
302
- * "osVer": "x",
303
- * "uniVer": "x",
304
- * "unixVer": "x"
305
- * }
306
- * },
307
- * "web": {
308
- * "uniVer": "x",
309
- * "unixVer": "x"
310
- * }
311
- * }
312
- * @example
313
- ```typescript
314
- const channelManager = uni.getPushChannelManager();
315
- channelManager.setPushChannel({
316
- channelId: "test1",
317
- channelDesc: "test1 desc",
318
- soundName: "pushsound",
319
- enableLights: true,
320
- enableVibration: true,
321
- importance: 4,
322
- lockscreenVisibility: 1
323
- })
324
- const channels = channelManager.getAllChannels() as string[]
325
- console.log("channels : " + channels);
326
- ```
327
- */
328
- getPushChannelManager(): PushChannelManager;
329
-
330
- /**
331
- * createPushMessage()
332
- * @description
333
- * 创建本地通知栏消息
334
- * @param {CreatePushMessageOptions}
335
- * @return {void}
336
- * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#createpushmessage
337
- * @uniPlatform {
338
- * "app": {
339
- * "android": {
340
- * "osVer": "4.4",
341
- * "uniVer": "√",
342
- * "unixVer": "3.98"
343
- * },
344
- * "ios": {
345
- * "osVer": "12.0",
346
- * "uniVer": "√",
347
- * "unixVer": "4.18"
348
- * },
349
- * "harmony": {
350
- * "osVer": "3.0",
351
- * "uniVer": "4.31",
352
- * "unixVer": "4.61"
353
- * }
354
- * },
355
- * "web": {
356
- * "uniVer": "x",
357
- * "unixVer": "x"
358
- * }
359
- * }
360
- * @example
361
- ```typescript
362
- uni.createPushMessage({
363
- title: "标题",
364
- content: "您有新的消息",
365
- cover:true,
366
- channelId: "test1",
367
- when:1697623177000,
368
- icon:"/static/icon.png",
369
- delay:5,
370
- payload:{
371
- pkey:"pvalue1"
372
- },
373
- channelId:"message",
374
- category : "IM",
375
- success(res : CreatePushMessageSuccess) {
376
- console.log("res: " + res);
377
- }
378
- });
379
- ```
380
- */
381
- createPushMessage(options: CreatePushMessageOptions): void;
382
-
383
- /**
384
- * setAppBadgeNumber()
385
- * @description 设置应用图标上显示的角标数字,注意:不同手机厂商的角标显示规则不同,有部分设备的rom版本不支持显示角标,另有部分rom需要在应用的通知管理里开启`桌面角标`配置,才可以设置角标成功。
386
- * @param num - 要显示的角标数字值,参数为0则表示清除角标数字。
387
- * @param options - 小米手机显示角标需要在系统消息中心显示一条通知,此参数用于设置通知的标题(title)和内容(content)。
388
- * @return {void}
389
- * @uniPlatform {
390
- * "app": {
391
- * "android": {
392
- * "osVer": "5.0",
393
- * "uniVer": "x",
394
- * "unixVer": "4.25"
395
- * },
396
- * "ios": {
397
- * "osVer": "12.0",
398
- * "uniVer": "x",
399
- * "unixVer": "4.25"
400
- * },
401
- * "harmony": {
402
- * "osVer": "3.0",
403
- * "uniVer": "4.31",
404
- * "unixVer": "4.61"
405
- * }
406
- * },
407
- * "web": {
408
- * "uniVer": "x",
409
- * "unixVer": "x"
410
- * }
411
- * }
412
- *
413
- * @example
414
- ```typescript
415
- if (uni.getDeviceInfo().deviceBrand?.toLowerCase() == "xiaomi") {
416
- uni.setAppBadgeNumber(1, {
417
- title:"AppName",
418
- content: "您有1条未读消息"
419
- } as BadgeOptions)
420
- } else {
421
- uni.setAppBadgeNumber(5)
422
- }
423
- ```
424
- */
425
- setAppBadgeNumber(num: number, options?: BadgeOptions | null): void;
426
- }
427
-
428
- export type GetPushClientId = (options: GetPushClientIdOptions) => void;
429
- export type GetPushClientIdSuccess = {
430
- /**
431
- * 个推客户端推送id,对应uni-id-device表的push_clientid
432
- *
433
- * @uniPlatform {
434
- * "app": {
435
- * "android": {
436
- * "osVer": "4.4",
437
- * "uniVer": "√",
438
- * "unixVer": "3.98"
439
- * },
440
- * "ios": {
441
- * "osVer": "12.0",
442
- * "uniVer": "√",
443
- * "unixVer": "4.18"
444
- * }
445
- * },
446
- * "web": {
447
- * "uniVer": "x",
448
- * "unixVer": "4.27"
449
- * }
450
- * }
451
- */
452
- cid: string,
453
- /**
454
- * 错误描述
455
- *
456
- * @uniPlatform {
457
- * "app": {
458
- * "android": {
459
- * "osVer": "4.4",
460
- * "uniVer": "√",
461
- * "unixVer": "3.98"
462
- * },
463
- * "ios": {
464
- * "osVer": "12.0",
465
- * "uniVer": "√",
466
- * "unixVer": "4.18"
467
- * }
468
- * },
469
- * "web": {
470
- * "uniVer": "x",
471
- * "unixVer": "4.27"
472
- * }
473
- * }
474
- */
475
- errMsg: string
476
- };
477
- export type GetPushClientIdSuccessCallback = (result: GetPushClientIdSuccess) => void;
478
- export type GetPushClientIdFail = UniError;
479
- export type GetPushClientIdFailCallback = (result: GetPushClientIdFail) => void;
480
- export type GetPushClientIdComplete = any;
481
- export type GetPushClientIdCompleteCallback = (result: GetPushClientIdComplete) => void;
482
- export type GetPushClientIdOptions = {
483
- /**
484
- * 接口调用成功的回调函数
485
- * @defaultValue null
486
- */
487
- success?: GetPushClientIdSuccessCallback | null,
488
- /**
489
- * 接口调用失败的回调函数
490
- * @defaultValue null
491
- */
492
- fail?: GetPushClientIdFailCallback | null,
493
- /**
494
- * 接口调用结束的回调函数(调用成功、失败都会执行)
495
- * @defaultValue null
496
- */
497
- complete?: GetPushClientIdCompleteCallback | null
498
- };
499
- /**
500
- * 事件类型
501
- * - click 从系统推送服务点击消息启动应用事件
502
- * - receive 应用从推送服务器接收到推送消息事件
503
- */
504
- export type OnPushMessageType = "click" | "receive";
505
-
506
- export type OnPushMessageCallbackResult = {
507
- /**
508
- * 事件类型
509
- * @type{OnPushMessageType}
510
- *
511
- * @uniPlatform {
512
- * "app": {
513
- * "android": {
514
- * "osVer": "4.4",
515
- * "uniVer": "√",
516
- * "unixVer": "3.98"
517
- * },
518
- * "ios": {
519
- * "osVer": "12.0",
520
- * "uniVer": "√",
521
- * "unixVer": "4.18"
522
- * }
523
- * },
524
- * "web": {
525
- * "uniVer": "x",
526
- * "unixVer": "4.27"
527
- * }
528
- * }
529
- */
530
- type: OnPushMessageType,
531
- /**
532
- * 消息内容
533
- *
534
- * @uniPlatform {
535
- * "app": {
536
- * "android": {
537
- * "osVer": "4.4",
538
- * "uniVer": "√",
539
- * "unixVer": "3.98"
540
- * },
541
- * "ios": {
542
- * "osVer": "12.0",
543
- * "uniVer": "√",
544
- * "unixVer": "4.18"
545
- * }
546
- * },
547
- * "web": {
548
- * "uniVer": "x",
549
- * "unixVer": "4.27"
550
- * }
551
- * }
552
- */
553
- data: UTSJSONObject
554
- };
555
-
556
- export type OnPushMessageCallback = (result: OnPushMessageCallbackResult) => void;
557
- export type OnPushMessage = (callback: OnPushMessageCallback) => void;
558
- export type OffPushMessage = (callback: OnPushMessageCallback) => void;
559
-
560
-
561
- export type GetChannelManager = () => ChannelManager;
562
- export type SetPushChannelOptions = {
563
- /**
564
- * 添加的声音文件,注意raw目录下必须要有 ,不传此字段将使用默认铃音。
565
- * @defaultValue null
566
- */
567
- soundName?: string | null,
568
- /**
569
- * 通知渠道id
570
- */
571
- channelId: string,
572
- /**
573
- * 通知渠道描述
574
- */
575
- channelDesc: string,
576
- /**
577
- * 呼吸灯闪烁
578
- * @defaultValue false
579
- */
580
- enableLights?: boolean | null,
581
- /**
582
- * 震动
583
- * @defaultValue false
584
- */
585
- enableVibration?: boolean | null,
586
- /**
587
- * 通知的重要性级别,可选范围IMPORTANCE_LOW:2、IMPORTANCE_DEFAULT:3、IMPORTANCE_HIGH:4 。
588
- * @defaultValue 3
589
- */
590
- importance?: number | null,
591
- /**
592
- * 锁屏可见性,可选范围VISIBILITY_PRIVATE:0、VISIBILITY_PUBLIC:1、VISIBILITY_SECRET:-1、VISIBILITY_NO_OVERRIDE:-1000。
593
- * @defaultValue -1000
594
- */
595
- lockscreenVisibility?: number | null
596
- }
597
-
598
- export interface ChannelManager {
599
- /**
600
- * 设置推送渠道
601
- *
602
- * @uniPlatform {
603
- * "app": {
604
- * "android": {
605
- * "osVer": "4.4",
606
- * "uniVer": "√",
607
- * "unixVer": "3.98"
608
- * },
609
- * "ios": {
610
- * "osVer": "x",
611
- * "uniVer": "x",
612
- * "unixVer": "x"
613
- * }
614
- * },
615
- * "web": {
616
- * "uniVer": "x",
617
- * "unixVer": "x"
618
- * }
619
- * }
620
- */
621
- setPushChannel(options: SetPushChannelOptions): void;
622
- /**
623
- * 获取当前应用注册的所有的通知渠道。
624
- *
625
- * @uniPlatform {
626
- * "app": {
627
- * "android": {
628
- * "osVer": "4.4",
629
- * "uniVer": "√",
630
- * "unixVer": "3.98"
631
- * },
632
- * "ios": {
633
- * "osVer": "x",
634
- * "uniVer": "x",
635
- * "unixVer": "x"
636
- * }
637
- * },
638
- * "web": {
639
- * "uniVer": "x",
640
- * "unixVer": "x"
641
- * }
642
- * }
643
- */
644
- getAllChannels(): Array<string>;
645
- }
646
-
647
- export type PushChannelManager = ChannelManager
648
-
649
-
650
- export type CreatePushMessage = (options: CreatePushMessageOptions) => void;
651
- export type CreatePushMessageSuccess = {};
652
- export type CreatePushMessageSuccessCallback = (result: CreatePushMessageSuccess) => void;
653
- export type CreatePushMessageFail = UniError;
654
- export type CreatePushMessageFailCallback = (result: CreatePushMessageFail) => void;
655
- export type CreatePushMessageComplete = any;
656
- export type CreatePushMessageCompleteCallback = (result: CreatePushMessageComplete) => void;
657
- export type CreatePushMessageOptions = {
658
- /**
659
- * 是否覆盖上一次提示的消息
660
- * @type boolean
661
- * @defaultValue false
662
- * @uniPlatform {
663
- * "app": {
664
- * "android": {
665
- * "osVer": "4.4",
666
- * "uniVer": "√",
667
- * "unixVer": "3.98"
668
- * },
669
- * "ios": {
670
- * "osVer": "12.0",
671
- * "uniVer": "√",
672
- * "unixVer": "4.18"
673
- * }
674
- * },
675
- * "web": {
676
- * "uniVer": "x",
677
- * "unixVer": "x"
678
- * }
679
- * }
680
- */
681
- cover?: boolean | null,
682
- /**
683
- * 提示消息延迟显示的时间,单位为s
684
- * @defaultValue 0
685
- * @uniPlatform {
686
- * "app": {
687
- * "android": {
688
- * "osVer": "4.4",
689
- * "uniVer": "√",
690
- * "unixVer": "3.98"
691
- * },
692
- * "ios": {
693
- * "osVer": "12.0",
694
- * "uniVer": "√",
695
- * "unixVer": "4.18"
696
- * }
697
- * },
698
- * "web": {
699
- * "uniVer": "x",
700
- * "unixVer": "x"
701
- * }
702
- * }
703
- */
704
- delay?: number | null,
705
- /**
706
- * 推送消息的图标
707
- * @defaultValue null
708
- * @uniPlatform {
709
- * "app": {
710
- * "android": {
711
- * "osVer": "4.4",
712
- * "uniVer": "√",
713
- * "unixVer": "3.98"
714
- * },
715
- * "ios": {
716
- * "osVer": "12.0",
717
- * "uniVer": "x",
718
- * "unixVer": "x"
719
- * }
720
- * },
721
- * "web": {
722
- * "uniVer": "x",
723
- * "unixVer": "x"
724
- * }
725
- * }
726
- */
727
- icon?: string | null,
728
- /**
729
- * 推送消息的提示音
730
- * - system: 使用系统通知提示音(默认值)
731
- * - none: 不使用提示音
732
- * @type 'system' | 'none'
733
- * @defaultValue "system"
734
- * @uniPlatform {
735
- * "app": {
736
- * "android": {
737
- * "osVer": "4.4",
738
- * "uniVer": "√",
739
- * "unixVer": "3.98"
740
- * },
741
- * "ios": {
742
- * "osVer": "12.0",
743
- * "uniVer": "√",
744
- * "unixVer": "4.18"
745
- * }
746
- * },
747
- * "web": {
748
- * "uniVer": "x",
749
- * "unixVer": "x"
750
- * }
751
- * }
752
- */
753
- sound?: string | null,
754
- /**
755
- * 推送消息的标题
756
- * @defaultValue App的名称
757
- * @uniPlatform {
758
- * "app": {
759
- * "android": {
760
- * "osVer": "4.4",
761
- * "uniVer": "√",
762
- * "unixVer": "3.98"
763
- * },
764
- * "ios": {
765
- * "osVer": "12.0",
766
- * "uniVer": "√",
767
- * "unixVer": "4.18"
768
- * }
769
- * },
770
- * "web": {
771
- * "uniVer": "x",
772
- * "unixVer": "x"
773
- * }
774
- * }
775
- */
776
- title?: string | null,
777
- /**
778
- * 消息显示的内容,在系统通知中心中显示的文本内容。鸿蒙系统中,此字段为必填字段。
779
- *
780
- * @uniPlatform {
781
- * "app": {
782
- * "android": {
783
- * "osVer": "4.4",
784
- * "uniVer": "√",
785
- * "unixVer": "3.98"
786
- * },
787
- * "ios": {
788
- * "osVer": "12.0",
789
- * "uniVer": "√",
790
- * "unixVer": "4.18"
791
- * }
792
- * },
793
- * "web": {
794
- * "uniVer": "x",
795
- * "unixVer": "x"
796
- * }
797
- * }
798
- */
799
- content: string,
800
- /**
801
- * 消息承载的数据,可根据业务逻辑自定义数据格式,在点击通知消息时`onPushMessage`回调中会返回此字段的数据。
802
- * @defaultValue null
803
- * @uniPlatform {
804
- * "app": {
805
- * "android": {
806
- * "osVer": "4.4",
807
- * "uniVer": "√",
808
- * "unixVer": "3.98"
809
- * },
810
- * "ios": {
811
- * "osVer": "12.0",
812
- * "uniVer": "√",
813
- * "unixVer": "4.18"
814
- * }
815
- * },
816
- * "web": {
817
- * "uniVer": "x",
818
- * "unixVer": "x"
819
- * }
820
- * }
821
- */
822
- payload?: any | null,
823
- /**
824
- * 消息上显示的提示时间,需要传入时间戳。
825
- * @defaultValue 当前时间
826
- *
827
- * @uniPlatform {
828
- * "app": {
829
- * "android": {
830
- * "osVer": "4.4",
831
- * "uniVer": "√",
832
- * "unixVer": "3.98"
833
- * },
834
- * "ios": {
835
- * "osVer": "x",
836
- * "uniVer": "x",
837
- * "unixVer": "x"
838
- * }
839
- * },
840
- * "web": {
841
- * "uniVer": "x",
842
- * "unixVer": "x"
843
- * }
844
- * }
845
- */
846
- when?: number | null,
847
- /**
848
- * 渠道id,Android特有字段,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),
849
- * 创建通知渠道请使用`getPushChannelManager`获取PushChannelManager对象,调用`setPushChannel`方法配置渠道。
850
- * @defaultValue "DcloudChannelID"
851
- * @uniPlatform {
852
- * "app": {
853
- * "android": {
854
- * "osVer": "4.4",
855
- * "uniVer": "√",
856
- * "unixVer": "3.98"
857
- * },
858
- * "ios": {
859
- * "osVer": "x",
860
- * "uniVer": "x",
861
- * "unixVer": "x"
862
- * }
863
- * },
864
- * "web": {
865
- * "uniVer": "x",
866
- * "unixVer": "x"
867
- * }
868
- * }
869
- */
870
- channelId?: string | null,
871
- /**
872
- * 通知类别,Android特有字段,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),
873
- * 标识通知的类别,应用场景为对于离线推送厂商配置的支持,比如[华为消息分类](https://developer.huawei.com/consumer/cn/doc/HMSCore-Guides/message-classification-0000001149358835#section5101818813)
874
- * @defaultValue null
875
- * @uniPlatform {
876
- * "app": {
877
- * "android": {
878
- * "osVer": "4.4",
879
- * "uniVer": "√",
880
- * "unixVer": "3.98"
881
- * },
882
- * "ios": {
883
- * "osVer": "x",
884
- * "uniVer": "x",
885
- * "unixVer": "x"
886
- * }
887
- * },
888
- * "web": {
889
- * "uniVer": "x",
890
- * "unixVer": "x"
891
- * }
892
- * }
893
- */
894
- category?: string | null,
895
- /**
896
- * 接口调用成功的回调函数
897
- * @defaultValue null
898
- */
899
- success?: CreatePushMessageSuccessCallback | null,
900
- /**
901
- * 接口调用失败的回调函数
902
- * @defaultValue null
903
- */
904
- fail?: CreatePushMessageFailCallback | null,
905
- /**
906
- * 接口调用结束的回调函数(调用成功、失败都会执行)
907
- * @defaultValue null
908
- */
909
- complete?: CreatePushMessageCompleteCallback | null
910
- };
911
-
912
-
913
- export type BadgeOptions = {
914
- /**
915
- * 消息的标题
916
- * @defaultValue 应用的名称
917
- * @uniPlatform {
918
- * "app": {
919
- * "android": {
920
- * "osVer": "4.4",
921
- * "uniVer": "x",
922
- * "unixVer": "4.25"
923
- * },
924
- * "ios": {
925
- * "osVer": "12.0",
926
- * "uniVer": "x",
927
- * "unixVer": "4.25"
928
- * }
929
- * },
930
- * "web": {
931
- * "uniVer": "x",
932
- * "unixVer": "x"
933
- * }
934
- * }
935
- */
936
- title?: string | null,
937
- /**
938
- * 消息的内容
939
- * @defaultValue '您有x条未读消息',其中x为设置的角标数字值。
940
- * @uniPlatform {
941
- * "app": {
942
- * "android": {
943
- * "osVer": "4.4",
944
- * "uniVer": "x",
945
- * "unixVer": "4.25"
946
- * },
947
- * "ios": {
948
- * "osVer": "12.0",
949
- * "uniVer": "x",
950
- * "unixVer": "4.25"
951
- * }
952
- * },
953
- * "web": {
954
- * "uniVer": "x",
955
- * "unixVer": "x"
956
- * }
957
- * }
958
- */
959
- content?: string | null
960
- }