未验证 提交 46e65a41 编写于 作者: O openharmony_ci 提交者: Gitee

!19973 翻译完成:19609+18639 修改image doc + 支持任务配置为不被用户手动删除docs提交

Merge pull request !19973 from wusongqing/TR19609
......@@ -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.<br>Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags<sup>10+</sup>](#svg-tags). |
| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.<br>Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags<sup>10+</sup>](#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.<br>Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags<sup>10+</sup>](#svg-tags). |
| uri | string | Yes | Image path. Currently, only the application sandbox path is supported.<br>Currently, the following formats are supported: .jpg, .png, .gif, .bmp, .webp, and raw. For details, see [SVG Tags<sup>10+</sup>](#svg-tags).|
| options | [SourceOptions](#sourceoptions9) | Yes | Image properties, including the image index and default property value.|
**Return value**
......@@ -2285,7 +2285,7 @@ var creator = image.createImageCreator(8192, 8, 4, 8);
## ImageCreator<sup>9+</sup>
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
......
......@@ -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.|
| unclearable<sup>10+</sup> | 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}');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册