TPOfferwallAdListener constructor

const TPOfferwallAdListener({
  1. required dynamic onAdLoaded(
    1. String adUnitId,
    2. Map adInfo
    ),
  2. required dynamic onAdLoadFailed(
    1. String adUnitId,
    2. Map error
    ),
  3. required dynamic onAdImpression(
    1. String adUnitId,
    2. Map adInfo
    ),
  4. required dynamic onAdShowFailed(
    1. String adUnitId,
    2. Map adInfo,
    3. Map error
    ),
  5. required dynamic onAdClicked(
    1. String adUnitId,
    2. Map adInfo
    ),
  6. required dynamic onAdClosed(
    1. String adUnitId,
    2. Map adInfo
    ),
  7. required dynamic oneLayerLoadFailed(
    1. String adUnitId,
    2. Map adInfo,
    3. Map error
    ),
  8. dynamic onAdStartLoad(
    1. String adUnitId,
    2. Map adInfo
    )?,
  9. dynamic onBiddingStart(
    1. String adUnitId,
    2. Map adInfo
    )?,
  10. dynamic onBiddingEnd(
    1. String adUnitId,
    2. Map adInfo,
    3. Map error
    )?,
  11. dynamic onAdIsLoading(
    1. String adUnitId
    )?,
  12. dynamic oneLayerStartLoad(
    1. String adUnitId,
    2. Map adInfo
    )?,
  13. dynamic oneLayerLoaded(
    1. String adUnitId,
    2. Map adInfo
    )?,
  14. dynamic onAdAllLoaded(
    1. String adUnitId,
    2. bool isSuccess
    )?,
  15. dynamic onVideoPlayStart(
    1. String adUnitId,
    2. Map adInfo
    )?,
  16. dynamic onVideoPlayEnd(
    1. String adUnitId,
    2. Map adInfo
    )?,
  17. dynamic currencyBalanceSuccess(
    1. String adUnitId,
    2. int amount,
    3. String msg
    )?,
  18. dynamic currencyBalanceFailed(
    1. String adUnitId,
    2. String msg
    )?,
  19. dynamic spendCurrencySuccess(
    1. String adUnitId,
    2. int amount,
    3. String msg
    )?,
  20. dynamic spendCurrencyFailed(
    1. String adUnitId,
    2. String msg
    )?,
  21. dynamic awardCurrencySuccess(
    1. String adUnitId,
    2. int amount,
    3. String msg
    )?,
  22. dynamic awardCurrencyFailed(
    1. String adUnitId,
    2. String msg
    )?,
  23. dynamic setUserIdFinish(
    1. String adUnitId,
    2. bool isSuccess
    )?,
})

Implementation

const TPOfferwallAdListener({
  required this.onAdLoaded,
  required this.onAdLoadFailed,
  required this.onAdImpression,
  required this.onAdShowFailed,
  required this.onAdClicked,
  required this.onAdClosed,
  required this.oneLayerLoadFailed,
  this.onAdStartLoad,
  this.onBiddingStart,
  this.onBiddingEnd,
  this.onAdIsLoading,
  this.oneLayerStartLoad,
  this.oneLayerLoaded,
  this.onAdAllLoaded,
  this.onVideoPlayStart,
  this.onVideoPlayEnd,
  this.currencyBalanceSuccess,
  this.currencyBalanceFailed,
  this.spendCurrencySuccess,
  this.spendCurrencyFailed,
  this.awardCurrencySuccess,
  this.awardCurrencyFailed,
  this.setUserIdFinish,
});