CommonNativeAd class

Common Native API build on top of inventory + DreamNativeAd.

Constructors

CommonNativeAd({required String key, required String defaultUnitId, AdInventoryConfig? config})

Properties

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

Methods

destroy() → void
load(BuildContext context) → Future<DreamAdResult>
Tùy chọn: chỉ load, không show.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setListener(DreamNativeAdListener listener) → void
show(BuildContext context, [Widget container = const SizedBox.shrink()]) → Future<DreamAdResult>
Load và show native ad, trả về widget qua DreamAdCompleted.adWidget.
toString() → String
A string representation of this object.
inherited

Operators

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