InfiniteScrollEventListener

abstract class InfiniteScrollEventListener : InfiniteScrollEventListenerInternal

Infinite Scroll life cycle goes as follows:

  1. InfiniteScrollEventListenerInternal.onRoll Called when the infinite scroll is about to roll for an item, this is just an event that happens before the roll or InfiniteScrollEventListenerInternal.onRollFailed Called when the infinite scroll roll for an item says there is no ad in that item.

  2. InfiniteScrollEventListenerInternal.onAdItemCreated Called when the infinite scroll roll succeeds, so we are going to create a view inside it or InfiniteScrollEventListenerInternal.onAdItemFailedToCreate Called when the infinite scroll roll succeeds, but we failed to create a view inside it, this is an actual error not like InfiniteScrollEventListenerInternal.onRollFailed which is just a thing that can happen due to the probability distribution of the infinite scroll configuration

  3. InfiniteScrollEventListenerInternal.onAdItemLoaded Called when the ad that was rolled successfully for an item, actually loads and is ready to be shown or InfiniteScrollEventListenerInternal.onAdItemFailedToLoad Called when the ad that was rolled successfully for an item, failed to load, also an error

  4. InfiniteScrollEventListenerInternal.onAdItemImpression Called when the ad loaded in the item is shown for the first time

  5. InfiniteScrollEventListenerInternal.onAdItemClick Called when the ad loaded in the item is clicked

  6. InfiniteScrollEventListenerInternal.onAdItemOpen Called when the ad loaded in the item is opened

  7. InfiniteScrollEventListenerInternal.onAdItemClose Called when the ad loaded in the item is closed

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun onAdItemClick(itemIdInData: Int)

Callback for when the ad that was rolled successfully for an item, is clicked

Link copied to clipboard
open override fun onAdItemClose(itemIdInData: Int)

Callback for when the ad that was rolled successfully for an item, is closed

Link copied to clipboard
open override fun onAdItemCreated(adapterId: Int, probability: Double)

Callback for when a roll succeeds, so we are going to create a view inside it

Link copied to clipboard
open override fun onAdItemFailedToCreate(message: String)

Callback that happens when we are using more advanced infinite scroll techniques, where we might not find a valid wrapper inside the item

Link copied to clipboard
open override fun onAdItemFailedToLoad(itemIdInData: Int, error: R89LoadError)

Callback for when the ad that was rolled successfully for an item, failed to load

Link copied to clipboard
open override fun onAdItemImpression(itemIdInData: Int)

Callback for when the ad that was rolled successfully for an item, is shown

Link copied to clipboard
open override fun onAdItemLoaded(itemIdInData: Int)

Callback for when the ad that was rolled successfully for an item, actually loads and is ready to be shown

Link copied to clipboard
open override fun onAdItemOpen(itemIdInData: Int)

Callback for when the ad that was rolled successfully for an item, is opened

Link copied to clipboard
open override fun onRoll(itemIdInData: Int)

Callback for when we roll to know if an ad should be loaded after the item, this is just an event that happens before the roll

Link copied to clipboard
open override fun onRollFailed(itemIdInData: Int)

Callback for when a roll for an item says there is no ad in that item. Failed might be misunderstood, since is not failed in an error or warning, but the roll simply said we should not load an ad in this item, is not for error catching is just a thing that can happen due to the probability distribution of the infinite scroll configuration