persistAsset

abstract suspend fun persistAsset(assetId: String, assetDomain: String?, decodedDataPath: <Error class: unknown class>, assetDataSize: Long, extension: String?): Either<CoreFailure, <Error class: unknown class>>

Method used to persist to local memory the decoded asset

Return

Either a CoreFailure if anything went wrong, or the Path of the persisted asset

Parameters

assetId

key of the asset to be persisted

assetDomain

domain of the asset to be persisted

decodedDataPath

the path of the unencrypted data to be persisted

assetDataSize

the size of the unencrypted data to be persisted

extension

extension of the asset to be persisted