fromURL

fun fromURL(folder: String? = null, url: String): AssetPath

Creates an AssetPath from the passed folder and resource URL.

When using this method, the asset name will be the MD5 hash of the passed URL.

Parameters

folder

The name of the folder that will be used as a subdirectory; null by default.

url

Http/https URL to your resource, the hash of which will be used as the name of the resource when caching.