LoadShowAd<T> class abstract

Mixed in types
Implementers

Constructors

LoadShowAd({String? unitId, Duration loadTimeout = kDefaultLoadTimeout, Duration timeout = kDefaultAdTimeout, bool nonPersonalizedAds = kDefaultNonPersonalizedAds, ServerSideVerificationOptions? serverSideVerificationOptions = kServerSideVerification})

Properties

channel MethodChannel
Channel to communicate with controller
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String
The unique key of this class
no setterinherited
isAvailable bool
Check if the time is available. If ad is not loaded, returns false If it has been the time of timeout since the last load, returns false
no setter
isDisposed bool
Check if the ad is disposed. You can dispose the ad by calling ad.dispose()
no setter
isLoaded bool
Check if the ad is loaded
getter/setter pair
lastLoadedTime DateTime?
getter/setter pair
loadTimeout Duration
The ad will stop loading after a specified time.
final
nonPersonalizedAds bool
Whether non-personalized ads (ads that are not based on a user’s past behavior) should be enabled.
final
onEvent Stream<Map<T, dynamic>>
The events this ad throws. Listen to it using:
no setter
onEventController StreamController<Map<T, dynamic>>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverSideVerificationOptions ServerSideVerificationOptions?
Server Side Verification - Info such as userId and customData
final
timeout Duration
The time the ad can be kept loaded.
final
unitId String?
The unit id used on this ad. Can be null
final

Methods

dispose() → void
ensureAdAvailable() → void
ensureAdNotDisposed() → void
init() → void
load() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
show() Future<bool>
toString() String
A string representation of this object.
inherited

Operators

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