未验证 提交 7696720a 编写于 作者: O openharmony_ci 提交者: Gitee

!10531 马达添加错误码说明

Merge pull request !10531 from 白露/master
......@@ -31,6 +31,14 @@ startVibration(effect: VibrateEffect, attribute: VibrateAttribute, callback: Asy
| attribute | [VibrateAttribute](#vibrateattribute9) | 是 | 马达振动属性。 |
| callback | AsyncCallback<void> | 是 | 回调函数。当马达振动成功,err为undefined,否则为错误对象。 |
**错误码**
以下错误码的详细介绍请参见 [ohos.vibrator错误码](../errorcodes/errorcode-vibrator.md)
| 错误码ID | 错误信息 |
| -------- | ------------------------- |
| 14600101 | Device operation failed。 |
示例:
```js
......@@ -76,6 +84,14 @@ startVibration(effect: VibrateEffect, attribute: VibrateAttribute): Promise<v
| ------------------- | -------------------------------------- |
| Promise<void> | Promise对象。无返回结果的Promise对象。 |
**错误码**
以下错误码的详细介绍请参见 [ohos.vibrator错误码](../errorcodes/errorcode-vibrator.md)
| 错误码ID | 错误信息 |
| -------- | ------------------------- |
| 14600101 | Device operation failed。 |
**示例:**
```js
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册