js-apis-application-MissionSnapshot.md 724 字节
Newer Older
W
wusongqing 已提交
1 2
# MissionSnapshot

W
wusongqing 已提交
3 4
> **NOTE**
>
W
wusongqing 已提交
5
> The initial APIs of this module are supported since API version 8. Newly added APIs will be marked with a superscript to indicate their earliest API version.
W
wusongqing 已提交
6

7
Provides the snapshot of a mission.
W
wusongqing 已提交
8 9 10 11

## Modules to Import

```
W
wusongqing 已提交
12
import missionManager from '@ohos.application.missionManager'
W
wusongqing 已提交
13 14
import ElementName from '@ohos.bundle';
import image from '@ohos.multimedia.image';
W
wusongqing 已提交
15 16 17 18 19 20
```

## MissionSnapshot

Describes the mission snapshot.

W
wusongqing 已提交
21
| Name| Type| Readable| Writable| Description|
W
wusongqing 已提交
22
| -------- | -------- | -------- | -------- | -------- |
W
wusongqing 已提交
23 24
| ability | ElementName | Yes| Yes| Information that matches an ability.|
| snapshot | [image.PixelMap](js-apis-image.md) | Yes| Yes| Snapshot of the mission.|