@@ -7,7 +7,7 @@ import featureAbility from '@ohos.ability.featureAbility'
importbundlefrom'@ohos.bundle'
```
The **Context** object is created in a **featureAbility** and returned through its **getContext()** API. Therefore, you must import the **@ohos.ability.featureAbility** package before using the Context module. An example is as follows:
The **Context** object is created in a **featureAbility** and returned through its **getContext()** API. Therefore, you must import the **@ohos.ability.featureAbility** package before using the **Context** module. An example is as follows:
| callback | AsyncCallback\<number> | Yes | Callback used to return the permission verification result. The value **0** indicates that the PID and UID have the given permission, and the value **-1** indicates that the PID and UID do not have the given permission.|
| callback | AsyncCallback\<number> | Yes | Callback used to return the permission verification result. The value **0** means that the PID and UID have the given permission, and the value **-1** means the opposite.|
**Example**
...
...
@@ -110,10 +110,10 @@ Verifies whether the current PID and UID have the given permission. This API use
| permission | string | Yes | Name of the permission to verify. |
| callback | AsyncCallback\<number> | Yes | Callback used to return the permission verification result. The value **0** indicates that the PID and UID have the given permission, and the value **-1** indicates that the PID and UID do not have the given permission.|
| callback | AsyncCallback\<number> | Yes | Callback used to return the permission verification result. The value **0** means that the PID and UID have the given permission, and the value **-1** means the opposite.|
**Example**
...
...
@@ -133,16 +133,16 @@ Verifies whether a specific PID and UID have the given permission. This API uses
| Promise\<number> | Promise used to return the permission verification result. The value **0**indicates that the PID and UID have the given permission, and the value **-1** indicates that the PID and UID do not have the given permission.|
| Promise\<number> | Promise used to return the permission verification result. The value **0**means that the PID and UID have the given permission, and the value **-1** means the opposite.|
**Example**
...
...
@@ -168,11 +168,11 @@ Requests certain permissions from the system. This API uses an asynchronous call
| callback | AsyncCallback\<string> | Yes | Callback used to return the distributed file path. If the distributed file path does not exist, the system will create one and return the created path.|
**Example**
...
...
@@ -649,7 +687,7 @@ If the distributed file path does not exist, the system will create one and retu