Class TransactionManager
java.lang.Object
org.prebid.mobile.rendering.loading.TransactionManager
- All Implemented Interfaces:
AdLoadListener,Transaction.Listener
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionManager(android.content.Context context, TransactionManagerListener listener, InterstitialManager interstitialManager) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Removes the current transaction from internal cachevoidfetchBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse) Initiates the process of creating creative model and transaction from parsed bid responsevoidfetchVideoTransaction(AdUnitConfiguration adConfiguration, String vastXml) Returns the transaction that should be displayed right now.booleanbooleanvoidvoidvoidonFailedToLoadAd(AdException e, String vastLoaderIdentifier) voidonTransactionFailure(AdException e, String identifier) voidonTransactionSuccess(Transaction transaction) void
-
Constructor Details
-
TransactionManager
public TransactionManager(android.content.Context context, TransactionManagerListener listener, InterstitialManager interstitialManager)
-
-
Method Details
-
onCreativeModelReady
- Specified by:
onCreativeModelReadyin interfaceAdLoadListener
-
onFailedToLoadAd
- Specified by:
onFailedToLoadAdin interfaceAdLoadListener
-
onTransactionSuccess
- Specified by:
onTransactionSuccessin interfaceTransaction.Listener
-
onTransactionFailure
- Specified by:
onTransactionFailurein interfaceTransaction.Listener
-
fetchBidTransaction
Initiates the process of creating creative model and transaction from parsed bid response- Parameters:
adConfiguration- - AdConfigurationbidResponse- - parsed bid response
-
fetchVideoTransaction
-
getCurrentTransaction
Returns the transaction that should be displayed right now.- Returns:
- first transaction
-
dismissCurrentTransaction
Removes the current transaction from internal cache- Returns:
- the next transactions in the list
-
getCurrentCreative
-
hasNextCreative
public boolean hasNextCreative() -
resetState
public void resetState() -
hasTransaction
public boolean hasTransaction() -
destroy
public void destroy() -
incrementCreativesCounter
public void incrementCreativesCounter()
-