跳到主要内容

RES.PromiseTaskReporter

   RES

接口    public interface PromiseTaskReporter

资源组的加载进度提示

公共方法

方法
onProgress(current:number,total:number,resItem:RES.ResourceInfo

方法详细信息

onProgress()

public onProgress(current:number,total:number,resItem:RES.ResourceInfo|undefined):void

进度回调,异步执行,加载数目和顺序无关

  • 支持版本:Egret 5.2
  • 运行平台:Web,Native
  • 参数
    • current:number - 当前已经加载数目
    • total:number - 当前资源包内需要资源总数
    • resItem:RES.ResourceInfo|undefined - 当前加载资源信息