VMDUrlFileCollection

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

venueBaseUrl

String with the URL to load remote contents

venueId

Name of the venue to load

destinationPath

Location where files will be stored locally

mapProvider

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
open fun listFiles(baseDirectory: String): Array<String>?
Link copied to clipboard
fun load(venueId: String?, baseDirectory: String = String.format("venue_map_%s/", venueId), mapProvider: MapProvider?, destinationDirectory: String)
Link copied to clipboard
open fun openFile(fileName: String): InputStream?
Link copied to clipboard
fun setMapGeojsonFile(mapGeojsonFile: VMDFile?)
Link copied to clipboard
open fun unzipFiles()

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.

Properties

Link copied to clipboard

Building XML files for legacy VMDs

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard