PresentError
public enum PresentError : LocalizedError, Equatable
Enum representing an error when trying to present an ad.
-
Unexpected error.
Declaration
Swift
case unexpected
-
The ad can’t be presented because it was never requested.
Remember to call the ad’s load method before trying to present it.
Declaration
Swift
case notRequested
-
The underlying network’s ad has expired or is no longer available.
Declaration
Swift
case noLongerAvailable
-
The ad is still loading.
You should wait for the
didLoad(result:)
callback to be called before presenting an ad.Declaration
Swift
case loading
-
The underlying network failed to present the ad. adapterCode is the error code of the underlying adapter, if available.
Declaration
Swift
case presentFailed(adapterCode: Int? = nil)
-
This ad instance has already been used.
Interstitial
andRewarded
ads can only be used once. Create a new ad instance if you want to present a new one.Declaration
Swift
case alreadyUsed
-
Integer representation of the
PresentError
enum casesDeclaration
Swift
public var errorCode: Int { get }
-
Declaration
Swift
public var errorDescription: String? { get }