Package com.pubmatic.sdk.common.session
Class POBImpDepthHandler
-
- All Implemented Interfaces:
-
com.pubmatic.sdk.common.session.POBAppSessionHandler.POBAppSessionListener,com.pubmatic.sdk.common.session.POBImpDepthHandling
public final class POBImpDepthHandler implements POBImpDepthHandling, POBAppSessionHandler.POBAppSessionListener
This class handles the impression depth for the application session. It maintains the impression count for each placement type. The impression depth is reset when the session is started.
-
-
Constructor Summary
Constructors Constructor Description POBImpDepthHandler(POBAppSessionHandling sessionHandler)
-
Method Summary
Modifier and Type Method Description Unitinitiate()Initiates the impression depth handling. UnitrecordImpression(POBAdFormat placementType)Updates the impression depth map with the impression count for the given placement type. IntegergetImpressions(POBAdFormat placementType)This method returns the impression depth for the given placement type. UnitonAppSessionStarted()This method is triggered when the app session begins. UnitonAppSessionReset()This method is triggered when the app session is reset. -
-
Constructor Detail
-
POBImpDepthHandler
POBImpDepthHandler(POBAppSessionHandling sessionHandler)
- Parameters:
sessionHandler- The POBApplicationSessionHandler instance.
-
-
Method Detail
-
recordImpression
Unit recordImpression(POBAdFormat placementType)
Updates the impression depth map with the impression count for the given placement type.
- Parameters:
placementType- The placement type for which the impression count needs to be updated.
-
getImpressions
Integer getImpressions(POBAdFormat placementType)
This method returns the impression depth for the given placement type.
- Returns:
The impression depth for the given placement type.
-
onAppSessionStarted
Unit onAppSessionStarted()
This method is triggered when the app session begins.
-
onAppSessionReset
Unit onAppSessionReset()
This method is triggered when the app session is reset.
-
-
-
-