Skip to main content

Interstitial Ad Format

Full-screen ads that cover the entire app interface. Includes both image and video ads (video more common), typically skippable after 5 seconds. Interstitial Example Image Pn

How It Works

Interstitial Example Gif Gi

Creating Instance and Setting Callbacks

Create a DaroInterstitialAd instance and set up callbacks.

Loading Ads

Call load() to load an ad.

Showing Ads

Check if the ad is ready with isReady(), then display it with show().
After the ad is dismissed, 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. Enable hideStatusBarDuringFullscreenAd when the status bar overlaps an ad’s close control. It defaults to false and does not change system UI on Android.
The SDK completes the status bar hide request before showing the ad. After dismissal or a presentation failure, it restores 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.
Calling 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.
Status bar behavior depends on the Flutter and iOS versions, UIViewControllerBasedStatusBarAppearance, and which controller owns the ad screen’s status bar. A Flutter issue reports ignored SystemChrome settings when an app built with the iOS 27 SDK sets this key to NO. When changing the key, verify your app’s status bar behavior and ad presentation and dismissal with your ad demand sources.

Releasing Resources

Call dispose() to release resources when done.

Implementation Example