AdropPopupAdDelegate

protocol AdropPopupAdDelegate {
    @objc func onAdReceived(_ ad: AdropPopupAd)
    @objc func onAdFailedToReceive(_ ad: AdropPopupAd, _ errorCode: AdropErrorCode)
    
    @objc optional func onAdImpression(_ ad: AdropPopupAd)
    @objc optional func onAdClicked(_ ad: AdropPopupAd)
    
    @objc optional func onAdWillPresentFullScreen(_ ad: AdropPopupAd)
    @objc optional func onAdDidPresentFullScreen(_ ad: AdropPopupAd)
    @objc optional func onAdWillDismissFullScreen(_ ad: AdropPopupAd)
    @objc optional func onAdDidDismissFullScreen(_ ad: AdropPopupAd)
    @objc optional func onAdFailedToShowFullScreen(_ ad: AdropPopupAd, _ errorCode: AdropErrorCode)
}

Delegate called when there is a change in the AdropPopupAd.


Public functions

func onAdReceived(_ ad: AdropPopupAd)

func onAdReceived(_ ad: AdropPopupAd)

This method gets invoked in the UI thread when the AdropPopupAd receives an ad.

func onAdFailedToReceive(_ ad: AdropPopupAd, _ errorCode: AdropErrorCode)

func onAdFailedToReceive(_ ad: AdropPopupAd, _ errorCode: AdropErrorCode)

This method gets invoked in the UI thread when the AdropPopupAd fails to receive an ad.

func onAdClicked(_ ad: AdropPopupAd)

func onAdClicked(_ ad: AdropPopupAd)

This method gets invoked in the UI thread when the AdropPopupAd is clicked.

func onAdImpression(_ ad: AdropPopupAd)

func onAdClicked(_ ad: AdropPopupAd)

This method gets invoked in the UI thread when the AdropPopupAd is impressed.

func onAdWillPresentFullScreen(_ ad: AdropPopupAd)

func onAdWillPresentFullScreen(_ ad: AdropPopupAd)

This method gets invoked in the UI thread when the AdropPopupAd will be presented full screen.

func onAdDidPresentFullScreen(_ ad: AdropPopupAd)

func onAdDidPresentFullScreen(_ ad: AdropPopupAd)

This method gets invoked in the UI thread when the AdropPopupAd is presented full screen.

func onAdWillDismissFullScreen(_ ad: AdropPopupAd)

func onAdWillDismissFullScreen(_ ad: AdropPopupAd)

This method gets invoked in the UI thread when the AdropPopupAd will be dismissed full screen.

func onAdDidDismissFullScreen(_ ad: AdropPopupAd)

func onAdDidDismissFullScreen(_ ad: AdropPopupAd)

This method gets invoked in the UI thread when the AdropPopupAd is dismissed full screen.

func onAdFailedToShowFullScreen(_ ad: AdropPopupAd, _ errorCode: AdropErrorCode)

func onAdFailedToShowFullScreen(_ ad: AdropPopupAd, _ errorCode: AdropErrorCode)

This method gets invoked in the UI thread when the AdropPopupAd fails to show full screen.

Last updated