fetchPrivateDecodedAsset
open suspend override fun fetchPrivateDecodedAsset(assetId: String, assetDomain: String?, assetName: String, mimeType: String?, assetToken: String?, encryptionKey: <Error class: unknown class>, assetSHA256Key: <Error class: unknown class>, downloadIfNeeded: Boolean): <Error class: unknown class><<Error class: unknown class>, FetchedAssetData>
Method used to fetch the Path of a decoded private asset
Return
Either a CoreFailure if anything went wrong, or the FetchedAssetData which consists of Path to the decoded asset and a Boolean indicating whether the asset has just been downloaded (true) or was already present locally (false)
Parameters
assetId
the asset identifier
assetName
the name of the original asset
assetToken
the asset token used to provide an extra layer of asset/user authentication
encryptionKey
the asset encryption key used to decrypt an extra layer of asset/user authentication
downloadIfNeeded
flag determining whether it should make a request do download an asset if it's not available locally