API reference

AssetFetcher Interface

Signature

interface AssetFetcher

Methods

fetchAsset ( url , outFile , onSuccess , onError )
Fetches the asset at the given url and downloads it to the given file path
Signature
abstract fun fetchAsset(
    url: Uri,
    outFile: File,
    onSuccess: () -> Unit,
    onError: (Exception) -> Unit,
)
Parameters
url: Uri
outFile: File
onSuccess: () -> Unit
onError: (Exception) -> Unit