未验证 提交 a6eb3be4 编写于 作者: 刘嘉伟 提交者: Gitee

update zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md.

Signed-off-by: Nliujiawei <liujiawei11@huawei.com>
上级 e7b7203a
...@@ -21,14 +21,15 @@ isSupported(feature: number): boolean ...@@ -21,14 +21,15 @@ isSupported(feature: number): boolean
**系统能力**:SystemCapability.Communication.NFC **系统能力**:SystemCapability.Communication.NFC
- 返回值: **返回值:**
| **类型** | **说明** | | **类型** | **说明** |
| -------- | -------- | | -------- | -------- |
| boolean | true:支持该类型卡模拟,&nbsp;false:不支持该类型卡模拟。 | | boolean | true:支持该类型卡模拟,&nbsp;false:不支持该类型卡模拟。 |
## HceService ## HceService
管理HCE卡模拟。在调用HceService的接口前,需要先通过getHceService创建实例。 管理HCE卡模拟。在调用HceService的接口前,需要先通过new cardEmulation.HceService()创建实例。
### startHCE ### startHCE
...@@ -91,7 +92,7 @@ sendResponse(responseApdu: number[]): void; ...@@ -91,7 +92,7 @@ sendResponse(responseApdu: number[]): void;
**示例:** **示例:**
``` ```js
var hceService = new cardEmulation.HceService(); var hceService = new cardEmulation.HceService();
hceService.startHCE([ hceService.startHCE([
"F0010203040506", "A0000000041010" "F0010203040506", "A0000000041010"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册