TileStore
extension TileStore
-
Declaration
Swift
public typealias ContainsCompletion = (Bool?) -> Void -
Checks if all
OfflineRegions in currentTileStorecontain latest version of Navigation tiles.This method iterates all existing
OfflineRegions. If any of the regions have older version of nav tiles or do not have them at all - it will reportfalse.Note
The user-provided callbacks will be executed on a TileStore-controlled worker thread; it is the responsibility of the user to dispatch to a user-controlled thread.
Declaration
Swift
public func containsLatestNavigationTiles(completion: @escaping ContainsCompletion)Parameters
completionA completion callback, reporting the result.
nilis returned if error occured during the process. -
Checks if a tile region with the given id contains latest version of Navigation tiles.
Note
The user-provided callbacks will be executed on a TileStore-controlled worker thread; it is the responsibility of the user to dispatch to a user-controlled thread.
Declaration
Swift
public func tileRegionContainsLatestNavigationTiles(forId regionId: String, completion: @escaping ContainsCompletion)Parameters
regionIdThe tile region identifier.
completionThe result callback. If error occured -
nilwill be returned.
Install in Dash
TileStore Extension Reference