CustomNativeAd class
A CustomNativeAd.
To display this ad, instantiate an AdWidget with this as a parameter after calling load.
- Inheritance
-
- Object
- Ad
- AdWithView
- CustomNativeAd
Constructors
- CustomNativeAd({required String adUnitId, required String factoryId, required bool isMediumNativeAds, required NativeAdListener listener})
- Creates a CustomNativeAd.
Properties
- adUnitId → String
-
Identifies the source of Ads for your application.
finalinherited
- factoryId → String
-
An identifier for the factory that creates the Platform view.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isMediumNativeAds → bool
-
An identifier for the isMediumNativeAds that creates the Medium Platform view.
final
- listener → NativeAdListener
-
A listener for receiving events in the ad lifecycle.
final
- responseInfo ↔ ResponseInfo?
-
Contains information about the loaded request.
getter/setter pairinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> -
Frees the plugin resources associated with this ad.
inherited
-
load(
) → Future< void> -
Starts loading this ad.
override
-
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