as

Settings
Sign out
Notifications
Alexa
亚马逊应用商店
Ring
AWS
文档
Support
Contact Us
My Cases
新手入门
设计和开发
应用发布
参考
支持
跳转到主要内容
The [tasks] section declares a small routine that can run at specific events during the lifecycle of the application package. At this time the Vega system supports the install event for running such tasks. This task can be used to set up other tasks before the application’s first launch. The task section is optional.

[[tasks.work]]

This subsection describes the task details.

Fields

  • id (string, required): This must refer to a task component id defined in the manifest. By convention, this is represented as <package_id>.<task_name>. The identifier string must follow the rules for package_id:
    • Allowed characters: uppercase letters A-Z, lowercase letters a-z, digits 0-9, dot . and underscore _.
    • Use reverse DNS notation <package_id>.<task_name>.
  • mode (string, required): The package lifecycle event type when the declared task runs. Currently, the only supported event is install. Any other values are ignored.

Examples

You can see an example of the task section in Live TV EPG documentation.
最后修改于 2025年9月30日