ALAssetUpdateDelegate Protocol Reference

Conforms to NSObject
Declared in ALAssetUpdateTask.h

Overview

An interface entities outside the SDK should use, they are to be discouraged from using ALAssetController directly to manage updates, even though this will still be possible.

– assetUpdateTask:updatesFound: required method

Called when a request to get updates has completed

- (void)assetUpdateTask:(ALAssetUpdateTask *)task updatesFound:(BOOL)updatesFound

Parameters

task

the asset update task

updatesFound

a boolean indicating whether or not there are updates to be downloaded

Declared In

ALAssetUpdateTask.h

– assetUpdateTask:completedWithError: required method

Called when an update operation is completed (or has errored out)

- (void)assetUpdateTask:(ALAssetUpdateTask *)task completedWithError:(NSError *_Nullable)error

Parameters

task

the asset update task

error

an NSError filled with reason for the failure, if any

Declared In

ALAssetUpdateTask.h

– assetUpdateTask:downloadedFile:progress: required method

Called when a file is downloaded during the update operation

- (void)assetUpdateTask:(ALAssetUpdateTask *)task downloadedFile:(NSString *)fileName progress:(CGFloat)progress

Parameters

task

the asset update task

fileName

the name of the file downloaded

progress

overall progress of the udpate operation

Declared In

ALAssetUpdateTask.h