AdAsset
@objc(AASDKAdAsset)
public protocol AdAsset
The AdAsset
provides support during asset downloading / caching.
-
The selected media file URI for the asset.
Declaration
Swift
@objc var mediaUrl: String? { get }
-
The asset’s creative type. For audio ads, expected values include, but are not limited to “audio/mpeg” and “audio/aac”.
Declaration
Swift
@objc var mimeType: String? { get }
-
The asset’s creative width. For audio ads, expect 0.
Declaration
Swift
@objc var width: Int { get }
-
The asset’s creative height. For audio ads, expect 0.
Declaration
Swift
@objc var height: Int { get }
-
The asset’s expected data length in bytes.
Declaration
Swift
@objc var expectedContentLength: Int64 { get }
-
The asset’s status. The default is
.initialized
. See theAdAssetState
for possible values.Declaration
Swift
@objc var state: AdAssetState { get }
-
The last error if the asset failed to load.
Declaration
Swift
@objc var lastError: Error? { get }
-
Asset delegate. Optional.
Declaration
Swift
@objc weak var delegate: AdAssetDelegate? { get set }