From 3c056d7e81dfd3c99b4924b66a296a3b3bce21cc Mon Sep 17 00:00:00 2001 From: Gloria Date: Tue, 20 Jun 2023 16:27:53 +0800 Subject: [PATCH] Update docs against 19609+18639 Signed-off-by: wusongqing --- en/application-dev/reference/apis/js-apis-image.md | 10 +++++----- .../apis/js-apis-inner-application-missionInfo.md | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/en/application-dev/reference/apis/js-apis-image.md b/en/application-dev/reference/apis/js-apis-image.md index 34337fa919..f3f4531585 100644 --- a/en/application-dev/reference/apis/js-apis-image.md +++ b/en/application-dev/reference/apis/js-apis-image.md @@ -984,7 +984,7 @@ Creates an **ImageSource** instance based on the URI. | Name| Type | Mandatory| Description | | ------ | ------ | ---- | ---------------------------------- | -| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.
Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags10+](#svg-tags). | +| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.
Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags10+](#svg-tags).| **Return value** @@ -997,7 +997,7 @@ Creates an **ImageSource** instance based on the URI. ```js // Stage model const context = getContext(this); -const path = context.cacheDir() + "/test.jpg"; +const path = context.cacheDir + "/test.jpg"; const imageSourceApi = image.createImageSource(path); ``` @@ -1022,7 +1022,7 @@ Creates an **ImageSource** instance based on the URI. | Name | Type | Mandatory| Description | | ------- | ------------------------------- | ---- | ----------------------------------- | -| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.
Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags10+](#svg-tags). | +| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.
Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags10+](#svg-tags).| | options | [SourceOptions](#sourceoptions9) | Yes | Image properties, including the image index and default property value.| **Return value** @@ -2274,7 +2274,7 @@ Creates an **ImageCreator** instance by specifying the image width, height, form | Type | Description | | ------------------------------ | --------------------------------------- | -| [ImageCreator](#imagecreator9) | Returns an **ImageCreator** instance if the operation is successful.| +| [ImageCreator](#imagecreator9) | Returns an **ImageCreator** instance if the operation is successful.| **Example** @@ -2285,7 +2285,7 @@ var creator = image.createImageCreator(8192, 8, 4, 8); ## ImageCreator9+ Provides APIs for applications to request an image native data area and compile native image data. -Before calling any APIs in **ImageCreator**, you must create an **ImageCreator** instance. +Before calling any APIs in **ImageCreator**, you must create an **ImageCreator** instance. **ImageCreator** does not support multiple threads. ### Attributes diff --git a/en/application-dev/reference/apis/js-apis-inner-application-missionInfo.md b/en/application-dev/reference/apis/js-apis-inner-application-missionInfo.md index a9d9ff2f55..721eafcce7 100644 --- a/en/application-dev/reference/apis/js-apis-inner-application-missionInfo.md +++ b/en/application-dev/reference/apis/js-apis-inner-application-missionInfo.md @@ -26,6 +26,7 @@ import missionManager from '@ohos.app.ability.missionManager'; | label | string | Yes| Yes| Label of the mission.| | iconPath | string | Yes| Yes| Path of the mission icon.| | continuable | boolean | Yes| Yes| Whether the mission can be continued on another device.| +| unclearable10+ | boolean | Yes| Yes| Whether the mission can be manually deleted.| **Example** ```ts @@ -47,6 +48,7 @@ try { console.log('getMissionInfo label is: ${JSON.stringify(data.label)}'); console.log('getMissionInfo iconPath is: ${JSON.stringify(data.iconPath)}'); console.log('getMissionInfo continuable is: ${JSON.stringify(data.continuable)}'); + console.log('getMissionInfo unclearable is: ${JSON.stringify(data.unclearable)}'); }); } catch (paramError) { console.error('error: ${paramError.code}, ${paramError.message}'); -- GitLab