API reference

NetworkedAssetLoader

NetworkedAssetLoader

object NetworkedAssetLoader

Properties

NameSummary
TAG
const val TAG: String

Functions

NameSummary
init
fun init(downloadDirectory: File, assetFetcher: AssetFetcher)
requestAsset
fun requestAsset(url: <Error class: unknown class>, extension: String): CompletableFuture<String>
Requests an asset from a remote source. The callback is called after the file is downloaded with a file path that ends with the given extension