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 the SliderAdLoader class.
  • Notifies that a slider ad is loaded.

    Declaration

    Swift

    @objc(sliderAdLoader:didLoadAd:)
    func sliderAdLoader(_ loader: SliderAdLoader, didLoad ad: SliderAd)

    Parameters

    loader

    The loader that sends the message.

    ad

    Slider 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

    loader

    The loader that sends the message.

    error

    Information about the error (for details, see AdErrorCode)