diff --git a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md index bbf897d68d49ceea7d709c536e7bbd55600e0567..96d1d56624bb13cb4d835f0ad54399b0181874b5 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md +++ b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md @@ -27,11 +27,11 @@ isSupported(feature: number): boolean | -------- | -------- | | boolean | true:支持该类型卡模拟, false:不支持该类型卡模拟。 | -## HceService +## HceService8+ 管理HCE卡模拟。在调用HceService的接口前,需要先通过new cardEmulation.HceService()创建实例。 -### startHCE +### startHCE8+ startHCE(aidList: string[]): boolean @@ -47,7 +47,7 @@ startHCE(aidList: string[]): boolean | ------- | -------- | ---- | ----------------------- | | aidList | string[] | 是 | 注册进行卡模拟的aid列表 | -### stopHCE +### stopHCE8+ stopHCE(): boolean @@ -57,7 +57,7 @@ stopHCE(): boolean **系统能力:** SystemCapability.Communication.NFC.Core -### on +### on8+ on(type: "hceCmd", callback: AsyncCallback): void; @@ -74,7 +74,7 @@ on(type: "hceCmd", callback: AsyncCallback): void; | type | string | 是 | 固定填"hceCmd"字符串 | | callback | AsyncCallback | 是 | 订阅的事件回调,入参是符合APDU协议的数据数组 | -### sendResponse +### sendResponse8+ sendResponse(responseApdu: number[]): void;