VccAdControl class
Controls a single ad placement identified by tag.
Create one instance per screen or ad placement, call addAdId for each ad slot, then requestAds to trigger the native request. Dispose with dispose when the owning widget is removed.
Constructors
- VccAdControl({required String tag})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialized
↔ Future<
void> -
latefinal
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tag → String
-
final
Methods
-
addAdId(
String adId, AdCallback callback) → void -
Registers
adIdto watch for ad events (ready / fail / size). -
dispose(
) → void - Cancels the event-channel subscription. Call in State.dispose.
-
getAdType(
String adId) → String -
Returns the ad type for
adId, empty string if unknown. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestAds(
String requestId) → void - Sends an ad request to the native SDK for all registered ad IDs.
-
showWelcomeAd(
String requestId, String adId) → void -
Gọi native hiển thị welcome ad cho
adId. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited