AdropListener

A listener called when load or show is called in the AdropAd


type AdropListener = {
    onAdReceived?: (ad: AdropAd) => void
    onAdClicked?: (ad: AdropAd) => void
    onAdImpression?: (ad: AdropAd) => void
    onAdFailedToReceive?: (ad: AdropAd, errorCode?: any) => void
    onAdDidPresentFullScreen?: (ad: AdropAd) => void
    onAdWillPresentFullScreen?: (ad: AdropAd) => void
    onAdDidDismissFullScreen?: (ad: AdropAd) => void
    onAdWillDismissFullScreen?: (ad: AdropAd) => void
    onAdFailedToShowFullScreen?: (ad: AdropAd, errorCode?: any) => void
    onAdEarnRewardHandler?: (ad: AdropAd, type: number, amount: number) => void
}

Properties

onAdReceived: (ad: AdropAd) -> void

Gets invoked when the adrop ad is received.

onAdClicked: (ad: AdropAd) -> void

Gets invoked when the adrop ad is clikcked.

onAdImpression: (ad: AdropAd) -> void

Gets invoked when the adrop ad is shown.

onAdWillPresentFullScreen: (ad: Adrop) -> void

Gets invoked when the adrop ad is about to appear. (iOS only)

onAdDidPresentFullScreen: (ad: Adrop) -> void

Gets invoked when the adrop ad appeared.

onAdWillDismissFullScreen: (ad: AdropAd) -> void

Gets invoked when the adrop ad is about to disappear. (iOS only)

onAdDidDismissFullScreen: (ad: AdropAd) -> void

Gets invoked when the adrop ad disappeared.

onAdFailedToReceive: (ad: AdropAd, errorCode?: any) -> void

Gets invoked with AdropErrorCode when the adrop ad fails to be received.

onAdFailedToShowFullScreen: (ad: AdropAd, errorCode?: any) -> void

Gets invoked with AdropErrorCode when the adrop ad fails to be shown.

onAdEarnRewardHandler: (ad: AdropAd, type: number, amount: number) -> void

Gets invoked with reward type & amount when the rewarded ad gets reward message.

Last updated