SliderAdDelegate

@objc(YMASliderAdDelegate)
public protocol SliderAdDelegate : NSObjectProtocol

Undocumented

  • Notifies that the user has clicked on the ad.

    Declaration

    Swift

    @objc
    optional func sliderAdDidClick(_ ad: SliderAd)

    Parameters

    ad

    A reference to the object that invoked the method.

  • Notifies that the user switched from the ad to an app (for example, the browser).

    Declaration

    Swift

    @objc
    optional func sliderAdWillLeaveApplication(_ ad: SliderAd)

    Parameters

    ad

    A reference to the object that invoked the method.

  • Notifies that the ad will show the modal UIViewController in response to the user interacting with the banner.

    Declaration

    Swift

    @objc
    optional func sliderAd(_ ad: SliderAd, willPresentScreen viewController: UIViewController?)

    Parameters

    ad

    A reference to the object that invoked the method.

    viewController

    Modal UIViewController.

  • Notifies that the ad finished showing the modal UIViewController in response to the user interacting with the banner.

    Declaration

    Swift

    @objc
    optional func sliderAd(_ ad: SliderAd, didDismissScreen viewController: UIViewController?)

    Parameters

    ad

    A reference to the object that invoked the method.

    viewController

    Modal UIViewController.

  • Notifies delegate when an impression was tracked.

    Declaration

    Swift

    @objc(sliderAd:didTrackImpressionWithData:)
    optional func sliderAd(_ ad: SliderAd, didTrackImpressionWith impressionData: ImpressionData?)

    Parameters

    ad

    A reference to the object that invoked the method.

    impressionData

    Ad impression-level revenue data

  • Notifies that the user has chosen a reason for closing the ad and the ad must be hidden.

    Warning

    Advertising will not be hidden. The developer must determine what to do with the ad after the reason for closing it is chosen.

    Declaration

    Swift

    @objc
    optional func sliderAdDidClose(_ ad: SliderAd)

    Parameters

    ad

    A reference to the object that invoked the method.