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) -> URL
Parameters
storage
The storage object processing the download.
kind
The kind of URL to be transformed.
url
The original URL to be transformed.
Return Value
A URL that will now be downloaded.