AdropRewardedAd constructor

AdropRewardedAd({
  1. required String unitId,
  2. AdropRewardedListener? listener,
})

Implementation

AdropRewardedAd({required String unitId, AdropRewardedListener? listener})
    : super(
        adType: AdType.rewarded,
        unitId: unitId,
        listener: AdropAdListener(
          onAdReceived: listener?.onAdReceived,
          onAdClicked: listener?.onAdClicked,
          onAdImpression: listener?.onAdImpression,
          onAdFailedToReceive: listener?.onAdFailedToReceive,
          onAdDidPresentFullScreen: listener?.onAdDidPresentFullScreen,
          onAdWillPresentFullScreen: listener?.onAdWillPresentFullScreen,
          onAdDidDismissFullScreen: listener?.onAdDidDismissFullScreen,
          onAdWillDismissFullScreen: listener?.onAdWillDismissFullScreen,
          onAdFailedToShowFullScreen: listener?.onAdFailedToShowFullScreen,
          onAdEarnRewardHandler: listener?.onAdEarnRewardHandler,
        ),
      );