Package com.inmobi.adquality.manager
Class AdQualityManager
-
- All Implemented Interfaces:
public final class AdQualityManagerManages all ad quality operations for an adView. This is responsible for managing all the AdQualityProcesss and AQProcessHandlers This also orchestrates the execution of all the processes.
Call setup to setup the manager before starting a session.
Call startSession to start a ad quality session. Manager will use AdQualityControl passed with the setup call to create and execute all the required processes.
Call triggerSessionEnd to trigger an end to the ad quality session and queue the result into the DB.
neelabh.parui
-
-
Constructor Summary
Constructors Constructor Description AdQualityManager(AdConfig.AdQualityConfig adQualityConfig, InMobiLogger logger)
-
Method Summary
-
-
Constructor Detail
-
AdQualityManager
AdQualityManager(AdConfig.AdQualityConfig adQualityConfig, InMobiLogger logger)
-
-
Method Detail
-
setup
final Unit setup(AdQualityControl adQualityControl)
-
setAdViewableStatus
final Unit setAdViewableStatus(ViewableStatus adViewableStatus)
-
startSession
final Unit startSession(View adView)
-
startSession
@RequiresApi(value = 29) final Unit startSession(Activity activity)
-
triggerSessionEnd
final Unit triggerSessionEnd()
-
captureScreenShot
final Unit captureScreenShot(Window window, Long delay, Boolean isReportingFlow, AdQualityListener listener)
-
captureScreenShot
final Unit captureScreenShot(View adView, Long delay, Boolean isReportingFlow, AdQualityListener listener)
-
handleSSResult
final Unit handleSSResult(Bitmap result, AdQualityProcess<?> process, Boolean isReportingFlow, AdQualityListener listener)
-
handleError
final Unit handleError(Exception error, AdQualityProcess<?> process)
-
handleFileResult
final Unit handleFileResult(String result, AdQualityProcess<?> process, String beacon, Boolean isReportingFlow)
-
reportAd
@RequiresApi(value = 29) final Unit reportAd(Activity activity, String url, Boolean takeScreenShot, JSONObject extras, AdQualityListener listener)
-
reportAd
final Unit reportAd(View view, String url, Boolean takeScreenShot, JSONObject extras, AdQualityListener listener)
-
getControl
final AdQualityControl getControl()
-
setIsSessionStarted
final Unit setIsSessionStarted(Boolean started)
-
isSessionStarted
final Boolean isSessionStarted()
-
getProcessList
final CopyOnWriteArrayList<AdQualityProcess<?>> getProcessList()
-
setResult
final Unit setResult(AdQualityResult result)
-
getResult
final AdQualityResult getResult()
-
isSessionEndTriggered
final Boolean isSessionEndTriggered()
-
setSessionEndTriggered
final Unit setSessionEndTriggered(Boolean triggered)
-
setControl
final Unit setControl(AdQualityControl control)
-
setReportUrl
final Unit setReportUrl(String url)
-
-
-
-