RewardedInterstitialEventListener

abstract class RewardedInterstitialEventListener : RewardedInterstitialEventListenerInternal

Rewarded life cycle goes as follows:

  1. onLoaded: Called when the banner is loaded and ready to be shown. Or If this goes wrong, the onFailedToLoad when this happens the factory marks the object for deletion, and calls com.refinery89.androidSdk.domain_layer.RefineryAdFactory.createRewarded afterRewarded

  2. onOpen: Something happen in your app and you call the factory com.refinery89.androidSdk.domain_layer.RefineryAdFactory.show so this is the event is invoked if everything goes according to plan. Otherwise onAdFailedToShowFullScreen is called, you will receive and error message string with information about it.

  3. onImpression: This means it did finish loading the creatives in the screen and they can be clicked

  4. onClick: The ad opens another Intent with the advertiser link

  5. onRewardEarned: Called when the user has earned a reward it's usually called before onAdDismissedFullScreenContent but it can change

  6. onAdDismissedFullScreenContent: Called when the interstitial is closed normally

  • com.refinery89.androidSdk.domain_layer.RefineryAdFactory.createRewarded afterInterstitial: Is called when some situations happen. So the app flow can be recovered. Situations when called are:

    • Everything went right and the user just closed the fullscreen ad

    • The ad hasn't loaded yet and you tried to show it

    • The ad has been Invalidated and you tried to show it. Gets invalidated when:

    • Fails to load

    • Already shown

    • Too Long without showing it

    • The ad failed to show

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun onAdDismissedFullScreenContent()

Called when the interstitial is closed normally. This is just internal callback since R89Interstitial.afterDismissEventListener is used to notify the publisher it can re-engage the app with the normal navigation flow and is not optional like providing an InterstitialEventListener

Link copied to clipboard
open override fun onAdFailedToShowFullScreen(errorMsg: String)

Called when is going to open at fullScreen but fails to do so in full screen

Link copied to clipboard
open override fun onClick()

Called when an ad is clicked.

Link copied to clipboard
open override fun onFailedToLoad(error: R89LoadError)

Called when an ad is failed to load.

Link copied to clipboard
open override fun onImpression()

Called when an ad is shown in the screen for the first time.

Link copied to clipboard
open override fun onLoaded()

Called when an ad is loaded.

Link copied to clipboard
open override fun onOpen()

Called when an ad starts an Intent.

Link copied to clipboard
open override fun onRewardEarned(rewardAmount: Int, rewardType: String)

Called when the user has earned a reward it's usually called before onAdDismissedFullScreenContent but it can change