logic/logic library
Classes
- AdEventListener
- FastAdBlocEventPayload
- FastAdConsentService
- FastAdInfo
- A class representing information about FastAd.
- FastAdInfoBloc
- FastAdInfoBlocEvent
- FastAdInfoBlocState
- FastAdInfoJob
- FastAdmobInterstitialAdService
- Controller for Interstitial ads.
- FastAdmobNativeAdService
- This class provides functionality to request native ads from AdMob.
- FastAdmobRewardedAdService
- Controller for a Rewarded ad.
- FastAdmobSplashAdService
- Controller for a App Open ad.
- FastAdService
- A service class to interact with the Fastyle Ad API.
- FastAdSlotDelegate
- FastAdUnits
- FastInterstitialAdBloc
- FastInterstitialAdBlocEvent
- FastInterstitialAdBlocEventPayload
- FastInterstitialAdBlocState
- FastInterstitialAdJob
- FastNativeAdBloc
- FastNativeAdBlocEvent
- FastNativeAdBlocEventPayload
- FastNativeAdBlocState
- FastResponseAd
-
The FastResponseAd class represents a fast response advertisement,
extending the
TModel
base class. It contains properties that describe the ad's language, title, description, image, URL, ranking, video, discount, button, and price. - FastResponseAdAsset
-
A class representing a fast response ad asset with different sizes.
This class extends the
TModel
class. - FastResponseAdMerchant
- FastResponseAdRanking
-
A class representing Fast Response Ad Ranking.
Extends the
TModel
class from thetmodel
package. - FastRewardedAdBloc
- BLoC class for managing rewarded ads with AdMob integration.
- FastRewardedAdBlocEvent
- FastRewardedAdBlocEventPayload
- FastRewardedAdBlocState
- FastRewardedAdJob
- FastSplashAdBloc
- BLoC class for managing the display and control of a splash ad in a Flutter application.
- FastSplashAdBlocEvent
- FastSplashAdBlocEventPayload
- FastSplashAdBlocState
- FastSplashAdDataProvider
-
A
TDocumentDataProvider
that provides a way to persist and retrieve FastSplashAdDocument objects. - FastSplashAdDocument
- The app onboarding document.
- FastSplashAdJob
Enums
Mixins
Constants
- kFastAdAutoRefresh → const bool
- kFastAdDefaultTimeout → const Duration
- The default timeout for loading ads. Default is 15 seconds.
- kFastAdRefreshInterval → const int
- The default refresh interval for ads. Default is 300 seconds.
- kFastAdRewardedBlockDuration → const Duration
- kFastAdServiceCacheTTL → const Duration
- The default time to keep in cache the ad service response.
- kFastAdServiceCacheTTLDebug → const Duration
- The default time to keep in cache the ad service response in debug mode.
- kFastAdShowRemoveAdLink → const bool
- kFastAdSplashAdTimeThreshold → const int
- kFastInterstitialAdThreshold → const int
- The threshold for showing an interstitial ad. Default is 3 app launches.
-
kFastNativeAdAssetSizes
→ const Map<
FastAdSize, double> -
kFastNativeAdContainerHeights
→ const Map<
FastAdSize, double> - kFastNativeAdmobEnabled → const bool
- kFastSplashAdStoreName → const String
- kFastSplashAdThreshold → const int
- The threshold for showing a splash ad. Default is 3 app launches.
Functions
-
buildAdConsentSettingItem(
BuildContext context, {String? labelText}) → FastItem< String> -
getNativeAdLoadingWidget(
FastAdSize adSize) → Widget - Returns a loading widget for native ads based on the provided ad size.
-
isAdRequestAllowedForCountry(
{String? country, List< String> ? whiteList}) → bool - Determines if an ad request is allowed based on the user's country and a whitelist of allowed countries.
-
showConsentForm(
) → Future< void> -
showConsentFormIfNeeded(
) → Future< void> -
tryDecodeAd(
String? data) → FastResponseAd? -
Tries to decode ad data from the provided JSON
data
. -
tryDecodeAds(
String? data) → List< FastResponseAd> ? - Tries to decode a list of advertisements from JSON data.
Typedefs
- FastAdWidgetBuilder = Widget Function(BuildContext context, FastAdSize size)