@quicktvui/ai 1.0.0

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 (676) hide show
  1. package/README.md +36 -0
  2. package/index.js +2 -0
  3. package/package.json +23 -0
  4. package/postinstall.js +61 -0
  5. package/rules/.claude/commands/create-component.md +39 -0
  6. package/rules/.claude/commands/create-page.md +44 -0
  7. package/rules/.claude/commands/create-project.md +25 -0
  8. package/rules/.claude/commands/lookup-api.md +28 -0
  9. package/rules/.claude/commands/lookup-css.md +53 -0
  10. package/rules/.claude/settings.local.json +11 -0
  11. package/rules/.clinerules +367 -0
  12. package/rules/.cursorrules +367 -0
  13. package/rules/.docs/examples/component/animation/alpha-props.vue +130 -0
  14. package/rules/.docs/examples/component/animation/alpha.vue +169 -0
  15. package/rules/.docs/examples/component/animation/animator-props.vue +101 -0
  16. package/rules/.docs/examples/component/animation/animators-props.vue +145 -0
  17. package/rules/.docs/examples/component/animation/animators.vue +322 -0
  18. package/rules/.docs/examples/component/animation/basic.vue +96 -0
  19. package/rules/.docs/examples/component/animation/interpolator.vue +330 -0
  20. package/rules/.docs/examples/component/animation/listener.vue +151 -0
  21. package/rules/.docs/examples/component/animation/repeat.vue +113 -0
  22. package/rules/.docs/examples/component/animation/rotation-props.vue +148 -0
  23. package/rules/.docs/examples/component/animation/rotation-xy.vue +255 -0
  24. package/rules/.docs/examples/component/animation/rotation.vue +188 -0
  25. package/rules/.docs/examples/component/animation/scale-props.vue +129 -0
  26. package/rules/.docs/examples/component/animation/scale.vue +169 -0
  27. package/rules/.docs/examples/component/animation/translation-props.vue +128 -0
  28. package/rules/.docs/examples/component/animation/translation.vue +169 -0
  29. package/rules/.docs/examples/component/aside/basic.vue +34 -0
  30. package/rules/.docs/examples/component/audio-player/basic.vue +104 -0
  31. package/rules/.docs/examples/component/audio-player/event-global.vue +492 -0
  32. package/rules/.docs/examples/component/audio-player/event.vue +447 -0
  33. package/rules/.docs/examples/component/audio-player/player-manager.vue +100 -0
  34. package/rules/.docs/examples/component/audio-player-service/basic.vue +102 -0
  35. package/rules/.docs/examples/component/audio-player-service/event-global.vue +488 -0
  36. package/rules/.docs/examples/component/audio-player-service/event.vue +420 -0
  37. package/rules/.docs/examples/component/audio-player-service/player-manager.vue +100 -0
  38. package/rules/.docs/examples/component/button/background.vue +28 -0
  39. package/rules/.docs/examples/component/button/basic.vue +13 -0
  40. package/rules/.docs/examples/component/button/border.vue +18 -0
  41. package/rules/.docs/examples/component/button/custom-content.vue +18 -0
  42. package/rules/.docs/examples/component/button/custom-icon-style.vue +25 -0
  43. package/rules/.docs/examples/component/button/custom-icon.vue +19 -0
  44. package/rules/.docs/examples/component/button/custom-net-icon.vue +20 -0
  45. package/rules/.docs/examples/component/button/custom-style.vue +17 -0
  46. package/rules/.docs/examples/component/button/custom-text.vue +23 -0
  47. package/rules/.docs/examples/component/button/disabled.vue +13 -0
  48. package/rules/.docs/examples/component/button/round.vue +13 -0
  49. package/rules/.docs/examples/component/button/size.vue +16 -0
  50. package/rules/.docs/examples/component/button/square.vue +13 -0
  51. package/rules/.docs/examples/component/checkbox-group/basic.vue +97 -0
  52. package/rules/.docs/examples/component/collapse/basic.vue +156 -0
  53. package/rules/.docs/examples/component/column/basic.vue +15 -0
  54. package/rules/.docs/examples/component/container/layout-ahm.vue +48 -0
  55. package/rules/.docs/examples/component/container/layout-ahmf.vue +51 -0
  56. package/rules/.docs/examples/component/container/layout-am.vue +43 -0
  57. package/rules/.docs/examples/component/container/layout-ham.vue +48 -0
  58. package/rules/.docs/examples/component/container/layout-hamf.vue +53 -0
  59. package/rules/.docs/examples/component/container/layout-hm.vue +43 -0
  60. package/rules/.docs/examples/component/container/layout-hmf.vue +46 -0
  61. package/rules/.docs/examples/component/dialog/basic.vue +72 -0
  62. package/rules/.docs/examples/component/div/background-img.vue +49 -0
  63. package/rules/.docs/examples/component/div/background.vue +28 -0
  64. package/rules/.docs/examples/component/div/basic.vue +28 -0
  65. package/rules/.docs/examples/component/div/border.vue +72 -0
  66. package/rules/.docs/examples/component/div/click.vue +66 -0
  67. package/rules/.docs/examples/component/div/focus-background.vue +60 -0
  68. package/rules/.docs/examples/component/div/focus.vue +58 -0
  69. package/rules/.docs/examples/component/div/gradient-background.vue +36 -0
  70. package/rules/.docs/examples/component/footer/basic.vue +34 -0
  71. package/rules/.docs/examples/component/grid-view/basic.vue +59 -0
  72. package/rules/.docs/examples/component/grid-view/page.vue +80 -0
  73. package/rules/.docs/examples/component/grid-view/ref-base.vue +50 -0
  74. package/rules/.docs/examples/component/grid-view/ref-page.vue +102 -0
  75. package/rules/.docs/examples/component/header/basic.vue +39 -0
  76. package/rules/.docs/examples/component/html/alert.vue +28 -0
  77. package/rules/.docs/examples/component/html/audio.vue +24 -0
  78. package/rules/.docs/examples/component/html/h.vue +30 -0
  79. package/rules/.docs/examples/component/html/sound.vue +33 -0
  80. package/rules/.docs/examples/component/html/video.vue +23 -0
  81. package/rules/.docs/examples/component/image/assets.vue +40 -0
  82. package/rules/.docs/examples/component/image/network.vue +36 -0
  83. package/rules/.docs/examples/component/img/assets.vue +40 -0
  84. package/rules/.docs/examples/component/img/network.vue +36 -0
  85. package/rules/.docs/examples/component/indicator-list-view/basic.vue +476 -0
  86. package/rules/.docs/examples/component/input/basic.vue +26 -0
  87. package/rules/.docs/examples/component/list-view/basic.vue +58 -0
  88. package/rules/.docs/examples/component/list-view/ref-basic.vue +33 -0
  89. package/rules/.docs/examples/component/list-view/ref-operations.vue +58 -0
  90. package/rules/.docs/examples/component/list-view/ref-page.vue +82 -0
  91. package/rules/.docs/examples/component/loading/basic.vue +12 -0
  92. package/rules/.docs/examples/component/lottie/basic.vue +83 -0
  93. package/rules/.docs/examples/component/lottie/event.vue +126 -0
  94. package/rules/.docs/examples/component/lottie/local.vue +90 -0
  95. package/rules/.docs/examples/component/lottie/network.vue +82 -0
  96. package/rules/.docs/examples/component/main/basic.vue +34 -0
  97. package/rules/.docs/examples/component/nav-bar/basic.vue +45 -0
  98. package/rules/.docs/examples/component/p/basic.vue +40 -0
  99. package/rules/.docs/examples/component/p/gravity.vue +62 -0
  100. package/rules/.docs/examples/component/player-manager/aspect-ratio.vue +286 -0
  101. package/rules/.docs/examples/component/player-manager/basic.vue +87 -0
  102. package/rules/.docs/examples/component/player-manager/control.vue +356 -0
  103. package/rules/.docs/examples/component/player-manager/custom-player-view.vue +105 -0
  104. package/rules/.docs/examples/component/player-manager/custom-player.vue +100 -0
  105. package/rules/.docs/examples/component/player-manager/decode.vue +218 -0
  106. package/rules/.docs/examples/component/player-manager/definition.vue +199 -0
  107. package/rules/.docs/examples/component/player-manager/event-global.vue +581 -0
  108. package/rules/.docs/examples/component/player-manager/event.vue +632 -0
  109. package/rules/.docs/examples/component/player-manager/image-player.vue +331 -0
  110. package/rules/.docs/examples/component/player-manager/media-item-interceptor.vue +105 -0
  111. package/rules/.docs/examples/component/player-manager/media-item-list-interceptor.vue +104 -0
  112. package/rules/.docs/examples/component/player-manager/media-item-list.vue +268 -0
  113. package/rules/.docs/examples/component/player-manager/media-source-interceptor.vue +115 -0
  114. package/rules/.docs/examples/component/player-manager/media-source-list-interceptor.vue +111 -0
  115. package/rules/.docs/examples/component/player-manager/multi-player.vue +130 -0
  116. package/rules/.docs/examples/component/player-manager/play-mode.vue +260 -0
  117. package/rules/.docs/examples/component/player-manager/play-rate.vue +244 -0
  118. package/rules/.docs/examples/component/player-manager/player-size.vue +119 -0
  119. package/rules/.docs/examples/component/player-manager/player-view.vue +381 -0
  120. package/rules/.docs/examples/component/player-manager/post-roll-ad.vue +189 -0
  121. package/rules/.docs/examples/component/player-manager/previous-roll-ad.vue +172 -0
  122. package/rules/.docs/examples/component/player-manager/start-position.vue +108 -0
  123. package/rules/.docs/examples/component/player-manager/text-left-player.vue +306 -0
  124. package/rules/.docs/examples/component/player-manager/text-right-player.vue +306 -0
  125. package/rules/.docs/examples/component/player-manager/window.vue +140 -0
  126. package/rules/.docs/examples/component/poster/basic.vue +144 -0
  127. package/rules/.docs/examples/component/poster/corner.vue +123 -0
  128. package/rules/.docs/examples/component/poster/decoration.vue +82 -0
  129. package/rules/.docs/examples/component/poster/float-title.vue +103 -0
  130. package/rules/.docs/examples/component/poster/ripple.vue +118 -0
  131. package/rules/.docs/examples/component/poster/score.vue +108 -0
  132. package/rules/.docs/examples/component/poster/shadow.vue +113 -0
  133. package/rules/.docs/examples/component/poster/shimmer.vue +113 -0
  134. package/rules/.docs/examples/component/poster/sub-title.vue +110 -0
  135. package/rules/.docs/examples/component/poster/title.vue +106 -0
  136. package/rules/.docs/examples/component/progress-bar/basic.vue +61 -0
  137. package/rules/.docs/examples/component/qr-code/basic.vue +16 -0
  138. package/rules/.docs/examples/component/radio-group/basic.vue +105 -0
  139. package/rules/.docs/examples/component/rating-bar/basic.vue +152 -0
  140. package/rules/.docs/examples/component/row/basic.vue +15 -0
  141. package/rules/.docs/examples/component/seek-bar/bar.vue +49 -0
  142. package/rules/.docs/examples/component/seek-bar/basic.vue +191 -0
  143. package/rules/.docs/examples/component/seek-bar/indicator.vue +74 -0
  144. package/rules/.docs/examples/component/seek-bar/range-mode.vue +130 -0
  145. package/rules/.docs/examples/component/seek-bar/single-mode.vue +113 -0
  146. package/rules/.docs/examples/component/seek-bar/step.vue +186 -0
  147. package/rules/.docs/examples/component/seek-bar/thumb.vue +148 -0
  148. package/rules/.docs/examples/component/seek-bar/tick-mark.vue +121 -0
  149. package/rules/.docs/examples/component/switch/basic.vue +26 -0
  150. package/rules/.docs/examples/component/tabs/basic.vue +109 -0
  151. package/rules/.docs/examples/component/tabs/custom-tab-item.vue +120 -0
  152. package/rules/.docs/examples/component/tabs/data.vue +121 -0
  153. package/rules/.docs/examples/component/tabs/horizontal.vue +118 -0
  154. package/rules/.docs/examples/component/tabs/item-add.vue +127 -0
  155. package/rules/.docs/examples/component/tabs/item-custom.vue +132 -0
  156. package/rules/.docs/examples/component/tabs/item-delete.vue +123 -0
  157. package/rules/.docs/examples/component/tabs/item-get.vue +124 -0
  158. package/rules/.docs/examples/component/tabs/item-update.vue +129 -0
  159. package/rules/.docs/examples/component/tabs/ref-basic.vue +63 -0
  160. package/rules/.docs/examples/component/tabs/ref-operations.vue +97 -0
  161. package/rules/.docs/examples/component/tabs/ref-page.vue +89 -0
  162. package/rules/.docs/examples/component/tabs/section-add.vue +138 -0
  163. package/rules/.docs/examples/component/tabs/section-delete.vue +126 -0
  164. package/rules/.docs/examples/component/tabs/section-get.vue +128 -0
  165. package/rules/.docs/examples/component/tabs/section-update.vue +137 -0
  166. package/rules/.docs/examples/component/tabs/section-vue.vue +111 -0
  167. package/rules/.docs/examples/component/tabs/single-tab.vue +112 -0
  168. package/rules/.docs/examples/component/text/basic.vue +20 -0
  169. package/rules/.docs/examples/component/text/ellipsize-mode.vue +122 -0
  170. package/rules/.docs/examples/component/text/gravity.vue +119 -0
  171. package/rules/.docs/examples/component/video-player/aspect-ratio.vue +242 -0
  172. package/rules/.docs/examples/component/video-player/basic.vue +82 -0
  173. package/rules/.docs/examples/component/video-player/control.vue +240 -0
  174. package/rules/.docs/examples/component/video-player/decode.vue +174 -0
  175. package/rules/.docs/examples/component/video-player/definition.vue +194 -0
  176. package/rules/.docs/examples/component/video-player/event-global.vue +89 -0
  177. package/rules/.docs/examples/component/video-player/event.vue +448 -0
  178. package/rules/.docs/examples/component/video-player/page.vue +150 -0
  179. package/rules/.docs/examples/component/video-player/play-mode.vue +220 -0
  180. package/rules/.docs/examples/component/video-player/play-rate.vue +198 -0
  181. package/rules/.docs/examples/component/video-player/progress.vue +211 -0
  182. package/rules/.docs/examples/component/video-player/render.vue +187 -0
  183. package/rules/.docs/examples/component/video-player/type.vue +133 -0
  184. package/rules/.docs/examples/component/view/background-img.vue +49 -0
  185. package/rules/.docs/examples/component/view/background.vue +28 -0
  186. package/rules/.docs/examples/component/view/basic.vue +28 -0
  187. package/rules/.docs/examples/component/view/border.vue +72 -0
  188. package/rules/.docs/examples/component/view/click.vue +66 -0
  189. package/rules/.docs/examples/component/view/focus-background.vue +60 -0
  190. package/rules/.docs/examples/component/view/focus.vue +58 -0
  191. package/rules/.docs/examples/component/view/gradient-background.vue +36 -0
  192. package/rules/.docs/examples/component/waterfall/basic.vue +167 -0
  193. package/rules/.docs/examples/component/waterfall/event.vue +154 -0
  194. package/rules/.docs/examples/component/waterfall/item-add.vue +82 -0
  195. package/rules/.docs/examples/component/waterfall/item-card-placeholder.vue +67 -0
  196. package/rules/.docs/examples/component/waterfall/item-card.vue +66 -0
  197. package/rules/.docs/examples/component/waterfall/item-custom.vue +81 -0
  198. package/rules/.docs/examples/component/waterfall/item-decoration.vue +63 -0
  199. package/rules/.docs/examples/component/waterfall/item-delete.vue +90 -0
  200. package/rules/.docs/examples/component/waterfall/item-get.vue +68 -0
  201. package/rules/.docs/examples/component/waterfall/item-update.vue +85 -0
  202. package/rules/.docs/examples/component/waterfall/ref-base.vue +141 -0
  203. package/rules/.docs/examples/component/waterfall/ref-operations.vue +192 -0
  204. package/rules/.docs/examples/component/waterfall/section-add.vue +72 -0
  205. package/rules/.docs/examples/component/waterfall/section-background.vue +94 -0
  206. package/rules/.docs/examples/component/waterfall/section-blank.vue +62 -0
  207. package/rules/.docs/examples/component/waterfall/section-card-placeholder.vue +90 -0
  208. package/rules/.docs/examples/component/waterfall/section-card.vue +83 -0
  209. package/rules/.docs/examples/component/waterfall/section-custom.vue +68 -0
  210. package/rules/.docs/examples/component/waterfall/section-decoration.vue +80 -0
  211. package/rules/.docs/examples/component/waterfall/section-delete.vue +76 -0
  212. package/rules/.docs/examples/component/waterfall/section-end.vue +91 -0
  213. package/rules/.docs/examples/component/waterfall/section-get.vue +74 -0
  214. package/rules/.docs/examples/component/waterfall/section-list.vue +56 -0
  215. package/rules/.docs/examples/component/waterfall/section-tabs-list.vue +149 -0
  216. package/rules/.docs/examples/component/waterfall/section-tabs.vue +153 -0
  217. package/rules/.docs/examples/component/waterfall/section-time.vue +48 -0
  218. package/rules/.docs/examples/component/waterfall/section-update.vue +118 -0
  219. package/rules/.docs/examples/component/waterfall/section-vue.vue +81 -0
  220. package/rules/.docs/examples/component/web-view/basic.vue +54 -0
  221. package/rules/.docs/examples/component/web-view/js-2-vue.vue +49 -0
  222. package/rules/.docs/examples/component/web-view/vue-2-js.vue +60 -0
  223. package/rules/.docs/examples/component/x5-web-view/basic.vue +54 -0
  224. package/rules/.docs/examples/css/gradient/basic.vue +43 -0
  225. package/rules/.docs/examples/css/gradient/corner-radii4.vue +86 -0
  226. package/rules/.docs/examples/css/gradient/corner-radius.vue +86 -0
  227. package/rules/.docs/examples/css/gradient/orientation.vue +168 -0
  228. package/rules/.docs/examples/css/gradient/shape.vue +97 -0
  229. package/rules/.docs/examples/css/gradient/type.vue +83 -0
  230. package/rules/.docs/examples/guide/router/app.vue +52 -0
  231. package/rules/.docs/examples/guide/slot/basic.vue +32 -0
  232. package/rules/.docs/examples/guide/slot/lifecycle.vue +106 -0
  233. package/rules/.docs/examples/module/action-bar/es-basic.vue +51 -0
  234. package/rules/.docs/examples/module/action-bar/qt-basic.vue +47 -0
  235. package/rules/.docs/examples/module/app-list/es-basic.vue +53 -0
  236. package/rules/.docs/examples/module/app-list/qt-basic.vue +50 -0
  237. package/rules/.docs/examples/module/audio/es-basic.vue +71 -0
  238. package/rules/.docs/examples/module/audio/qt-basic.vue +63 -0
  239. package/rules/.docs/examples/module/brightness/es-basic.vue +118 -0
  240. package/rules/.docs/examples/module/brightness/qt-basic.vue +115 -0
  241. package/rules/.docs/examples/module/broadcast/es-basic.vue +340 -0
  242. package/rules/.docs/examples/module/broadcast/qt-basic.vue +331 -0
  243. package/rules/.docs/examples/module/content-provider/es-basic.vue +92 -0
  244. package/rules/.docs/examples/module/content-provider/qt-basic.vue +86 -0
  245. package/rules/.docs/examples/module/develop/es-basic.vue +45 -0
  246. package/rules/.docs/examples/module/develop/qt-basic.vue +43 -0
  247. package/rules/.docs/examples/module/device/es-basic.vue +169 -0
  248. package/rules/.docs/examples/module/device/qt-basic.vue +166 -0
  249. package/rules/.docs/examples/module/display/es-basic.vue +45 -0
  250. package/rules/.docs/examples/module/display/qt-basic.vue +43 -0
  251. package/rules/.docs/examples/module/download/es-basic.vue +174 -0
  252. package/rules/.docs/examples/module/download/qt-basic.vue +168 -0
  253. package/rules/.docs/examples/module/es/es-basic.vue +74 -0
  254. package/rules/.docs/examples/module/es/qt-basic.vue +74 -0
  255. package/rules/.docs/examples/module/event-bus/es-emit.vue +31 -0
  256. package/rules/.docs/examples/module/event-bus/es-off.vue +53 -0
  257. package/rules/.docs/examples/module/event-bus/es-on.vue +56 -0
  258. package/rules/.docs/examples/module/event-bus/es-once.vue +47 -0
  259. package/rules/.docs/examples/module/event-bus/qt-emit.vue +28 -0
  260. package/rules/.docs/examples/module/event-bus/qt-off.vue +51 -0
  261. package/rules/.docs/examples/module/event-bus/qt-on.vue +53 -0
  262. package/rules/.docs/examples/module/event-bus/qt-once.vue +45 -0
  263. package/rules/.docs/examples/module/file/es-basic.vue +188 -0
  264. package/rules/.docs/examples/module/iac/es-basic.vue +211 -0
  265. package/rules/.docs/examples/module/iac/qt-basic.vue +208 -0
  266. package/rules/.docs/examples/module/key/es-back.vue +32 -0
  267. package/rules/.docs/examples/module/key/es-dispatch.vue +34 -0
  268. package/rules/.docs/examples/module/key/es-event.vue +34 -0
  269. package/rules/.docs/examples/module/local-storage/es-basic.vue +92 -0
  270. package/rules/.docs/examples/module/local-storage/qt-basic.vue +86 -0
  271. package/rules/.docs/examples/module/location/es-basic.vue +69 -0
  272. package/rules/.docs/examples/module/location/qt-basic.vue +67 -0
  273. package/rules/.docs/examples/module/log/es-basic.vue +45 -0
  274. package/rules/.docs/examples/module/log/qt-basic.vue +44 -0
  275. package/rules/.docs/examples/module/network/es-basic.vue +64 -0
  276. package/rules/.docs/examples/module/network/qt-basic.vue +60 -0
  277. package/rules/.docs/examples/module/page/es-app-lifecycle.vue +83 -0
  278. package/rules/.docs/examples/module/page/es-page-lifecycle.vue +80 -0
  279. package/rules/.docs/examples/module/page/es-page-state.vue +36 -0
  280. package/rules/.docs/examples/module/permission/es-basic.vue +62 -0
  281. package/rules/.docs/examples/module/permission/qt-basic.vue +59 -0
  282. package/rules/.docs/examples/module/plugin/es-basic.vue +71 -0
  283. package/rules/.docs/examples/module/plugin/qt-basic.vue +69 -0
  284. package/rules/.docs/examples/module/power/es-basic.vue +45 -0
  285. package/rules/.docs/examples/module/power/qt-basic.vue +41 -0
  286. package/rules/.docs/examples/module/runtime/es-basic.vue +42 -0
  287. package/rules/.docs/examples/module/runtime/qt-basic.vue +40 -0
  288. package/rules/.docs/examples/module/service/es-basic.vue +34 -0
  289. package/rules/.docs/examples/module/service/qt-basic.vue +31 -0
  290. package/rules/.docs/examples/module/share-data/es-basic.vue +266 -0
  291. package/rules/.docs/examples/module/share-data/qt-basic.vue +259 -0
  292. package/rules/.docs/examples/module/toast/es-basic.vue +47 -0
  293. package/rules/.docs/examples/module/toast/qt-basic.vue +44 -0
  294. package/rules/.docs/examples/module/upload/es-basic.vue +65 -0
  295. package/rules/.docs/examples/module/upload/qt-basic.vue +63 -0
  296. package/rules/.docs/examples/module/usb/es-basic.vue +138 -0
  297. package/rules/.docs/examples/module/usb/qt-basic.vue +135 -0
  298. package/rules/.docs/examples/module/xlog/es-basic.vue +45 -0
  299. package/rules/.docs/examples/module/xlog/qt-basic.vue +44 -0
  300. package/rules/.docs/examples/test/basic.vue +48 -0
  301. package/rules/.docs/index.md +7 -0
  302. package/rules/.docs/zh-CN/component/animation/alpha.md +22 -0
  303. package/rules/.docs/zh-CN/component/animation/animators.md +227 -0
  304. package/rules/.docs/zh-CN/component/animation/interpolator.md +59 -0
  305. package/rules/.docs/zh-CN/component/animation/introduction.md +101 -0
  306. package/rules/.docs/zh-CN/component/animation/listener.md +175 -0
  307. package/rules/.docs/zh-CN/component/animation/method.md +87 -0
  308. package/rules/.docs/zh-CN/component/animation/props.md +76 -0
  309. package/rules/.docs/zh-CN/component/animation/repeat.md +46 -0
  310. package/rules/.docs/zh-CN/component/animation/rotation-xy.md +17 -0
  311. package/rules/.docs/zh-CN/component/animation/rotation.md +23 -0
  312. package/rules/.docs/zh-CN/component/animation/scale.md +24 -0
  313. package/rules/.docs/zh-CN/component/animation/translation.md +22 -0
  314. package/rules/.docs/zh-CN/component/app-icon.md +22 -0
  315. package/rules/.docs/zh-CN/component/aside.md +14 -0
  316. package/rules/.docs/zh-CN/component/audio-player/basic.md +52 -0
  317. package/rules/.docs/zh-CN/component/audio-player/installation.md +26 -0
  318. package/rules/.docs/zh-CN/component/audio-player/introduction.md +12 -0
  319. package/rules/.docs/zh-CN/component/audio-player/player-manager.md +72 -0
  320. package/rules/.docs/zh-CN/component/audio-service-player/basic.md +52 -0
  321. package/rules/.docs/zh-CN/component/audio-service-player/installation.md +26 -0
  322. package/rules/.docs/zh-CN/component/audio-service-player/introduction.md +13 -0
  323. package/rules/.docs/zh-CN/component/audio-service-player/player-manager.md +71 -0
  324. package/rules/.docs/zh-CN/component/button.md +120 -0
  325. package/rules/.docs/zh-CN/component/card-container.md +24 -0
  326. package/rules/.docs/zh-CN/component/card.md +17 -0
  327. package/rules/.docs/zh-CN/component/checkbox-group.md +57 -0
  328. package/rules/.docs/zh-CN/component/classified-list-view.md +44 -0
  329. package/rules/.docs/zh-CN/component/collapse.md +45 -0
  330. package/rules/.docs/zh-CN/component/column.md +26 -0
  331. package/rules/.docs/zh-CN/component/container.md +81 -0
  332. package/rules/.docs/zh-CN/component/dialog.md +26 -0
  333. package/rules/.docs/zh-CN/component/div.md +234 -0
  334. package/rules/.docs/zh-CN/component/flex-view.md +14 -0
  335. package/rules/.docs/zh-CN/component/footer.md +14 -0
  336. package/rules/.docs/zh-CN/component/grid-view.md +221 -0
  337. package/rules/.docs/zh-CN/component/header.md +15 -0
  338. package/rules/.docs/zh-CN/component/html/alert.md +14 -0
  339. package/rules/.docs/zh-CN/component/html/audio.md +37 -0
  340. package/rules/.docs/zh-CN/component/html/h.md +15 -0
  341. package/rules/.docs/zh-CN/component/html/installation.md +67 -0
  342. package/rules/.docs/zh-CN/component/html/introduction.md +10 -0
  343. package/rules/.docs/zh-CN/component/html/video.md +39 -0
  344. package/rules/.docs/zh-CN/component/image.md +88 -0
  345. package/rules/.docs/zh-CN/component/img.md +118 -0
  346. package/rules/.docs/zh-CN/component/indicator-list-view.md +118 -0
  347. package/rules/.docs/zh-CN/component/input.md +54 -0
  348. package/rules/.docs/zh-CN/component/item-store.md +14 -0
  349. package/rules/.docs/zh-CN/component/item-view.md +14 -0
  350. package/rules/.docs/zh-CN/component/js-view.md +14 -0
  351. package/rules/.docs/zh-CN/component/js2vue.md +43 -0
  352. package/rules/.docs/zh-CN/component/large-list.md +20 -0
  353. package/rules/.docs/zh-CN/component/li.md +16 -0
  354. package/rules/.docs/zh-CN/component/list-item.md +34 -0
  355. package/rules/.docs/zh-CN/component/list-view.md +233 -0
  356. package/rules/.docs/zh-CN/component/loading.md +22 -0
  357. package/rules/.docs/zh-CN/component/lottie/assets.md +19 -0
  358. package/rules/.docs/zh-CN/component/lottie/basic.md +51 -0
  359. package/rules/.docs/zh-CN/component/lottie/event.md +23 -0
  360. package/rules/.docs/zh-CN/component/lottie/introduction.md +93 -0
  361. package/rules/.docs/zh-CN/component/lottie/network.md +12 -0
  362. package/rules/.docs/zh-CN/component/main.md +14 -0
  363. package/rules/.docs/zh-CN/component/media-series.md +44 -0
  364. package/rules/.docs/zh-CN/component/nav-bar.md +51 -0
  365. package/rules/.docs/zh-CN/component/overview.md +20 -0
  366. package/rules/.docs/zh-CN/component/p.md +55 -0
  367. package/rules/.docs/zh-CN/component/play-mark-view.md +25 -0
  368. package/rules/.docs/zh-CN/component/player/global-event.md +24 -0
  369. package/rules/.docs/zh-CN/component/player/interceptor.md +48 -0
  370. package/rules/.docs/zh-CN/component/player/media-player.md +43 -0
  371. package/rules/.docs/zh-CN/component/player/page-player.md +118 -0
  372. package/rules/.docs/zh-CN/component/player/player.md +190 -0
  373. package/rules/.docs/zh-CN/component/player-manager/aspect-ratio.md +51 -0
  374. package/rules/.docs/zh-CN/component/player-manager/basic.md +69 -0
  375. package/rules/.docs/zh-CN/component/player-manager/control.md +32 -0
  376. package/rules/.docs/zh-CN/component/player-manager/custom-control.md +105 -0
  377. package/rules/.docs/zh-CN/component/player-manager/data-structure.md +29 -0
  378. package/rules/.docs/zh-CN/component/player-manager/decode.md +46 -0
  379. package/rules/.docs/zh-CN/component/player-manager/definition.md +85 -0
  380. package/rules/.docs/zh-CN/component/player-manager/event.md +16 -0
  381. package/rules/.docs/zh-CN/component/player-manager/global-event.md +304 -0
  382. package/rules/.docs/zh-CN/component/player-manager/installation.md +33 -0
  383. package/rules/.docs/zh-CN/component/player-manager/introduction.md +207 -0
  384. package/rules/.docs/zh-CN/component/player-manager/media-item-interceptor.md +197 -0
  385. package/rules/.docs/zh-CN/component/player-manager/media-item-list-interceptor.md +189 -0
  386. package/rules/.docs/zh-CN/component/player-manager/media-item-list.md +31 -0
  387. package/rules/.docs/zh-CN/component/player-manager/media-source-interceptor.md +166 -0
  388. package/rules/.docs/zh-CN/component/player-manager/media-source-list-interceptor.md +168 -0
  389. package/rules/.docs/zh-CN/component/player-manager/mode.md +46 -0
  390. package/rules/.docs/zh-CN/component/player-manager/multiple-player.md +124 -0
  391. package/rules/.docs/zh-CN/component/player-manager/player-type.md +38 -0
  392. package/rules/.docs/zh-CN/component/player-manager/player-view.md +31 -0
  393. package/rules/.docs/zh-CN/component/player-manager/player.md +73 -0
  394. package/rules/.docs/zh-CN/component/player-manager/position.md +27 -0
  395. package/rules/.docs/zh-CN/component/player-manager/rate.md +53 -0
  396. package/rules/.docs/zh-CN/component/player-manager/size.md +17 -0
  397. package/rules/.docs/zh-CN/component/player-manager/window.md +65 -0
  398. package/rules/.docs/zh-CN/component/plugin-view.md +21 -0
  399. package/rules/.docs/zh-CN/component/poster.md +102 -0
  400. package/rules/.docs/zh-CN/component/progress-bar.md +347 -0
  401. package/rules/.docs/zh-CN/component/qr-code.md +23 -0
  402. package/rules/.docs/zh-CN/component/radio-group.md +57 -0
  403. package/rules/.docs/zh-CN/component/rating-bar.md +43 -0
  404. package/rules/.docs/zh-CN/component/replace-child.md +20 -0
  405. package/rules/.docs/zh-CN/component/ripple-view.md +14 -0
  406. package/rules/.docs/zh-CN/component/row.md +29 -0
  407. package/rules/.docs/zh-CN/component/scroll-view.md +21 -0
  408. package/rules/.docs/zh-CN/component/seek-bar.md +377 -0
  409. package/rules/.docs/zh-CN/component/surface-view.md +14 -0
  410. package/rules/.docs/zh-CN/component/swift-list.md +21 -0
  411. package/rules/.docs/zh-CN/component/swiper-slide.md +18 -0
  412. package/rules/.docs/zh-CN/component/swiper.md +34 -0
  413. package/rules/.docs/zh-CN/component/switch.md +37 -0
  414. package/rules/.docs/zh-CN/component/tabs-view.md +44 -0
  415. package/rules/.docs/zh-CN/component/tabs.md +286 -0
  416. package/rules/.docs/zh-CN/component/test.md +58 -0
  417. package/rules/.docs/zh-CN/component/text.md +115 -0
  418. package/rules/.docs/zh-CN/component/transition-img.md +22 -0
  419. package/rules/.docs/zh-CN/component/ul.md +83 -0
  420. package/rules/.docs/zh-CN/component/video-player/aspect-ratio.md +49 -0
  421. package/rules/.docs/zh-CN/component/video-player/basic.md +55 -0
  422. package/rules/.docs/zh-CN/component/video-player/control.md +23 -0
  423. package/rules/.docs/zh-CN/component/video-player/decode.md +46 -0
  424. package/rules/.docs/zh-CN/component/video-player/definition.md +85 -0
  425. package/rules/.docs/zh-CN/component/video-player/event.md +16 -0
  426. package/rules/.docs/zh-CN/component/video-player/global-event.md +268 -0
  427. package/rules/.docs/zh-CN/component/video-player/installation.md +33 -0
  428. package/rules/.docs/zh-CN/component/video-player/introduction.md +18 -0
  429. package/rules/.docs/zh-CN/component/video-player/mode.md +50 -0
  430. package/rules/.docs/zh-CN/component/video-player/progress.md +51 -0
  431. package/rules/.docs/zh-CN/component/video-player/rate.md +53 -0
  432. package/rules/.docs/zh-CN/component/video-player/render.md +47 -0
  433. package/rules/.docs/zh-CN/component/video-player/type.md +32 -0
  434. package/rules/.docs/zh-CN/component/view-pager.md +14 -0
  435. package/rules/.docs/zh-CN/component/view.md +234 -0
  436. package/rules/.docs/zh-CN/component/virtual-dom.md +4 -0
  437. package/rules/.docs/zh-CN/component/virtual.md +8 -0
  438. package/rules/.docs/zh-CN/component/vue-section.md +29 -0
  439. package/rules/.docs/zh-CN/component/vue2js.md +47 -0
  440. package/rules/.docs/zh-CN/component/waterfall.md +447 -0
  441. package/rules/.docs/zh-CN/component/web-view.md +100 -0
  442. package/rules/.docs/zh-CN/component/x5web-view.md +100 -0
  443. package/rules/.docs/zh-CN/cooperation/index.md +6 -0
  444. package/rules/.docs/zh-CN/css/color/gradient.md +111 -0
  445. package/rules/.docs/zh-CN/css/color/hsl.md +11 -0
  446. package/rules/.docs/zh-CN/css/color/name.md +151 -0
  447. package/rules/.docs/zh-CN/css/color/rgb.md +16 -0
  448. package/rules/.docs/zh-CN/css/color/transparent.md +9 -0
  449. package/rules/.docs/zh-CN/css/layout/align-items.md +13 -0
  450. package/rules/.docs/zh-CN/css/layout/align-self.md +12 -0
  451. package/rules/.docs/zh-CN/css/layout/background-position-x.md +12 -0
  452. package/rules/.docs/zh-CN/css/layout/background-position-y.md +12 -0
  453. package/rules/.docs/zh-CN/css/layout/background-size.md +12 -0
  454. package/rules/.docs/zh-CN/css/layout/collapsable.md +13 -0
  455. package/rules/.docs/zh-CN/css/layout/display.md +12 -0
  456. package/rules/.docs/zh-CN/css/layout/flex-basis.md +12 -0
  457. package/rules/.docs/zh-CN/css/layout/flex-direction.md +15 -0
  458. package/rules/.docs/zh-CN/css/layout/flex-grow.md +15 -0
  459. package/rules/.docs/zh-CN/css/layout/flex-shrink.md +12 -0
  460. package/rules/.docs/zh-CN/css/layout/flex-wrap.md +12 -0
  461. package/rules/.docs/zh-CN/css/layout/flex.md +12 -0
  462. package/rules/.docs/zh-CN/css/layout/height.md +12 -0
  463. package/rules/.docs/zh-CN/css/layout/justify-content.md +12 -0
  464. package/rules/.docs/zh-CN/css/layout/left.md +13 -0
  465. package/rules/.docs/zh-CN/css/layout/line-height.md +12 -0
  466. package/rules/.docs/zh-CN/css/layout/margin-bottom.md +12 -0
  467. package/rules/.docs/zh-CN/css/layout/margin-horizontal.md +12 -0
  468. package/rules/.docs/zh-CN/css/layout/margin-left.md +12 -0
  469. package/rules/.docs/zh-CN/css/layout/margin-right.md +12 -0
  470. package/rules/.docs/zh-CN/css/layout/margin-top.md +12 -0
  471. package/rules/.docs/zh-CN/css/layout/margin-vertical.md +12 -0
  472. package/rules/.docs/zh-CN/css/layout/margin.md +12 -0
  473. package/rules/.docs/zh-CN/css/layout/max-height.md +10 -0
  474. package/rules/.docs/zh-CN/css/layout/max-width.md +10 -0
  475. package/rules/.docs/zh-CN/css/layout/min-height.md +10 -0
  476. package/rules/.docs/zh-CN/css/layout/min-width.md +10 -0
  477. package/rules/.docs/zh-CN/css/layout/overflow.md +12 -0
  478. package/rules/.docs/zh-CN/css/layout/padding-bottom.md +12 -0
  479. package/rules/.docs/zh-CN/css/layout/padding-horizontal.md +12 -0
  480. package/rules/.docs/zh-CN/css/layout/padding-left.md +12 -0
  481. package/rules/.docs/zh-CN/css/layout/padding-right.md +12 -0
  482. package/rules/.docs/zh-CN/css/layout/padding-top.md +12 -0
  483. package/rules/.docs/zh-CN/css/layout/padding-vertical.md +12 -0
  484. package/rules/.docs/zh-CN/css/layout/padding.md +12 -0
  485. package/rules/.docs/zh-CN/css/layout/position.md +14 -0
  486. package/rules/.docs/zh-CN/css/layout/right.md +13 -0
  487. package/rules/.docs/zh-CN/css/layout/text-align.md +12 -0
  488. package/rules/.docs/zh-CN/css/layout/top.md +12 -0
  489. package/rules/.docs/zh-CN/css/layout/width.md +12 -0
  490. package/rules/.docs/zh-CN/css/layout/z-index.md +12 -0
  491. package/rules/.docs/zh-CN/css/overview.md +8 -0
  492. package/rules/.docs/zh-CN/css/style/background-color.md +10 -0
  493. package/rules/.docs/zh-CN/css/style/border-bottom-color.md +10 -0
  494. package/rules/.docs/zh-CN/css/style/border-bottom-left-radius.md +10 -0
  495. package/rules/.docs/zh-CN/css/style/border-bottom-right-radius.md +10 -0
  496. package/rules/.docs/zh-CN/css/style/border-bottom-width.md +10 -0
  497. package/rules/.docs/zh-CN/css/style/border-color.md +10 -0
  498. package/rules/.docs/zh-CN/css/style/border-left-color.md +10 -0
  499. package/rules/.docs/zh-CN/css/style/border-left-width.md +10 -0
  500. package/rules/.docs/zh-CN/css/style/border-radius.md +10 -0
  501. package/rules/.docs/zh-CN/css/style/border-right-color.md +10 -0
  502. package/rules/.docs/zh-CN/css/style/border-right-width.md +10 -0
  503. package/rules/.docs/zh-CN/css/style/border-style.md +10 -0
  504. package/rules/.docs/zh-CN/css/style/border-top-color.md +10 -0
  505. package/rules/.docs/zh-CN/css/style/border-top-left-radius.md +10 -0
  506. package/rules/.docs/zh-CN/css/style/border-top-right-radius.md +10 -0
  507. package/rules/.docs/zh-CN/css/style/border-top-width.md +10 -0
  508. package/rules/.docs/zh-CN/css/style/border-width.md +10 -0
  509. package/rules/.docs/zh-CN/css/style/box-shadow.md +10 -0
  510. package/rules/.docs/zh-CN/css/style/color.md +10 -0
  511. package/rules/.docs/zh-CN/css/style/font-family.md +10 -0
  512. package/rules/.docs/zh-CN/css/style/font-size.md +10 -0
  513. package/rules/.docs/zh-CN/css/style/font-style.md +10 -0
  514. package/rules/.docs/zh-CN/css/style/font-weight.md +10 -0
  515. package/rules/.docs/zh-CN/css/style/letter-spacing.md +10 -0
  516. package/rules/.docs/zh-CN/css/style/opacity.md +10 -0
  517. package/rules/.docs/zh-CN/css/style/text-decoration-color.md +10 -0
  518. package/rules/.docs/zh-CN/css/style/text-decoration-line.md +10 -0
  519. package/rules/.docs/zh-CN/css/style/text-decoration.md +12 -0
  520. package/rules/.docs/zh-CN/css/style/tint-color.md +10 -0
  521. package/rules/.docs/zh-CN/css/style/visibility.md +10 -0
  522. package/rules/.docs/zh-CN/guide/basic/appendix.md +35 -0
  523. package/rules/.docs/zh-CN/guide/basic/dev-debug.md +94 -0
  524. package/rules/.docs/zh-CN/guide/basic/dev-tools.md +22 -0
  525. package/rules/.docs/zh-CN/guide/basic/installation.md +144 -0
  526. package/rules/.docs/zh-CN/guide/basic/language.md +10 -0
  527. package/rules/.docs/zh-CN/guide/basic/package-manager.md +8 -0
  528. package/rules/.docs/zh-CN/guide/basic/quick-start.md +150 -0
  529. package/rules/.docs/zh-CN/guide/changelog.md +20 -0
  530. package/rules/.docs/zh-CN/guide/commit-examples.md +90 -0
  531. package/rules/.docs/zh-CN/guide/compile/obfuscator.md +56 -0
  532. package/rules/.docs/zh-CN/guide/compile/pack.md +8 -0
  533. package/rules/.docs/zh-CN/guide/compile/resource.md +96 -0
  534. package/rules/.docs/zh-CN/guide/compile/split-chunks.md +66 -0
  535. package/rules/.docs/zh-CN/guide/dark-mode.md +84 -0
  536. package/rules/.docs/zh-CN/guide/design.md +34 -0
  537. package/rules/.docs/zh-CN/guide/dev-faq.md +41 -0
  538. package/rules/.docs/zh-CN/guide/dev-guide.md +55 -0
  539. package/rules/.docs/zh-CN/guide/device/ch.md +18 -0
  540. package/rules/.docs/zh-CN/guide/device/haier.md +12 -0
  541. package/rules/.docs/zh-CN/guide/device/hisense.md +24 -0
  542. package/rules/.docs/zh-CN/guide/device/huawei.md +16 -0
  543. package/rules/.docs/zh-CN/guide/device/konka.md +12 -0
  544. package/rules/.docs/zh-CN/guide/device/le.md +19 -0
  545. package/rules/.docs/zh-CN/guide/device/skyworth.md +25 -0
  546. package/rules/.docs/zh-CN/guide/device/tcl.md +21 -0
  547. package/rules/.docs/zh-CN/guide/device/tencent.md +24 -0
  548. package/rules/.docs/zh-CN/guide/device/tmall.md +18 -0
  549. package/rules/.docs/zh-CN/guide/device/xiaomi.md +46 -0
  550. package/rules/.docs/zh-CN/guide/faq/dev-faq.md +100 -0
  551. package/rules/.docs/zh-CN/guide/faq/develop-faq.md +39 -0
  552. package/rules/.docs/zh-CN/guide/faq/launch-params-faq.md +119 -0
  553. package/rules/.docs/zh-CN/guide/faq/layout-style-faq.md +66 -0
  554. package/rules/.docs/zh-CN/guide/focus/auto-focus.md +94 -0
  555. package/rules/.docs/zh-CN/guide/focus/basic.md +133 -0
  556. package/rules/.docs/zh-CN/guide/focus/debug-tool.md +40 -0
  557. package/rules/.docs/zh-CN/guide/focus/focus-method.md +317 -0
  558. package/rules/.docs/zh-CN/guide/focus/list-auto-focus.md +94 -0
  559. package/rules/.docs/zh-CN/guide/focus/request-focus.md +10 -0
  560. package/rules/.docs/zh-CN/guide/interaction/click.md +39 -0
  561. package/rules/.docs/zh-CN/guide/interaction/focus.md +44 -0
  562. package/rules/.docs/zh-CN/guide/key/back.md +65 -0
  563. package/rules/.docs/zh-CN/guide/key/dispatch-key-event.md +41 -0
  564. package/rules/.docs/zh-CN/guide/key/key-event.md +87 -0
  565. package/rules/.docs/zh-CN/guide/layout/adapter.md +33 -0
  566. package/rules/.docs/zh-CN/guide/layout/layout.md +42 -0
  567. package/rules/.docs/zh-CN/guide/layout/style.md +64 -0
  568. package/rules/.docs/zh-CN/guide/layout/theming.md +154 -0
  569. package/rules/.docs/zh-CN/guide/migration.md +25 -0
  570. package/rules/.docs/zh-CN/guide/namespace.md +69 -0
  571. package/rules/.docs/zh-CN/guide/nav.md +73 -0
  572. package/rules/.docs/zh-CN/guide/network/axios.md +47 -0
  573. package/rules/.docs/zh-CN/guide/network/fetch.md +70 -0
  574. package/rules/.docs/zh-CN/guide/network/websocket.md +107 -0
  575. package/rules/.docs/zh-CN/guide/node/install.md +179 -0
  576. package/rules/.docs/zh-CN/guide/npm/install.md +74 -0
  577. package/rules/.docs/zh-CN/guide/overview.md +41 -0
  578. package/rules/.docs/zh-CN/guide/page/application-lifecycle.md +37 -0
  579. package/rules/.docs/zh-CN/guide/page/lifecycle.md +32 -0
  580. package/rules/.docs/zh-CN/guide/page/page-lifecycle.md +35 -0
  581. package/rules/.docs/zh-CN/guide/page/page-state.md +31 -0
  582. package/rules/.docs/zh-CN/guide/page/type.md +49 -0
  583. package/rules/.docs/zh-CN/guide/publish/hub.md +31 -0
  584. package/rules/.docs/zh-CN/guide/publish/release-apk.md +51 -0
  585. package/rules/.docs/zh-CN/guide/publish/release-rpk.md +45 -0
  586. package/rules/.docs/zh-CN/guide/router/async.md +25 -0
  587. package/rules/.docs/zh-CN/guide/router/entry.md +60 -0
  588. package/rules/.docs/zh-CN/guide/router/error.md +25 -0
  589. package/rules/.docs/zh-CN/guide/router/install.md +70 -0
  590. package/rules/.docs/zh-CN/guide/router/introduction.md +35 -0
  591. package/rules/.docs/zh-CN/guide/router/launch.md +88 -0
  592. package/rules/.docs/zh-CN/guide/router/limit.md +33 -0
  593. package/rules/.docs/zh-CN/guide/router/native.md +104 -0
  594. package/rules/.docs/zh-CN/guide/router/result.md +42 -0
  595. package/rules/.docs/zh-CN/guide/sfc-component/async-component.md +88 -0
  596. package/rules/.docs/zh-CN/guide/sfc-component/native-component.md +127 -0
  597. package/rules/.docs/zh-CN/guide/slot/develop.md +42 -0
  598. package/rules/.docs/zh-CN/guide/slot/install.md +59 -0
  599. package/rules/.docs/zh-CN/guide/slot/introduction.md +45 -0
  600. package/rules/.docs/zh-CN/guide/slot/lifecycle.md +18 -0
  601. package/rules/.docs/zh-CN/guide/slot/project.md +22 -0
  602. package/rules/.docs/zh-CN/guide/test.md +8 -0
  603. package/rules/.docs/zh-CN/guide/theming.md +254 -0
  604. package/rules/.docs/zh-CN/guide/translation.md +39 -0
  605. package/rules/.docs/zh-CN/index.md +9 -0
  606. package/rules/.docs/zh-CN/module/action-bar.md +32 -0
  607. package/rules/.docs/zh-CN/module/app-list.md +57 -0
  608. package/rules/.docs/zh-CN/module/audio.md +45 -0
  609. package/rules/.docs/zh-CN/module/brightness.md +33 -0
  610. package/rules/.docs/zh-CN/module/broadcast.md +77 -0
  611. package/rules/.docs/zh-CN/module/content-provider.md +64 -0
  612. package/rules/.docs/zh-CN/module/develop.md +45 -0
  613. package/rules/.docs/zh-CN/module/device.md +108 -0
  614. package/rules/.docs/zh-CN/module/display.md +33 -0
  615. package/rules/.docs/zh-CN/module/download.md +97 -0
  616. package/rules/.docs/zh-CN/module/es.md +74 -0
  617. package/rules/.docs/zh-CN/module/event-bus.md +68 -0
  618. package/rules/.docs/zh-CN/module/file.md +62 -0
  619. package/rules/.docs/zh-CN/module/iac.md +51 -0
  620. package/rules/.docs/zh-CN/module/local-storage.md +35 -0
  621. package/rules/.docs/zh-CN/module/location.md +48 -0
  622. package/rules/.docs/zh-CN/module/log.md +52 -0
  623. package/rules/.docs/zh-CN/module/network.md +77 -0
  624. package/rules/.docs/zh-CN/module/overview.md +10 -0
  625. package/rules/.docs/zh-CN/module/permission.md +42 -0
  626. package/rules/.docs/zh-CN/module/plugin.md +38 -0
  627. package/rules/.docs/zh-CN/module/power.md +51 -0
  628. package/rules/.docs/zh-CN/module/runtime.md +41 -0
  629. package/rules/.docs/zh-CN/module/service.md +33 -0
  630. package/rules/.docs/zh-CN/module/share-data.md +85 -0
  631. package/rules/.docs/zh-CN/module/toast.md +30 -0
  632. package/rules/.docs/zh-CN/module/upload.md +53 -0
  633. package/rules/.docs/zh-CN/module/usb.md +52 -0
  634. package/rules/.docs/zh-CN/module/xlog.md +48 -0
  635. package/rules/.docs/zh-CN/resource/runtime.md +88 -0
  636. package/rules/.docs/zh-CN/resource/test-flight.md +27 -0
  637. package/rules/.docs/zh-CN/runtime/runtime.md +81 -0
  638. package/rules/.docs/zh-CN/runtime/test-flight.md +23 -0
  639. package/rules/.docs/zh-CN/sample/ai-dev.md +250 -0
  640. package/rules/.docs/zh-CN/sample/api-demo.md +26 -0
  641. package/rules/.docs/zh-CN/sample/app-list.md +12 -0
  642. package/rules/.docs/zh-CN/sample/hello-tv.md +98 -0
  643. package/rules/.docs/zh-CN/sdk/cus_component.md +249 -0
  644. package/rules/.docs/zh-CN/sdk/cus_module.md +163 -0
  645. package/rules/.docs/zh-CN/sdk/cus_splash.md +97 -0
  646. package/rules/.docs/zh-CN/sdk/empty.md +0 -0
  647. package/rules/.docs/zh-CN/sdk/first_implementation.md +15 -0
  648. package/rules/.docs/zh-CN/sdk/first_init.md +13 -0
  649. package/rules/.docs/zh-CN/sdk/first_start_app.md +4 -0
  650. package/rules/.docs/zh-CN/sdk/light-card.md +116 -0
  651. package/rules/.docs/zh-CN/sdk/overview.md +5 -0
  652. package/rules/.docs/zh-CN/tool/api/overview.md +103 -0
  653. package/rules/.docs/zh-CN/tool/cli/adb.md +32 -0
  654. package/rules/.docs/zh-CN/tool/cli/build.md +14 -0
  655. package/rules/.docs/zh-CN/tool/cli/clean.md +12 -0
  656. package/rules/.docs/zh-CN/tool/cli/config.md +37 -0
  657. package/rules/.docs/zh-CN/tool/cli/create.md +28 -0
  658. package/rules/.docs/zh-CN/tool/cli/debug.md +30 -0
  659. package/rules/.docs/zh-CN/tool/cli/info.md +14 -0
  660. package/rules/.docs/zh-CN/tool/cli/installation.md +12 -0
  661. package/rules/.docs/zh-CN/tool/cli/introduction.md +26 -0
  662. package/rules/.docs/zh-CN/tool/cli/logcat.md +10 -0
  663. package/rules/.docs/zh-CN/tool/cli/migrate.md +12 -0
  664. package/rules/.docs/zh-CN/tool/cli/pack.md +14 -0
  665. package/rules/.docs/zh-CN/tool/cli/preview.md +18 -0
  666. package/rules/.docs/zh-CN/tool/cli/publish.md +12 -0
  667. package/rules/.docs/zh-CN/tool/cli/setup.md +58 -0
  668. package/rules/.docs/zh-CN/tool/cli/start.md +54 -0
  669. package/rules/.docs/zh-CN/tool/cli/test.md +22 -0
  670. package/rules/.docs/zh-CN/tool/cli/upgrade.md +12 -0
  671. package/rules/.github/copilot-instructions.md +456 -0
  672. package/rules/.windsurfrules +367 -0
  673. package/rules/AGENTS.md +456 -0
  674. package/rules/AI_HANDOFF.md +376 -0
  675. package/rules/CLAUDE.md +836 -0
  676. package/rules/GEMINI.md +463 -0
@@ -0,0 +1,98 @@
1
+
2
+ # HelloTV
3
+
4
+ HelloTV是基于 [QuickTVUI](http://quicktvui.com/) 框架的视频点播直播应用,面向使用遥控器交互的安卓大屏设备。
5
+ 项目目的是让开发者通过对本项目源码的简单修改,快速实现一些TV端常见的功能页面,从而加速开发进度。如果使用者并不具备编程能力,可以参考[HelloTV-Case](https://github.com/quicktvui/HelloTV-Case)项目,简单修改该项目配置文件就可以快速实现一个标准化的视频类应用。
6
+ 点播页面包括瀑布流首页、内容列表、筛选、搜索、详情、历史、收藏、登录等,直播页面包括多级列表页、播放详情页等。
7
+ 以下是一些页面效果:
8
+
9
+ ***瀑布流首页***
10
+
11
+ <img width="95%" src="https://extcdn.hsrc.tv/data_center/files/2024/07/10/9a62dd70-e787-4d5f-8294-d2acd79c23bf.jpeg"/>
12
+
13
+ ***搜索***
14
+
15
+ <img width="95%" src="https://extcdn.hsrc.tv/data_center/files/2024/07/10/9204f370-3230-4f56-b7df-c4da1283fd89.jpeg"/>
16
+
17
+ ***筛选***
18
+
19
+ <img width="95%" src="https://extcdn.hsrc.tv/data_center/files/2024/07/10/3c860f27-cefe-47a9-b3ea-c9bbe761e2e2.jpeg"/>
20
+
21
+ ***详情页***
22
+
23
+ <img width="95%" src="https://extcdn.hsrc.tv/data_center/files/2024/07/10/c2c6d9e0-ca8a-4ff1-a5ce-e639395ad33f.jpeg"/>
24
+
25
+ ***内容编辑页***
26
+
27
+ <img width="95%" src="https://extcdn.hsrc.tv/data_center/files/2024/07/10/fc811902-d468-4828-b030-0f7561c1816b.jpeg"/>
28
+
29
+ ## 快速开始
30
+
31
+ ### 调试
32
+ #### 1. 确认编译环境
33
+ 建议windows:
34
+ - node version 16.20.2
35
+ - npm version 8.10
36
+
37
+
38
+ #### 2. 安装运行Runtime
39
+ 下载并安装 [运行环境](/zh-CN/runtime/runtime) (需要日志时使用debug包,否则使用release)
40
+
41
+ #### 3. 安装依赖
42
+ 进入项目录下
43
+ ```bash
44
+ npm install --legacy-peer-deps
45
+ ```
46
+ #### 4. 编译调试
47
+ ```bash
48
+ npm run dev
49
+ ```
50
+ #### 5. 打开运行Runtime apk,查看效果
51
+
52
+ 点击下图加载测试代码
53
+
54
+ <img width="95%" src="/guide/basic/debug_runtime_ok.jpg"/>
55
+
56
+
57
+ ::: warning 注意:这里电脑调试地址要改成你电脑本机ip
58
+ :::
59
+
60
+ ```bash
61
+ adb shell am broadcast -a com.extscreen.runtime.ACTION_CHANGE_DEBUG_SERVER --es ip 192.168.xx.xx(电脑IP地址)
62
+ ```
63
+ 关于adb等其它配置具体说明请查看 <u>[安装和环境配置](/zh-CN/guide/basic/installation) </u>
64
+
65
+
66
+ 最后看到加载出页面,表示完成调试,即可随时修改源码查看效果。
67
+
68
+
69
+ #### 6. 打包生成APK
70
+
71
+ [APK配置](https://github.com/quicktvui/hellotv/blob/master/android/README.md)
72
+
73
+ ``` bash
74
+ # 生成debug包
75
+ npm run build-apk-debug
76
+ # 生成release包
77
+ npm run build-apk-release
78
+ ```
79
+ 打包完成后apk在 `./android/app/build/outputs/apk/` 文件夹下
80
+
81
+
82
+
83
+ ## 开发进度
84
+ - [x] 瀑布流首页
85
+ - [x] 搜索页
86
+ - [x] 媒资详情页
87
+ - [x] 筛选页
88
+ - [x] 多级列表页
89
+ - [x] 一键打包生成APK
90
+
91
+ 以上页面开发完成
92
+
93
+ 开发中
94
+ - [ ] 内容编辑页
95
+ - [ ] 短视频浏览
96
+
97
+ ## 其他
98
+ 更多信息请查看[源码](https://github.com/quicktvui/hellotv)
@@ -0,0 +1,249 @@
1
+ ## Component是什么?
2
+
3
+ Component是为sdk提供扩展显示组件的模块,例如播放器等。 如果SDK默认提供的组件无法满足需求,可以通过自定义的方式实现自己的功能,例如自己的UI组件。
4
+
5
+ ## 如何自定义?
6
+
7
+ 自定义功能需要注意一下几点:
8
+
9
+ * Component实现IEsComponent接口
10
+ * View实现IEsComponentView接口
11
+ * 方法必须是public方法,且同一个Component中不允许同名方法
12
+ * 方法的第一个参数必须是自定义的View本身
13
+ * 属性方法必须使用EsComponentAttribute的注解
14
+ * 注解可设置index来决定属性设置的优先级,值越小,优先级越高,取值范围0~100,默认值100
15
+ * 参数支持类型:
16
+ * 基本数据类型:`int`, `String`, `boolean`
17
+ * 数组类型:`EsMap`, `EsArray`
18
+ * 回调类型:`EsPromise`
19
+
20
+ ### Android端代码:
21
+
22
+ ::: details 点击查看源码
23
+
24
+ ``` java
25
+ // 创建View // 实现IEsComponentView接口
26
+ public final class VideoPlayerView extends FrameLayout implements IEsComponentView {
27
+ public VideoPlayerView(Context context) {
28
+ super(context);
29
+ }
30
+ }
31
+
32
+ //将View与Component关联 实现IEsComponent接口
33
+ public class MyVideoComponent implements IEsComponent<VideoComponent.VideoPlayerView> {
34
+ @Override
35
+ public VideoPlayerView createView(Context context) {
36
+ return new VideoPlayerView(context);
37
+ }
38
+ // 对应vue标签的属性 <video-player ref="video" :autoPlay=false />
39
+ @EsComponentAttribute(index = 0) // 如果各属性之间存在顺序执行问题,可指定属性调用顺序
40
+ public void autoPlay(VideoPlayerView view, boolean auto){
41
+ view.autoPlay(auto);
42
+ }
43
+ // 对应vue标签的属性 <video-player ref="video" :src=videoUrl />
44
+ @EsComponentAttribute
45
+ public void src(VideoPlayerView view, String url) {
46
+ view.setUrl(url);
47
+ }
48
+
49
+ // 对应vue标签的方法 this.$refs.video.pause()
50
+ @Override
51
+ public void dispatchFunction(VideoPlayerView view, String eventName, EsArray params, @Nullable EsPromise promise) {
52
+ switch (eventName){
53
+ case "play":
54
+ String url = params.getString("url");
55
+ break;
56
+ case "pause":
57
+ break;
58
+ case "getPosition": // 获取播放进度
59
+ if(promise != null) {
60
+ promise.resolve(view.getCurrentPlayPositioin());
61
+ }
62
+ break;
63
+ }
64
+ }
65
+
66
+ // 对应vue标签的回调 <video-player @player-status-changed="onPlayerStatusChanged" />
67
+ @Override
68
+ public void onPlayerStatusChanged(int playerStatus) throws RemoteException {
69
+ EsMap esMap = new EsMap();
70
+ esMap.pushInt("playerStatus", playerStatus);
71
+ //sendUIEvent方法:向UI控件发送事件
72
+ EsProxy.get().sendUIEvent(view.getId(), "onPlayerStatusChanged", esMap);
73
+ }
74
+
75
+ @Override
76
+ public void destroy(VideoView view) {
77
+ }
78
+ }
79
+ ```
80
+
81
+ :::
82
+
83
+ ## 注册
84
+
85
+ ### 1. SDK注册方式
86
+
87
+ ``` java
88
+ InitConfig initConfig = InitConfig.getDefault();
89
+ initConfig.setAppId("注册的APPID")
90
+ .setSdkInitCallback(new EsKitInitCallback() { //使用EsKitInitCallback监听 注册你需要的自定义模块
91
+ @Override
92
+ public void onEsKitInitSuccess() {
93
+ // 注册到SDK
94
+ EsManager.get().registerComponent(MyVideoComponent.class.getName());
95
+ }
96
+ });
97
+ ```
98
+
99
+ ### 2. Vue注册方式
100
+
101
+ ::: details vue3注册方式
102
+
103
+ ```text
104
+ //vue3注册方式
105
+
106
+ /**
107
+ * 播放器view
108
+ */
109
+ function registerMyVideoPlayerViewComponent(app: ESApp) {
110
+
111
+ const videoViewComponent = {
112
+ component: {
113
+ name: 'MyVideoComponent',
114
+ processEventData(evtData, nativeEventParams: {
115
+ position: number
116
+ }) {
117
+ const {handler: event, __evt: nativeEventName} = evtData;
118
+ switch (nativeEventName) {
119
+ //------------------播放进度回调-----------------------
120
+ case 'onPlayerPositionChanged':
121
+ event.position = nativeEventParams.position;
122
+ break;
123
+ default:
124
+ }
125
+ return event;
126
+ },
127
+ },
128
+ }
129
+ registerElement('MyVideoComponent', videoViewComponent);
130
+
131
+ //
132
+ const VideoViewImpl = defineComponent({
133
+ emits: [
134
+ 'player-position-changed',
135
+ //需要自己添加 名字自拟
136
+ ],
137
+ setup(props, context) {
138
+ const videoPlayerViewComponentRef = ref()
139
+
140
+ const start = (progress: number): void => {
141
+ console.log('-------ESVideoPlayerViewComponent--------start-------->>>>')
142
+ Native.callUIFunction(videoPlayerViewComponentRef.value, 'start', [progress], (res) => {
143
+ //console.log('res-------->>>>' , res)
144
+ });
145
+ }
146
+ const seekTo = (progress: number): void => {
147
+ Native.callUIFunction(videoPlayerViewComponentRef.value, 'seekTo', [progress], (res) => {
148
+ //console.log('res-------->>>>' , res)
149
+ });
150
+ }
151
+ const pause = (): void => {
152
+ console.log('-------ESVideoPlayerViewComponent--------pause-------->>>>')
153
+ Native.callUIFunction(videoPlayerViewComponentRef.value, 'pause', (res) => {
154
+ //console.log('res-------->>>>' , res)
155
+ });
156
+ }
157
+ const getCurrentPosition = (): void => {
158
+ Native.callUIFunction(videoPlayerViewComponentRef.value, 'getCurrentPosition',
159
+ (res) => {
160
+ //console.log('res-------->>>>' , res)
161
+ });
162
+ }
163
+ const getDuration = (): void => {
164
+ Native.callUIFunction(videoPlayerViewComponentRef.value, 'getDuration',
165
+ (res) => {
166
+ //console.log('res-------->>>>' , res)
167
+ });
168
+ }
169
+
170
+ return () => {
171
+ return h(
172
+ 'MyVideoComponent', {
173
+ ref: videoPlayerViewComponentRef,
174
+ onPlayerPositionChanged: (evt) => {
175
+ context.emit('player-status-changed', evt.position);
176
+ },
177
+ },
178
+ )
179
+ }
180
+ },
181
+ })
182
+ app.component('VideoPlayer', VideoViewImpl);
183
+ }
184
+
185
+ ```
186
+
187
+ :::
188
+
189
+ ::: details Vue2注册方式
190
+
191
+ ```text
192
+ //vu2注册方式
193
+ function ESAndroidPlayerViewComponent() {
194
+ Vue.registerElement('MyVideoComponent', {
195
+ component: {
196
+ name: 'MyVideoComponent',
197
+ }
198
+ }),
199
+ Vue.component('VideoPlayer', {
200
+ methods: {
201
+ pause(){
202
+ Vue.Native.callUIFunction(this.$refs.player, 'pause', [], (res) => {
203
+ console.log('res', res)
204
+ });
205
+ },
206
+ seekTo(position){
207
+ Vue.Native.callUIFunction(this.$refs.player, 'seekTo', [position], (res) => {
208
+ console.log('res', res)
209
+ });
210
+ },
211
+ getCurrentPositoin(callback){
212
+ Vue.Native.callUIFunction(this.$refs.player, 'getCurrentPosition', [],
213
+ (res) => {
214
+ callback(res)
215
+ });
216
+ },
217
+ }
218
+ })
219
+ }
220
+
221
+ ```
222
+
223
+ :::
224
+
225
+ ## Vue调用
226
+
227
+ ::: details 点击查看源码
228
+
229
+ ```vue
230
+ <video-player
231
+ ref="video"
232
+ class="video"
233
+ :autoPlay="false"
234
+ :src='videoUrl'
235
+ @player-status-changed='onPlayerStatusChanged'
236
+ />
237
+ ```
238
+
239
+ ```text
240
+ function onPlayerStatusChanged(e) {
241
+ const playerStatus = e.playerStatus;
242
+ console.log(`接收到的播放状态:${ playerStatus}`);
243
+ }
244
+
245
+ this.$refs.video.seekTo(1000)
246
+ this.$refs.video.pause()
247
+ ```
248
+
249
+ :::
@@ -0,0 +1,163 @@
1
+ ## Moudle是什么?
2
+
3
+ Module是基于快应用基础架构扩展出来的自定义模块,是为sdk提供扩展功能的模块,例如下载功能、Toast等。
4
+
5
+ 如果SDK默认提供的功能无法满足需求,可以通过自定义的方式实现自己的功能,例如自己的加密算法、支付模块等。
6
+
7
+ ## 如何自定义?
8
+
9
+ 自定义功能需要注意一下几点:
10
+
11
+ * Module实现IEsModule接口
12
+
13
+ * 方法必须是public方法,且同一个Module中不允许同名方法
14
+
15
+ * 参数支持类型:
16
+
17
+ * 基本数据类型:`int`, `String`, `boolean`
18
+
19
+ * 数组类型:`EsMap`, `EsArray`
20
+
21
+ * 回调类型:`EsPromise`
22
+
23
+ ### Android端代码:
24
+
25
+ ::: details 点击查看源码
26
+
27
+ ``` java
28
+ // 实现IEsModule接口
29
+ public class MyModule implements IEsModule {
30
+
31
+ @Override
32
+ public void init(Context context) {
33
+
34
+ }
35
+
36
+ // 显示Toast
37
+ public void showToast(String message) {
38
+ //ToastUtils.showToastShort(msg);
39
+ Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();
40
+ }
41
+
42
+ // ❌ 错误!!!同一个Module中不允许同名方法
43
+ // 会导致vue调用不成功
44
+ public void showToast() {}
45
+
46
+ // 检测应用是否安装 带promise的回调方式
47
+ public void isAppInstall(String packageName, EsPromise promise) {
48
+ try {
49
+ PackageInfo info = mContext.getPackageManager().getPackageInfo(packageName, 0);
50
+ if(info != null) {
51
+ PromiseHolder.create(promise).singleData(true).sendSuccess();
52
+ return;
53
+ }
54
+ } catch (Exception e) {
55
+ }
56
+ PromiseHolder.create(promise).singleData(false).sendSuccess();//用内部提供个的工具直接发送
57
+ //或者通过EsMap调用发送 promise必须要返回 否则vue层会有阻塞
58
+ EsMap map = new EsMap();
59
+ map.pushInt(key,value)
60
+ map.pushString(key,value)
61
+ try {
62
+ promise.resolve(map);
63
+ } catch (Throwable e) {
64
+ promise.reject("程序异常");
65
+ e.printStackTrace();
66
+ }
67
+ }
68
+
69
+ @Override
70
+ public void destroy() {
71
+
72
+ }
73
+
74
+ @Override
75
+ public void destroy() {
76
+
77
+ }
78
+ }
79
+
80
+ // 向指定的IEsComponent或者IEsModule发送事件(全局事件)
81
+ private void sendNativeEvent() {
82
+ EsMap esMap = new EsMap();
83
+ esMap.pushInt("status", 1);
84
+ EsProxy.get().sendNativeEventTraceable(this, "onStatusChanged", esMap);
85
+ }
86
+ ```
87
+
88
+ :::
89
+
90
+ ## 注册
91
+
92
+ ``` java
93
+ InitConfig initConfig = InitConfig.getDefault();
94
+ initConfig.setAppId("注册的APPID")
95
+ .setSdkInitCallback(new EsKitInitCallback() { //使用EsKitInitCallback监听 注册你需要的自定义模块
96
+ @Override
97
+ public void onEsKitInitSuccess() {
98
+ // 注册到SDK
99
+ EsManager.get().registerModule(MyModule.class.getName());
100
+ }
101
+ });
102
+ ```
103
+
104
+ ## Vue调用
105
+
106
+ ::: details Vue3
107
+
108
+ ```text
109
+ import { Native } from "@extscreen/es3-vue";
110
+ // 参数1: module名称 参数2: 方法名称 参数3: 方法参数
111
+ Native.callNative('MyModule', 'showToast', "hello");
112
+
113
+ // 调用需要返回值的方法
114
+ Native.callNativeWithPromise('MyModule', 'isAppInstall', 'com.extscreen.runtime')
115
+ .then((isInstall) => {
116
+ console.log('isAppInstall', isInstall)
117
+ });
118
+
119
+ // vue层接收回调信息
120
+ import { EventBus } from "@extscreen/es3-vue";
121
+
122
+ //注册:
123
+ EventBus.$on('onStatusChanged', this.onStatusChanged);
124
+
125
+ //取消注册:
126
+ EventBus.$off('onStatusChanged', this.onStatusChanged);
127
+
128
+ //处理回调
129
+ function onStatusChanged(e) {
130
+ const status = e.status;
131
+ console.log(`接收到的状态码:${status}`);
132
+ }
133
+ ```
134
+
135
+ :::
136
+
137
+ ::: details Vue2
138
+
139
+ ```text
140
+ // 参数1: module名称 参数2: 方法名称 参数3: 方法参数
141
+ Vue.Native.callNative('MyModule', 'showToast', "hello");
142
+
143
+ // 调用需要返回值的方法
144
+ Vue.Native.callNativeWithPromise('MyModule', 'isAppInstall', 'com.extscreen.runtime')
145
+ .then((isInstall)=>{
146
+ console.log('isAppInstall', isInstall)
147
+ });
148
+
149
+ // vue层接收回调信息
150
+ //注册:
151
+ ESApp.$on('onStatusChanged', this.onStatusChanged);
152
+
153
+ //取消注册:
154
+ ESApp.$off('onStatusChanged', this.onStatusChanged);
155
+
156
+ //处理回调
157
+ function onStatusChanged(e) {
158
+ const status = e.status;
159
+ console.log(`接收到的状态码:${ status}`);
160
+ }
161
+ ```
162
+
163
+ :::
@@ -0,0 +1,97 @@
1
+ ## 如何自定义?
2
+ 快应用sdk支持自定义启动页面,需要一下几个改动。
3
+
4
+ * 1.自定义view 实现IEsCoverView接口
5
+ * 2.创建xml 使用你自定义的view
6
+ * 3.在启动快应用的时候通过EsData().setCoverLayoutId(resId) 设置进去
7
+
8
+ ``` java
9
+
10
+ //自定义启动图View 需要实现 IEsCoverView 接口
11
+ public class MyCustomCoverView extends ImageView implements IEsCoverView {
12
+
13
+ private Context mContext;
14
+
15
+ public MyCustomCoverView(Context context) {
16
+ super(context);
17
+ mContext = context;
18
+ }
19
+
20
+ public MyCustomCoverView(Context context, @Nullable AttributeSet attrs) {
21
+ super(context, attrs);
22
+ mContext = context;
23
+ }
24
+
25
+ public MyCustomCoverView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
26
+ super(context, attrs, defStyleAttr);
27
+ mContext = context;
28
+ }
29
+
30
+ @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
31
+ public MyCustomCoverView(Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
32
+ super(context, attrs, defStyleAttr, defStyleRes);
33
+ mContext = context;
34
+ }
35
+
36
+ @Override
37
+ public void onInit(Serializable serializable) {//init时候可以装入自己的图片 没有直接在xml中设置即可 例如下面xml中的 android:src="@drawable/splash_bg_default"
38
+ if (mContext != null) {
39
+ Glide.with(mContext)
40
+ .asGif()
41
+ .load(R.drawable.test)//可以加载自己的图片
42
+ .into(this);
43
+ }
44
+ }
45
+
46
+ @Override
47
+ public void onEsRenderSuccess() {//渲染快应用成功后可以使用清理图片或者进一步加载后续图片等操作
48
+ this.postDelayed(() -> {
49
+ try {
50
+ ((ViewGroup) getParent()).removeView(this);
51
+ if (mContext != null) {
52
+ Glide.with(mContext).clear(this);
53
+ }
54
+ setBackgroundResource(R.drawable.custon_cover_view_bg);
55
+ } catch (Exception e) {
56
+ e.printStackTrace();
57
+ }
58
+ }, 1800);
59
+ }
60
+
61
+ @Override
62
+ public void onEsRenderFailed(EsException e) {
63
+
64
+ }
65
+
66
+ @Override
67
+ public void suspend(String s) {
68
+
69
+ }
70
+
71
+ @Override
72
+ public void unSuspend() {
73
+
74
+ }
75
+ }
76
+
77
+ //xml
78
+ <?xml version="1.0" encoding="utf-8"?>
79
+ <com.xxx.xxx.coustom.MyCustomCoverView
80
+ xmlns:android="http://schemas.android.com/apk/res/android"
81
+ android:layout_width="match_parent"
82
+ android:layout_height="match_parent"
83
+ android:src="@drawable/splash_bg_default"
84
+ android:scaleType="fitXY"
85
+ android:background="@drawable/custon_cover_view_bg"
86
+ />
87
+
88
+ //在需要调用启动快应用的位置
89
+ public void start(){
90
+ EsData data = new EsData();
91
+ data.setAppPackage("es.xxx.xxx.xxx");//小程序包名
92
+ data.setCoverLayoutId(R.layout.my_custom_cover);//自定义的xml
93
+ //启动快应用
94
+ EsManager.get().start(data);
95
+ }
96
+
97
+ ```
File without changes
@@ -0,0 +1,15 @@
1
+
2
+ 1. 配置项目repositories
3
+ ``` groovy
4
+ repositories {
5
+ maven { url 'https://nexus.extscreen.com/repository/maven-public/' }
6
+ }
7
+ ```
8
+
9
+ 2. 引入到项目中
10
+ ``` groovy
11
+ dependencies {
12
+ implementation 'com.extscreen.runtime:official:版本号'
13
+ }
14
+ ```
15
+ ![](https://img.shields.io/badge/dynamic/xml?url=https://nexus.extscreen.com/repository/maven-releases/com/extscreen/runtime/official/maven-metadata.xml&query=metadata/versioning/latest&label=Latest)
@@ -0,0 +1,13 @@
1
+ 初始化
2
+
3
+
4
+ ``` java
5
+ public class App extends MultiDexApplication {
6
+ @Override
7
+ public void onCreate(){
8
+ EsKitInitHelper.init(this, InitConfig.getDefault().setAppId("申请的APPID")
9
+ .setChannel("渠道").addFlags(InitConfig.FLAG_DYNAMIC_SO) // 动态SO
10
+ );
11
+ }
12
+ }
13
+ ```
@@ -0,0 +1,4 @@
1
+
2
+ * 启动快应用的五种方式
3
+
4
+ * 链接到hellotv