提交 6c51de5f 编写于 作者: @ @shi-xiaoxiao-iris

修改示例

Signed-off-by: N@shi-xiaoxiao-iris <shixiaoxiao2@huawei.com>
上级 816f497b
...@@ -828,18 +828,19 @@ setUserOperation(operateAction: number, params: string): void; ...@@ -828,18 +828,19 @@ setUserOperation(operateAction: number, params: string): void;
**示例** **示例**
```js ```js
try { try {
/* /*
operateAction = 0 - 允许授权 operateAction = 0 - 允许授权
operateAction = 1 - 取消授权 operateAction = 1 - 取消授权
operateAction = 2 - 授权框用户操作超时 operateAction = 2 - 授权框用户操作超时
operateAction = 3 - 取消pin码框展示 operateAction = 3 - 取消pin码框展示
operateAction = 4 - 取消pin码输入框展示 operateAction = 4 - 取消pin码输入框展示
operateAction = 5 - pin码输入框确定操作 operateAction = 5 - pin码输入框确定操作
*/ */
dmClass.setUserOperation(operation, "extra") let operation = 0;
} catch (err) { this.dmInstance.setUserOperation(operation, "extra")
console.error("setUserOperation errCode:" + err.code + ",errMessage:" + err.message); } catch (err) {
console.error("setUserOperation errCode:" + err.code + ",errMessage:" + err.message);
} }
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册