knt_monetize_bloc library

Classes

The base class for all ads.
AdapterResponseInfo
Response information for an individual ad network in an ad response.
AdapterStatus
An immutable snapshot of a mediation adapter's initialization status.
AdError
Error information about why an ad operation failed.
AdManagerAdRequest
Targeting info per the Ad Manager API.
AdManagerBannerAd
A banner ad displayed with Google Ad Manager.
AdManagerBannerAdListener
A listener for receiving notifications for the lifecycle of an AdManagerBannerAd.
AdManagerInterstitialAd
A full-screen interstitial ad for use with Ad Manager.
AdManagerInterstitialAdLoadCallback
This class holds callbacks for loading an AdManagerInterstitialAd.
AdmobConfig
Model contains configuration about admob unit.
AdmobService
Service handles admob initialization & generates ad unit
AdRequest
Targeting info per the AdMob API.
AdSize
AdSize represents the size of a banner ad.
AdWidget
Displays an Ad as a Flutter widget.
AdWithoutView
An Ad that is overlaid on top of the UI.
AdWithView
Base class for mobile Ad that has an in-line view.
AdWithViewListener
Shared event callbacks used in Native and Banner ads.
AmazonConfiguration
A PurchasesConfiguration convenience object that sets PurchasesConfiguration.store to Store.amazon
AnchoredAdaptiveBannerAdSize
An AdSize with the given width and a Google-optimized height to create a banner ad.
AppEventListener
Listener for app events.
AppOpenAd
A full-screen app open ad for the Google Mobile Ads Plugin.
AppOpenAdLoadCallback
This class holds callbacks for loading an AppOpenAd.
AppStateEventNotifier
Notifies changes in app foreground/background.
BannerAd
A banner ad.
BannerAdListener
A listener for receiving notifications for the lifecycle of a BannerAd.
ClosedFrequentlyAdState
ConnectSubscriptionServiceEvent
ConsentDebugSettings
Debug settings to hardcode in test requests.
ConsentForm
A rendered form for collecting consent from a user.
ConsentInformation
Utility methods for collecting consent from users.
ConsentRequestParameters
Parameters sent on updating user consent info.
CustomerInfo
Class containing all information regarding the customer
EntitlementInfo
The EntitlementInfo object gives you access to all of the information about the status of a user entitlement.
EntitlementInfos
This class contains all the entitlements associated to the user.
FetchedListSkuFailureState
FetchedListSkuState
FetchedRestoreFailureState
FetchedRestoreSuccessState
FetchingListSkuState
FetchListSkuEvent
FluidAdManagerBannerAd
An 'AdManagerBannerAd' that has fluid ad size.
FluidAdSize
A dynamically sized banner that matches its parent's width and content height.
FluidAdWidget
A widget for displaying FluidAdManagerBannerAd.
FormError
Error information about why a form operation failed.
FreeUsageCounterBloc
Handles free usage premium-feature flow.
FrequentlyAdsBloc
Handles generating & loading & showing InterstitialAd unit.
FullScreenAdLoadCallback<T>
Generic parent class for ad load callbacks.
FullScreenContentCallback<Ad>
Callback events for for full screen ads, such as Rewarded and Interstitial.
IapConfig
Model contains configuration about in-app-purchase.
IapService
InitializationStatus
The status of the SDK initialization.
InlineAdaptiveSize
A size for inline adaptive banner ads.
InterstitialAd
A full-screen interstitial ad for the Google Mobile Ads Plugin.
InterstitialAdLoadCallback
This class holds callbacks for loading an InterstitialAd.
IntroductoryPrice
Contains all the introductory information associated with a Product
IntroEligibility
Holds the introductory price status
LoadAdError
Represents errors that occur when loading an ad.
LoadedBannerAdState
LoadedNativeAdState
LogInResult
Class used to hold the result of the logIn method
MaxAdContentRating
Values for RequestConfiguration.maxAdContentRating.
MobileAds
Class contains logic that applies to the Google Mobile Ads SDK as a whole.
MonetizedRepo
Repository for handling request/response about monetized models from database.
NativeAd
A NativeAd.
NativeAdListener
A listener for receiving notifications for the lifecycle of a NativeAd.
NativeAdOptions
Used to configure native ad requests.
NativeTemplateStyle
Style options for native templates.
NativeTemplateTextStyle
Text style options for native templates.
Offering
An offering is a collection of Package available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements
Offerings
This class contains all the offerings configured in RevenueCat dashboard. For more info see https://docs.revenuecat.com/docs/entitlements
Package
Contains information about the product available for the user to purchase. For more info see https://docs.revenuecat.com/docs/entitlements
PrepareBannerAdEvent
PrepareFrequentlyAdEvent
PrepareNativeAdEvent
PromotedPurchaseResult
Class used to hold the result of the startPromotedPurchase method
PromotionalOffer
The signed discount applied to a payment
PurchasedState
Purchases
Entry point for Purchases.
PurchasesConfiguration
Used when calling configure to configure the RevenueCat plugin
PurchasesErrorHelper
Helper to convert from PlatformExceptions to PurchasesErrorCodes
PurchasingState
RCCheckEntitlementEvent
RCConnectSubscriptionServiceEvent
RCFetchedOfferingsFailureState
RCFetchedOfferingsState
RCFetchedRestoreFailureState
RCFetchingOfferingsState
RCFetchOfferingsEvent
RCPurchasedState
RCPurchasingState
RCRequestSubscriptionEvent
RCRestoreSubscriptionEvent
RCRestoringState
RCUnPurchasedState
RefreshBannerAdEvent
RefreshNativeAdEvent
RequestConfiguration
Contains targeting information that can be applied to all ad requests.
RequestSubscriptionEvent
ResponseInfo
Contains information about the loaded ad or ad request.
RestoreSubscriptionEvent
RestoringState
RevcatIapConfig
RevCatIapService
RevCatSubscriptionBloc
RewardedAd
An Ad where a user has the option of interacting with in exchange for in-app rewards.
RewardedAdLoadCallback
This class holds callbacks for loading a RewardedAd.
RewardedInterstitialAd
Rewarded interstitials are full screen ads that reward users and can be shown without a user opt in.
RewardedInterstitialAdLoadCallback
This class holds callbacks for loading a RewardedInterstitialAd.
RewardItem
Credit information about a reward received from a RewardedAd or RewardedInterstitialAd.
ServerSideVerificationOptions
Options for RewardedAd server-side verification callbacks.
ShowFreeUsageEvent
ShowFrequentlyAdEvent
ShownFreeUsageState
SmartBannerAdSize
Ad units that render screen-width banner ads on any screen size across different devices in either Orientation.
StaticAdsBloc
Handles generating & loading BannerAd/NativeAd.
StoreProduct
Contains all the product details associated with a StoreProduct
StoreProductDiscount
StoreTransaction
Represents a purchase transaction
SubscriptionBloc
Handles in-app-purchase flow.
SubscriptionItem
TagForChildDirectedTreatment
Values for RequestConfiguration.tagForChildDirectedTreatment.
TagForUnderAgeOfConsent
Values for RequestConfiguration.tagForUnderAgeOfConsent.
UnPurchasedState
UpgradeInfo
This class holds the information used when upgrading from another sku. To be used with purchaseProduct and purchasePackage.
VideoOptions
Options for controlling video playback in supported ad formats.

Enums

AdapterInitializationState
The initialization state of the mediation adapter.
AdChoicesPlacement
Indicates preferred location of AdChoices icon.
AppState
The app foreground/background state.
BillingFeature
Billing Feature types
ConsentStatus
Consent status values.
DebugGeography
Debug values for testing geography.
IntroEligibilityStatus
Possible IntroEligibility status. Use checkTrialOrIntroductoryPriceEligibility to determine the eligibility
LogLevel
Log levels.
MediaAspectRatio
Media aspect ratio for native ads.
NativeTemplateFontStyle
Font types for native templates.
OwnershipType
Enum of ownership types
PackageType
Enumeration of all possible Package types.
Period
PeriodType
Enum of supported period types for an entitlement.
PeriodUnit
PrecisionType
Allowed constants for precision type in OnPaidEventCallback.
ProrationMode
Replace SKU's ProrationMode.
PurchasesErrorCode
Different error codes returned by the Purchases functions.
PurchaseType
Supported SKU types.
RefundRequestStatus
Status codes for refund requests.
Store
Enum of supported stores
TemplateType
Template types for NativeTemplateStyle.

Typedefs

AdEventCallback = void Function(Ad ad)
The callback type to handle an event occurring for an Ad.
AdLoadErrorCallback = void Function(Ad ad, LoadAdError error)
The callback type to handle an error loading an Ad.
CustomerInfoUpdateListener = void Function(CustomerInfo customerInfo)
Used to handle async updates from Purchases. Should be implemented to receive updates when the CustomerInfo changes.
FullScreenAdLoadErrorCallback = void Function(LoadAdError error)
A callback type for when an error occurs loading a full screen ad.
GenericAdEventCallback<Ad> = void Function(Ad ad)
Generic callback type for an event occurring on an Ad.
LogHandler = void Function(LogLevel logLevel, String message)
OnConsentFormDismissedListener = void Function(FormError? formError)
Callback to be invoked when a consent form is dismissed.
OnConsentFormLoadFailureListener = void Function(FormError formError)
Callback to be invoked when a consent form failed to load.
OnConsentFormLoadSuccessListener = void Function(ConsentForm consentForm)
Callback to be invoked when a consent form loads successfully
OnConsentInfoUpdateFailureListener = void Function(FormError error)
Callback to be invoked when consent info failed to update.
OnConsentInfoUpdateSuccessListener = void Function()
Callback to be invoked when consent info is successfully updated.
OnFluidAdHeightChangedListener = void Function(FluidAdManagerBannerAd ad, double height)
The callback type for when a fluid ad's height changes.
OnPaidEventCallback = void Function(Ad ad, double valueMicros, PrecisionType precision, String currencyCode)
The callback type for when an ad receives revenue value.
OnUserEarnedRewardCallback = void Function(AdWithoutView ad, RewardItem reward)
The callback type for when a user earns a reward.
ReadyForPromotedProductPurchaseListener = void Function(String productIdentifier, Future<PromotedPurchaseResult> startPurchase())
iOS Only Listener called when a user initiates a promoted in-app purchase from the App Store. If your app is able to handle a purchase at the current time, run the startPurchase block in this method. If the app is not in a state to make a purchase: cache the startPurchase block, then call the startPurchase block when the app is ready to make the promoted purchase.

Exceptions / Errors

UnsupportedPlatformException