InterstitialAd class
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.
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.
no setterinherited
-
events
→ Stream<
AdEvent> -
Stream of
AdEvent
s that are related only to the placement described by the instance of this class.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
-
impressionData
→ Future<
ImpressionData?> -
Impression data for the current fill.
Returns
null
when there is no fill for the placement.no setter -
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 tofalse
.no setterinherited - placementId → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
simpleEvents
→ Stream<
AdEventType> -
Stream of
AdEventType
s that are related only to the placement described by the instance of this class.no setterinherited
Methods
-
changeAutoRequesting(
bool autoRequestingEnabled) → Future< bool> -
Changes auto-requesting behavior for this placementId.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent 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.
no setter