ALAssetUpdateTask Class Reference
Inherits from | NSObject |
---|---|
Declared in | ALAssetUpdateTask.h |
assetUpdateDelegate
The asset update delegate
@property (nonatomic, weak) id<ALAssetUpdateDelegate> assetUpdateDelegate
Declared In
ALAssetUpdateTask.h
assetContext
The asset context
@property (nonatomic, strong) ALAssetContext *assetContext
Declared In
ALAssetUpdateTask.h
assetController
The asset controller
@property (nonatomic, strong, readonly) ALAssetController *assetController
Declared In
ALAssetUpdateTask.h
id
ID string of the update task
@property (nonatomic, readonly) NSString *id
Declared In
ALAssetUpdateTask.h
assetControllerFactory
A factor to create asset controllers
@property (nonatomic, strong, nullable) ALAssetControllerFactory *assetControllerFactory
Declared In
ALAssetUpdateTask.h
– initWithAssetContext:assetUpdateDelegate:assetControllerFactory:
Initializes an ALAssetUpdateTask
- (id)initWithAssetContext:(ALAssetContext *)assetContext assetUpdateDelegate:(id<ALAssetUpdateDelegate>)assetUpdateDelegate assetControllerFactory:(ALAssetControllerFactory *_Nullable)assetControllerFactory
Parameters
assetContext |
|
---|---|
assetUpdateDelegate |
|
assetControllerFactory |
Return Value
an ALAssetUpdateTask
object
Declared In
ALAssetUpdateTask.h
– initWithAssetContext:assetUpdateDelegate:
Initializes an ALAssetUpdateTask
- (id)initWithAssetContext:(ALAssetContext *)assetContext assetUpdateDelegate:(id<ALAssetUpdateDelegate>)assetUpdateDelegate
Parameters
assetContext |
|
---|---|
assetUpdateDelegate |
Return Value
an ALAssetUpdateTask
object
Declared In
ALAssetUpdateTask.h
– checkForUpdates:
Issues request to check if an updated version of the asset is available
- (void)checkForUpdates:(BOOL)downloadIfOutdated
Parameters
downloadIfOutdated |
if false and there are updates, the delegate will only report that an update is available but no downloads will automatically take place |
---|
Declared In
ALAssetUpdateTask.h
– downloadAssets
Issues request to get the latest version of the asset
- (void)downloadAssets
Declared In
ALAssetUpdateTask.h
– removeDownloads
Remove locally-downloaded files associated with the asset
- (void)removeDownloads
Declared In
ALAssetUpdateTask.h
– hasLocalAssets
Call this check whether or not there are locally-downloaded assets on the device
- (BOOL)hasLocalAssets
Return Value
whether there are locally-downloaded assets on the device
Declared In
ALAssetUpdateTask.h