• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Interface (MediaAssetProgressHandler)
2
3> **NOTE**
4>
5> - The initial APIs of this module are supported since API version 10. Newly added APIs will be marked with a superscript to indicate their earliest API version.
6> - The initial APIs of this interface are supported since API version 15.
7
8MediaAssetProgressHandler is used to obtain the media asset processing progress from **onProgress()**.
9
10## Modules to Import
11
12```ts
13import { photoAccessHelper } from '@kit.MediaLibraryKit';
14```
15
16## onProgress<sup>15+</sup>
17
18onProgress(progress: number): void
19
20Called when the progress of the requested video is returned.
21
22**System capability**: SystemCapability.FileManagement.PhotoAccessHelper.Core
23
24**Parameters**
25
26| Name | Type   | Mandatory| Description                      |
27| ------- | ------- | ---- | -------------------------- |
28| progress | number | Yes  | Progress in percentage. <br>Value range: 0 to 100|
29