...
While using the manual approach additionally ad lifecycle methods could be observed for each cell/item by passing providing the BannerEventListener
’s instance to getInfiniteScrollAdForIndex
method in a following waythe following way
Code Block | ||
---|---|---|
| ||
// 1. Extend from the Banner EventListener
private class BannerLifecycleListener : BannerEventListener {
...
override func onLoaded() {
// Ad has been loaded
}
...
}
...
RefineryAdFactory.shared.getInfiniteScrollAdForIndex(
infiniteScrollId: infiniteScrollId,
itemIndex: Int32(cellPosition),
itemAdWrapper: adWrapper,
childAdLifecycle: BannerLifecycleListener()
)
... |