File Source
Holds a central reference to the core's DefaultFileSource for as long as there are active mapviews / offline managers
Types
Link copied to clipboard
interface ResourcesCachePathChangeCallback
This callback receives an asynchronous response containing the new path of the resources cache database.
Link copied to clipboard
interface ResourceTransformCallback
This callback allows implementors to transform URLs before they are requested from the internet.
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Get the single instance of FileSource.
Link copied to clipboard
Get internal cache path for a context.
Link copied to clipboard
Get files directory path for a context.
Link copied to clipboard
Initializes file directories paths.
Link copied to clipboard
Link copied to clipboard
Checks if external storage is available to at least read.
Link copied to clipboard
Link copied to clipboard
open fun setResourcesCachePath(@NonNull path: String, @NonNull callback: FileSource.ResourcesCachePathChangeCallback)
open fun setResourcesCachePath(@NonNull context: Context, @NonNull path: String, @NonNull callback: FileSource.ResourcesCachePathChangeCallback)
Changes the path of the resources cache database.
Link copied to clipboard
Sets a callback for transforming URLs requested from the internet The callback will be executed on the main thread once for every requested URL.
Link copied to clipboard