public class

RetainedAdPresenterRepository

extends Object
java.lang.Object
   ↳ com.smaato.sdk.video.repository.RetainedAdPresenterRepository

Class Overview

This class proposal is to keep retained entries of AdPresenters. If Ad is already shown, we shouldn't return it from main cache anymore and main AdPresenters cache may be freed from particular AdPresenter, but we should retain it to handle Android behaviours such as Activity recreation, to prevent it from been collected by GC while the Ad is still `alive`. As currently we have some misalignment in AdPresenters API, it's not that easy to implement generic cache for AdPresenters, so this class is a candidate to be removed or refactored during API and architecture alignment.

Summary

Public Methods
synchronized VideoAdPresenter get(String publisherId, String adSpaceId)
synchronized String put(VideoAdPresenter videoAdPresenter)
synchronized void remove(VideoAdPresenter videoAdPresenter)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public synchronized VideoAdPresenter get (String publisherId, String adSpaceId)

public synchronized String put (VideoAdPresenter videoAdPresenter)

public synchronized void remove (VideoAdPresenter videoAdPresenter)