InterstitialAd class
Constructors
- InterstitialAd({required String adSlotId, @Deprecated('') bool? openInHmsCore, AdParam? adParam, AdListener? listener, RewardAdListener? rewardAdListener})
Properties
- adParam ↔ AdParam
-
Ad request parameters.
getter/setter pair
- adSlotId ↔ String
-
Ad slot ID.
getter/setter pair
- getAdListener → AdListener?
-
Obtains an ad listener.
no setter
- getRewardAdListener → RewardAdListener?
-
Obtains a rewarded ad listener for an interstitial ad.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
no setter
- openInHmsCore ↔ bool?
-
getter/setter pair
- rId → int
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setAdListener ← AdListener
-
Sets an ad listener.
no getter
- setRewardAdListener ← RewardAdListener
-
Sets a rewarded ad listener for an interstitial ad.
no getter
Methods
-
destroy(
) → Future< bool?> - Destroys an ad.
-
getBiddingInfo(
) → Future< BiddingInfo?> - Returns real-time bidding data.
-
isLoaded(
) → Future< bool?> - Checks whether an ad has been loaded.
-
isLoading(
) → Future< bool?> - Checks whether an ad is being loaded.
-
loadAd(
) → Future< bool?> - Loads an ad.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
) → Future< bool?> - Displays an ad.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
interstitialAds
→ Map<
int, InterstitialAd?> -
final