knt_admob library
Classes
- AdBorderRadius
- AdButtonView
- AdDecoratedView
- AdDecoration
- AdError
- AdExpanded
- AdGradient
- AdImageView
- AdLinearGradient
- AdLinearLayout
- AdMediaView
- AdPadding
- AdRadialGradient
- AdRatingBarView
- AdSingleChildView
- AdSizedView
- AdTextView
- AdView
- AppOpenAd
- An AppOpenAd model to communicate with the model in the platform side. It gives you methods to help in the implementation and event tracking.
- BannerAd
-
Creates a BannerAd and add it to the widget tree. Uses
a
PlatformView
to connect to the AdView in the platform side. Uses: - BannerAdController
-
An Banner Ad Controller model to communicate with the model on the platform side.
It gives you methods to help in the implementation and event tracking.
It's supposed to work alongside
BannerAd
, the class used to show the ad in the UI and add it to the widget tree. - BannerAdOptions
- BannerSize
- The size of a BannerAd. It's highly recommended to use BannerSize.ADAPTIVE when creating your BannerAds
- FutureSyncExecutor
- Future synchronous executor
- InterstitialAd
- An InterstitialAd model to communicate with the model in the platform side. It gives you methods to help in the implementation and event tracking.
-
LoadShowAd<
T> - MediaContent
- Class used to tell the info about the media content of a Native Ad. It's usually used alongside NativeAdController. A media content is never null.
- MobileAds
- The basic class to use Ads. It's responsible to initialize the SDK and make sure you are:
- NativeAd
- NativeAdController
-
An Native Ad Controller model to communicate with the model on the platform side.
It gives you methods to help in the implementation and event tracking.
It's supposed to work alongside
NativeAd
, the class used to show the ad in the UI and add it to the widget tree. - NativeAdOptions
- RewardedAd
- A RewardedAd model to communicate with the model on the platform side. It gives you methods to help in the implementation and event tracking.
- RewardedInterstitialAd
- A RewardedInterstitialAd model to communicate with the model on the platform side. It gives you methods to help in the implementation and event tracking.
- RewardItem
- ServerSideVerificationOptions
- Options for RewardedAd server-side verification callbacks.
- VideoOptions
Enums
- AdGradientOrientation
- The orientation or the gradient
- AdVideoEvent
-
The video events a NativeAdController can receive. Listen
to the events using
controller.onVideoEvent.listen((event) {})
. - BannerAdEvent
-
The events a BannerAdController can receive. Listen
to the events using
controller.onEvent.listen((event) {})
. - FullScreenAdEvent
-
The events a full screen ad can receive. Listen
to the events using
fullScreenAd.onEvent.listen((event) {})
. - LayoutGravity
- NativeAdEvent
-
The events a NativeAdController can receive. Listen
to the events using
controller.onEvent.listen((event) {})
. - RewardedAdEvent
-
The events a RewardedAd can receive. Listen
to the events using
rewardedAd.onEvent.listen((event) {})
. - TrackingAuthorizationStatus
Mixins
Constants
Properties
- adBannerLayoutBuilder → AdLayoutBuilder
-
Default banner ad layout
no setter
- mediumAdTemplateLayoutBuilder → AdLayoutBuilder
-
The medium template is meant to be a one-half to three-quarter
page view but can also be used in feeds. It is good for landing
pages or splash pages.
no setter
- smallAdTemplateLayoutBuilder → AdLayoutBuilder
-
The small template is ideal for ListView, or any time
you need a long rectangular ad view. For instance you
could use it for in-feed ads.
no setter
Typedefs
- AdBuilder = Widget Function(BuildContext context, Widget child)
- The Ad Builder
- AdLayoutBuilder = AdLinearLayout Function(AdRatingBarView ratingBar, AdMediaView media, AdImageView icon, AdTextView headline, AdTextView advertiser, AdTextView body, AdTextView price, AdTextView store, AdTextView attribution, AdButtonView button)
-
The layout builder. It must return an
AdLinearLayout
and can't return null