AdropPopupAd

Popup ad class responsible for requesting popup ads and displaying them to the user.


Constructors

AdropPopupAd

AdropPopupAd({
    required String unitId,
    AdropPopupListener? listener,
    Color? closeTextColor,
    Color? hideForTodayTextColor,
    Color? backgroundColor,
})

requires Ad unit ID.


Properties

isLoaded -> bool

Determine if ad is fully loaded.

unitId -> String

Get Ad unit ID of the AdropPopupAd.

listener -> AdropAdListener?

A listener called when load or show is called in the AdropPopupAd.


Methods

load() -> Future<void>

Requests an ad from Adrop using the ad unit ID of the AdropPopupAd.

show() -> Future<void>

Shows an ad from Adrop using the ad unit ID of the AdropPopupAd. Must be fully loaded before show is called.

dispose() -> Future<void>

Dispose the ad to free resources.

Last updated