invoke

abstract suspend operator fun invoke(assetKey: <Error class: unknown class>): PublicAssetResult

Function that enables downloading a public asset by its asset-key, mostly used for avatar pictures Internally, if the asset doesn't exist locally, this will download it first and then return it

Return

PublicAssetResult with a ByteArray in case of success or CoreFailure on failure

Parameters

assetKey

the asset identifier