NativeAdController class

Constructors

NativeAdController({AdListener? listener, DislikeAdListener? dislikeListener, NativeAdConfiguration? adConfiguration, AdParam? adParam})

Properties

adParam AdParam
no setter
dislikeListener DislikeAdListener?
Listener function for ad dislike events.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int
no setter
listener AdListener?
Listener function for ad events.
getter/setter pair
loadListener NativeAdStateListener
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

destroy() Future<bool?>
Destroys an ad object.
dislikeAd(DislikeAdReason reason) Future<bool?>
Does not display the current ad.
getAdSign() Future<String?>
Obtains the sign of an ad.
getAdSource() Future<String?>
Obtains an ad source.
getAdvertiserInfo() Future<List<AdvertiserInfo>>
Obtains the advertiser information.
getAppInfo() Future<AppInfo>
Obtains the information about the promoted app
getBiddingInfo() Future<BiddingInfo?>
Returns real-time bidding data.
getCallToAction() Future<String?>
Obtains the text to be displayed on a button.
getDescription() Future<String?>
Obtains the description of an ad.
getDislikeAdReasons() Future<List<DislikeAdReason>>
Obtains reasons why an ad is disliked.
getPromoteInfo() Future<PromoteInfo>
Obtains the promotion object.
getTitle() Future<String?>
Obtains the title of an ad.
getUniqueId() Future<String?>
getVideoOperator() Future<VideoOperator?>
Obtains the video controller of an ad.
getWhyThisAd() Future<String?>
Obtains the URL of the Why this ad page.
gotoWhyThisAdPage() → void
Goes to the page explaining why an ad is displayed.
hasAdvertiserInfo() Future<bool>
Checks whether advertiser information is delivered for the current ad.
hideAdvertiserInfoDialog() Future<void>
Hides the advertiser information dialog box.
isCustomClickAllowed() Future<bool?>
Checks whether custom tap gestures are enabled.
isCustomDislikeThisAdEnabled() Future<bool?>
Checks whether custom tap gestures are enabled.
isLoading() Future<bool?>
Checks whether an ad is being loaded.
isTransparencyOpen() Future<bool>
Indicates whether ad transparency information is displayed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordClickEvent() Future<bool?>
Indicates that the method has finished execution.
recordImpressionEvent(Bundle bundle) Future<bool?>
Reports an ad impression.
setAllowCustomClick() → void
Checks whether an ad is being loaded.
setup(String adSlotId) → void
showAdvertiserInfoDialog() Future<void>
Displays the advertiser information dialog box.
showAppDetailPage() Future<void>
Shows the introduction page of the promoted app.
showPermissionPage() Future<void>
Shows the app permission list.
showPrivacyPolicy() Future<void>
Shows the privacy policy of the app.
toString() String
A string representation of this object.
inherited
transparencyTplUrl() Future<String>
Obtains the redirection URL.
triggerClick(Bundle bundle) Future<bool?>
Reports a tap.

Operators

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