未验证 提交 08b78e6a 编写于 作者: K king_he 提交者: Gitee

update en/application-dev/reference/apis/js-apis-application-context.md.

Signed-off-by: Nking_he <6384784@qq.com>
上级 6e5568fd
# Context # Context
> ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE** > **NOTE**<br>
> 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. > 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. ...@@ -17,18 +17,18 @@ You must extend **AbilityContext** to implement this module.
**System capability**: SystemCapability.Ability.AbilityRuntime.Core **System capability**: SystemCapability.Ability.AbilityRuntime.Core
| Name| Type| Readable| Writable| Description| | Name | Type | Readable | Writable | Description |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| resourceManager | ResourceManager | Yes| No| **ResourceManager** object.| | resourceManager | ResourceManager | Yes | No | **ResourceManager** object. |
| applicationInfo | ApplicationInfo | Yes| No| Information about the application.| | applicationInfo | ApplicationInfo | Yes | No | Information about the application. |
| cacheDir | string | Yes| No| Cache directory of the application on the internal storage.| | cacheDir | string | Yes | No | Cache directory of the application on the internal storage. |
| tempDir | string | Yes| No| Temporary file directory of the application.| | tempDir | string | Yes | No | Temporary file directory of the application. |
| filesDir | string | Yes| No| File directory of the application on the internal storage.| | filesDir | string | Yes | No | File directory of the application on the internal storage. |
| databaseDir | string | Yes| No| Storage directory of local data.| | databaseDir | string | Yes | No | Storage directory of local data. |
| storageDir | string | Yes| No| Storage directory of lightweight data.| | storageDir | string | Yes | No | Storage directory of lightweight data. |
| bundleCodeDir | string | Yes| No| Application installation path.| | bundleCodeDir | string | Yes | No | Application installation path. |
| distributedFilesDir | string | Yes| No| Storage directory of distributed application data files.| | distributedFilesDir | string | Yes | No | Storage directory of distributed application data files. |
| eventHub | [EventHub](js-apis-eventhub.md) | Yes| No| Event hub information.| | eventHub | [EventHub](js-apis-eventhub.md) | Yes | No | Event hub information. |
## Context.createBundleContext ## Context.createBundleContext
...@@ -41,15 +41,15 @@ Creates an application context. ...@@ -41,15 +41,15 @@ Creates an application context.
**Parameters** **Parameters**
| Name| Type| Mandatory| Description| | Name | Type | Mandatory | Description |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| bundleName | string | Yes| Application bundle name.| | bundleName | string | Yes | Application bundle name. |
**Return value** **Return value**
| Type| Description| | Type | Description |
| -------- | -------- | | -------- | -------- |
| Context | Context of the application created.| | Context | Context of the application created. |
**Example** **Example**
...@@ -69,9 +69,9 @@ Obtains the context of this application. ...@@ -69,9 +69,9 @@ Obtains the context of this application.
**Return value** **Return value**
| Type| Description| | Type | Description |
| -------- | -------- | | -------- | -------- |
| Context | Context obtained.| | Context | Context obtained. |
**Example** **Example**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册