DownloadableAsset
@objc(AASDKDownloadableAsset)
public protocol DownloadableAsset
The AssetDownload
provides support during asset downloading / storage.
-
The file URI for the asset.
Declaration
Swift
@objc var url: URL { get }
-
The asset’s creative type. For audio files, expected values include, but are not limited to “audio/mpeg” and “audio/aac”.
Declaration
Swift
@objc var mimeType: String? { get }
-
The asset’s expected data length in bytes.
Declaration
Swift
@objc var expectedContentLength: Int64 { get }
-
The asset’s status. The default is
.initialized
.Declaration
Swift
@objc var state: DownloadableAssetState { get }
-
The file path on disk where the asset should save its data.
Declaration
Swift
@objc var location: URL { get }