write

abstract suspend fun write(path: AssetPath, data: ByteArray): AdResult<URI>

Writes the passed data to the cache along the passed AssetPath.

Return

The full local path to the file or error.

Parameters

path

The name of the resource, and, optionally, the name of the subdirectory to store the resource.

data

The data to be cached.