Interface (MediaAssetProgressHandler)

MediaAssetProgressHandler is used to obtain the media asset processing progress from onProgress().

NOTE

  • 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.
  • The initial APIs of this interface are supported since API version 15.

Modules to Import

import { photoAccessHelper } from '@kit.MediaLibraryKit';

onProgress15+

onProgress(progress: number): void

Called when the progress of the requested video is returned.

System capability: SystemCapability.FileManagement.PhotoAccessHelper.Core

Parameters

Name Type Mandatory Description
progress number Yes Progress in percentage.
Value range: [0, 100]