diff --git a/en/application-dev/reference/apis/js-apis-image.md b/en/application-dev/reference/apis/js-apis-image.md index 34337fa9198edeeeab9d437bc084538777834d31..f3f4531585703f266dc3e13a3959d8ca64ce1e66 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 a9d9ff2f5515b3ab7487d9236dae5fa055504cad..721eafcce7ed260717e5fe8e3d4847a39bf7daf9 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}');