LoadShowAd<T> class Null safety

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
read / write
hashCode int
The hash code for this object.
read-only, inherited
id String
The unique key of this class
read-only, inherited
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
read-only
isDisposed bool
Check if the ad is disposed. You can dispose the ad by calling ad.dispose()
read-only
isLoaded bool
Check if the ad is loaded
@protected, read / write
lastLoadedTime DateTime?
@protected, read / write
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:
read-only
onEventController StreamController<Map<T, dynamic>>
@protected, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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