TPRewardVideoAdListener constructor

const TPRewardVideoAdListener({
  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 onAdReward(
    1. String adUnitId,
    2. Map adInfo
    ),
  8. required dynamic oneLayerLoadFailed(
    1. String adUnitId,
    2. Map adInfo,
    3. Map error
    ),
  9. dynamic onAdStartLoad(
    1. String adUnitId,
    2. Map adInfo
    )?,
  10. dynamic onBiddingStart(
    1. String adUnitId,
    2. Map adInfo
    )?,
  11. dynamic onBiddingEnd(
    1. String adUnitId,
    2. Map adInfo,
    3. Map error
    )?,
  12. dynamic onAdIsLoading(
    1. String adUnitId
    )?,
  13. dynamic oneLayerStartLoad(
    1. String adUnitId,
    2. Map adInfo
    )?,
  14. dynamic oneLayerLoaded(
    1. String adUnitId,
    2. Map adInfo
    )?,
  15. dynamic onAdAllLoaded(
    1. String adUnitId,
    2. bool isSuccess
    )?,
  16. dynamic onVideoPlayStart(
    1. String adUnitId,
    2. Map adInfo
    )?,
  17. dynamic onVideoPlayEnd(
    1. String adUnitId,
    2. Map adInfo
    )?,
  18. dynamic onPlayAgainImpression(
    1. String adUnitId,
    2. Map adInfo
    )?,
  19. dynamic onPlayAgainReward(
    1. String adUnitId,
    2. Map adInfo
    )?,
  20. dynamic onPlayAgainClicked(
    1. String adUnitId,
    2. Map adInfo
    )?,
  21. dynamic onPlayAgainVideoPlayStart(
    1. String adUnitId,
    2. Map adInfo
    )?,
  22. dynamic onPlayAgainVideoPlayEnd(
    1. String adUnitId,
    2. Map adInfo
    )?,
  23. dynamic onDownloadStart(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  24. dynamic onDownloadUpdate(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    6. int progress,
    )?,
  25. dynamic onDownloadPause(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  26. dynamic onDownloadFinish(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  27. dynamic onDownloadFail(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  28. dynamic onInstall(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
})

Implementation

const TPRewardVideoAdListener(
    {required this.onAdLoaded,
    required this.onAdLoadFailed,
    required this.onAdImpression,
    required this.onAdShowFailed,
    required this.onAdClicked,
    required this.onAdClosed,
    required this.onAdReward,
    required this.oneLayerLoadFailed,
    this.onAdStartLoad,
    this.onBiddingStart,
    this.onBiddingEnd,
    this.onAdIsLoading,
    this.oneLayerStartLoad,
    this.oneLayerLoaded,
    this.onAdAllLoaded,
    this.onVideoPlayStart,
    this.onVideoPlayEnd,
    this.onPlayAgainImpression,
    this.onPlayAgainReward,
    this.onPlayAgainClicked,
    this.onPlayAgainVideoPlayStart,
    this.onPlayAgainVideoPlayEnd,
    this.onDownloadStart,
    this.onDownloadUpdate,
    this.onDownloadPause,
    this.onDownloadFinish,
    this.onDownloadFail,
    this.onInstall});