ALAssetController Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | ALAssetController.h |
assetContext
The context used containing information about the asset
@property (nonatomic) ALAssetContext *assetContextDeclared In
ALAssetController.h
– initWithContext:delegate:
Initialize an asset controller
- (instancetype)initWithContext:(ALAssetContext *)context delegate:(NSObject<ALAssetDelegate> *)delegateParameters
context |
the asset context used |
|---|---|
delegate |
the delegate |
Declared In
ALAssetController.h
– initWithContext:
Initialize an asset controller
- (instancetype)initWithContext:(ALAssetContext *)contextParameters
context |
the asset context used |
|---|
Declared In
ALAssetController.h
– checkForUpdates
Checks whether asset updates are available
- (void)checkForUpdatesDeclared In
ALAssetController.h
– reportingValues
Values that can be reported
- (NSString *__nullable)reportingValuesDeclared In
ALAssetController.h
– updateAssets
Updates the assets, only after {@link #checkForUpdates()} was successfully called
- (void)updateAssetsDeclared In
ALAssetController.h
– setupAssetUpdateWithContext:delegate:
Sets up the update process for an asset
- (void)setupAssetUpdateWithContext:(nonnull ALAssetContext *)context delegate:(nullable NSObject<ALAssetDelegate> *)delegateParameters
context |
the asset context |
|---|---|
delegate |
the delegate |
Declared In
ALAssetController.h
– isActive
Returns true if ‘setupAssetUpdateWithContext:delegate:’ was called. Returns false if ‘resetAssetUpdate’ was called or setupAssetUpdateWithContext:delegate:‘ has not been called.
- (BOOL)isActiveDeclared In
ALAssetController.h
– resetAssetUpdate
Resets the asset update functionality. After this is called,
setupAssetUpdateWithContext:delegate: must be called again.
- (void)resetAssetUpdateDeclared In
ALAssetController.h
– isAssetUpdateCanceled
Returns true if ‘cancelUpdate’ was called
- (BOOL)isAssetUpdateCanceledDeclared In
ALAssetController.h
– areLocalAssetsAvailable
Whether any assets have been downloaded. If this returns NO, you should either check for updates and download the updates, or not use an asset context.
- (BOOL)areLocalAssetsAvailableDeclared In
ALAssetController.h
– deleteLocalAssets
Deletes any assets that have been downloaded. After doing this, you should either check for updates and download the updates, or not use an asset context.
- (void)deleteLocalAssetsDeclared In
ALAssetController.h
– restoreFromBackup
Restores the backup of the assets, if they exist
- (void)restoreFromBackupDeclared In
ALAssetController.h
– deleteBackup
Deletes the backup of the assets
- (void)deleteBackupDeclared In
ALAssetController.h