invalidatePack method

void invalidatePack(
  1. MLNOfflinePack pack, {
  2. required ObjCBlock<Void Function(NSError?)> withCompletionHandler,
})

Invalidates the specified offline pack. This method checks that the tiles in the specified offline pack match those from the server. Local tiles that do not match the latest version on the server are updated.

This is more efficient than deleting the offline pack and downloading it again. If the data stored locally matches that on the server, new data will not be downloaded.

@param pack The offline pack to be invalidated. @param completion The completion handler to call once the pack has been removed. This handler is executed asynchronously on the main queue.

Implementation

void invalidatePack(MLNOfflinePack pack, {required objc.ObjCBlock<ffi.Void Function(objc.NSError?)> withCompletionHandler}) {
_objc_msgSend_o762yo(this.ref.pointer, _sel_invalidatePack_withCompletionHandler_, pack.ref.pointer, withCompletionHandler.ref.pointer);

}