DingiOfflineStorageDelegate
@protocol DingiOfflineStorageDelegate <NSObject>
The DingiOfflineStorageDelegate protocol defines methods that a delegate of an
DingiOfflineStorage object can optionally implement to transform various types
of URLs before downloading them via the internet.
-
Sent whenever a URL needs to be transformed.
Declaration
Objective-C
- (nonnull NSURL *)offlineStorage:(nonnull DingiOfflineStorage *)storage URLForResourceOfKind:(DingiResourceKind)kind withURL:(nonnull NSURL *)url;Swift
func offlineStorage(_ storage: DingiOfflineStorage, urlForResourceOf kind: DingiResourceKind, with url: URL) -> URLParameters
storageThe storage object processing the download.
kindThe kind of URL to be transformed.
urlThe original URL to be transformed.
Return Value
A URL that will now be downloaded.
DingiOfflineStorageDelegate Protocol Reference