Package com.pubmatic.sdk.common.cache
Class POBAdViewCacheService
-
- All Implemented Interfaces:
public class POBAdViewCacheServiceThis class caches a map of AdViewConfig against the renderer hash code value which creates the ad view. It is helper class to pass pre-render view to POBFullScreenActivity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPOBAdViewCacheService.AdViewConfigStores the pre-rendered ad view and associated POBFullScreenActivityListener instance.
-
Constructor Summary
Constructors Constructor Description POBAdViewCacheService()Initializes the webViewConfig map.
-
Method Summary
Modifier and Type Method Description voidstoreAdView(@NonNull() Integer uniqueId, @NonNull() POBAdViewCacheService.AdViewConfig viewAdViewConfig)Stores Ad config POBAdViewCacheService.AdViewConfiggetStoredAdView(@NonNull() Integer uniqueId)Retrieve config stored against uniqueId if available POBAdViewCacheService.AdViewConfigpopStoredAdView(@NonNull() Integer uniqueId)Removes config stored against uniqueId -
-
Method Detail
-
storeAdView
void storeAdView(@NonNull() Integer uniqueId, @NonNull() POBAdViewCacheService.AdViewConfig viewAdViewConfig)
Stores Ad config
- Parameters:
uniqueId- unique identifier for associated objectviewAdViewConfig- config stored against associated object
-
getStoredAdView
@Nullable() POBAdViewCacheService.AdViewConfig getStoredAdView(@NonNull() Integer uniqueId)
Retrieve config stored against uniqueId if available
- Parameters:
uniqueId- unique identifier for associated object- Returns:
config stored against associated object
-
popStoredAdView
@Nullable() POBAdViewCacheService.AdViewConfig popStoredAdView(@NonNull() Integer uniqueId)
Removes config stored against uniqueId
- Parameters:
uniqueId- unique identifier for associated object- Returns:
config stored against associated object
-
-
-
-