提交 c60c9ba7 编写于 作者: G Gloria

Update docs against 15764+15843+15813

Signed-off-by: wusongqing<wusongqing@huawei.com>
上级 5cc343cf
...@@ -948,8 +948,18 @@ Creates an **ImageSource** instance based on the URI. ...@@ -948,8 +948,18 @@ Creates an **ImageSource** instance based on the URI.
**Example** **Example**
```js ```js
let context = featureAbility.getContext(); // Stage model
let path = context.getCacheDir() + "test.jpg"; const context = getContext(this);
const path = context.getCacheDir() + "/test.jpg";
const imageSourceApi = image.createImageSource(path);
```
```js
// FA model
import featureAbility from '@ohos.ability.featureAbility';
const context = featureAbility.getContext();
const path = context.getCacheDir() + "/test.jpg";
const imageSourceApi = image.createImageSource(path); const imageSourceApi = image.createImageSource(path);
``` ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册