getFile
open fun getFile(filerId: String, @Nullable parentDir: String, @NonNull callback: FilerRepository.Callback, @Nullable progressListener: FilerRepository.ProgressListener)
retrieves the file in background thread with the given filerId. If the file is not found in local repository, then it is downloaded from the filer remote server. The downloaded file is stored in the parentDir.
Parameters
filerId
filerId of file.
parentDir
subdirectory to store in. The file downloaded is stored in a dedicated folder for filer files. If parentDir is given, it will be stored in following folder structure `$filerRoot/$parentDir/$downloaded_file`. To get reference to the downloaded file use the callback. If parentDir is null `$filerRoo/$downloaded_file` see also PRESET_PARENT_DIR_MAP_STYLEPRESET_PARENT_DIR_MAP_TILES
callback
callback with the file. To get the path to file, use this file.
Parameters
filerId
callback
callback with path to the file. If the file is not found, it will be downloaded.