-
- All Implemented Interfaces:
-
com.appstock.sdk.rendering.loading.AdLoadListener,com.appstock.sdk.rendering.loading.Transaction.Listener
public class TransactionManager implements AdLoadListener, Transaction.Listener
-
-
Constructor Summary
Constructors Constructor Description TransactionManager(Context context, TransactionManagerListener listener, InterstitialManager interstitialManager)
-
Method Summary
Modifier and Type Method Description voidonCreativeModelReady(CreativeModelsMaker.Result result)voidonFailedToLoadAd(AppstockAdException e, String vastLoaderIdentifier)voidonTransactionSuccess(Transaction transaction)voidonTransactionFailure(AppstockAdException e, String identifier)voidfetchBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse)Initiates the process of creating creative model and transaction from parsed bid response voidfetchVideoTransaction(AdUnitConfiguration adConfiguration, String vastXml)TransactiongetCurrentTransaction()Returns the transaction that should be displayed right now. TransactiondismissCurrentTransaction()Removes the current transaction from internal cache AbstractCreativegetCurrentCreative()booleanhasNextCreative()voidresetState()booleanhasTransaction()voiddestroy()voidincrementCreativesCounter()-
-
Constructor Detail
-
TransactionManager
TransactionManager(Context context, TransactionManagerListener listener, InterstitialManager interstitialManager)
-
-
Method Detail
-
onCreativeModelReady
void onCreativeModelReady(CreativeModelsMaker.Result result)
-
onFailedToLoadAd
void onFailedToLoadAd(AppstockAdException e, String vastLoaderIdentifier)
-
onTransactionSuccess
void onTransactionSuccess(Transaction transaction)
-
onTransactionFailure
void onTransactionFailure(AppstockAdException e, String identifier)
-
fetchBidTransaction
void fetchBidTransaction(AdUnitConfiguration adConfiguration, BidResponse bidResponse)
Initiates the process of creating creative model and transaction from parsed bid response
- Parameters:
adConfiguration- - AdConfigurationbidResponse- - parsed bid response
-
fetchVideoTransaction
void fetchVideoTransaction(AdUnitConfiguration adConfiguration, String vastXml)
-
getCurrentTransaction
Transaction getCurrentTransaction()
Returns the transaction that should be displayed right now.
-
dismissCurrentTransaction
Transaction dismissCurrentTransaction()
Removes the current transaction from internal cache
-
getCurrentCreative
AbstractCreative getCurrentCreative()
-
hasNextCreative
boolean hasNextCreative()
-
resetState
void resetState()
-
hasTransaction
boolean hasTransaction()
-
destroy
void destroy()
-
incrementCreativesCounter
void incrementCreativesCounter()
-
-
-
-