Package com.pubmatic.sdk.common.session
Interface POBAppSessionHandling
-
- All Implemented Interfaces:
public interface POBAppSessionHandlingInterface for handling application session events. This interface defines methods to initiate session, add session listeners and get the duration of the current session.
-
-
Method Summary
Modifier and Type Method Description abstract UnitinitiateSession()Notifies listeners that the application session has initiated. abstract UnitaddAppSessionListener(POBAppSessionHandler.POBAppSessionListener listener)The listener will be notified of session events such as session start and reset. abstract UnitremoveAppSessionListener(POBAppSessionHandler.POBAppSessionListener listener)Removes the listener from the list of listeners. abstract IntegergetSessionDuration()Gets the duration of the current session. -
-
Method Detail
-
initiateSession
abstract Unit initiateSession()
Notifies listeners that the application session has initiated.
-
addAppSessionListener
abstract Unit addAppSessionListener(POBAppSessionHandler.POBAppSessionListener listener)
The listener will be notified of session events such as session start and reset.
- Parameters:
listener- The listener to be added.
-
removeAppSessionListener
abstract Unit removeAppSessionListener(POBAppSessionHandler.POBAppSessionListener listener)
Removes the listener from the list of listeners.
- Parameters:
listener- The listener to be removed.
-
getSessionDuration
abstract Integer getSessionDuration()
Gets the duration of the current session.
- Returns:
The duration of the current session in seconds.
-
-
-
-