SliderAdLoaderDelegate
@objc(YMASliderAdLoaderDelegate)
public protocol SliderAdLoaderDelegate : NSObjectProtocol
The protocol defines the methods of a delegate that monitors the ad loading process.
Remark
The methods are invoked by an object of theSliderAdLoader class.
-
Notifies that a slider ad is loaded.
Declaration
Swift
@objc(sliderAdLoader:didLoadAd:) func sliderAdLoader(_ loader: SliderAdLoader, didLoad ad: SliderAd)Parameters
loaderThe loader that sends the message.
adSlider ad that is loaded and ready to be displayed.
-
Notifies that the ad failed to load.
Declaration
Swift
@objc(sliderAdLoader:didFailLoadingWithError:) func sliderAdLoader(_ loader: SliderAdLoader, didFailLoadingWithError error: Error)Parameters
loaderThe loader that sends the message.
errorInformation about the error (for details, see
AdErrorCode)