AliyunResourceLoadTask

@interface AliyunResourceLoadTask : NSObject

资源加载任务 API_AVAILABLE(3.27.0)

  • 任务是否完成

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isFinish;
  • 任务原始资源

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AliyunResourceModel *resource;
  • 加载这个任务成功,并返回源

    Declaration

    Objective-C

    - (void)onSuccess:(AEPSource *)source;

    Parameters

    source

    新资源的源实例

  • 忽略这次加载任务

    Declaration

    Objective-C

    - (void)onIgnore;
  • 加载这个任务失败

    Declaration

    Objective-C

    - (void)onFail:(NSError *)error;

    Parameters

    error

    加载失败的错误