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
adA 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
adA reference to the object that invoked the method.
-
Notifies that the ad will show the modal
UIViewControllerin response to the user interacting with the banner.Declaration
Swift
@objc optional func sliderAd(_ ad: SliderAd, willPresentScreen viewController: UIViewController?)Parameters
adA reference to the object that invoked the method.
viewControllerModal
UIViewController. -
Notifies that the ad finished showing the modal
UIViewControllerin response to the user interacting with the banner.Declaration
Swift
@objc optional func sliderAd(_ ad: SliderAd, didDismissScreen viewController: UIViewController?)Parameters
adA reference to the object that invoked the method.
viewControllerModal
UIViewController. -
Notifies delegate when an impression was tracked.
Declaration
Swift
@objc(sliderAd:didTrackImpressionWithData:) optional func sliderAd(_ ad: SliderAd, didTrackImpressionWith impressionData: ImpressionData?)Parameters
adA reference to the object that invoked the method.
impressionDataAd 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
adA reference to the object that invoked the method.