diff --git a/en/application-dev/reference/apis/js-apis-application-context.md b/en/application-dev/reference/apis/js-apis-application-context.md index 4b58792502051c4046f3000d006a1228c1336704..1955bc22b4ae2cb4ec80c1c7e51e7aa616f47a26 100644 --- a/en/application-dev/reference/apis/js-apis-application-context.md +++ b/en/application-dev/reference/apis/js-apis-application-context.md @@ -1,6 +1,6 @@ # Context -> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** +> **NOTE**
> The initial APIs of this module are supported since API version 9. Newly added APIs will be marked with a superscript to indicate their earliest API version. @@ -17,18 +17,18 @@ You must extend **AbilityContext** to implement this module. **System capability**: SystemCapability.Ability.AbilityRuntime.Core - | Name| Type| Readable| Writable| Description| -| -------- | -------- | -------- | -------- | -------- | -| resourceManager | ResourceManager | Yes| No| **ResourceManager** object.| -| applicationInfo | ApplicationInfo | Yes| No| Information about the application.| -| cacheDir | string | Yes| No| Cache directory of the application on the internal storage.| -| tempDir | string | Yes| No| Temporary file directory of the application.| -| filesDir | string | Yes| No| File directory of the application on the internal storage.| -| databaseDir | string | Yes| No| Storage directory of local data.| -| storageDir | string | Yes| No| Storage directory of lightweight data.| -| bundleCodeDir | string | Yes| No| Application installation path.| -| distributedFilesDir | string | Yes| No| Storage directory of distributed application data files.| -| eventHub | [EventHub](js-apis-eventhub.md) | Yes| No| Event hub information.| + | Name | Type | Readable | Writable | Description | + | -------- | -------- | -------- | -------- | -------- | + | resourceManager | ResourceManager | Yes | No | **ResourceManager** object. | + | applicationInfo | ApplicationInfo | Yes | No | Information about the application. | + | cacheDir | string | Yes | No | Cache directory of the application on the internal storage. | + | tempDir | string | Yes | No | Temporary file directory of the application. | + | filesDir | string | Yes | No | File directory of the application on the internal storage. | + | databaseDir | string | Yes | No | Storage directory of local data. | + | storageDir | string | Yes | No | Storage directory of lightweight data. | + | bundleCodeDir | string | Yes | No | Application installation path. | + | distributedFilesDir | string | Yes | No | Storage directory of distributed application data files. | + | eventHub | [EventHub](js-apis-eventhub.md) | Yes | No | Event hub information. | ## Context.createBundleContext @@ -41,15 +41,15 @@ Creates an application context. **Parameters** - | Name| Type| Mandatory| Description| - | -------- | -------- | -------- | -------- | - | bundleName | string | Yes| Application bundle name.| + | Name | Type | Mandatory | Description | + | -------- | -------- | -------- | -------- | + | bundleName | string | Yes | Application bundle name. | **Return value** - | Type| Description| - | -------- | -------- | - | Context | Context of the application created.| + | Type | Description | + | -------- | -------- | + | Context | Context of the application created. | **Example** @@ -69,9 +69,9 @@ Obtains the context of this application. **Return value** - | Type| Description| - | -------- | -------- | - | Context | Context obtained.| + | Type | Description | + | -------- | -------- | + | Context | Context obtained. | **Example**