Class TransactionManager

    • Method Detail

      • fetchBidTransaction

        public void fetchBidTransaction​(AdUnitConfiguration adConfiguration,
                                        BidResponse bidResponse)
        Initiates the process of creating creative model and transaction from parsed bid response
        Parameters:
        adConfiguration - - AdConfiguration
        bidResponse - - parsed bid response
      • fetchVideoTransaction

        public void fetchVideoTransaction​(AdUnitConfiguration adConfiguration,
                                          java.lang.String vastXml)
      • getCurrentTransaction

        public Transaction getCurrentTransaction()
        Returns the transaction that should be displayed right now.
        Returns:
        first transaction
      • dismissCurrentTransaction

        public Transaction dismissCurrentTransaction()
        Removes the current transaction from internal cache
        Returns:
        the next transactions in the list
      • hasNextCreative

        public boolean hasNextCreative()
      • resetState

        public void resetState()
      • hasTransaction

        public boolean hasTransaction()
      • destroy

        public void destroy()
      • incrementCreativesCounter

        public void incrementCreativesCounter()