knt_rc_monetized 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.
AddToPagingDataEvent<D>
Trigger this event when you want to add new data into existing list
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.
AdWithoutViewBloc<A extends AdWithoutView>
Handles generating & loading & showing InterstitialAd unit.
AdWithView
Base class for mobile Ad that has an in-line view.
AdWithViewBloc<A extends AdWithView>
Handles generating & loading BannerAd/NativeAd.
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.
AppOpenAdBloc
AppOpenAdLoadCallback
This class holds callbacks for loading an AppOpenAd.
AppStateEventNotifier
Notifies changes in app foreground/background.
AppTrackingTransparency
Backend
Backend - is the second part of your two-classes logic component, which will live in a separated isolate and will have no effect on the UI thread. In the Backend, you should place all (heavy or not) your logic and data.
BackendActionInitializer<Event>
Helper class to register Backend's actions
BackendArgument<T>
Wrapper for data, which will send to Backend, when Frontend will initialize that
BannerAd
A banner ad.
BannerAdBloc
BannerAdListener
A listener for receiving notifications for the lifecycle of a BannerAd.
BaseApiBloc
Base handles network required events & specific DioError
BaseBloc
Base handles normal events
BaseBlocBackend
BaseEmptyResultState
BaseErrorEvent
BaseErrorState
BaseEvent
BaseHasResultState<D>
BaseInitState
BaseLoadingEvent
BaseLoadingState
BasePagingBloc<Q, D>
Base handle paging events
BasePagingBlocBackend<D>
BasePagingEvent<Q>
BasePagingResultState<D>
BaseRequestPaging<D>
BaseResetDoneState
BaseResponsePaging<D>
BaseState
BaseSubscriptionBloc
Bloc<Event, State>
Takes a Stream of Events as input and transforms them into a Stream of States as output.
BlocBase<State>
An interface for the core functionality implemented by both Bloc and Cubit.
BlocBuilder<B extends StateStreamable<S>, S>
BlocBuilder handles building a widget in response to new states. BlocBuilder is analogous to StreamBuilder but has simplified API to reduce the amount of boilerplate code needed as well as bloc-specific performance improvements. Please refer to BlocListener if you want to "do" anything in response to state changes such as navigation, showing a dialog, etc...
BlocBuilderBase<B extends StateStreamable<S>, S>
Base class for widgets that build themselves based on interaction with a specified bloc.
BlocConsumer<B extends StateStreamable<S>, S>
BlocConsumer exposes a builder and listener in order react to new states. BlocConsumer is analogous to a nested BlocListener and BlocBuilder but reduces the amount of boilerplate needed. BlocConsumer should only be used when it is necessary to both rebuild UI and execute other reactions to state changes in the bloc.
BlocEventSink<Event extends Object?>
An ErrorSink that supports adding events.
BlocListener<B extends StateStreamable<S>, S>
Takes a BlocWidgetListener and an optional bloc and invokes the listener in response to state changes in the bloc. It should be used for functionality that needs to occur only in response to a state change such as navigation, showing a SnackBar, showing a Dialog, etc... The listener is guaranteed to only be called once for each state change unlike the builder in BlocBuilder.
BlocListenerBase<B extends StateStreamable<S>, S>
Base class for widgets that listen to state changes in a specified bloc.
BlocObserver
An interface for observing the behavior of Bloc instances.
BlocOverrides
This class facilitates overriding BlocObserver and EventTransformer. It should be extended by another class in client code with overrides that construct a custom implementation. The implementation in this class defaults to the base blocObserver and eventTransformer implementation. For example:
BlocProvider<T extends StateStreamableSource<Object?>>
Takes a Create function that is responsible for creating the Bloc or Cubit and a child which will have access to the instance via BlocProvider.of(context). It is used as a dependency injection (DI) widget so that a single instance of a Bloc or Cubit can be provided to multiple widgets within a subtree.
BlocSelector<B extends StateStreamable<S>, S, T>
BlocSelector is analogous to BlocBuilder but allows developers to filter updates by selecting a new value based on the bloc state. Unnecessary builds are prevented if the selected value does not change.
CancelRunningTaskEvent
Change<State>
A Change represents the change from one State to another. A Change consists of the currentState and nextState.
ChangedPagingDataState<D>
CheckEntitlementEvent
Closable
An object that must be closed when no longer in use.
ClosedAdWithoutViewState
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.
Cubit<State>
A Cubit is similar to Bloc but has no notion of events and relies on methods to emit new states.
CustomerInfo
Class containing all information regarding the customer
DeleteFromPagingDataEvent<D>
Trigger this event when you want to delete a data from existing list
EditPagingDataEvent<D>
Trigger this event when you want to edit a data from existing list
Emittable<State extends Object?>
An object that can emit new states.
Emitter<State>
An Emitter is a class which is capable of emitting new states.
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.
ErrorSink
A generic destination for errors.
FetchedOfferingsFailureState
FetchedOfferingsState
FetchedRestoreFailureState
FetchedRestoreSuccessState
FetchingOfferingsState
FetchOfferingsEvent
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.
FrontendActionInitializer<Event>
Class
FrontendActionSubscriber<Event>
Class
FullScreenAdLoadCallback<T>
Generic parent class for ad load callbacks.
FullScreenContentCallback<Ad>
Callback events for for full screen ads, such as Rewarded and Interstitial.
IapConfig
IapService
InitializationStatus
The status of the SDK initialization.
InlineAdaptiveSize
A size for inline adaptive banner ads.
InteractorOf<BackendType extends Backend>
Class
InterstitialAd
A full-screen interstitial ad for the Google Mobile Ads Plugin.
InterstitialAdBloc
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.
LoadedAdWithViewState<A extends AdWithView>
LogInResult
Class used to hold the result of the logIn method
MaxAdContentRating
Values for RequestConfiguration.maxAdContentRating.
Maybe<T>
Class
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.
MultiBlocListener
Merges multiple BlocListener widgets into one widget tree.
MultiBlocProvider
Merges multiple BlocProvider widgets into one widget tree.
MultiRepositoryProvider
Merges multiple RepositoryProvider widgets into one widget tree.
NativeAd
A NativeAd.
NativeAdBloc
NativeAdListener
A listener for receiving notifications for the lifecycle of a NativeAd.
NativeAdmobOptions
NativeAdOptions
Used to configure native ad requests.
NativeTemplateStyle
Style options for native templates.
NativeTemplateTextStyle
Text style options for native templates.
NativeTextStyle
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
Packet<T>
Class
Packet10<T, T2, T3, T4, T5, T6, T7, T8, T9, T10>
Class
Packet2<T, T2>
Class
Packet3<T, T2, T3>
Class
Packet4<T, T2, T3, T4>
Class
Packet5<T, T2, T3, T4, T5>
Class
Packet6<T, T2, T3, T4, T5, T6>
Class
Packet7<T, T2, T3, T4, T5, T6, T7>
Class
Packet8<T, T2, T3, T4, T5, T6, T7, T8>
Class
Packet9<T, T2, T3, T4, T5, T6, T7, T8, T9>
Class
PagingWidget<Q, D, B extends BasePagingBloc<Q, D>>
PrepareAdWithoutViewEvent
PrepareAdWithViewEvent
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
RefreshAdWithViewEvent
RepositoryProvider<T>
Takes a Create function that is responsible for creating the repository and a child which will have access to the repository via RepositoryProvider.of(context). It is used as a dependency injection (DI) widget so that a single instance of a repository can be provided to multiple widgets within a subtree.
RequestConfiguration
Contains targeting information that can be applied to all ad requests.
RequestSubscriptionEvent
ResetBlocEvent
ResponseInfo
Contains information about the loaded ad or ad request.
RestoreSubscriptionEvent
RestoringState
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.
ShowAdWithoutViewEvent
ShowFreeUsageEvent
ShownFreeUsageState
SmartBannerAdSize
Ad units that render screen-width banner ads on any screen size across different devices in either Orientation.
StateStreamable<State>
A Streamable that provides synchronous access to the current state.
StateStreamableSource<State>
A StateStreamable that must be closed when no longer in use.
StoreProduct
Contains all the product details associated with a StoreProduct
StoreProductDiscount
StoreTransaction
Represents a purchase transaction
Streamable<State extends Object?>
An object that provides access to a stream of states over time.
SubscriptionBloc
SubscriptionItem
TagForChildDirectedTreatment
Values for RequestConfiguration.tagForChildDirectedTreatment.
TagForUnderAgeOfConsent
Values for RequestConfiguration.tagForUnderAgeOfConsent.
Transition<Event, State>
A Transition is the change from one state to another. Consists of the currentState, an event, and the nextState.
UnPurchasedState
UpgradeInfo
This class holds the information used when upgrading from another sku. To be used with purchaseProduct and purchasePackage.
Usage
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
KntIssue
Should create an extension for error message with switch-case
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.
PagingDataAction
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.
TrackingStatus

Mixins

Frontend
This is the first part of two-class component. Frontend will run in the UI-thread and its purpose is to update the UI after getting messages from the Backend or after calling Backend's methods
NetworkCondition
PagingAction<Q, D, B extends BasePagingBloc<Q, D>, T extends StatefulWidget>

Functions

concurrent<Event>() EventTransformer<Event>
Process events concurrently.
droppable<Event>() EventTransformer<Event>
Process only one event and ignore (drop) any new events until the current event is done.
enableSingleThreadMode() → void
In some versions of Flutter you can see, that Hot Reload take a very much time. See: https://github.com/flutter/flutter/issues/84347 And this:https://github.com/flutter/flutter/pull/84363 To solve this problem - you must have as least isolates as possible and with this method you can use Isolator in single thread mode for developing, to have fast Hot Reload as usual and enable multi-thread (standard) mode only for checking that all works fine and for production.
restartable<Event>() EventTransformer<Event>
Process only one event by cancelling any pending events and processing the new event immediately.
sequential<Event>() EventTransformer<Event>
Process events one at a time by maintaining a queue of added events and processing the events sequentially.

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.
BaseBackendInitializer<T, B extends Backend> = FutureOr<B> Function(BackendArgument<T> argument)
BlocBuilderCondition<S> = bool Function(S previous, S current)
Signature for the buildWhen function which takes the previous state and the current state and is responsible for returning a bool which determines whether to rebuild BlocBuilder with the current state.
BlocListenerCondition<S> = bool Function(S previous, S current)
Signature for the listenWhen function which takes the previous state and the current state and is responsible for returning a bool which determines whether or not to call BlocWidgetListener of BlocListener with the current state.
BlocWidgetBuilder<S> = Widget Function(BuildContext context, S state)
Signature for the builder function which takes the BuildContext and state and is responsible for returning a widget which is to be rendered. This is analogous to the builder function in StreamBuilder.
BlocWidgetListener<S> = void Function(BuildContext context, S state)
Signature for the listener function which takes the BuildContext along with the state and is responsible for executing in response to state changes.
BlocWidgetSelector<S, T> = T Function(S state)
Signature for the selector function which is responsible for returning a selected value, T, based on state.
CompareFunction<T> = int Function(T, T)
CustomerInfoHandler = Future<CustomerInfo> Function()
CustomerInfoUpdateListener = void Function(CustomerInfo customerInfo)
Used to handle async updates from Purchases. Should be implemented to receive updates when the CustomerInfo changes.
EventHandler<Event, State> = FutureOr<void> Function(Event event, Emitter<State> emit)
An event handler is responsible for reacting to an incoming Event and can emit zero or more states via the Emitter.
EventMapper<Event> = Stream<Event> Function(Event event)
Signature for a function which converts an incoming event into an outbound stream of events. Used when defining custom EventTransformers.
EventTransformer<Event> = Stream<Event> Function(Stream<Event> events, EventMapper<Event> mapper)
Used to change how events are processed. By default events are processed concurrently.
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

KntException
ProviderNotFoundException
The error that will be thrown if Provider.of fails to find a Provider as an ancestor of the BuildContext used.
UnsupportedPlatformException