TPSplashAdListener constructor

const TPSplashAdListener({
  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 onDownloadStart(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  16. dynamic onDownloadUpdate(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    6. int progress,
    )?,
  17. dynamic onDownloadPause(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  18. dynamic onDownloadFinish(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  19. dynamic onDownloadFail(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  20. dynamic onInstall(
    1. String adUnitId,
    2. num totalBytes,
    3. num currBytes,
    4. String fileName,
    5. String appName,
    )?,
  21. dynamic onZoomOutStart(
    1. String adUnitId,
    2. Map adInfo
    )?,
  22. dynamic onZoomOutEnd(
    1. String adUnitId,
    2. Map adInfo
    )?,
  23. dynamic onSkip(
    1. String adUnitId,
    2. Map adInfo
    )?,
})

Implementation

const TPSplashAdListener(
    {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.onDownloadStart,
    this.onDownloadUpdate,
    this.onDownloadPause,
    this.onDownloadFinish,
    this.onDownloadFail,
    this.onInstall,
    this.onZoomOutStart,
    this.onZoomOutEnd,
    this.onSkip});