API 文档模板
备注
请按照下面的模板编写你的 API 文档;
严格使用 reStructuredText 语法;
严格按照模板的各类标签编写。
当你完成后,删除所有说明(类似本条)以及任何额外的头部信息。
支持以下产品:
xxx 单位
xxx 单位
以下是主机端 Speaker 的详细支持:
控制器 |
Atomic Echo Base |
|---|---|
Atom Echo |
⭕ |
Atom Lite |
✅ |
✅:支持。
⭕:可选,它与主机的某些内部资源冲突。
UiFlow2 应用示例
备注
准备一个或多个示例,充分演示 API 的功能。完成后请删除描述中的此部分。
UiFlow2 应用示例 1
MicroPython 应用示例
UiFlow2 应用示例 1
API参考
Function
- func1(arg1: int, arg2: int) int
请提供需要翻译的 PO 条目中 “Function 1” 对应的
msgid原文(最好连同该条目的上下文,如模块/类名、前后段落或完整条目)。目前只有 “Function 1, please write a detailed description of the function.” 这句话,无法确定要描述的是哪个具体函数,也无法按 UIFlow2 / MicroPython 文档风格产出准确的msgstr。UiFlow2 代码块:
MicroPython 代码块:
pass # Please put the MicroPython code of the function, and delete this line when you are done
Class1
- class Class1(arg1: int)
构造函数。
- 参数:
arg1 (int) – 参数 1。
- method1(arg1: int, arg2: int) int
方法 1:请编写该方法的详细说明。
UiFlow2 代码块:
MicroPython 代码块:
pass # Please put the MicroPython code of the function, and delete this line when you are done.
- property property1: int
属性 1:请编写该属性的详细描述。
UiFlow2 代码块:
MicroPython 代码块:
pass # Please put the MicroPython code of the function, and delete this line when you are done.
- static staticmethod1(arg1: int, arg2: int) int
静态方法 1:请编写该静态方法的详细描述。
UiFlow2 代码块:
MicroPython 代码块:
pass # Please put the MicroPython code of the function, and delete this line when you are done.
- classmethod classmethod1(arg1: int, arg2: int) int
请提供需要翻译的 PO 条目(至少包含该方法对应的 msgid 原文;最好连同前后文、方法名/签名、参数说明一起贴出)。目前只有 “Class method 1” 这一句,无法确定具体类方法内容与术语,无法按 UIFlow2 / MicroPython 文档规范写出准确的中文详细描述。
UiFlow2 代码块:
MicroPython 代码块:
pass # Please put the MicroPython code of the function, and delete this line when you are done.
Class2
- class Class2
构造函数。