addContentsOfURL method
void
addContentsOfURL(
- NSURL fileURL, {
- ObjCBlock<
Void Function(NSURL, NSArray?, NSError?)> ? withCompletionHandler,
Adds the offline packs located at the given URL to offline storage.
The file must be a valid offline pack database bundled with the application or downloaded separately.
The resulting packs are added or updated to the shared offline storage object’s
packs property, then the completion block is executed.
@param fileURL A file URL specifying the file to add. The URL should be a valid system path. The URL must be writable as schema updates may be performed. @param completion The completion handler to call once the contents of the given file has been added to offline storage. This handler is executed asynchronously on the main queue.
Implementation
void addContentsOfURL(objc.NSURL fileURL, {objc.ObjCBlock<ffi.Void Function(objc.NSURL, objc.NSArray?, objc.NSError?)>? withCompletionHandler}) {
_objc_msgSend_o762yo(this.ref.pointer, _sel_addContentsOfURL_withCompletionHandler_, fileURL.ref.pointer, withCompletionHandler?.ref.pointer ?? ffi.nullptr);
}