InterstitialAd class Null safety

Interstitials are static or video ads presented before, during or after the user interacts with your app. The user can view and then immediately dismiss them. This is a non-rewarded format for the user.

Official documentation: iOS, Android.

Properties

availabilityStream Stream<bool>
Returns stream of availability changes. Listening to this stream is preferred if you need to know whether ad is available as soon as possible.
read-onlyinherited
events Stream<AdEvent>
Stream of AdEvents that are related only to the placement described by the instance of this class.
read-onlyinherited
hashCode int
The hash code for this object.
read-onlyinherited
impressionData Future<ImpressionData?>
Impression data for the current fill. Returns null when there is no fill for the placement.
read-only
isAvailable Future<bool>
Returns Future that resolves to true if an ad is available for showing. If ad is not available yet then it would resolve to false.
read-onlyinherited
placementId String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
simpleEvents Stream<AdEventType>
Stream of AdEventTypes that are related only to the placement described by the instance of this class.
read-onlyinherited

Methods

changeAutoRequesting(bool autoRequestingEnabled) Future<bool>
Changes auto-requesting behavior for this placementId.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
request() Future<void>
Requests for the fill for placementId. It has to be called before show. Consider calling this method as soon as possible to get the fill for showing when ad should be shown in your app flow.
inherited
show() Future<void>
Shows the ad for placementId. The ad has to be available to make this work. See isAvailable.
inherited
showWithSSR({required Map<String, String> serverSideRewardingOptions}) Future<void>
Shows the ad for placementId with server side rewarding parameters for the impression. See server side rewarding documentation The ad has to be available to make this work. See isAvailable.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

impressionDepth Future<int?>
Impression depth represents the amount of impressions of interstitial ads.
read-only