NativeAdLoaderDelegate
@objc(YMANativeAdLoaderDelegate)
public protocol NativeAdLoaderDelegate : NSObjectProtocol
The protocol defines the methods of a delegate that monitors the ad loading process.
Remark
The methods are invoked by an object of theNativeAdLoader class.
-
Notifies that a native ad is loaded.
Declaration
Swift
@objc(nativeAdLoader:didLoadAd:) func nativeAdLoader(_ loader: NativeAdLoader, didLoad ad: NativeAd)Parameters
loaderThe loader that sends the message.
adNative ad that is loaded and ready to be displayed.
-
Notifies that the ad failed to load.
Declaration
Swift
@objc(nativeAdLoader:didFailLoadingWithError:) func nativeAdLoader(_ loader: NativeAdLoader, didFailLoadingWithError error: Error)Parameters
loaderThe loader that sends the message.
errorInformation about the error (for details, see
AdErrorCode)