VMDUrl File Collection
class VMDUrlFileCollection(venueBaseUrl: String, venueId: String, destinationPath: String, mapProvider: MapProvider, handler: (fileCollection: VMDFileCollection) -> Unit) : VMDFileCollection
Downloads the map.xml and geojson files and stores them in the cache folder
Since
2.0
Parameters
venue Base Url
String with the URL to load remote contents
venue Id
Name of the venue to load
destination Path
Location where files will be stored locally
map Provider
Map provider that is being used
handler
Closure to be called after downloading and copying files
Constructors
Link copied to clipboard
constructor(venueBaseUrl: String, venueId: String, destinationPath: String, mapProvider: MapProvider, handler: (fileCollection: VMDFileCollection) -> Unit)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
An instance of this class will not have any zip files to unzip. This method's logic is implemented in a subclass. NOTE: It might be a better practice to create an interface for the file collection. This was added instead, so that the method signatures didn't have to change for the existing sdk methods.