@open-dy/interest-card-cli 0.1.0-beta.30 → 0.1.0-beta.32

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 (210) hide show
  1. package/browser-runtime/scripts/capture-feed-card.sh +23 -18
  2. package/browser-runtime/scripts/cli.mjs +10 -3
  3. package/browser-runtime/scripts/inspect-preview-state.mjs +6 -4
  4. package/browser-runtime/scripts/preview-session.mjs +9 -0
  5. package/card-skills/douyin-interest-card-browser/references/commands.md +1 -1
  6. package/card-skills/douyin-interest-card-capability/SKILL.md +12 -4
  7. package/card-skills/douyin-interest-card-capability/references/common/openapi/external/guide.md +5 -5
  8. package/card-skills/douyin-interest-card-capability/references/microapp/api/capability-index.json +27 -27
  9. package/card-skills/douyin-interest-card-capability/references/microapp/api/connect-socket.md +24 -1
  10. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-bytenn-engine-context.md +11 -1
  11. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-camera-context.md +12 -0
  12. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-canvas-context.md +45 -1
  13. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-effect-camera-stream.md +21 -1
  14. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-inner-audio-context.md +80 -3
  15. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-intersection-observer.md +12 -1
  16. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-interstitial-ad.md +12 -0
  17. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-live-player-context.md +16 -0
  18. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-map-context.md +24 -0
  19. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-media-recorder.md +17 -0
  20. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-offscreen-canvas.md +9 -1
  21. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-rewarded-video-ad.md +16 -0
  22. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-rtc-room-context.md +33 -0
  23. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-scene-activity-context.md +13 -0
  24. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-selector-query.md +13 -1
  25. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-sticker-manager.md +11 -1
  26. package/card-skills/douyin-interest-card-capability/references/microapp/api/create-video-context.md +17 -0
  27. package/card-skills/douyin-interest-card-capability/references/microapp/api/download-file.md +10 -0
  28. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-algorithm-manager.md +9 -1
  29. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-background-audio-manager.md +60 -1
  30. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-file-system-manager.md +37 -0
  31. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-recorder-manager.md +23 -0
  32. package/card-skills/douyin-interest-card-capability/references/microapp/api/get-update-manager.md +11 -0
  33. package/card-skills/douyin-interest-card-capability/references/microapp/api/preload-video.md +8 -0
  34. package/card-skills/douyin-interest-card-capability/references/microapp/api/request.md +8 -0
  35. package/card-skills/douyin-interest-card-capability/references/microapp/api/upload-file.md +10 -0
  36. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/capability-index.json +9 -4
  37. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/censor-image.md +1 -1
  38. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/censor-text.md +1 -1
  39. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/check-fans.md +1 -1
  40. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/create-activity.md +1 -1
  41. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-affiliate-id.md +1 -1
  42. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-aiuser-data-info.md +1 -1
  43. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-aiuser-item-list.md +1 -1
  44. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-aiuser-profile.md +7 -5
  45. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-fans-favourite.md +1 -1
  46. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-fans-profile.md +1 -1
  47. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-fans-source.md +1 -1
  48. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-feed.md +1 -1
  49. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-follow-feed.md +1 -1
  50. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-follow-hot-word.md +1 -1
  51. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-friend-list.md +1 -1
  52. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-hot-list.md +1 -1
  53. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-music-collection-list.md +1 -1
  54. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-recommend.md +1 -1
  55. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-related-id.md +1 -1
  56. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-room-real-time-data.md +1 -1
  57. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-basic-data.md +1 -1
  58. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-cert-labels-info.md +1 -1
  59. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-comment-data.md +1 -1
  60. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-constellation.md +1 -1
  61. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-fans-data.md +1 -1
  62. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-fans-profile.md +1 -1
  63. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-following.md +1 -1
  64. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-hash-mobile.md +1 -1
  65. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-interest.md +1 -1
  66. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-item-data.md +1 -1
  67. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-like-data.md +1 -1
  68. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-profile-data.md +1 -1
  69. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-user-share-data.md +1 -1
  70. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/get-video-pack.md +48 -3
  71. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/modify-activity.md +1 -1
  72. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/query-activity-info.md +1 -1
  73. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/query-activity-user-completion-status.md +1 -1
  74. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/query-room-data.md +1 -1
  75. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-experience.md +1 -1
  76. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-general.md +1 -1
  77. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-live.md +1 -1
  78. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-music.md +1 -1
  79. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-user.md +1 -1
  80. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-video.md +1 -1
  81. package/card-skills/douyin-interest-card-capability/references/microapp/openapi/external/search-vision.md +1 -1
  82. package/card-skills/douyin-interest-card-capability/references/opencard/api/call-container.md +1 -0
  83. package/card-skills/douyin-interest-card-capability/references/opencard/api/capability-index.json +6 -6
  84. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-inner-audio-context.md +60 -1
  85. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-map-context.md +24 -0
  86. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-selector-query.md +13 -1
  87. package/card-skills/douyin-interest-card-capability/references/opencard/api/create-video-context.md +17 -0
  88. package/card-skills/douyin-interest-card-capability/references/opencard/api/download-file.md +1 -3
  89. package/card-skills/douyin-interest-card-capability/references/opencard/api/get-background-audio-manager.md +60 -1
  90. package/card-skills/douyin-interest-card-capability/references/opencard/api/request.md +1 -3
  91. package/card-skills/douyin-interest-card-capability/references/opencard/api/upload-file.md +1 -3
  92. package/card-skills/douyin-interest-card-capability/references/opencard/closed-domain-openapi.md +2 -2
  93. package/card-skills/douyin-interest-card-capability/references/opencard/component/button.md +4 -2
  94. package/card-skills/douyin-interest-card-capability/references/opencard/component/canvas.md +4 -3
  95. package/card-skills/douyin-interest-card-capability/references/opencard/component/capability-index.json +8 -9
  96. package/card-skills/douyin-interest-card-capability/references/opencard/component/checkbox-group.md +2 -0
  97. package/card-skills/douyin-interest-card-capability/references/opencard/component/image.md +3 -2
  98. package/card-skills/douyin-interest-card-capability/references/opencard/component/input.md +3 -2
  99. package/card-skills/douyin-interest-card-capability/references/opencard/component/text.md +3 -3
  100. package/card-skills/douyin-interest-card-capability/references/opencard/component/textarea.md +5 -5
  101. package/card-skills/douyin-interest-card-capability/references/opencard/component/video.md +10 -2
  102. package/card-skills/douyin-interest-card-capability/references/opencard/component-guide.md +5 -3
  103. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/capability-index.json +16 -11
  104. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/censor-image.md +1 -1
  105. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/censor-text.md +1 -1
  106. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/check-fans.md +1 -1
  107. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/create-activity.md +1 -1
  108. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-affiliate-id.md +1 -1
  109. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-aiuser-data-info.md +10 -9
  110. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-aiuser-item-list.md +10 -9
  111. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-aiuser-profile.md +16 -13
  112. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-fans-favourite.md +1 -1
  113. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-fans-profile.md +1 -1
  114. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-fans-source.md +1 -1
  115. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-feed.md +1 -1
  116. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-follow-feed.md +1 -1
  117. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-follow-hot-word.md +1 -1
  118. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-friend-list.md +1 -1
  119. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-hot-list.md +1 -1
  120. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-music-collection-list.md +1 -1
  121. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-recommend.md +1 -1
  122. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-related-id.md +1 -1
  123. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-room-real-time-data.md +1 -1
  124. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-basic-data.md +10 -9
  125. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-cert-labels-info.md +1 -1
  126. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-comment-data.md +1 -1
  127. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-constellation.md +10 -9
  128. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-fans-data.md +1 -1
  129. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-fans-profile.md +1 -1
  130. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-following.md +10 -9
  131. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-hash-mobile.md +1 -1
  132. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-interest.md +10 -9
  133. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-item-data.md +1 -1
  134. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-like-data.md +1 -1
  135. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-profile-data.md +1 -1
  136. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-user-share-data.md +1 -1
  137. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/get-video-pack.md +48 -3
  138. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/modify-activity.md +1 -1
  139. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/query-activity-info.md +1 -1
  140. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/query-activity-user-completion-status.md +1 -1
  141. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/query-room-data.md +1 -1
  142. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-experience.md +1 -1
  143. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-general.md +1 -1
  144. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-live.md +1 -1
  145. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-music.md +1 -1
  146. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-user.md +1 -1
  147. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-video.md +1 -1
  148. package/card-skills/douyin-interest-card-capability/references/opencard/openapi/search-vision.md +1 -1
  149. package/card-skills/douyin-interest-card-capability/scripts/search-capabilities.mjs +7 -4
  150. package/card-skills/douyin-interest-card-cli/SKILL.md +11 -5
  151. package/card-skills/douyin-interest-card-generate/SKILL.md +5 -3
  152. package/card-skills/douyin-interest-card-generate/init.sh +13 -23
  153. package/card-skills/douyin-interest-card-generate/references/common/fullstack.md +6 -10
  154. package/card-skills/douyin-interest-card-generate/references/common/post-card-differences.md +29 -3
  155. package/card-skills/douyin-interest-card-generate/references/common/private-data-intent-routing.md +1 -1
  156. package/card-skills/douyin-interest-card-generate/references/common/upgrade-to-post.md +29 -6
  157. package/card-skills/douyin-interest-card-generate/references/microapp/microapp.md +1 -1
  158. package/card-skills/douyin-interest-card-generate/references/opencard/api.md +8 -0
  159. package/card-skills/douyin-interest-card-generate/references/opencard/closed-domain-card.md +1 -1
  160. package/card-skills/douyin-interest-card-generate/references/opencard/components.md +11 -28
  161. package/card-skills/douyin-interest-card-generate/references/opencard/opencard.md +9 -7
  162. package/card-skills/douyin-interest-card-generate/references/opencard/rendering.md +5 -5
  163. package/card-skills/douyin-interest-card-generate/references/opencard/taro-dsl.md +6 -6
  164. package/card-skills/douyin-interest-card-generate/scripts/inspect-post-upgrade.mjs +630 -0
  165. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/package.json +2 -2
  166. package/card-skills/douyin-interest-card-generate/templates/fragments/opencard/pnpm-lock.yaml +17 -17
  167. package/card-skills/douyin-interest-card-generate/templates/taro/closed-domain-server/package.json +1 -1
  168. package/card-skills/douyin-interest-card-generate/templates/taro/package.json +5 -4
  169. package/card-skills/douyin-interest-card-generate/templates/taro/pnpm-lock.yaml +27 -26
  170. package/card-skills/douyin-interest-card-generate/templates/taro/server/package.json +1 -1
  171. package/dist/src/args.js +23 -8
  172. package/dist/src/browser.js +3 -1
  173. package/dist/src/card/agent-chat.js +4 -0
  174. package/dist/src/card/binding.js +2 -1
  175. package/dist/src/card/candidate.js +90 -0
  176. package/dist/src/card/card-api.js +2 -2
  177. package/dist/src/card/card-token.js +25 -2
  178. package/dist/src/card/chat-commands.js +26 -11
  179. package/dist/src/card/constants.js +5 -0
  180. package/dist/src/card/create-project-client.js +2 -2
  181. package/dist/src/card/create.js +29 -3
  182. package/dist/src/card/editor-client.js +41 -6
  183. package/dist/src/card/editor-fs.js +4 -4
  184. package/dist/src/card/global-skills.js +6 -1
  185. package/dist/src/card/handlers-misc.js +3 -6
  186. package/dist/src/card/handlers.js +32 -24
  187. package/dist/src/card/help.js +6 -4
  188. package/dist/src/card/ignore.js +22 -0
  189. package/dist/src/card/project.js +13 -4
  190. package/dist/src/card-install.js +8 -9
  191. package/dist/src/cli.js +5 -2
  192. package/dist/src/config.js +26 -3
  193. package/dist/src/creator-device-login.js +2 -1
  194. package/dist/src/creator-login-session.js +6 -6
  195. package/dist/src/creator-passport-login.js +8 -2
  196. package/dist/src/creator-session.js +30 -7
  197. package/dist/src/current-user.js +29 -0
  198. package/dist/src/help-access.js +22 -0
  199. package/dist/src/help.js +6 -2
  200. package/dist/src/http.js +4 -4
  201. package/dist/src/login-handlers.js +2 -1
  202. package/dist/src/platform-process.js +98 -0
  203. package/dist/src/platform.js +1 -1
  204. package/dist/src/request-source.js +4 -0
  205. package/dist/src/telemetry-session.js +17 -0
  206. package/dist/src/telemetry.js +7 -2
  207. package/dist/src/update-check.js +5 -3
  208. package/dist/src/upgrade.js +56 -12
  209. package/package.json +1 -1
  210. package/card-skills/douyin-interest-card-capability/references/opencard/component/svg.md +0 -58
@@ -98,31 +98,31 @@
98
98
  {"id": "tt.clearStorageSync", "type": "api", "name": "tt.clearStorageSync", "summary_zh": "清理本地数据缓存的同步接口。", "search_terms_zh": ["tt.clearStorageSync", "clearStorageSync", "清理本地数据缓存的同步接口。", "data-caching"], "domain": "data-caching", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "clear-storage-sync.md", "has_taro_example": true},
99
99
  {"id": "tt.compressImage", "type": "api", "name": "tt.compressImage", "summary_zh": "压缩图片接口,可选压缩质量,并可以产出压缩后的图片到本地临时文件。", "search_terms_zh": ["tt.compressImage", "compressImage", "压缩图片接口,可选压缩质量,并可以产出压缩后的图片到本地临时文件。", "media/picture", "quality", "src", "success", "res", "res.errMsg", "res.tempFilePath", "fail"], "domain": "media/picture", "constraints": {"min_base_library": "1.28.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "compress-image.md", "has_taro_example": true},
100
100
  {"id": "tt.confirm", "type": "api", "name": "tt.confirm", "summary_zh": "调用该 API 后,弹窗展示履约相关内容,用户点击后返回调用结果。", "search_terms_zh": ["tt.confirm", "confirm", "调用该 API 后,弹窗展示履约相关内容,用户点击后返回调用结果。", "industry/trading-system/performance"], "domain": "industry/trading-system/performance", "constraints": {"min_base_library": "2.74.0.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "confirm.md", "has_taro_example": true},
101
- {"id": "tt.connectSocket", "type": "api", "name": "tt.connectSocket", "summary_zh": "创建一个 WebSocket 连接实例,并通过返回的 socketTask 操作该连接。", "search_terms_zh": ["tt.connectSocket", "connectSocket", "创建一个 WebSocket 连接实例,并通过返回的 socketTask 操作该连接。", "network/web-socket", "url", "header", "protocols", "success", "res", "res.socketTaskId", "res.errMsg", "fail"], "domain": "network/web-socket", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "connect-socket.md", "has_taro_example": true},
101
+ {"id": "tt.connectSocket", "type": "api", "name": "tt.connectSocket", "summary_zh": "创建一个 WebSocket 连接实例,并通过返回的 socketTask 操作该连接。", "search_terms_zh": ["tt.connectSocket", "connectSocket", "创建一个 WebSocket 连接实例,并通过返回的 socketTask 操作该连接。", "network/web-socket", "url", "header", "protocols", "success", "res", "res.socketTaskId", "res.errMsg", "fail", "SocketTask", "readyState", "表示 Socket 连接状态 code; 若由于参数错误导致未创建连接, 则为 undefined", "tt.SocketTask.close", "close", "关闭 WebSocket 连接", "tt.SocketTask.offClose", "offClose", "SocketTask.offClose", "tt.SocketTask.offError", "offError", "SocketTask.offError", "tt.SocketTask.offMessage", "offMessage", "SocketTask.offMessage", "tt.SocketTask.offOpen", "offOpen", "SocketTask.offOpen", "tt.SocketTask.onClose", "onClose", "监听 WebSocket 与服务器的连接断开的事件", "tt.SocketTask.onError", "onError", "监听 WebSocket 发生错误的事件", "tt.SocketTask.onMessage", "onMessage", "监听 WebSocket 接收到服务器发送信息的事件", "tt.SocketTask.onOpen", "onOpen", "监听 WebSocket 连接服务器成功的事件", "tt.SocketTask.send", "send", "通过 WebSocket 连接发送数据"], "domain": "network/web-socket", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "connect-socket.md", "has_taro_example": true},
102
102
  {"id": "tt.continueToPay", "type": "api", "name": "tt.continueToPay", "summary_zh": "通过继续支付方法调起小程序收银台,引导用户支付未成功支付的订单。", "search_terms_zh": ["tt.continueToPay", "continueToPay", "通过继续支付方法调起小程序收银台,引导用户支付未成功支付的订单。", "industry/trading-system/pay", "orderId", "outOrderNo", "success", "fail"], "domain": "industry/trading-system/pay", "constraints": {"min_base_library": "2.51.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "continue-to-pay.md", "has_taro_example": true},
103
103
  {"id": "tt.createAnimation", "type": "api", "name": "tt.createAnimation", "summary_zh": "创建一个动画实例 Animation。", "search_terms_zh": ["tt.createAnimation", "createAnimation", "创建一个动画实例 Animation。", "interface/animation", "params", "params.duration", "params.delay", "params.transformOrigin", "params.timingFunction", "Animation", "Animation.step", "Animation.export", "Animation.scale", "Animation.scale.sx", "Animation.scale.sy", "Animation.matrix", "Animation.matrix3d", "Animation.rotate", "Animation.rotateX", "Animation.rotateY", "Animation.rotateZ", "Animation.rotate3d", "Animation.scaleX", "Animation.scaleY", "Animation.scaleZ", "Animation.scale3d", "Animation.translate", "Animation.translateX", "Animation.translateY", "Animation.translateZ", "Animation.translateZ.x", "Animation.translateZ.y", "Animation.translateZ.z", "Animation.translateZ.a", "Animation.translate3d", "Animation.skew", "Animation.skewX", "Animation.skewY", "Animation.opacity", "Animation.backgroundColor", "Animation.width", "Animation.height", "Animation.top", "Animation.bottom", "Animation.left", "Animation.right"], "domain": "interface/animation", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-animation.md", "has_taro_example": true},
104
- {"id": "tt.createBytennEngineContext", "type": "api", "name": "tt.createBytennEngineContext", "summary_zh": "提供小程序检查指定 App 是否安装的能力", "search_terms_zh": ["tt.createBytennEngineContext", "createBytennEngineContext", "提供小程序检查指定 App 是否安装的能力", "ai-ar/native-neural-network", "modelName", "engineConfig"], "domain": "ai-ar/native-neural-network", "constraints": {"min_base_library": "2.29.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-bytenn-engine-context.md", "has_taro_example": true},
105
- {"id": "tt.createCameraContext", "type": "api", "name": "tt.createCameraContext", "summary_zh": "创建并返回 camera 上下文 CameraContext 对象,cameraContext 与页面的 camera 组件绑定,一个页面只能有一个 camera ,通过它可以操作对应的组件。", "search_terms_zh": ["tt.createCameraContext", "createCameraContext", "创建并返回 camera 上下文 CameraContext 对象,cameraContext 与页面的 camera 组件绑定,一个页面只能有一个 camera ,通过它可以操作对应的组件。", "media/camera", "CameraContext"], "domain": "media/camera", "constraints": {"min_base_library": "1.78.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-camera-context.md", "has_taro_example": true},
106
- {"id": "tt.createCanvasContext", "type": "api", "name": "tt.createCanvasContext", "summary_zh": "根据 canvas 组件 canvas-id 创建可以控制组件的上下文 CanvasContext 对象。", "search_terms_zh": ["tt.createCanvasContext", "createCanvasContext", "根据 canvas 组件 canvas-id 创建可以控制组件的上下文 CanvasContext 对象。", "canvas/v1", "canvasId"], "domain": "canvas/v1", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-canvas-context.md", "has_taro_example": true},
107
- {"id": "tt.createEffectCameraStream", "type": "api", "name": "tt.createEffectCameraStream", "summary_zh": "创建并返回特效相机数据流实例 EffectCameraStream,通过该对象的 API 可操作相机数据的开始、暂停、绘制等能力。", "search_terms_zh": ["tt.createEffectCameraStream", "createEffectCameraStream", "创建并返回特效相机数据流实例 EffectCameraStream,通过该对象的 API 可操作相机数据的开始、暂停、绘制等能力。", "media/effect-camera", "page"], "domain": "media/effect-camera", "constraints": {"min_base_library": "2.19.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-effect-camera-stream.md", "has_taro_example": true},
108
- {"id": "tt.createInnerAudioContext", "type": "api", "name": "tt.createInnerAudioContext", "summary_zh": "创建并返回内部 audio 上下文 innerAudioContext 实例,通过它能够操作音频播放。", "search_terms_zh": ["tt.createInnerAudioContext", "createInnerAudioContext", "创建并返回内部 audio 上下文 innerAudioContext 实例,通过它能够操作音频播放。", "media/audio"], "domain": "media/audio", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-inner-audio-context.md", "has_taro_example": true},
109
- {"id": "tt.createIntersectionObserver", "type": "api", "name": "tt.createIntersectionObserver", "summary_zh": "本方法创建并返回一个 IntersectionObserver 对象实例,使用方法类似于浏览器中的 Intersection Observer API。", "search_terms_zh": ["tt.createIntersectionObserver", "createIntersectionObserver", "本方法创建并返回一个 IntersectionObserver 对象实例,使用方法类似于浏览器中的 Intersection Observer API。", "ttml", "instance", "options"], "domain": "ttml", "constraints": {"min_base_library": "1.10.4", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-intersection-observer.md", "has_taro_example": true},
110
- {"id": "tt.createInterstitialAd", "type": "api", "name": "tt.createInterstitialAd", "summary_zh": "创建插屏广告组件。", "search_terms_zh": ["tt.createInterstitialAd", "createInterstitialAd", "创建插屏广告组件。", "open-interface/ads/interstitial", "params", "params.adUnitId", "InterstitialAd"], "domain": "open-interface/ads/interstitial", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-interstitial-ad.md", "has_taro_example": true},
111
- {"id": "tt.createLivePlayerContext", "type": "api", "name": "tt.createLivePlayerContext", "summary_zh": "根据  组件 id 创建可以控制组件的上下文 LivePlayerContext 对象。", "search_terms_zh": ["tt.createLivePlayerContext", "createLivePlayerContext", "根据  组件 id 创建可以控制组件的上下文 LivePlayerContext 对象。", "media/video", "id", "component", "LivePlayerContext"], "domain": "media/video", "constraints": {"min_base_library": "1.38.1", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-live-player-context.md", "has_taro_example": true},
112
- {"id": "tt.createMapContext", "type": "api", "name": "tt.createMapContext", "summary_zh": "创建 组件上下文 MapContext 对象。", "search_terms_zh": ["tt.createMapContext", "createMapContext", "创建 组件上下文 MapContext 对象。", "map", "id", "component", "MapContext"], "domain": "map", "constraints": {"min_base_library": "1.63.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-map-context.md", "has_taro_example": true},
113
- {"id": "tt.createMediaRecorder", "type": "api", "name": "tt.createMediaRecorder", "summary_zh": "小程序中的 Canvas 录制器 MediaRecorder 可以录制 Canvas(v2) 上绘制的所有画面,可以精确的控制录制的开始暂停,并且在录制结束时会自动导出 mp4 视频文件。", "search_terms_zh": ["tt.createMediaRecorder", "createMediaRecorder", "小程序中的 Canvas 录制器 MediaRecorder 可以录制 Canvas(v2) 上绘制的所有画面,可以精确的控制录制的开始暂停,并且在录制结束时会自动导出 mp4 视频文件。", "media/canvas-recording", "canvas", "options", "options.width", "options.height", "options.videoBitsPerSecond", "options.gop", "options.fps", "MediaRecorder"], "domain": "media/canvas-recording", "constraints": {"min_base_library": "2.52.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-media-recorder.md", "has_taro_example": true},
114
- {"id": "tt.createOffscreenCanvas", "type": "api", "name": "tt.createOffscreenCanvas", "summary_zh": "创建离屏 canvas 实例。", "search_terms_zh": ["tt.createOffscreenCanvas", "createOffscreenCanvas", "创建离屏 canvas 实例。", "canvas/v2"], "domain": "canvas/v2", "constraints": {"min_base_library": "1.78.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-offscreen-canvas.md", "has_taro_example": true},
104
+ {"id": "tt.createBytennEngineContext", "type": "api", "name": "tt.createBytennEngineContext", "summary_zh": "提供小程序检查指定 App 是否安装的能力", "search_terms_zh": ["tt.createBytennEngineContext", "createBytennEngineContext", "提供小程序检查指定 App 是否安装的能力", "ai-ar/native-neural-network", "modelName", "engineConfig", "BytennEngineContext", "tt.BytennEngineContext.load", "load", "加载配置好的神经网络引擎。", "tt.BytennEngineContext.onError", "onError", "设置当前 context 的加载失败回调。", "tt.BytennEngineContext.onLoad", "onLoad", "设置当前 context 的加载成功回调。"], "domain": "ai-ar/native-neural-network", "constraints": {"min_base_library": "2.29.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-bytenn-engine-context.md", "has_taro_example": true},
105
+ {"id": "tt.createCameraContext", "type": "api", "name": "tt.createCameraContext", "summary_zh": "创建并返回 camera 上下文 CameraContext 对象,cameraContext 与页面的 camera 组件绑定,一个页面只能有一个 camera ,通过它可以操作对应的组件。", "search_terms_zh": ["tt.createCameraContext", "createCameraContext", "创建并返回 camera 上下文 CameraContext 对象,cameraContext 与页面的 camera 组件绑定,一个页面只能有一个 camera ,通过它可以操作对应的组件。", "media/camera", "CameraContext", "tt.CameraContext.onCameraFrame", "onCameraFrame", "监听 camera 的实时帧数据", "tt.CameraContext.setZoom", "setZoom", "设置 camera 的缩放级别", "tt.CameraContext.startRecord", "startRecord", "开始录像", "tt.CameraContext.stopRecord", "stopRecord", "结束录像", "tt.CameraContext.takePhoto", "takePhoto", "拍摄照片"], "domain": "media/camera", "constraints": {"min_base_library": "1.78.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-camera-context.md", "has_taro_example": true},
106
+ {"id": "tt.createCanvasContext", "type": "api", "name": "tt.createCanvasContext", "summary_zh": "根据 canvas 组件 canvas-id 创建可以控制组件的上下文 CanvasContext 对象。", "search_terms_zh": ["tt.createCanvasContext", "createCanvasContext", "根据 canvas 组件 canvas-id 创建可以控制组件的上下文 CanvasContext 对象。", "canvas/v1", "canvasId", "CanvasContext", "tt.CanvasContext.arc", "arc", "根据指定方向(默认顺时针)从起始点开始创建一条弧线", "tt.CanvasContext.beginPath", "beginPath", "开始创建一个新的路径", "tt.CanvasContext.bezierCurveTo", "bezierCurveTo", "创建三次方贝塞尔曲线路径。", "tt.CanvasContext.clearRect", "clearRect", "清除画布上在该矩形区域内的内容", "tt.CanvasContext.clip", "clip", "从原始画布中剪切任意形状和尺寸,一旦剪切了某个区域,则所有之后的绘图都会被限制在被剪切的区域内", "tt.CanvasContext.closePath", "closePath", "关闭一个路径,会连接起点和终点", "tt.CanvasContext.createLinearGradient", "createLinearGradient", "创建一个线性的渐变颜色,返回的 CanvasGradient 对象", "tt.CanvasContext.draw", "draw", "将之前在绘图上下文中的描述(路径、变形、样式)画到 canvas 中", "tt.CanvasContext.drawImage", "drawImage", "绘制图像到画布", "tt.CanvasContext.fill", "fill", "对当前路径中的内容进行填充,默认的填充色为黑色", "tt.CanvasContext.fillRect", "fillRect", "填充一个矩形,默认颜色为黑色,可通过 CanvasContext.setFillStyle 设置矩形颜色。", "tt.CanvasContext.fillText", "fillText", "在画布上填充指定文本", "tt.CanvasContext.lineTo", "lineTo", "增加一个新点,然后创建一条从上次指定点到目标点的线", "tt.CanvasContext.measureText", "measureText", "测量文本尺寸信息。", "tt.CanvasContext.moveTo", "moveTo", "将一个新的子路径的起始点移动到指定点", "tt.CanvasContext.quadraticCurveTo", "quadraticCurveTo", "创建二次贝塞尔曲线路径。", "tt.CanvasContext.rect", "rect", "创建一个矩形路径", "tt.CanvasContext.restore", "restore", "恢复之前保存的绘图上下文。", "tt.CanvasContext.rotate", "rotate", "以原点为中心顺时针旋转当前坐标轴。", "tt.CanvasContext.save", "save", "保存绘图上下文,保存当前的绘制状态,包括变换矩阵、剪切区域、虚线列表等", "tt.CanvasContext.scale", "scale", "在调用后,之后创建的路径其横纵坐标会被缩放。", "tt.CanvasContext.setFillStyle", "setFillStyle", "设置填充的颜色", "tt.CanvasContext.setFontSize", "setFontSize", "设置字体的字号", "tt.CanvasContext.setGlobalAlpha", "setGlobalAlpha", "设置全局画笔透明度", "tt.CanvasContext.setLineCap", "setLineCap", "设置线条的端点样式", "tt.CanvasContext.setLineDash", "setLineDash", "设置线条虚线样式的间距和长度", "tt.CanvasContext.setLineJoin", "setLineJoin", "设置线条的交点样式。", "tt.CanvasContext.setLineWidth", "setLineWidth", "设置线条的宽度。", "tt.CanvasContext.setMiterLimit", "setMiterLimit", "设置最大斜接长度。", "tt.CanvasContext.setStrokeStyle", "setStrokeStyle", "设置边框颜色", "tt.CanvasContext.setTextAlign", "setTextAlign", "设置文字的对齐方式", "tt.CanvasContext.setTextBaseline", "setTextBaseline", "设置文字垂直方向的对齐方式。", "tt.CanvasContext.setTransform", "setTransform", "tt.CanvasContext.stroke", "stroke", "用于画出当前路径的边框,默认颜色为黑色", "tt.CanvasContext.strokeRect", "strokeRect", "设置线条颜色", "tt.CanvasContext.transform", "transform", "使用矩阵多次叠加当前变换的方法,矩阵由方法的参数进行描述。", "tt.CanvasContext.translate", "translate", "变换当前坐标系的原点 (0, 0) 。"], "domain": "canvas/v1", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-canvas-context.md", "has_taro_example": true},
107
+ {"id": "tt.createEffectCameraStream", "type": "api", "name": "tt.createEffectCameraStream", "summary_zh": "创建并返回特效相机数据流实例 EffectCameraStream,通过该对象的 API 可操作相机数据的开始、暂停、绘制等能力。", "search_terms_zh": ["tt.createEffectCameraStream", "createEffectCameraStream", "创建并返回特效相机数据流实例 EffectCameraStream,通过该对象的 API 可操作相机数据的开始、暂停、绘制等能力。", "media/effect-camera", "page", "EffectCameraStream", "tt.EffectCameraStream.dispose", "dispose", "关闭相机并释放相机资源,释放后将无法调用 EffectCameraStream 上的 API,如需调用,请通过 tt.createEffectCameraSt…", "tt.EffectCameraStream.offError", "offError", "取消对 EffectCameraStream 生命周期错误事件的监听,包括:request, play, stop。", "tt.EffectCameraStream.offPlay", "offPlay", "取消监听相机开启事件,取消后 EffectCameraStream.onPlay 中的回调参数将不被触发。", "tt.EffectCameraStream.offRequest", "offRequest", "取消监听相机资源请求事件,取消后 EffectCameraStream.onRequest 的回调参数将不被触发。", "tt.EffectCameraStream.offStop", "offStop", "取消监听相机暂停事件。", "tt.EffectCameraStream.onError", "onError", "监听 EffectCameraStream 生命周期中的业务错误,包括:request, play, stop。", "tt.EffectCameraStream.onPlay", "onPlay", "监听相机开启事件成功事件,资源请求成功后触发。", "tt.EffectCameraStream.onRequest", "onRequest", "监听相机资源请求成功事件,资源请求成功后触发,可通过 EffectCameraStream.offRequest 取消监听。", "tt.EffectCameraStream.onStop", "onStop", "监听相机暂停事件(EffectCameraStream.stop)成功事件。", "tt.EffectCameraStream.paintTo", "paintTo", "将相机数据绘制到指定的 canvas 画布区域(仅适用于 canvas V2)。", "tt.EffectCameraStream.play", "play", "开启相机,通过 EffectCameraStream.onPlay 可监听该请求成功事件,成功后返回相机数据 EffectCameraVideo 实例。", "tt.EffectCameraStream.request", "request", "设置数据源(相机)参数,并请求相机资源,用户授权后将占用相机资源。", "tt.EffectCameraStream.stop", "stop", "暂停相机的使用并停止更新数据,调用后若有其他数据流处理事件,则继续执行该处理逻辑到 stop 前的最后一帧(没有销毁底层相机图像缓冲区,只是不再更新数据)。"], "domain": "media/effect-camera", "constraints": {"min_base_library": "2.19.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-effect-camera-stream.md", "has_taro_example": true},
108
+ {"id": "tt.createInnerAudioContext", "type": "api", "name": "tt.createInnerAudioContext", "summary_zh": "创建并返回内部 audio 上下文 innerAudioContext 实例,通过它能够操作音频播放。", "search_terms_zh": ["tt.createInnerAudioContext", "createInnerAudioContext", "创建并返回内部 audio 上下文 innerAudioContext 实例,通过它能够操作音频播放。", "media/audio", "InnerAudioContext", "src", "音频资源地址,仅支持临时路径(如通过下载到本地的音频地址)、网络地址(该地址的域名必须在开发者平台 request 域名白名单中配置),只支持 mp3、wav…", "startTime", "开始播放的位置(单位:s)", "autoplay", "是否自动播放", "loop", "是否自动循环", "obeyMuteSwitch", "是否遵循系统静音开关,当此参数为 false 时,即使用户打开了静音开关,也能继续发出声音", "volume", "当前音量,范围 0 ~ 1", "playbackRate", "播放速度。", "duration", "当前音频总时长(单位:s),只有在当前有合法的 src 时返回", "currentTime", "当前音频进度(单位:s),只有在当前有合法的 src 时返回", "paused", "当前音频是否处于暂停状态", "buffered", "当前音频已缓冲部分(单位:s),仅保证当前播放时间点到此时间点内容已缓冲,只读", "tt.InnerAudioContext.destroy", "destroy", "销毁当前实例。", "tt.InnerAudioContext.offCanplay", "offCanplay", "取消 onCanplay 监听的事件", "tt.InnerAudioContext.offEnded", "offEnded", "取消 onEnded 监听的事件", "tt.InnerAudioContext.offError", "offError", "取消 onError 监听的事件", "tt.InnerAudioContext.offPause", "offPause", "取消 onPause 监听的事件", "tt.InnerAudioContext.offPlay", "offPlay", "取消 onPlay 监听的事件", "tt.InnerAudioContext.offSeeked", "offSeeked", "取消 onSeeked 监听的事件", "tt.InnerAudioContext.offSeeking", "offSeeking", "取消 onSeeking 监听的事件", "tt.InnerAudioContext.offStop", "offStop", "取消 onStop 监听的事件", "tt.InnerAudioContext.offTimeUpdate", "offTimeUpdate", "取消 onTimeUpdate 监听的事件", "tt.InnerAudioContext.offWaiting", "offWaiting", "取消 onWaiting 监听的事件", "tt.InnerAudioContext.onCanplay", "onCanplay", "监听音频进入可以播放状态,但不保证后面可以流畅播放", "tt.InnerAudioContext.onEnded", "onEnded", "监听自然播放结束事件", "tt.InnerAudioContext.onError", "onError", "监听音频播放出错事件", "tt.InnerAudioContext.onPause", "onPause", "监听音频暂停事件", "tt.InnerAudioContext.onPlay", "onPlay", "监听音频播放事件", "tt.InnerAudioContext.onSeeked", "onSeeked", "监听音频完成 seek 操作的事件", "tt.InnerAudioContext.onSeeking", "onSeeking", "监听音频开始进行 seek 操作的事件", "tt.InnerAudioContext.onStop", "onStop", "监听音频停止播放事件", "tt.InnerAudioContext.onTimeUpdate", "onTimeUpdate", "监听音频进度更新事件", "tt.InnerAudioContext.onWaiting", "onWaiting", "监听音频加载中事件,当音频因为数据不足,需要停下来加载时会触发", "tt.InnerAudioContext.pause", "pause", "暂停播放", "tt.InnerAudioContext.play", "play", "播放音频", "tt.InnerAudioContext.seek", "seek", "跳转到指定位置播放", "tt.InnerAudioContext.stop", "stop", "停止播放"], "domain": "media/audio", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-inner-audio-context.md", "has_taro_example": true},
109
+ {"id": "tt.createIntersectionObserver", "type": "api", "name": "tt.createIntersectionObserver", "summary_zh": "本方法创建并返回一个 IntersectionObserver 对象实例,使用方法类似于浏览器中的 Intersection Observer API。", "search_terms_zh": ["tt.createIntersectionObserver", "createIntersectionObserver", "本方法创建并返回一个 IntersectionObserver 对象实例,使用方法类似于浏览器中的 Intersection Observer API。", "ttml", "instance", "options", "IntersectionObserver", "tt.IntersectionObserver.disconnect", "disconnect", "停止监听,回调函数将不再触发", "tt.IntersectionObserver.observe", "observe", "指定目标节点并开始监听相交状态变化情况", "tt.IntersectionObserver.relativeTo", "relativeTo", "使用选择器指定一个节点,作为参照区域之一", "tt.IntersectionObserver.relativeToViewport", "relativeToViewport", "指定页面显示区域作为参照区域之一"], "domain": "ttml", "constraints": {"min_base_library": "1.10.4", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-intersection-observer.md", "has_taro_example": true},
110
+ {"id": "tt.createInterstitialAd", "type": "api", "name": "tt.createInterstitialAd", "summary_zh": "创建插屏广告组件。", "search_terms_zh": ["tt.createInterstitialAd", "createInterstitialAd", "创建插屏广告组件。", "open-interface/ads/interstitial", "params", "params.adUnitId", "InterstitialAd", "tt.InterstitialAd.destroy", "destroy", "注意,目前只能在抖音使用该方法,今日头条等宿主暂不支持。", "tt.InterstitialAd.load", "load", "当广告素材加载出现错误时,可以通过 load 方法手动加载。", "tt.InterstitialAd.offLoad", "offLoad", "tt.InterstitialAd.onLoad", "onLoad", "tt.InterstitialAd.show", "show", "广告创建后默认是隐藏的,可以通过该方法显示广告。"], "domain": "open-interface/ads/interstitial", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-interstitial-ad.md", "has_taro_example": true},
111
+ {"id": "tt.createLivePlayerContext", "type": "api", "name": "tt.createLivePlayerContext", "summary_zh": "根据  组件 id 创建可以控制组件的上下文 LivePlayerContext 对象。", "search_terms_zh": ["tt.createLivePlayerContext", "createLivePlayerContext", "根据  组件 id 创建可以控制组件的上下文 LivePlayerContext 对象。", "media/video", "id", "component", "LivePlayerContext", "tt.LivePlayerContext.exitFullScreen", "exitFullScreen", "退出全屏", "tt.LivePlayerContext.mute", "mute", "静音", "tt.LivePlayerContext.pause", "pause", "暂停,效果同 stop", "tt.LivePlayerContext.play", "play", "播放", "tt.LivePlayerContext.requestFullScreen", "requestFullScreen", "进入全屏", "tt.LivePlayerContext.resume", "resume", "继续播放,效果同 play", "tt.LivePlayerContext.setWaterMark", "setWaterMark", "设置水印", "tt.LivePlayerContext.stop", "stop", "停止", "tt.LivePlayerContext.unmute", "unmute", "取消静音"], "domain": "media/video", "constraints": {"min_base_library": "1.38.1", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-live-player-context.md", "has_taro_example": true},
112
+ {"id": "tt.createMapContext", "type": "api", "name": "tt.createMapContext", "summary_zh": "创建 组件上下文 MapContext 对象。", "search_terms_zh": ["tt.createMapContext", "createMapContext", "创建 组件上下文 MapContext 对象。", "map", "id", "component", "MapContext", "tt.MapContext.addGroundOverlay", "addGroundOverlay", "创建自定义图片图层,图片会随着地图缩放而缩放", "tt.MapContext.getCenterLocation", "getCenterLocation", "获取当前地图中心的经纬度,返回的是 gcj02 坐标系,可以用于 tt.openLocation()", "tt.MapContext.getRegion", "getRegion", "获取当前地图的视野范围", "tt.MapContext.getRotate", "getRotate", "获取当前地图的旋转角", "tt.MapContext.getScale", "getScale", "获取当前地图的缩放级别", "tt.MapContext.getSkew", "getSkew", "获取当前地图的倾斜角", "tt.MapContext.includePoints", "includePoints", "缩放视野展示所有经纬度", "tt.MapContext.mapToScreen", "mapToScreen", "用于将地图经纬度坐标系转换成屏幕坐标系", "tt.MapContext.moveAlong", "moveAlong", "沿指定路径移动 marker,用于轨迹回放等场景。", "tt.MapContext.moveToLocation", "moveToLocation", "将地图中心移动到定位点", "tt.MapContext.openMapApp", "openMapApp", "拉起地图 APP 选择导航", "tt.MapContext.removeGroundOverlay", "removeGroundOverlay", "移除自定义图片图层", "tt.MapContext.screenToMap", "screenToMap", "用于将屏幕坐标系转换成地图经纬度坐标系", "tt.MapContext.setCenterOffset", "setCenterOffset", "设置地图中心点偏移,未设置时默认偏移为 [0.5, 0.5]", "tt.MapContext.setLocMarkerIcon", "setLocMarkerIcon", "设置定位点图标,支持网络路径、本地路径、代码包路径", "tt.MapContext.translateMarker", "translateMarker", "平移 marker,带动画", "tt.MapContext.updateGroundOverlay", "updateGroundOverlay", "更新自定义图片图层"], "domain": "map", "constraints": {"min_base_library": "1.63.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-map-context.md", "has_taro_example": true},
113
+ {"id": "tt.createMediaRecorder", "type": "api", "name": "tt.createMediaRecorder", "summary_zh": "小程序中的 Canvas 录制器 MediaRecorder 可以录制 Canvas(v2) 上绘制的所有画面,可以精确的控制录制的开始暂停,并且在录制结束时会自动导出 mp4 视频文件。", "search_terms_zh": ["tt.createMediaRecorder", "createMediaRecorder", "小程序中的 Canvas 录制器 MediaRecorder 可以录制 Canvas(v2) 上绘制的所有画面,可以精确的控制录制的开始暂停,并且在录制结束时会自动导出 mp4 视频文件。", "media/canvas-recording", "canvas", "options", "options.width", "options.height", "options.videoBitsPerSecond", "options.gop", "options.fps", "MediaRecorder", "tt.MediaRecorder.destroy", "destroy", "销毁 Canvas 录制器并释放资源,建议在不使用录制器后及时调用本函数释放资源。", "tt.MediaRecorder.MediaRecorder.destroy()", "MediaRecorder.destroy()", "销毁录制器", "tt.MediaRecorder.onError", "onError", "设置录制错误时的回调", "tt.MediaRecorder.onStart", "onStart", "设置开始录制时的回调", "tt.MediaRecorder.onStop", "onStop", "设置录制结束时的回调", "tt.MediaRecorder.pause", "pause", "暂停录制", "tt.MediaRecorder.requestFrame", "requestFrame", "手动录制当前帧", "tt.MediaRecorder.resume", "resume", "恢复录制", "tt.MediaRecorder.start", "start", "开始录制", "tt.MediaRecorder.stop", "stop", "停止录制"], "domain": "media/canvas-recording", "constraints": {"min_base_library": "2.52.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-media-recorder.md", "has_taro_example": true},
114
+ {"id": "tt.createOffscreenCanvas", "type": "api", "name": "tt.createOffscreenCanvas", "summary_zh": "创建离屏 canvas 实例。", "search_terms_zh": ["tt.createOffscreenCanvas", "createOffscreenCanvas", "创建离屏 canvas 实例。", "canvas/v2", "OffscreenCanvas", "tt.OffscreenCanvas.getContext", "getContext", "该方法返回 OffscreenCanvas 的绘图上下文"], "domain": "canvas/v2", "constraints": {"min_base_library": "1.78.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-offscreen-canvas.md", "has_taro_example": true},
115
115
  {"id": "tt.createOrder", "type": "api", "name": "tt.createOrder", "summary_zh": "提供开发者交易系统中预下单能力,开发者通过调用该方法生成订单后,会调起小程序收银台进行支付。", "search_terms_zh": ["tt.createOrder", "createOrder", "提供开发者交易系统中预下单能力,开发者通过调用该方法生成订单后,会调起小程序收银台进行支付。", "industry/trading-system/pre-order", "success", "fail"], "domain": "industry/trading-system/pre-order", "constraints": {"min_base_library": "2.51.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-order.md", "has_taro_example": true},
116
- {"id": "tt.createRewardedVideoAd", "type": "api", "name": "tt.createRewardedVideoAd", "summary_zh": "开发者可以在小程序中使用激励视频广告获得收入。", "search_terms_zh": ["tt.createRewardedVideoAd", "createRewardedVideoAd", "开发者可以在小程序中使用激励视频广告获得收入。", "open-interface/ads/rewarded-video", "params", "params.multiton", "params.multitonRewardTimes", "params.multitonRewardMsg", "params.progressTip", "params.adUnitId", "RewardedVideoAd"], "domain": "open-interface/ads/rewarded-video", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-rewarded-video-ad.md", "has_taro_example": true},
117
- {"id": "tt.createRtcRoomContext", "type": "api", "name": "tt.createRtcRoomContext", "summary_zh": "同步 API,创建 RtcRoomContext 实例。", "search_terms_zh": ["tt.createRtcRoomContext", "createRtcRoomContext", "同步 API,创建 RtcRoomContext 实例。", "media/rtc-room", "params", "params.appId", "RtcRoomContext"], "domain": "media/rtc-room", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-rtc-room-context.md", "has_taro_example": true},
118
- {"id": "tt.createSceneActivityContext", "type": "api", "name": "tt.createSceneActivityContext", "summary_zh": "调用该 API 可以获取调用复访营销活动 SceneActivityContext 实例对象,接入详见 侧边栏复访营销 。", "search_terms_zh": ["tt.createSceneActivityContext", "createSceneActivityContext", "调用该 API 可以获取调用复访营销活动 SceneActivityContext 实例对象,接入详见 侧边栏复访营销 。", "sidebar", "SceneActivityContext"], "domain": "sidebar", "constraints": {"min_base_library": "3.27.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-scene-activity-context.md", "has_taro_example": true},
119
- {"id": "tt.createSelectorQuery", "type": "api", "name": "tt.createSelectorQuery", "summary_zh": "返回一个 SelectorQuery 的实例,该实例上有 select、 selectViewport 等方法用于选择页面节点或显示区域。", "search_terms_zh": ["tt.createSelectorQuery", "createSelectorQuery", "返回一个 SelectorQuery 的实例,该实例上有 select、 selectViewport 等方法用于选择页面节点或显示区域。", "ttml"], "domain": "ttml", "constraints": {"min_base_library": "1.7.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-selector-query.md", "has_taro_example": true},
120
- {"id": "tt.createStickerManager", "type": "api", "name": "tt.createStickerManager", "summary_zh": "获取传入贴纸 ID 对应的算法管理器。", "search_terms_zh": ["tt.createStickerManager", "createStickerManager", "获取传入贴纸 ID 对应的算法管理器。", "ai-ar/effect-sticker", "stickerId"], "domain": "ai-ar/effect-sticker", "constraints": {"min_base_library": "2.32.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-sticker-manager.md", "has_taro_example": true},
121
- {"id": "tt.createVideoContext", "type": "api", "name": "tt.createVideoContext", "summary_zh": "根据 video 组件 id 创建可以控制组件的上下文 VideoContext 对象。", "search_terms_zh": ["tt.createVideoContext", "createVideoContext", "根据 video 组件 id 创建可以控制组件的上下文 VideoContext 对象。", "media/video", "id", "component", "VideoContext"], "domain": "media/video", "constraints": {"min_base_library": "1.18.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-video-context.md", "has_taro_example": true},
116
+ {"id": "tt.createRewardedVideoAd", "type": "api", "name": "tt.createRewardedVideoAd", "summary_zh": "开发者可以在小程序中使用激励视频广告获得收入。", "search_terms_zh": ["tt.createRewardedVideoAd", "createRewardedVideoAd", "开发者可以在小程序中使用激励视频广告获得收入。", "open-interface/ads/rewarded-video", "params", "params.multiton", "params.multitonRewardTimes", "params.multitonRewardMsg", "params.progressTip", "params.adUnitId", "RewardedVideoAd", "tt.RewardedVideoAd.destroy", "destroy", "销毁激励视频广告实例。", "tt.RewardedVideoAd.load", "load", "当广告素材加载出现错误时,可以通过 load 方法手动加载。", "tt.RewardedVideoAd.offClose", "offClose", "解除 绑定 close 事件 的监听器。", "tt.RewardedVideoAd.offError", "offError", "解除 绑定 error 事件 的监听器。", "tt.RewardedVideoAd.offLoad", "offLoad", "解除 绑定 load 事件 的监听器。", "tt.RewardedVideoAd.onClose", "onClose", "绑定 close 事件的监听器。", "tt.RewardedVideoAd.onError", "onError", "绑定 error 事件的监听器。", "tt.RewardedVideoAd.onLoad", "onLoad", "绑定 load 事件的监听器。", "tt.RewardedVideoAd.show", "show", "展示广告。"], "domain": "open-interface/ads/rewarded-video", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-rewarded-video-ad.md", "has_taro_example": true},
117
+ {"id": "tt.createRtcRoomContext", "type": "api", "name": "tt.createRtcRoomContext", "summary_zh": "同步 API,创建 RtcRoomContext 实例。", "search_terms_zh": ["tt.createRtcRoomContext", "createRtcRoomContext", "同步 API,创建 RtcRoomContext 实例。", "media/rtc-room", "params", "params.appId", "RtcRoomContext", "tt.RtcRoomContext.changeAudioCapture", "changeAudioCapture", "开启关闭音频采集", "tt.RtcRoomContext.changeScreenSubscribeState", "changeScreenSubscribeState", "开启/关闭订阅屏幕流", "tt.RtcRoomContext.changeStreamPublishState", "changeStreamPublishState", "开启/关闭发布流", "tt.RtcRoomContext.changeStreamSubscribeState", "changeStreamSubscribeState", "开启/关闭订阅流", "tt.RtcRoomContext.changeUserVisibility", "changeUserVisibility", "设置用户是否对房间内其他用户可见", "tt.RtcRoomContext.changeVideoCapture", "changeVideoCapture", "开启/关闭视频采集", "tt.RtcRoomContext.exitRtcRoom", "exitRtcRoom", "退出(销毁)实时语音通话", "tt.RtcRoomContext.joinRtcRoom", "joinRtcRoom", "加入实时音视频通话房间", "tt.RtcRoomContext.offRoomTokenWillExpire", "offRoomTokenWillExpire", "取消监听房间 token 即将过期的回调", "tt.RtcRoomContext.offRtcChatInterrupted", "offRtcChatInterrupted", "取消监听被动断开实时音视频通话事件", "tt.RtcRoomContext.offRtcChatMembersChanged", "offRtcChatMembersChanged", "取消监听房间状态变化事件", "tt.RtcRoomContext.offRtcChatSpeakersChanged", "offRtcChatSpeakersChanged", "取消监听实时语音通话成员通话状态变化事件,有成员开始/停止说话时触发回调", "tt.RtcRoomContext.offRtcPublishScreenMembersChanged", "offRtcPublishScreenMembersChanged", "取消监听实时共享屏幕用户改变事件", "tt.RtcRoomContext.offRtcStateChanged", "offRtcStateChanged", "tt.RtcRoomContext.offRtcVideoMembersChanged", "offRtcVideoMembersChanged", "tt.RtcRoomContext.onRoomTokenWillExpire", "onRoomTokenWillExpire", "监听房间 token 即将过期的回调", "tt.RtcRoomContext.onRtcChatInterrupted", "onRtcChatInterrupted", "监听被动断开实时音视频通话事件", "tt.RtcRoomContext.onRtcChatMembersChanged", "onRtcChatMembersChanged", "监听实时语音通话成员在线状态变化事件。", "tt.RtcRoomContext.onRtcChatSpeakersChanged", "onRtcChatSpeakersChanged", "监听实时语音通话成员通话状态变化事件。", "tt.RtcRoomContext.onRtcPublishScreenMembersChanged", "onRtcPublishScreenMembersChanged", "监听实时共享屏幕用户改变事件", "tt.RtcRoomContext.onRtcStateChanged", "onRtcStateChanged", "监听实时音视频通话过程状态变化", "tt.RtcRoomContext.onRtcVideoMembersChanged", "onRtcVideoMembersChanged", "监听实时语音通话成员视频状态变化事件。", "tt.RtcRoomContext.setAudioPlaybackDevice", "setAudioPlaybackDevice", "设置音频播放设备", "tt.RtcRoomContext.setVideoEncoderConfig", "setVideoEncoderConfig", "设置视频发布的最大视频流参数", "tt.RtcRoomContext.switchCamera", "switchCamera", "切换摄像头状态", "tt.RtcRoomContext.updateToken", "updateToken", "更新房间 token"], "domain": "media/rtc-room", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-rtc-room-context.md", "has_taro_example": true},
118
+ {"id": "tt.createSceneActivityContext", "type": "api", "name": "tt.createSceneActivityContext", "summary_zh": "调用该 API 可以获取调用复访营销活动 SceneActivityContext 实例对象,接入详见 侧边栏复访营销 。", "search_terms_zh": ["tt.createSceneActivityContext", "createSceneActivityContext", "调用该 API 可以获取调用复访营销活动 SceneActivityContext 实例对象,接入详见 侧边栏复访营销 。", "sidebar", "SceneActivityContext", "tt.SceneActivityContext.bind", "bind", "绑定侧边栏复访福利活动并返回已配置的复访福利活动信息", "tt.SceneActivityContext.checkScene", "checkScene", "该接口用于判断用户是否通过首页侧边栏或非首页侧边栏入口访问小程序。", "tt.SceneActivityContext.jump", "jump", "绑定复访活动后,可用于跳转至首页侧边栏页面", "tt.SceneActivityContext.on", "on", "监听复访营销活动状态变更", "tt.SceneActivityContext.query", "query", "查询复访福利活动id列表", "tt.SceneActivityContext.receive", "receive", "领取侧边栏复访营销活动"], "domain": "sidebar", "constraints": {"min_base_library": "3.27.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-scene-activity-context.md", "has_taro_example": true},
119
+ {"id": "tt.createSelectorQuery", "type": "api", "name": "tt.createSelectorQuery", "summary_zh": "返回一个 SelectorQuery 的实例,该实例上有 select、 selectViewport 等方法用于选择页面节点或显示区域。", "search_terms_zh": ["tt.createSelectorQuery", "createSelectorQuery", "返回一个 SelectorQuery 的实例,该实例上有 select、 selectViewport 等方法用于选择页面节点或显示区域。", "ttml", "SelectorQuery", "tt.SelectorQuery.exec", "exec", "执行所有的查询。", "tt.SelectorQuery.in", "in", "将选择器的选取范围更改为自定义组件", "tt.SelectorQuery.select", "select", "在当前页面下选择第一个匹配选择器 selector 的节点", "tt.SelectorQuery.selectAll", "selectAll", "在当前页面下选择匹配选择器 selector 的所有节点", "tt.SelectorQuery.selectViewport", "selectViewport", "选择显示区域"], "domain": "ttml", "constraints": {"min_base_library": "1.7.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "create-selector-query.md", "has_taro_example": true},
120
+ {"id": "tt.createStickerManager", "type": "api", "name": "tt.createStickerManager", "summary_zh": "获取传入贴纸 ID 对应的算法管理器。", "search_terms_zh": ["tt.createStickerManager", "createStickerManager", "获取传入贴纸 ID 对应的算法管理器。", "ai-ar/effect-sticker", "stickerId", "StickerManager", "tt.StickerManager.load", "load", "加载对应传入 ID 的贴纸。", "tt.StickerManager.onError", "onError", "设置当前 StickerManager 的加载失败回调。", "tt.StickerManager.onLoad", "onLoad", "设置当前 StickerManager 的加载成功回调。"], "domain": "ai-ar/effect-sticker", "constraints": {"min_base_library": "2.32.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-sticker-manager.md", "has_taro_example": true},
121
+ {"id": "tt.createVideoContext", "type": "api", "name": "tt.createVideoContext", "summary_zh": "根据 video 组件 id 创建可以控制组件的上下文 VideoContext 对象。", "search_terms_zh": ["tt.createVideoContext", "createVideoContext", "根据 video 组件 id 创建可以控制组件的上下文 VideoContext 对象。", "media/video", "id", "component", "VideoContext", "tt.VideoContext.exitFullScreen", "exitFullScreen", "退出全屏", "tt.VideoContext.getMediaVolume", "getMediaVolume", "获取音量", "tt.VideoContext.pause", "pause", "暂停视频", "tt.VideoContext.play", "play", "播放视频", "tt.VideoContext.playbackRate", "playbackRate", "设置倍速播放", "tt.VideoContext.requestFullScreen", "requestFullScreen", "进入全屏", "tt.VideoContext.seek", "seek", "视频点播", "tt.VideoContext.setMediaVolume", "setMediaVolume", "设置音量", "tt.VideoContext.setWaterMark", "setWaterMark", "设置水印", "tt.VideoContext.stop", "stop", "停止视频"], "domain": "media/video", "constraints": {"min_base_library": "1.18.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "create-video-context.md", "has_taro_example": true},
122
122
  {"id": "tt.deleteCalendarEvent", "type": "api", "name": "tt.deleteCalendarEvent", "summary_zh": "删除通过 button组件写入系统日历 能力添加的日历。", "search_terms_zh": ["tt.deleteCalendarEvent", "deleteCalendarEvent", "删除通过 button组件写入系统日历 能力添加的日历。", "device/calendar", "endTime", "title", "startTime", "success", "res", "res.errMsg", "fail"], "domain": "device/calendar", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "delete-calendar-event.md", "has_taro_example": true},
123
123
  {"id": "tt.disableAlertBeforeUnload", "type": "api", "name": "tt.disableAlertBeforeUnload", "summary_zh": "关闭小程序页面返回询问对话框。", "search_terms_zh": ["tt.disableAlertBeforeUnload", "disableAlertBeforeUnload", "关闭小程序页面返回询问对话框。", "interface/interfeedback", "success", "res", "res.errMsg", "fail"], "domain": "interface/interfeedback", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "disable-alert-before-unload.md", "has_taro_example": true},
124
124
  {"id": "tt.disableUserScreenRecord", "type": "api", "name": "tt.disableUserScreenRecord", "summary_zh": "调用该 API 可以禁止用户录屏。", "search_terms_zh": ["tt.disableUserScreenRecord", "disableUserScreenRecord", "调用该 API 可以禁止用户录屏。", "device/screen", "success", "res", "res.errMsg", "fail"], "domain": "device/screen", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "disable-user-screen-record.md", "has_taro_example": true},
125
- {"id": "tt.downloadFile", "type": "api", "name": "tt.downloadFile", "summary_zh": "下载文件资源到本地。", "search_terms_zh": ["tt.downloadFile", "downloadFile", "下载文件资源到本地。", "network/http", "header", "filePath", "timeout", "url", "DownloadTask", "success", "res", "res.tempFilePath", "res.filePath", "res.header", "res.errMsg", "res.statusCode", "res.profile", "res.profile.domainLookupStart", "res.profile.domainLookupEnd", "res.profile.connectStart", "res.profile.connectEnd", "res.profile.sslConnectionStart", "res.profile.sslConnectionEnd", "res.profile.requestStart", "res.profile.requestEnd", "res.profile.rtt", "res.profile.estimateNetType", "res.profile.throughputKbps", "res.profile.port", "res.profile.socketReused", "res.profile.sentBytesCount", "res.profile.receivedBytesCount", "fail"], "domain": "network/http", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "download-file.md", "has_taro_example": true},
125
+ {"id": "tt.downloadFile", "type": "api", "name": "tt.downloadFile", "summary_zh": "下载文件资源到本地。", "search_terms_zh": ["tt.downloadFile", "downloadFile", "下载文件资源到本地。", "network/http", "header", "filePath", "timeout", "url", "DownloadTask", "success", "res", "res.tempFilePath", "res.filePath", "res.header", "res.errMsg", "res.statusCode", "res.profile", "res.profile.domainLookupStart", "res.profile.domainLookupEnd", "res.profile.connectStart", "res.profile.connectEnd", "res.profile.sslConnectionStart", "res.profile.sslConnectionEnd", "res.profile.requestStart", "res.profile.requestEnd", "res.profile.rtt", "res.profile.estimateNetType", "res.profile.throughputKbps", "res.profile.port", "res.profile.socketReused", "res.profile.sentBytesCount", "res.profile.receivedBytesCount", "fail", "tt.DownloadTask.abort", "abort", "中断下载任务", "tt.DownloadTask.offProgressUpdate", "offProgressUpdate", "取消监听下载进度变化事件", "tt.DownloadTask.onProgressUpdate", "onProgressUpdate", "监听下载进度变化事件"], "domain": "network/http", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "download-file.md", "has_taro_example": true},
126
126
  {"id": "tt.DownloadTask.abort", "type": "api", "name": "tt.DownloadTask.abort", "summary_zh": "中断下载任务。", "search_terms_zh": ["tt.DownloadTask.abort", "DownloadTask.abort", "中断下载任务。", "network/http/download-task"], "domain": "network/http/download-task", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "download-task-abort.md", "has_taro_example": true},
127
127
  {"id": "tt.DownloadTask.offProgressUpdate", "type": "api", "name": "tt.DownloadTask.offProgressUpdate", "summary_zh": "取消监听下载进度变化事件,其中 DownloadTask 是通过 tt.downloadFile() 返回的对象。", "search_terms_zh": ["tt.DownloadTask.offProgressUpdate", "DownloadTask.offProgressUpdate", "取消监听下载进度变化事件,其中 DownloadTask 是通过 tt.downloadFile() 返回的对象。", "network/http/download-task", "callback", "callback.param", "callback.param.progress", "callback.param.totalBytesWritten", "callback.param.totalBytesExpectedToWrite"], "domain": "network/http/download-task", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "download-task-off-progress-update.md", "has_taro_example": true},
128
128
  {"id": "tt.DownloadTask.onProgressUpdate", "type": "api", "name": "tt.DownloadTask.onProgressUpdate", "summary_zh": "监听下载进度变化事件,其中 DownloadTask 是 tt.downloadFile() 返回的对象", "search_terms_zh": ["tt.DownloadTask.onProgressUpdate", "DownloadTask.onProgressUpdate", "监听下载进度变化事件,其中 DownloadTask 是 tt.downloadFile() 返回的对象", "network/http/download-task", "callback", "callback.param", "callback.param.progress", "callback.param.totalBytesWritten", "callback.param.totalBytesExpectedToWrite"], "domain": "network/http/download-task", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "download-task-on-progress-update.md", "has_taro_example": true},
@@ -174,9 +174,9 @@
174
174
  {"id": "tt.FileSystemManager.writeFileSync", "type": "api", "name": "tt.FileSystemManager.writeFileSync", "summary_zh": "写文件。", "search_terms_zh": ["tt.FileSystemManager.writeFileSync", "FileSystemManager.writeFileSync", "写文件。", "file/file-system-manager", "filePath", "data", "encoding"], "domain": "file/file-system-manager", "constraints": {"min_base_library": "1.15.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "file-system-manager-write-file-sync.md", "has_taro_example": true},
175
175
  {"id": "tt.followAwemeUser", "type": "api", "name": "tt.followAwemeUser", "summary_zh": "调用此 API 会弹出弹框,用户可以点击按钮关注绑定的抖音号。", "search_terms_zh": ["tt.followAwemeUser", "followAwemeUser", "调用此 API 会弹出弹框,用户可以点击按钮关注绑定的抖音号。", "open-interface/follow", "awemeId", "success", "res", "res.followed", "res.errMsg", "fail"], "domain": "open-interface/follow", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "follow-aweme-user.md", "has_taro_example": true},
176
176
  {"id": "tt.followOfficialAccount", "type": "api", "name": "tt.followOfficialAccount", "summary_zh": "关注小程序绑定的头条号,可以通过 checkFollowState 接口获取当前关注状态。", "search_terms_zh": ["tt.followOfficialAccount", "followOfficialAccount", "关注小程序绑定的头条号,可以通过 checkFollowState 接口获取当前关注状态。", "open-interface/follow", "success", "res", "res.errMsg", "res.errCode", "fail"], "domain": "open-interface/follow", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "follow-official-account.md", "has_taro_example": true},
177
- {"id": "tt.getAlgorithmManager", "type": "api", "name": "tt.getAlgorithmManager", "summary_zh": "获取AI/AR算法管理器", "search_terms_zh": ["tt.getAlgorithmManager", "getAlgorithmManager", "获取AI/AR算法管理器", "ai-ar/algorithm-manageralgorithm-manager", "width", "height", "useSyncMode", "requirements", "success", "fail"], "domain": "ai-ar/algorithm-manageralgorithm-manager", "constraints": {"min_base_library": "2.18.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-algorithm-manager.md", "has_taro_example": true},
177
+ {"id": "tt.getAlgorithmManager", "type": "api", "name": "tt.getAlgorithmManager", "summary_zh": "获取AI/AR算法管理器", "search_terms_zh": ["tt.getAlgorithmManager", "getAlgorithmManager", "获取AI/AR算法管理器", "ai-ar/algorithm-manageralgorithm-manager", "width", "height", "useSyncMode", "requirements", "success", "fail", "AlgorithmManager", "tt.AlgorithmManager.doExecute", "doExecute", "对输入的图像进行算法处理,获取所需算法结果数据"], "domain": "ai-ar/algorithm-manageralgorithm-manager", "constraints": {"min_base_library": "2.18.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-algorithm-manager.md", "has_taro_example": true},
178
178
  {"id": "tt.getAnalysisInfo", "type": "api", "name": "tt.getAnalysisInfo", "summary_zh": "获取视频、直播、个人页场景下,用户访问来源的主播/作者的抖音账号、视频、直播间标识等信息。", "search_terms_zh": ["tt.getAnalysisInfo", "getAnalysisInfo", "获取视频、直播、个人页场景下,用户访问来源的主播/作者的抖音账号、视频、直播间标识等信息。", "open-interface/analysis-info", "success", "res", "res.type", "res.errMsg", "res.roomId", "res.anchorId", "res.postId", "res.itemId", "res.uniqueId", "res.group_activity_id", "res.group_id", "fail"], "domain": "open-interface/analysis-info", "constraints": {"min_base_library": "2.99.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-analysis-info.md", "has_taro_example": true},
179
- {"id": "tt.getBackgroundAudioManager", "type": "api", "name": "tt.getBackgroundAudioManager", "summary_zh": "获取全局唯一的背景音频管理器 BackgroundAudioManager。", "search_terms_zh": ["tt.getBackgroundAudioManager", "getBackgroundAudioManager", "获取全局唯一的背景音频管理器 BackgroundAudioManager。", "media/audio"], "domain": "media/audio", "constraints": {"min_base_library": "1.36.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "get-background-audio-manager.md", "has_taro_example": true},
179
+ {"id": "tt.getBackgroundAudioManager", "type": "api", "name": "tt.getBackgroundAudioManager", "summary_zh": "获取全局唯一的背景音频管理器 BackgroundAudioManager。", "search_terms_zh": ["tt.getBackgroundAudioManager", "getBackgroundAudioManager", "获取全局唯一的背景音频管理器 BackgroundAudioManager。", "media/audio", "BackgroundAudioManager", "src", "音频源地址, 默认为空字符串,当设置了新的 src 时,会自动开始播放,仅支持临时路径(如通过下载到本地的音频地址)、网络地址(需在小程序开发者平台配置域名白…", "startTime", "开始播放的位置(单位:s)", "title", "音频标题, 用于原生音频播放器音频标题", "epname", "专辑名", "singer", "歌手名,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值", "coverImgUrl", "封面图 URL,用于做原生音频播放器背景图。", "webUrl", "页面链接,原生音频播放器中的分享功能,分享出去的卡片简介,也将使用该值", "protocol", "音频协议。", "audioPage", "设置点击悬浮控件/通知栏跳转当前小程序指定页面,数据格式为 {path:\"(音乐播放路径)\",query:{name:''}}", "playbackRate", "播放速度。", "duration", "当前音频总时长(单位:s)", "currentTime", "当前音频进度(单位:s)", "paused", "当前音频是否处于暂停状态", "buffered", "当前音频已缓冲部分(单位:s)", "tt.BackgroundAudioManager.offCanplay", "offCanplay", "移除 onCanplay 绑定的事件处理函数。", "tt.BackgroundAudioManager.offEnded", "offEnded", "移除 onEnded 绑定的事件处理函数。", "tt.BackgroundAudioManager.offError", "offError", "移除 onError 绑定的事件处理函数", "tt.BackgroundAudioManager.offNext", "offNext", "移除 onNext 绑定的事件处理函数", "tt.BackgroundAudioManager.offPause", "offPause", "移除 onPause 绑定的事件处理函数。", "tt.BackgroundAudioManager.offPlay", "offPlay", "移除 onPlay 绑定的事件处理函数。", "tt.BackgroundAudioManager.offPrev", "offPrev", "移除 onPrev 绑定的事件处理函数", "tt.BackgroundAudioManager.offSeeked", "offSeeked", "移除 onSeeked 绑定的事件处理函数", "tt.BackgroundAudioManager.offSeeking", "offSeeking", "移除 onSeeking 绑定的事件处理函数", "tt.BackgroundAudioManager.offStop", "offStop", "移除 onStop 绑定的事件处理函数。", "tt.BackgroundAudioManager.offTimeUpdate", "offTimeUpdate", "移除 onTimeUpdate 绑定的事件处理函数。", "tt.BackgroundAudioManager.offWaiting", "offWaiting", "取消监听 BackgroundAudioManager.onWaiting 绑定的事件处理函数。", "tt.BackgroundAudioManager.onCanplay", "onCanplay", "监听背景音频进入可播放状态事件。", "tt.BackgroundAudioManager.onEnded", "onEnded", "监听背景音频自然播放结束事件。", "tt.BackgroundAudioManager.onError", "onError", "监听背景音频播放错误事件。", "tt.BackgroundAudioManager.onNext", "onNext", "监听用户在系统音乐播放面板点击下一曲事件。", "tt.BackgroundAudioManager.onPause", "onPause", "监听背景音频暂停事件。", "tt.BackgroundAudioManager.onPlay", "onPlay", "监听背景音频播放事件。", "tt.BackgroundAudioManager.onPrev", "onPrev", "监听用户在系统音乐播放面板点击上一曲事件。", "tt.BackgroundAudioManager.onSeeked", "onSeeked", "监听背景音频完成跳转操作事件。", "tt.BackgroundAudioManager.onSeeking", "onSeeking", "监听背景音频开始跳转操作事件。", "tt.BackgroundAudioManager.onStop", "onStop", "监听背景音频停止事件。", "tt.BackgroundAudioManager.onTimeUpdate", "onTimeUpdate", "监听背景音频播放进度更新事件。", "tt.BackgroundAudioManager.onWaiting", "onWaiting", "监听加载中事件,当音频因为数据不足,需要停下来加载时会触发,音频开始播放后需要停下来加载资源时也会触发,此时首先会暂停播放,待资源加载完成后继续播放。", "tt.BackgroundAudioManager.pause", "pause", "暂停播放。", "tt.BackgroundAudioManager.play", "play", "播放背景音频。", "tt.BackgroundAudioManager.seek", "seek", "跳转到 position 指定的位置播放,数据格式为 number,单位为 s。", "tt.BackgroundAudioManager.stop", "stop", "停止播放。"], "domain": "media/audio", "constraints": {"min_base_library": "1.36.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "get-background-audio-manager.md", "has_taro_example": true},
180
180
  {"id": "tt.getClipboardData", "type": "api", "name": "tt.getClipboardData", "summary_zh": "获取系统剪贴板内容。", "search_terms_zh": ["tt.getClipboardData", "getClipboardData", "获取系统剪贴板内容。", "device/pasting-board", "success", "res", "res.data", "res.errMsg", "fail"], "domain": "device/pasting-board", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-clipboard-data.md", "has_taro_example": true},
181
181
  {"id": "tt.getConnectedWifi", "type": "api", "name": "tt.getConnectedWifi", "summary_zh": "获取设备当前所连的 WiFi 信息。", "search_terms_zh": ["tt.getConnectedWifi", "getConnectedWifi", "获取设备当前所连的 WiFi 信息。", "device/wi-fi", "success", "res", "res.errMsg", "res.SSID", "res.BSSID", "res.secure", "res.signalStrength", "fail"], "domain": "device/wi-fi", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-connected-wifi.md", "has_taro_example": true},
182
182
  {"id": "tt.getCustomButtonBoundingClientRect", "type": "api", "name": "tt.getCustomButtonBoundingClientRect", "summary_zh": "获取自定义导航栏下不可改变的元素(比如左上角 logo/返回位置+ 右上角反馈+more+close)的位置信息。", "search_terms_zh": ["tt.getCustomButtonBoundingClientRect", "getCustomButtonBoundingClientRect", "获取自定义导航栏下不可改变的元素(比如左上角 logo/返回位置+ 右上角反馈+more+close)的位置信息。", "interface/menu", "props", "props.measurementUnit", "capsule", "leftIcon", "customNavigation"], "domain": "interface/menu", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-custom-button-bounding-client-rect.md", "has_taro_example": true},
@@ -186,7 +186,7 @@
186
186
  {"id": "tt.getExtConfig", "type": "api", "name": "tt.getExtConfig", "summary_zh": "获取第三方平台自定义的数据字段。", "search_terms_zh": ["tt.getExtConfig", "getExtConfig", "获取第三方平台自定义的数据字段。", "third-party-platform", "success", "res", "res.extConfig", "res.errMsg", "fail"], "domain": "third-party-platform", "constraints": {"min_base_library": "1.16.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-ext-config.md", "has_taro_example": true},
187
187
  {"id": "tt.getExtConfigSync", "type": "api", "name": "tt.getExtConfigSync", "summary_zh": "获取第三方平台自定义的数据字段。", "search_terms_zh": ["tt.getExtConfigSync", "getExtConfigSync", "获取第三方平台自定义的数据字段。", "third-party-platform", "extConfig"], "domain": "third-party-platform", "constraints": {"min_base_library": "1.16.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-ext-config-sync.md", "has_taro_example": true},
188
188
  {"id": "tt.getFileInfo", "type": "api", "name": "tt.getFileInfo", "summary_zh": "获取文件信息。", "search_terms_zh": ["tt.getFileInfo", "getFileInfo", "获取文件信息。", "file", "digestAlgorithm", "filePath", "success", "res", "res.size", "res.digest", "res.errMsg", "fail"], "domain": "file", "constraints": {"min_base_library": "1.15.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-file-info.md", "has_taro_example": true},
189
- {"id": "tt.getFileSystemManager", "type": "api", "name": "tt.getFileSystemManager", "summary_zh": "获取全局唯一的文件管理器。", "search_terms_zh": ["tt.getFileSystemManager", "getFileSystemManager", "获取全局唯一的文件管理器。", "file", "FileSystemManager"], "domain": "file", "constraints": {"min_base_library": "1.15.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-file-system-manager.md", "has_taro_example": true},
189
+ {"id": "tt.getFileSystemManager", "type": "api", "name": "tt.getFileSystemManager", "summary_zh": "获取全局唯一的文件管理器。", "search_terms_zh": ["tt.getFileSystemManager", "getFileSystemManager", "获取全局唯一的文件管理器。", "file", "FileSystemManager", "tt.FileSystemManager.access", "access", "判断文件/目录是否存在", "tt.FileSystemManager.accessSync", "accessSync", "同步判断文件/目录是否存在", "tt.FileSystemManager.appendFile", "appendFile", "在文件结尾追加内容在", "tt.FileSystemManager.appendFileSync", "appendFileSync", "同步在文件结尾追加内容在", "tt.FileSystemManager.copyFile", "copyFile", "复制文件", "tt.FileSystemManager.copyFileSync", "copyFileSync", "同步复制文件", "tt.FileSystemManager.getFileInfo", "getFileInfo", "获取该小程序下的 本地临时文件 或 本地缓存文件 信息", "tt.FileSystemManager.getSavedFileList", "getSavedFileList", "获取该小程序下已保存的本地缓存文件列表", "tt.FileSystemManager.mkdir", "mkdir", "创建目录", "tt.FileSystemManager.mkdirSync", "mkdirSync", "同步创建目录", "tt.FileSystemManager.readdir", "readdir", "读取目录内文件列表", "tt.FileSystemManager.readdirSync", "readdirSync", "同步读取目录内文件列表", "tt.FileSystemManager.readFile", "readFile", "读取本地文件内容", "tt.FileSystemManager.readFileSync", "readFileSync", "同步读取本地文件内容", "tt.FileSystemManager.removeSavedFile", "removeSavedFile", "删除该小程序下已保存的本地缓存文件", "tt.FileSystemManager.rename", "rename", "重命名文件,可以把文件从 oldPath 移动到 newPath", "tt.FileSystemManager.renameSync", "renameSync", "同步重命名文件,可以把文件从 oldPath 移动到 newPath", "tt.FileSystemManager.rmdir", "rmdir", "删除目录", "tt.FileSystemManager.rmdirSync", "rmdirSync", "同步删除目录", "tt.FileSystemManager.saveFile", "saveFile", "保存临时文件到本地。", "tt.FileSystemManager.saveFileSync", "saveFileSync", "同步保存临时文件到本地。", "tt.FileSystemManager.stat", "stat", "获取文件 Stat 对象", "tt.FileSystemManager.statSync", "statSync", "同步获取文件 Stat 对象", "tt.FileSystemManager.truncate", "truncate", "对文件内容进行截断操作", "tt.FileSystemManager.truncateSync", "truncateSync", "同步对文件内容进行截断操作", "tt.FileSystemManager.unlink", "unlink", "删除文件", "tt.FileSystemManager.unlinkSync", "unlinkSync", "同步删除文件", "tt.FileSystemManager.unzip", "unzip", "解压文件", "tt.FileSystemManager.writeFile", "writeFile", "写文件", "tt.FileSystemManager.writeFileSync", "writeFileSync", "同步写文件"], "domain": "file", "constraints": {"min_base_library": "1.15.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-file-system-manager.md", "has_taro_example": true},
190
190
  {"id": "tt.getImageInfo", "type": "api", "name": "tt.getImageInfo", "summary_zh": "获取图片信息。", "search_terms_zh": ["tt.getImageInfo", "getImageInfo", "获取图片信息。", "media/picture", "src", "success", "res", "res.path", "res.type", "res.width", "res.height", "res.orientation", "res.errMsg", "fail"], "domain": "media/picture", "constraints": {"min_base_library": "1.10.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-image-info.md", "has_taro_example": true},
191
191
  {"id": "tt.getLaunchOptionsSync", "type": "api", "name": "tt.getLaunchOptionsSync", "summary_zh": "获取小程序冷启动时的参数,其值与 App.onLaunch 方法传入的参数一致,并且不会随着小程序使用而发生变化。", "search_terms_zh": ["tt.getLaunchOptionsSync", "getLaunchOptionsSync", "获取小程序冷启动时的参数,其值与 App.onLaunch 方法传入的参数一致,并且不会随着小程序使用而发生变化。", "foundation/lifecycle", "LaunchOptions", "LaunchOptions.query", "LaunchOptions.path", "LaunchOptions.scene", "LaunchOptions.refererInfo", "LaunchOptions.refererInfo.appId", "LaunchOptions.refererInfo.extraData", "LaunchOptions.showFrom"], "domain": "foundation/lifecycle", "constraints": {"min_base_library": "1.12.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-launch-options-sync.md", "has_taro_example": true},
192
192
  {"id": "tt.getLocation", "type": "api", "name": "tt.getLocation", "summary_zh": "获取设备当前的地理位置。", "search_terms_zh": ["tt.getLocation", "getLocation", "获取设备当前的地理位置。", "location", "type", "isHighAccuracy", "success", "fail"], "domain": "location", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-location.md", "has_taro_example": true},
@@ -195,7 +195,7 @@
195
195
  {"id": "tt.getOrderPayment", "type": "api", "name": "tt.getOrderPayment", "summary_zh": "拉起用户支付收银台。", "search_terms_zh": ["tt.getOrderPayment", "getOrderPayment", "拉起用户支付收银台。", "industry/general_trade/create_order", "orderId", "success", "logId", "fail", "errNo", "errMsg"], "domain": "industry/general_trade/create_order", "constraints": {"min_base_library": "2.74.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-order-payment.md", "has_taro_example": true},
196
196
  {"id": "tt.getPrivacySetting", "type": "api", "name": "tt.getPrivacySetting", "summary_zh": "查询隐私授权情况。", "search_terms_zh": ["tt.getPrivacySetting", "getPrivacySetting", "查询隐私授权情况。", "open-interface/privacy", "success", "res", "res.errMsg", "res.privacyContractName", "res.needAuthorization", "fail"], "domain": "open-interface/privacy", "constraints": {"min_base_library": "3.19.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-privacy-setting.md", "has_taro_example": true},
197
197
  {"id": "tt.getRandomValues", "type": "api", "name": "tt.getRandomValues", "summary_zh": "获取安全学密码随机数。", "search_terms_zh": ["tt.getRandomValues", "getRandomValues", "获取安全学密码随机数。", "device/crypto", "length", "success", "res", "res.errMsg", "res.randomValues", "fail"], "domain": "device/crypto", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-random-values.md", "has_taro_example": true},
198
- {"id": "tt.getRecorderManager", "type": "api", "name": "tt.getRecorderManager", "summary_zh": "获取全局唯一的 recorderManager。", "search_terms_zh": ["tt.getRecorderManager", "getRecorderManager", "获取全局唯一的 recorderManager。", "media/record", "RecorderManager"], "domain": "media/record", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-recorder-manager.md", "has_taro_example": true},
198
+ {"id": "tt.getRecorderManager", "type": "api", "name": "tt.getRecorderManager", "summary_zh": "获取全局唯一的 recorderManager。", "search_terms_zh": ["tt.getRecorderManager", "getRecorderManager", "获取全局唯一的 recorderManager。", "media/record", "RecorderManager", "tt.RecorderManager.offError", "offError", "取消监听 RecorderManager.onError 注册的事件处理函数。", "tt.RecorderManager.offFrameRecorded", "offFrameRecorded", "取消监听 RecorderManager.onFrameRecorded 注册的事件处理函数。", "tt.RecorderManager.offPause", "offPause", "取消监听 RecorderManager.onPause 中注册的事件处理函数。", "tt.RecorderManager.offResume", "offResume", "取消监听 RecorderManager.onResume 中绑定的事件处理函数。", "tt.RecorderManager.offStart", "offStart", "取消监听 RecorderManager.onStart 中绑定的事件处理函数。", "tt.RecorderManager.offStop", "offStop", "取消监听录音结束事件", "tt.RecorderManager.onError", "onError", "监听录音错误事件", "tt.RecorderManager.onFrameRecorded", "onFrameRecorded", "监听已录制完指定帧大小的文件事件。", "tt.RecorderManager.onPause", "onPause", "监听录音暂停事件", "tt.RecorderManager.onResume", "onResume", "监听录音继续事件", "tt.RecorderManager.onStart", "onStart", "监听录音开始事件", "tt.RecorderManager.onStop", "onStop", "监听录音结束事件", "tt.RecorderManager.pause", "pause", "暂停录音", "tt.RecorderManager.resume", "resume", "继续录音", "tt.RecorderManager.start", "start", "开始录音", "tt.RecorderManager.stop", "stop", "停止录音"], "domain": "media/record", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-recorder-manager.md", "has_taro_example": true},
199
199
  {"id": "tt.getSavedFileList", "type": "api", "name": "tt.getSavedFileList", "summary_zh": "获取该小程序下用户目录文件列表,用户目录以 ttfile://user 开头。", "search_terms_zh": ["tt.getSavedFileList", "getSavedFileList", "获取该小程序下用户目录文件列表,用户目录以 ttfile://user 开头。", "file", "success", "res", "res.errMsg", "res.fileList", "res.fileList.filePath", "res.fileList.createTime", "res.fileList.size", "fail"], "domain": "file", "constraints": {"min_base_library": "1.15.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-saved-file-list.md", "has_taro_example": true},
200
200
  {"id": "tt.getScreenBrightness", "type": "api", "name": "tt.getScreenBrightness", "summary_zh": "获取屏幕亮度。", "search_terms_zh": ["tt.getScreenBrightness", "getScreenBrightness", "获取屏幕亮度。", "device/screen", "success", "res", "res.value", "res.errMsg", "fail"], "domain": "device/screen", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-screen-brightness.md", "has_taro_example": true},
201
201
  {"id": "tt.getSetting", "type": "api", "name": "tt.getSetting", "summary_zh": "获取用户已经授权过的配置。", "search_terms_zh": ["tt.getSetting", "getSetting", "获取用户已经授权过的配置。", "open-interface/set", "withSubscriptions"], "domain": "open-interface/set", "constraints": {"min_base_library": "1.3.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "get-setting.md", "has_taro_example": true},
@@ -206,7 +206,7 @@
206
206
  {"id": "tt.getStorageSync", "type": "api", "name": "tt.getStorageSync", "summary_zh": "获取本地缓存数据。", "search_terms_zh": ["tt.getStorageSync", "getStorageSync", "获取本地缓存数据。", "data-caching", "key", "StorageData"], "domain": "data-caching", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-storage-sync.md", "has_taro_example": true},
207
207
  {"id": "tt.getSystemInfo", "type": "api", "name": "tt.getSystemInfo", "summary_zh": "获取系统信息。", "search_terms_zh": ["tt.getSystemInfo", "getSystemInfo", "获取系统信息。", "device/system-information", "useCache", "success", "res", "res.errMsg", "res.version", "res.brand", "res.model", "res.system", "res.platform", "res.appName", "res.SDKVersion", "res.screenWidth", "res.screenHeight", "res.windowWidth", "res.windowHeight", "res.statusBarHeight", "res.safeArea", "res.pixelRatio", "res.fontSizeSetting", "res.battery", "res.language", "res.screenRatio", "res.orientation", "fail"], "domain": "device/system-information", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-system-info.md", "has_taro_example": true},
208
208
  {"id": "tt.getSystemInfoSync", "type": "api", "name": "tt.getSystemInfoSync", "summary_zh": "获取系统信息。", "search_terms_zh": ["tt.getSystemInfoSync", "getSystemInfoSync", "获取系统信息。", "device/system-information", "useCache", "SystemInfo", "SystemInfo.system", "SystemInfo.platform", "SystemInfo.brand", "SystemInfo.model", "SystemInfo.version", "SystemInfo.appName", "SystemInfo.SDKVersion", "SystemInfo.screenWidth", "SystemInfo.screenHeight", "SystemInfo.windowWidth", "SystemInfo.windowHeight", "SystemInfo.fullScreenWindowHeight", "SystemInfo.statusBarHeight", "SystemInfo.safeArea", "SystemInfo.safeArea.left", "SystemInfo.safeArea.right", "SystemInfo.safeArea.top", "SystemInfo.safeArea.bottom", "SystemInfo.safeArea.width", "SystemInfo.safeArea.height", "SystemInfo.pixelRatio", "SystemInfo.fontSizeSetting", "SystemInfo.battery", "SystemInfo.language", "SystemInfo.screenRatio", "SystemInfo.orientation"], "domain": "device/system-information", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-system-info-sync.md", "has_taro_example": true},
209
- {"id": "tt.getUpdateManager", "type": "api", "name": "tt.getUpdateManager", "summary_zh": "获取全局唯一的版本更新管理器 updateManager 实例,用于管理小程序更新。", "search_terms_zh": ["tt.getUpdateManager", "getUpdateManager", "获取全局唯一的版本更新管理器 updateManager 实例,用于管理小程序更新。", "foundation/update", "UpdateManager"], "domain": "foundation/update", "constraints": {"min_base_library": "1.9.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-update-manager.md", "has_taro_example": true},
209
+ {"id": "tt.getUpdateManager", "type": "api", "name": "tt.getUpdateManager", "summary_zh": "获取全局唯一的版本更新管理器 updateManager 实例,用于管理小程序更新。", "search_terms_zh": ["tt.getUpdateManager", "getUpdateManager", "获取全局唯一的版本更新管理器 updateManager 实例,用于管理小程序更新。", "foundation/update", "UpdateManager", "tt.UpdateManager.applyUpdate", "applyUpdate", "应用新版本", "tt.UpdateManager.onCheckForUpdate", "onCheckForUpdate", "版本信息请求完成的回调", "tt.UpdateManager.onUpdateFailed", "onUpdateFailed", "新版本下载失败的回调", "tt.UpdateManager.onUpdateReady", "onUpdateReady", "新版本下载成功的回调"], "domain": "foundation/update", "constraints": {"min_base_library": "1.9.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-update-manager.md", "has_taro_example": true},
210
210
  {"id": "tt.getUserProfile", "type": "api", "name": "tt.getUserProfile", "summary_zh": "获取用户的基本信息,只可在 tap 事件回调中调用,每次调用都会弹出授权提示窗,若用户同意,则会返回用户的真实数据。", "search_terms_zh": ["tt.getUserProfile", "getUserProfile", "specialGetUserProfile", "获取用户的基本信息,只可在 tap 事件回调中调用,每次调用都会弹出授权提示窗,若用户同意,则会返回用户的真实数据。", "open-interface/user-information", "force", "success", "res", "res.errMsg", "res.userInfo", "res.userInfo.avatarUrl", "res.userInfo.nickName", "res.userInfo.gender", "res.userInfo.city", "res.userInfo.province", "res.userInfo.country", "res.userInfo.language", "res.rawData", "res.signature", "res.encryptedData", "res.iv", "fail"], "domain": "open-interface/user-information", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-user-profile.md", "has_taro_example": true},
211
211
  {"id": "tt.getWifiList", "type": "api", "name": "tt.getWifiList", "summary_zh": "请求获取 Wi-Fi 列表(对应打开手机 Wi-Fi 配置可以扫描到的 Wi-Fi 列表),需配合 tt.onGetWifiList 使用,在 tt.onGetWifiList 注册的回调中返回 wifiList 数据。", "search_terms_zh": ["tt.getWifiList", "getWifiList", "请求获取 Wi-Fi 列表(对应打开手机 Wi-Fi 配置可以扫描到的 Wi-Fi 列表),需配合 tt.onGetWifiList 使用,在 tt.onGetWifiList 注册的回调中返回 wifiList 数据。", "device/network-state", "success", "res", "res.errMsg", "fail"], "domain": "device/network-state", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "get-wifi-list.md", "has_taro_example": true},
212
212
  {"id": "tt.hideHomeButton", "type": "api", "name": "tt.hideHomeButton", "summary_zh": "隐藏返回首页按钮。", "search_terms_zh": ["tt.hideHomeButton", "hideHomeButton", "隐藏返回首页按钮。", "interface/navigation-bar", "success", "res", "res.errMsg", "fail"], "domain": "interface/navigation-bar", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "hide-home-button.md", "has_taro_example": true},
@@ -328,7 +328,7 @@
328
328
  {"id": "tt.openWebcastRoom", "type": "api", "name": "tt.openWebcastRoom", "summary_zh": "\"直播间 提供从小程序跳转到直播间的能力。", "search_terms_zh": ["tt.openWebcastRoom", "openWebcastRoom", "\"直播间 提供从小程序跳转到直播间的能力。", "live", "awemeId"], "domain": "live", "constraints": {"min_base_library": "2.53.0", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "open-webcast-room.md", "has_taro_example": true},
329
329
  {"id": "tt.pageScrollTo", "type": "api", "name": "tt.pageScrollTo", "summary_zh": "滚动当前展示页面(页面栈处于最上层)到目标位置,支持滚动距离和选择器两种方式定位,滚动距离优先级高于选择器。", "search_terms_zh": ["tt.pageScrollTo", "pageScrollTo", "滚动当前展示页面(页面栈处于最上层)到目标位置,支持滚动距离和选择器两种方式定位,滚动距离优先级高于选择器。", "interface/page-location", "selector", "offsetTop", "duration", "scrollTop", "success", "res", "res.errMsg", "fail"], "domain": "interface/page-location", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "page-scroll-to.md", "has_taro_example": true},
330
330
  {"id": "tt.pay", "type": "api", "name": "tt.pay", "summary_zh": "调起字节小程序收银台进行支付。", "search_terms_zh": ["tt.pay", "pay", "调起字节小程序收银台进行支付。", "open-interface/pay", "orderInfo", "service", "_debug"], "domain": "open-interface/pay", "constraints": {"min_base_library": "1.19.4", "requires_user_auth": "unknown", "web_simulator_support": "unknown"}, "detail": "pay.md", "has_taro_example": true},
331
- {"id": "tt.preloadVideo", "type": "api", "name": "tt.preloadVideo", "summary_zh": "创建视频预加载任务。", "search_terms_zh": ["tt.preloadVideo", "preloadVideo", "创建视频预加载任务。", "media/video", "src", "size", "PreloadVideoTask", "success", "res", "res.errMsg", "fail"], "domain": "media/video", "constraints": {"min_base_library": "2.8.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "preload-video.md", "has_taro_example": true},
331
+ {"id": "tt.preloadVideo", "type": "api", "name": "tt.preloadVideo", "summary_zh": "创建视频预加载任务。", "search_terms_zh": ["tt.preloadVideo", "preloadVideo", "创建视频预加载任务。", "media/video", "src", "size", "PreloadVideoTask", "success", "res", "res.errMsg", "fail", "tt.PreloadVideoTask.abort", "abort", "中断视频预加载任务"], "domain": "media/video", "constraints": {"min_base_library": "2.8.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "preload-video.md", "has_taro_example": true},
332
332
  {"id": "tt.PreloadVideoTask.abort", "type": "api", "name": "tt.PreloadVideoTask.abort", "summary_zh": "中断视频预加载任务。", "search_terms_zh": ["tt.PreloadVideoTask.abort", "PreloadVideoTask.abort", "中断视频预加载任务。", "media/video/preload-video-task"], "domain": "media/video/preload-video-task", "constraints": {"min_base_library": "2.8.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "preload-video-task-abort.md", "has_taro_example": true},
333
333
  {"id": "tt.prerenderVideo", "type": "api", "name": "tt.prerenderVideo", "summary_zh": "预渲染视频。", "search_terms_zh": ["tt.prerenderVideo", "prerenderVideo", "预渲染视频。", "media/video", "size", "src", "success", "res", "res.errMsg", "fail"], "domain": "media/video", "constraints": {"min_base_library": "3.16.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "prerender-video.md", "has_taro_example": true},
334
334
  {"id": "tt.previewImage", "type": "api", "name": "tt.previewImage", "summary_zh": "预览一组图片。", "search_terms_zh": ["tt.previewImage", "previewImage", "预览一组图片。", "media/picture", "current", "showmenu", "urls", "success", "res", "res.errMsg", "res.invalidId", "fail"], "domain": "media/picture", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "preview-image.md", "has_taro_example": true},
@@ -356,7 +356,7 @@
356
356
  {"id": "tt.removeStorageSync", "type": "api", "name": "tt.removeStorageSync", "summary_zh": "从本地缓存数据中删除 key 对应的值。", "search_terms_zh": ["tt.removeStorageSync", "removeStorageSync", "从本地缓存数据中删除 key 对应的值。", "data-caching", "key"], "domain": "data-caching", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "remove-storage-sync.md", "has_taro_example": true},
357
357
  {"id": "tt.removeTabBarBadge", "type": "api", "name": "tt.removeTabBarBadge", "summary_zh": "移除 tabBar 某一项右上角的文本。", "search_terms_zh": ["tt.removeTabBarBadge", "removeTabBarBadge", "移除 tabBar 某一项右上角的文本。", "interface/tab-bar", "index", "success", "res", "res.errMsg", "fail"], "domain": "interface/tab-bar", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "remove-tab-bar-badge.md", "has_taro_example": true},
358
358
  {"id": "tt.reportAnalytics", "type": "api", "name": "tt.reportAnalytics", "summary_zh": "自定义分析数据上报接口,调用后,会将数据上报到小程序开发者平台,开发者可以在小程序开发者平台中查看上报数据。", "search_terms_zh": ["tt.reportAnalytics", "reportAnalytics", "自定义分析数据上报接口,调用后,会将数据上报到小程序开发者平台,开发者可以在小程序开发者平台中查看上报数据。", "open-interface/data-analysis", "event", "data"], "domain": "open-interface/data-analysis", "constraints": {"min_base_library": "1.8.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "report-analytics.md", "has_taro_example": true},
359
- {"id": "tt.request", "type": "api", "name": "tt.request", "summary_zh": "发起 HTTPS 网络请求。", "search_terms_zh": ["tt.request", "request", "发起 HTTPS 网络请求。", "network/http", "header", "data", "method", "url", "timeout", "enableCache", "dataType", "responseType", "RequestTask", "success", "res", "res.errMsg", "res.statusCode", "res.profile", "res.profile.domainLookupStart", "res.profile.domainLookupEnd", "res.profile.connectStart", "res.profile.connectEnd", "res.profile.sslConnectionStart", "res.profile.sslConnectionEnd", "res.profile.requestStart", "res.profile.requestEnd", "res.profile.rtt", "res.profile.estimateNetType", "res.profile.throughputKbps", "res.profile.port", "res.profile.socketReused", "res.profile.sentBytesCount", "res.profile.receivedBytesCount", "res.data", "fail"], "domain": "network/http", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "request.md", "has_taro_example": true},
359
+ {"id": "tt.request", "type": "api", "name": "tt.request", "summary_zh": "发起 HTTPS 网络请求。", "search_terms_zh": ["tt.request", "request", "发起 HTTPS 网络请求。", "network/http", "header", "data", "method", "url", "timeout", "enableCache", "dataType", "responseType", "RequestTask", "success", "res", "res.errMsg", "res.statusCode", "res.profile", "res.profile.domainLookupStart", "res.profile.domainLookupEnd", "res.profile.connectStart", "res.profile.connectEnd", "res.profile.sslConnectionStart", "res.profile.sslConnectionEnd", "res.profile.requestStart", "res.profile.requestEnd", "res.profile.rtt", "res.profile.estimateNetType", "res.profile.throughputKbps", "res.profile.port", "res.profile.socketReused", "res.profile.sentBytesCount", "res.profile.receivedBytesCount", "res.data", "fail", "tt.RequestTask.abort", "abort", "中断请求任务"], "domain": "network/http", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "request.md", "has_taro_example": true},
360
360
  {"id": "tt.requestOrder", "type": "api", "name": "tt.requestOrder", "summary_zh": "提供预下单能力,开发者通过调用该方法生成订单,返回订单号和订单信息。", "search_terms_zh": ["tt.requestOrder", "requestOrder", "提供预下单能力,开发者通过调用该方法生成订单,返回订单号和订单信息。", "industry/trading-system/pre-order", "data", "byteAuthorization", "success", "orderId", "itemOrderList", "itemOrderList.itemOrderId", "itemOrderList.skuId", "itemOrderList.itemOrderAmount", "logId", "fail", "errNo", "errMsg", "errLogId"], "domain": "industry/trading-system/pre-order", "constraints": {"min_base_library": "2.51.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "request-order.md", "has_taro_example": true},
361
361
  {"id": "tt.requestSubscribeMessage", "type": "api", "name": "tt.requestSubscribeMessage", "summary_zh": "调起客户端订阅消息界面,返回用户订阅消息的操作结果。", "search_terms_zh": ["tt.requestSubscribeMessage", "requestSubscribeMessage", "specialRequestSubscribeMessage", "调起客户端订阅消息界面,返回用户订阅消息的操作结果。", "open-interface/subscribe-message", "tmplIds", "success", "res", "res.templateSettings", "res.templateSettings.[TEMPLAT_ID]", "res.templateSettings.[TEMPLAT_ID].status", "res.templateSettings.[TEMPLAT_ID].alwaysSubscribe", "res.templateSettings.[TEMPLAT_ID].allowReminderWay", "res.templateSettings.[TEMPLAT_ID].allowReminderWay.reminderType", "res.templateSettings.[TEMPLAT_ID].allowReminderWay.reminderStatus", "res.errMsg", "fail"], "domain": "open-interface/subscribe-message", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "request-subscribe-message.md", "has_taro_example": true},
362
362
  {"id": "tt.RequestTask.abort", "type": "api", "name": "tt.RequestTask.abort", "summary_zh": "中断请求任务。", "search_terms_zh": ["tt.RequestTask.abort", "RequestTask.abort", "中断请求任务。", "network/http/request-task"], "domain": "network/http/request-task", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "request-task-abort.md", "has_taro_example": true},
@@ -434,7 +434,7 @@
434
434
  {"id": "tt.UpdateManager.onUpdateFailed", "type": "api", "name": "tt.UpdateManager.onUpdateFailed", "summary_zh": "小程序冷启动后,如果有更新版本,客户端会触发新版本下载,当新版本下载失败(比如网络错误),会进行回调。", "search_terms_zh": ["tt.UpdateManager.onUpdateFailed", "UpdateManager.onUpdateFailed", "小程序冷启动后,如果有更新版本,客户端会触发新版本下载,当新版本下载失败(比如网络错误),会进行回调。", "foundation/update/update-manager", "callback", "callback.err"], "domain": "foundation/update/update-manager", "constraints": {"min_base_library": "1.9.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "update-manager-on-update-failed.md", "has_taro_example": true},
435
435
  {"id": "tt.UpdateManager.onUpdateReady", "type": "api", "name": "tt.UpdateManager.onUpdateReady", "summary_zh": "当新版本下载完成,会进行回调。", "search_terms_zh": ["tt.UpdateManager.onUpdateReady", "UpdateManager.onUpdateReady", "当新版本下载完成,会进行回调。", "foundation/update/update-manager", "callback"], "domain": "foundation/update/update-manager", "constraints": {"min_base_library": "1.9.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "update-manager-on-update-ready.md", "has_taro_example": true},
436
436
  {"id": "tt.updateSidebarActivity", "type": "api", "name": "tt.updateSidebarActivity", "summary_zh": "实时更新侧边栏活动的圈选用户,将用户和特定侧边栏活动绑定或解绑。", "search_terms_zh": ["tt.updateSidebarActivity", "updateSidebarActivity", "实时更新侧边栏活动的圈选用户,将用户和特定侧边栏活动绑定或解绑。", "open-interface/sidebar", "type", "activity", "success", "res", "res.errMsg", "res.logId", "fail"], "domain": "open-interface/sidebar", "constraints": {"min_base_library": "3.26.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "update-sidebar-activity.md", "has_taro_example": true},
437
- {"id": "tt.uploadFile", "type": "api", "name": "tt.uploadFile", "summary_zh": "将本地资源上传到服务器。", "search_terms_zh": ["tt.uploadFile", "uploadFile", "将本地资源上传到服务器。", "network/http", "header", "formData", "timeout", "url", "filePath", "name", "UploadTask", "success", "res", "res.errMsg", "res.statusCode", "res.profile", "res.profile.domainLookupStart", "res.profile.domainLookupEnd", "res.profile.connectStart", "res.profile.connectEnd", "res.profile.sslConnectionStart", "res.profile.sslConnectionEnd", "res.profile.requestStart", "res.profile.requestEnd", "res.profile.rtt", "res.profile.estimateNetType", "res.profile.throughputKbps", "res.profile.port", "res.profile.socketReused", "res.profile.sentBytesCount", "res.profile.receivedBytesCount", "res.data", "fail"], "domain": "network/http", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "upload-file.md", "has_taro_example": true},
437
+ {"id": "tt.uploadFile", "type": "api", "name": "tt.uploadFile", "summary_zh": "将本地资源上传到服务器。", "search_terms_zh": ["tt.uploadFile", "uploadFile", "将本地资源上传到服务器。", "network/http", "header", "formData", "timeout", "url", "filePath", "name", "UploadTask", "success", "res", "res.errMsg", "res.statusCode", "res.profile", "res.profile.domainLookupStart", "res.profile.domainLookupEnd", "res.profile.connectStart", "res.profile.connectEnd", "res.profile.sslConnectionStart", "res.profile.sslConnectionEnd", "res.profile.requestStart", "res.profile.requestEnd", "res.profile.rtt", "res.profile.estimateNetType", "res.profile.throughputKbps", "res.profile.port", "res.profile.socketReused", "res.profile.sentBytesCount", "res.profile.receivedBytesCount", "res.data", "fail", "tt.UploadTask.abort", "abort", "中断上传任务", "tt.UploadTask.offProgressUpdate", "offProgressUpdate", "取消监听上传进度变化事件", "tt.UploadTask.onProgressUpdate", "onProgressUpdate", "监听上传进度变化事件"], "domain": "network/http", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "upload-file.md", "has_taro_example": true},
438
438
  {"id": "tt.UploadTask.abort", "type": "api", "name": "tt.UploadTask.abort", "summary_zh": "中断上传任务。", "search_terms_zh": ["tt.UploadTask.abort", "UploadTask.abort", "中断上传任务。", "network/http/upload-task"], "domain": "network/http/upload-task", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "upload-task-abort.md", "has_taro_example": true},
439
439
  {"id": "tt.UploadTask.offProgressUpdate", "type": "api", "name": "tt.UploadTask.offProgressUpdate", "summary_zh": "取消监听上传进度变化事件,其中 UploadTask 是通过 tt.uploadFile() 返回的对象。", "search_terms_zh": ["tt.UploadTask.offProgressUpdate", "UploadTask.offProgressUpdate", "取消监听上传进度变化事件,其中 UploadTask 是通过 tt.uploadFile() 返回的对象。", "network/http/upload-task", "callback", "callback.param", "callback.param.progress", "callback.param.totalBytesSent", "callback.param.totalBytesExpectedToSend"], "domain": "network/http/upload-task", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "upload-task-off-progress-update.md", "has_taro_example": true},
440
440
  {"id": "tt.UploadTask.onProgressUpdate", "type": "api", "name": "tt.UploadTask.onProgressUpdate", "summary_zh": "监听上传进度变化事件,其中 UploadTask 是 tt.uploadFile() 返回的对象", "search_terms_zh": ["tt.UploadTask.onProgressUpdate", "UploadTask.onProgressUpdate", "监听上传进度变化事件,其中 UploadTask 是 tt.uploadFile() 返回的对象", "network/http/upload-task", "callback", "callback.param", "callback.param.progress", "callback.param.totalBytesSent", "callback.param.totalBytesExpectedToSend"], "domain": "network/http/upload-task", "constraints": {"min_base_library": "1.0.0", "requires_user_auth": false, "web_simulator_support": "unknown"}, "detail": "upload-task-on-progress-update.md", "has_taro_example": true},
@@ -21,7 +21,30 @@
21
21
 
22
22
  ## 返回值
23
23
 
24
- 无。
24
+ 返回 `SocketTask` 实例。实例属性和方法见下方说明。
25
+
26
+ ## 返回实例:`SocketTask`
27
+
28
+ ### 只读属性
29
+
30
+ | 属性 | 类型 | 默认值 | 必填 | 最低基础库 | 说明 |
31
+ | --- | --- | --- | --- | --- | --- |
32
+ | `readyState` | number \| undefined | - | - | 1.0.0 | 表示 Socket 连接状态 code; 若由于参数错误导致未创建连接, 则为 undefined;可选值:CONNECTING=0, OPEN=1, CLOSING=2, CLOSED=3 |
33
+
34
+ ### 实例方法
35
+
36
+ | 方法 | 说明 | 最低基础库 | 详细说明 |
37
+ | --- | --- | --- | --- |
38
+ | `close` | 关闭 WebSocket 连接 | 1.0.0 | [原子能力说明](socket-task-close.md) |
39
+ | `offClose` | SocketTask.offClose | unknown | - |
40
+ | `offError` | SocketTask.offError | unknown | - |
41
+ | `offMessage` | SocketTask.offMessage | unknown | - |
42
+ | `offOpen` | SocketTask.offOpen | unknown | - |
43
+ | `onClose` | 监听 WebSocket 与服务器的连接断开的事件 | 1.0.0 | [原子能力说明](socket-task-on-close.md) |
44
+ | `onError` | 监听 WebSocket 发生错误的事件 | 1.0.0 | [原子能力说明](socket-task-on-error.md) |
45
+ | `onMessage` | 监听 WebSocket 接收到服务器发送信息的事件 | 1.0.0 | [原子能力说明](socket-task-on-message.md) |
46
+ | `onOpen` | 监听 WebSocket 连接服务器成功的事件 | 1.0.0 | [原子能力说明](socket-task-on-open.md) |
47
+ | `send` | 通过 WebSocket 连接发送数据 | 1.0.0 | [原子能力说明](socket-task-send.md) |
25
48
 
26
49
  ## 回调
27
50
 
@@ -20,7 +20,17 @@
20
20
 
21
21
  ## 返回值
22
22
 
23
- 无。
23
+ 返回 `BytennEngineContext` 实例。实例属性和方法见下方说明。
24
+
25
+ ## 返回实例:`BytennEngineContext`
26
+
27
+ ### 实例方法
28
+
29
+ | 方法 | 说明 | 最低基础库 | 详细说明 |
30
+ | --- | --- | --- | --- |
31
+ | `load` | 加载配置好的神经网络引擎。 | 2.29.0 | [原子能力说明](bytenn-engine-context-load.md) |
32
+ | `onError` | 设置当前 context 的加载失败回调。 | unknown | - |
33
+ | `onLoad` | 设置当前 context 的加载成功回调。 | unknown | - |
24
34
 
25
35
  ## 回调
26
36
 
@@ -21,6 +21,18 @@
21
21
  | --- | --- | --- | --- | --- | --- |
22
22
  | `CameraContext` | object | 未标注 | - | 1.78.0 | CameraContext |
23
23
 
24
+ ## 返回实例:`CameraContext`
25
+
26
+ ### 实例方法
27
+
28
+ | 方法 | 说明 | 最低基础库 | 详细说明 |
29
+ | --- | --- | --- | --- |
30
+ | `onCameraFrame` | 监听 camera 的实时帧数据 | 1.78.0 | [原子能力说明](camera-context-on-camera-frame.md) |
31
+ | `setZoom` | 设置 camera 的缩放级别 | 1.78.0 | [原子能力说明](camera-context-set-zoom.md) |
32
+ | `startRecord` | 开始录像 | 2.41.0 | [原子能力说明](camera-context-start-record.md) |
33
+ | `stopRecord` | 结束录像 | 2.41.0 | [原子能力说明](camera-context-stop-record.md) |
34
+ | `takePhoto` | 拍摄照片 | 2.41.0 | [原子能力说明](camera-context-take-photo.md) |
35
+
24
36
  ## 回调
25
37
 
26
38
  无元数据。
@@ -19,7 +19,51 @@
19
19
 
20
20
  ## 返回值
21
21
 
22
- 无。
22
+ 返回 `CanvasContext` 实例。实例属性和方法见下方说明。
23
+
24
+ ## 返回实例:`CanvasContext`
25
+
26
+ ### 实例方法
27
+
28
+ | 方法 | 说明 | 最低基础库 | 详细说明 |
29
+ | --- | --- | --- | --- |
30
+ | `arc` | 根据指定方向(默认顺时针)从起始点开始创建一条弧线 | 1.0.0 | [原子能力说明](canvas-context-arc.md) |
31
+ | `beginPath` | 开始创建一个新的路径 | 1.0.0 | [原子能力说明](canvas-context-begin-path.md) |
32
+ | `bezierCurveTo` | 创建三次方贝塞尔曲线路径。该方法需要三个点。 第一、第二个点是控制点,第三个点是结束点 | 1.0.0 | [原子能力说明](canvas-context-bezier-curve-to.md) |
33
+ | `clearRect` | 清除画布上在该矩形区域内的内容 | 1.0.0 | [原子能力说明](canvas-context-clear-rect.md) |
34
+ | `clip` | 从原始画布中剪切任意形状和尺寸,一旦剪切了某个区域,则所有之后的绘图都会被限制在被剪切的区域内 | 1.0.0 | [原子能力说明](canvas-context-clip.md) |
35
+ | `closePath` | 关闭一个路径,会连接起点和终点 | 1.0.0 | [原子能力说明](canvas-context-close-path.md) |
36
+ | `createLinearGradient` | 创建一个线性的渐变颜色,返回的 CanvasGradient 对象 | 1.0.0 | [原子能力说明](canvas-context-create-linear-gradient.md) |
37
+ | `draw` | 将之前在绘图上下文中的描述(路径、变形、样式)画到 canvas 中 | 1.0.0 | [原子能力说明](canvas-context-draw.md) |
38
+ | `drawImage` | 绘制图像到画布 | 1.0.0 | [原子能力说明](canvas-context-draw-image.md) |
39
+ | `fill` | 对当前路径中的内容进行填充,默认的填充色为黑色 | 1.0.0 | [原子能力说明](canvas-context-fill.md) |
40
+ | `fillRect` | 填充一个矩形,默认颜色为黑色,可通过 CanvasContext.setFillStyle 设置矩形颜色。 | 1.0.0 | [原子能力说明](canvas-context-fill-rect.md) |
41
+ | `fillText` | 在画布上填充指定文本 | 1.0.0 | [原子能力说明](canvas-context-fill-text.md) |
42
+ | `lineTo` | 增加一个新点,然后创建一条从上次指定点到目标点的线 | 1.0.0 | [原子能力说明](canvas-context-line-to.md) |
43
+ | `measureText` | 测量文本尺寸信息。目前仅返回文本宽度 | 1.0.0 | [原子能力说明](canvas-context-measure-text.md) |
44
+ | `moveTo` | 将一个新的子路径的起始点移动到指定点 | 1.0.0 | [原子能力说明](canvas-context-move-to.md) |
45
+ | `quadraticCurveTo` | 创建二次贝塞尔曲线路径。需要 2 个点。 第一个点是控制点,第二个点是终点 | 1.0.0 | [原子能力说明](canvas-context-quadratic-curve-to.md) |
46
+ | `rect` | 创建一个矩形路径 | 1.0.0 | [原子能力说明](canvas-context-rect.md) |
47
+ | `restore` | 恢复之前保存的绘图上下文。包括变换矩阵、剪切区域、虚线列表等 | 1.0.0 | [原子能力说明](canvas-context-restore.md) |
48
+ | `rotate` | 以原点为中心顺时针旋转当前坐标轴。多次调用旋转的角度会叠加。原点可以用 CanvasContext.translate 方法修改 | 1.0.0 | [原子能力说明](canvas-context-rotate.md) |
49
+ | `save` | 保存绘图上下文,保存当前的绘制状态,包括变换矩阵、剪切区域、虚线列表等 | 1.0.0 | [原子能力说明](canvas-context-save.md) |
50
+ | `scale` | 在调用后,之后创建的路径其横纵坐标会被缩放。多次调用倍数会相乘 | 1.0.0 | [原子能力说明](canvas-context-scale.md) |
51
+ | `setFillStyle` | 设置填充的颜色 | 1.0.0 | [原子能力说明](canvas-context-set-fill-style.md) |
52
+ | `setFontSize` | 设置字体的字号 | 1.0.0 | [原子能力说明](canvas-context-set-font-size.md) |
53
+ | `setGlobalAlpha` | 设置全局画笔透明度 | 1.0.0 | [原子能力说明](canvas-context-set-global-alpha.md) |
54
+ | `setLineCap` | 设置线条的端点样式 | 1.0.0 | [原子能力说明](canvas-context-set-line-cap.md) |
55
+ | `setLineDash` | 设置线条虚线样式的间距和长度 | 1.0.0 | [原子能力说明](canvas-context-set-line-dash.md) |
56
+ | `setLineJoin` | 设置线条的交点样式。不设置时默认为尖角样式 | 1.0.0 | [原子能力说明](canvas-context-set-line-join.md) |
57
+ | `setLineWidth` | 设置线条的宽度。不设置时线条宽度默认为 1px | 1.0.0 | [原子能力说明](canvas-context-set-line-width.md) |
58
+ | `setMiterLimit` | 设置最大斜接长度。斜接长度指的是在两条线交汇处内角和外角之间的距离 | 1.0.0 | [原子能力说明](canvas-context-set-miter-limit.md) |
59
+ | `setStrokeStyle` | 设置边框颜色 | 1.0.0 | [原子能力说明](canvas-context-set-stroke-style.md) |
60
+ | `setTextAlign` | 设置文字的对齐方式 | 1.0.0 | [原子能力说明](canvas-context-set-text-align.md) |
61
+ | `setTextBaseline` | 设置文字垂直方向的对齐方式。不设置时表现默认为 alphabetic | 1.0.0 | [原子能力说明](canvas-context-set-text-baseline.md) |
62
+ | `setTransform` | 将一个新的子路径的起始点移动到指定点 | 1.0.0 | [原子能力说明](canvas-context-set-transform.md) |
63
+ | `stroke` | 用于画出当前路径的边框,默认颜色为黑色 | 1.0.0 | [原子能力说明](canvas-context-stroke.md) |
64
+ | `strokeRect` | 设置线条颜色 | 1.0.0 | [原子能力说明](canvas-context-stroke-rect.md) |
65
+ | `transform` | 使用矩阵多次叠加当前变换的方法,矩阵由方法的参数进行描述。可以缩放、旋转、移动和倾斜上下文 | 1.0.0 | [原子能力说明](canvas-context-transform.md) |
66
+ | `translate` | 变换当前坐标系的原点 (0, 0) 。默认的坐标系原点为页面左上角 | 1.0.0 | [原子能力说明](canvas-context-translate.md) |
23
67
 
24
68
  ## 回调
25
69
 
@@ -19,7 +19,27 @@
19
19
 
20
20
  ## 返回值
21
21
 
22
- 无。
22
+ 返回 `EffectCameraStream` 实例。实例属性和方法见下方说明。
23
+
24
+ ## 返回实例:`EffectCameraStream`
25
+
26
+ ### 实例方法
27
+
28
+ | 方法 | 说明 | 最低基础库 | 详细说明 |
29
+ | --- | --- | --- | --- |
30
+ | `dispose` | 关闭相机并释放相机资源,释放后将无法调用 EffectCameraStream 上的 API,如需调用,请通过 tt.createEffectCameraStream 重新创建。 | 2.19.0 | [原子能力说明](effect-camera-stream-dispose.md) |
31
+ | `offError` | 取消对 EffectCameraStream 生命周期错误事件的监听,包括:request, play, stop。取消后 EffectCameraStream.onError 将不触发。 | 2.19.0 | [原子能力说明](effect-camera-stream-off-error.md) |
32
+ | `offPlay` | 取消监听相机开启事件,取消后 EffectCameraStream.onPlay 中的回调参数将不被触发。 | 2.19.0 | [原子能力说明](effect-camera-stream-off-play.md) |
33
+ | `offRequest` | 取消监听相机资源请求事件,取消后 EffectCameraStream.onRequest 的回调参数将不被触发。 | 2.19.0 | [原子能力说明](effect-camera-stream-off-request.md) |
34
+ | `offStop` | 取消监听相机暂停事件。取消后 EffectCameraStream.onStop 中的回调参数将不被触发。 | 2.19.0 | [原子能力说明](effect-camera-stream-off-stop.md) |
35
+ | `onError` | 监听 EffectCameraStream 生命周期中的业务错误,包括:request, play, stop。可通过 EffectCameraStream.offError 取消监听。 | 2.9.0 | [原子能力说明](effect-camera-stream-on-error.md) |
36
+ | `onPlay` | 监听相机开启事件成功事件,资源请求成功后触发。可通过 EffectCameraStream.offPlay 取消监听。 | 2.19.0 | [原子能力说明](effect-camera-stream-on-play.md) |
37
+ | `onRequest` | 监听相机资源请求成功事件,资源请求成功后触发,可通过 EffectCameraStream.offRequest 取消监听。 | 2.19.0 | [原子能力说明](effect-camera-stream-on-request.md) |
38
+ | `onStop` | 监听相机暂停事件(EffectCameraStream.stop)成功事件。可通过 EffectCameraStream.offStop 取消监听。 | 2.19.0 | [原子能力说明](effect-camera-stream-on-stop.md) |
39
+ | `paintTo` | 将相机数据绘制到指定的 canvas 画布区域(仅适用于 canvas V2)。 | 2.19.0 | [原子能力说明](effect-camera-stream-paint-to.md) |
40
+ | `play` | 开启相机,通过 EffectCameraStream.onPlay 可监听该请求成功事件,成功后返回相机数据 EffectCameraVideo 实例。通过 EffectCameraStream.onError 可监听该请求失败事件。 | 2.19.0 | [原子能力说明](effect-camera-stream-play.md) |
41
+ | `request` | 设置数据源(相机)参数,并请求相机资源,用户授权后将占用相机资源。通过 EffectCameraStream.onRequest 可监听该请求成功事件。通过 EffectCameraStream.onError 可监听请求失败事件。 | 2.19.0 | [原子能力说明](effect-camera-stream-request.md) |
42
+ | `stop` | 暂停相机的使用并停止更新数据,调用后若有其他数据流处理事件,则继续执行该处理逻辑到 stop 前的最后一帧(没有销毁底层相机图像缓冲区,只是不再更新数据)。通过 EffectCameraStream.onStop 可监听该请求成功事件。通过 EffectCameraStream.onError 可监听该请求失败事件。 | 2.19.0 | [原子能力说明](effect-camera-stream-stop.md) |
23
43
 
24
44
  ## 回调
25
45