Rewarded Video Ad Format
- Ads that provide in-app rewards (currency, features, content, etc.) in exchange for watching.
- Since users watch in exchange for rewards, video ads cannot be skipped and typically run for 30 seconds.

How It Works

Creating Instance and Setting Callbacks
Create aDaroRewardedAd instance and set up callbacks.
Reward Callback
TheonEarnedReward callback is triggered when the user watches the ad to completion and earns a reward. You can access the reward details through DaroRewardItem.
Loading Ads
Callload() to load an ad.
Setting Custom Data
UsesetCustomData() to set custom data to be included in S2S (Server-to-Server) reward callbacks. This must be set before calling show().
Showing Ads
Check if the ad is ready withisReady(), then display it with show().
isReady() returns false. To show another ad, call load() again on the same instance and wait for the onAdLoadSuccess callback.
Hide the status bar during iOS ads
Available in Flutter SDK 2.0.5 and later. EnablehideStatusBarDuringFullscreenAd when the status bar overlaps an ad’s close control. It defaults to false and does not change system UI on Android.
SystemUiMode.edgeToEdge by default. Returning from show() does not mean that the ad has ended, so do not restore the status bar immediately after that call.
On iOS with this option enabled, calling load() or show() on the same instance before its ad presentation session ends throws StateError. Do not preload that instance from onAdShown; call load() after onAdDismiss or onAdFailedToShow instead.
If your app normally hides the status bar or uses manual system UI settings, specify the configuration to restore. Flutter has no API for reading the current system UI configuration, so the SDK cannot automatically recover an arbitrary previous configuration.
dispose() while an ad is visible does not forcibly close that ad. The SDK waits for the actual dismissal or presentation-failure callback before restoring system UI.
SystemUiMode.manual requires an overlays list. An empty list requests that all system UI overlays remain hidden.
Overlapping active ad sessions share the first session’s restore configuration, which is applied after the last session ends. If your app changes SystemChrome settings during an ad, the SDK’s restore configuration may be applied afterward.
Releasing Resources
Calldispose() to release resources when done.
Implementation Example
This is an example implementation of DaroRewardedAd.
This is an example implementation of DaroRewardedAd.

