loadRewardedVideoAd method
Future<StartAppRewardedVideoAd>
loadRewardedVideoAd({
- StartAppAdPreferences prefs = const StartAppAdPreferences(),
- VoidCallback? onAdDisplayed,
- VoidCallback? onAdNotDisplayed,
- VoidCallback? onAdClicked,
- VoidCallback? onAdHidden,
- VoidCallback? onAdImpression,
- VoidCallback? onVideoCompleted,
Loads rewarded video ad, does not create an underlying native platform view.
Implementation
Future<StartAppRewardedVideoAd> loadRewardedVideoAd({
StartAppAdPreferences prefs = const StartAppAdPreferences(),
VoidCallback? onAdDisplayed,
VoidCallback? onAdNotDisplayed,
VoidCallback? onAdClicked,
VoidCallback? onAdHidden,
VoidCallback? onAdImpression,
VoidCallback? onVideoCompleted,
}) {
return _loadFullscreenAd(
'loadRewardedVideoAd',
prefs._toMap(),
(id, channel) => StartAppRewardedVideoAd._(id, channel),
onAdDisplayed: onAdDisplayed,
onAdNotDisplayed: onAdNotDisplayed,
onAdClicked: onAdClicked,
onAdHidden: onAdHidden,
onAdImpression: onAdImpression,
onVideoCompleted: onVideoCompleted,
);
}