提交 66f88854 编写于 作者: T txl

文档完善

Signed-off-by: Ntxl <tangxianglei@huawei.com>
上级 c448dcbc
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
## 导入模块 ## 导入模块
```js ```ts
import deviceAttest from '@ohos.deviceAttest'; import deviceAttest from '@ohos.deviceAttest';
``` ```
...@@ -37,7 +37,7 @@ getAttestStatus(callback: AsyncCallback&lt;AttestResultInfo&gt;) : void ...@@ -37,7 +37,7 @@ getAttestStatus(callback: AsyncCallback&lt;AttestResultInfo&gt;) : void
**示例:** **示例:**
```js ```ts
try { try {
deviceAttest.getAttestStatus((error, value) => { deviceAttest.getAttestStatus((error, value) => {
if (typeof error != 'undefined') { if (typeof error != 'undefined') {
...@@ -78,7 +78,7 @@ getAttestStatus() : Promise&lt;AttestResultInfo&gt; ...@@ -78,7 +78,7 @@ getAttestStatus() : Promise&lt;AttestResultInfo&gt;
**示例:** **示例:**
```js ```ts
try { try {
deviceAttest.getAttestStatus().then((value) => { deviceAttest.getAttestStatus().then((value) => {
console.info("auth:" + value.authResult + " software:" + value.softwareResult + " ticket:" + value.ticket); console.info("auth:" + value.authResult + " software:" + value.softwareResult + " ticket:" + value.ticket);
...@@ -117,7 +117,7 @@ getAttestStatusSync() : AttestResultInfo ...@@ -117,7 +117,7 @@ getAttestStatusSync() : AttestResultInfo
**示例:** **示例:**
```js ```ts
try { try {
let value = deviceAttest.getAttestStatusSync(); let value = deviceAttest.getAttestStatusSync();
console.info("auth:" + value.authResult + " software:" + value.softwareResult + " ticket:" + value.ticket); console.info("auth:" + value.authResult + " software:" + value.softwareResult + " ticket:" + value.ticket);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册