BannerAdPreloader class

Preloads banner ads so they can be shown instantly.

Backed by the SDK's BannerAdPreloader. start requires an AdSize because banner requests are size-specific. Display with BannerAdView(usePreload: true) (the PlatformView polls natively).

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

count({required String adUnitId}) Future<int>
Number of preloaded ads currently buffered for adUnitId.
destroy({required String adUnitId}) Future<void>
Stops preloading and releases buffered ads for adUnitId.
isAvailable({required String adUnitId}) Future<bool>
Whether at least one preloaded ad is available for adUnitId.
start({required String adUnitId, required AdSize size, int bufferSize = 2, AdRequest request = const AdRequest()}) Future<void>
Starts preloading banners for adUnitId at size.