AssetResult

class AssetResult(val url: String, val data: ByteArray, val cacheResult: AdResult<URI>)

The result of the AssetRepository retrieval process.

Represents the result of receiving an advertising resource. It necessarily contains the resource data and the url where it was downloaded. In addition, you can observe the caching process. If the resource was successfully cached, you can get the local path to this resource via cacheResult.

Note: In cases of large resource sizes or small cache size, the object may be deleted over time to write a new advertising resources, so the SDK cannot guarantee constant access to the resource via the local path. The best way to retrieve a cached resource is to repeatedly call AssetRepository.getAsset.

See also

Constructors

Link copied to clipboard
constructor(url: String, data: ByteArray, cacheResult: AdResult<URI>)

Properties

Link copied to clipboard

The result of resource caching. It can be a local path to the resource, in case of successful caching, or an error related to caching.

Link copied to clipboard

The data is associated with an advertising resource.

Link copied to clipboard
val url: String

The http/https URL where the resource is located.