linkfive_purchases_provider library
The Library is made by LinkFive - Flutter Subscription Management https://www.linkfive.io/
Checkout our website for more plugins
Classes
- AlternativeBillingOnlyReportingDetailsWrapper
- Params containing the response code and the debug message from the Play Billing API response.
- BillingChoiceModeConverter
- Serializer for BillingChoiceMode.
- BillingClient
-
This class can be used directly instead of
InAppPurchaseConnection
to call Play-specific billing APIs. - BillingClientFeatureConverter
- Serializer for BillingClientFeature.
- BillingClientManager
- Utility class that manages a BillingClient connection.
- BillingResponseConverter
- Serializer for BillingResponse.
- BillingResultWrapper
- Params containing the response code and the debug message from the Play Billing API response.
- CallbackInterface
- This plugin is made by LinkFive - Flutter Subscription Management https://www.linkfive.io/
-
ChangeNotifierProvider<
T extends ChangeNotifier?> - Listens to a ChangeNotifier, expose it to its descendants and rebuilds dependents whenever ChangeNotifier.notifyListeners is called.
-
ChangeNotifierProxyProvider<
T, R extends ChangeNotifier?> - A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values.
-
ChangeNotifierProxyProvider0<
R extends ChangeNotifier?> - A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values.
-
ChangeNotifierProxyProvider2<
T, T2, R extends ChangeNotifier?> - A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values.
-
ChangeNotifierProxyProvider3<
T, T2, T3, R extends ChangeNotifier?> - A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values.
-
ChangeNotifierProxyProvider4<
T, T2, T3, T4, R extends ChangeNotifier?> - A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values.
-
ChangeNotifierProxyProvider5<
T, T2, T3, T4, T5, R extends ChangeNotifier?> - A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values.
-
ChangeNotifierProxyProvider6<
T, T2, T3, T4, T5, T6, R extends ChangeNotifier?> - A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values.
-
Consumer<
T> - Obtains Provider<T> from its ancestors and passes its value to builder.
-
Consumer2<
A, B> - Obtains Provider<T> from its ancestors and passes its value to builder.
-
Consumer3<
A, B, C> - Obtains Provider<T> from its ancestors and passes its value to builder.
-
Consumer4<
A, B, C, D> - Obtains Provider<T> from its ancestors and passes its value to builder.
-
Consumer5<
A, B, C, D, E> - Obtains Provider<T> from its ancestors and passes its value to builder.
-
Consumer6<
A, B, C, D, E, F> - Obtains Provider<T> from its ancestors and passes its value to builder.
-
DeferredInheritedProvider<
T, R> - An InheritedProvider where the object listened is not the object emitted.
-
FutureProvider<
T> -
Listens to a Future and exposes its result to
child
and its descendants. - HasBillingResponse
- Abstraction of result of BillingClient operation that includes a BillingResponse.
- HostBillingClientCallbackHandler
- Implementation of InAppPurchaseCallbackApi, for use by BillingClient.
- IAPError
- Captures an error from the underlying purchase platform.
- InAppPurchasePlatform
- The interface that implementations of in_app_purchase must implement.
- InAppPurchasePlatformAddition
- The interface that platform implementations must implement when they want to provide platform-specific in_app_purchase features.
- InAppPurchasePlatformAdditionProvider
- The InAppPurchasePlatformAdditionProvider is responsible for providing a platform-specific InAppPurchasePlatformAddition.
-
InheritedContext<
T> - A BuildContext associated to an InheritedProvider.
-
InheritedProvider<
T> - A generic implementation of an InheritedWidget.
- LinkFiveActiveProducts
- All active and valid LinkFive plans & Products
- LinkFiveInterface
- This plugin is made by LinkFive - Flutter Subscription Management https://www.linkfive.io/
- LinkFiveLogger
- Logger used by LinkFive applications
- LinkFivePlan
- Verified Receipt from LinkFive including all data
- LinkFiveProductDetails
- LinkFive class with platform specific information
- LinkFiveProducts
- LinkFive Products to offer.
- LinkFiveProvider
- LinkFive Provider
- LinkFivePurchases
- LinkFive Purchases.
- LinkFivePurchasesImpl
- LinkFiveResponseData
- Response Data from LinkFive
- LinkFiveResponseDataSubscription
-
ListenableProvider<
T extends Listenable?> - Listens to a Listenable, expose it to its descendants and rebuilds dependents whenever the listener emits an event.
-
ListenableProxyProvider<
T, R extends Listenable?> - A variation of ListenableProvider that builds its value from values obtained from other providers.
-
ListenableProxyProvider0<
R extends Listenable?> - A variation of ListenableProvider that builds its value from values obtained from other providers.
-
ListenableProxyProvider2<
T, T2, R extends Listenable?> - A variation of ListenableProvider that builds its value from values obtained from other providers.
-
ListenableProxyProvider3<
T, T2, T3, R extends Listenable?> - A variation of ListenableProvider that builds its value from values obtained from other providers.
-
ListenableProxyProvider4<
T, T2, T3, T4, R extends Listenable?> - A variation of ListenableProvider that builds its value from values obtained from other providers.
-
ListenableProxyProvider5<
T, T2, T3, T4, T5, R extends Listenable?> - A variation of ListenableProvider that builds its value from values obtained from other providers.
-
ListenableProxyProvider6<
T, T2, T3, T4, T5, T6, R extends Listenable?> - A variation of ListenableProvider that builds its value from values obtained from other providers.
- MultiProvider
- A provider that merges multiple providers into a single linear widget tree. It is used to improve readability and reduce boilerplate code of having to nest multiple layers of providers.
- OneTimePurchaseOfferDetailsWrapper
-
Dart wrapper around
com.android.billingclient.api.ProductDetails.OneTimePurchaseOfferDetails
. - Period
- The Period class holds the amounts of periodUnits. Basically 3 Months or 5 Days, 1 Year etc.
- PricingPhase
- A Product Phase represents a pricing interval.
- PricingPhaseWrapper
- Represents a pricing phase, describing how a user pays at a point in time.
- ProductDetails
- The class represents the information of a product.
- ProductDetailsResponse
- The response returned by InAppPurchasePlatform.queryProductDetails.
- ProductDetailsResponseWrapper
-
Translation of
com.android.billingclient.api.ProductDetailsResponseListener
. - ProductDetailsWrapper
-
Dart wrapper around
com.android.billingclient.api.ProductDetails
. - ProductTypeConverter
- Serializer for ProductType.
- ProductWrapper
-
Dart wrapper around
com.android.billingclient.api.Product
. - ProrationModeConverter
- Serializer for ProrationMode.
-
Provider<
T> - A Provider that manages the lifecycle of the value it provides by delegating to a pair of Create and Dispose.
- ProviderBinding
-
ProxyProvider<
T, R> - A provider that builds a value based on other providers.
-
ProxyProvider0<
R> - A provider that builds a value based on other providers.
-
ProxyProvider2<
T, T2, R> - A provider that builds a value based on other providers.
-
ProxyProvider3<
T, T2, T3, R> - A provider that builds a value based on other providers.
-
ProxyProvider4<
T, T2, T3, T4, R> - A provider that builds a value based on other providers.
-
ProxyProvider5<
T, T2, T3, T4, T5, R> - A provider that builds a value based on other providers.
-
ProxyProvider6<
T, T2, T3, T4, T5, T6, R> - A provider that builds a value based on other providers.
- PurchaseDetails
- Represents the transaction details of a purchase.
- PurchaseHistoryRecordWrapper
- Data structure representing a purchase history record.
- PurchaseParam
- The parameter object for generating a purchase.
- PurchasesHistoryResult
- A data struct representing the result of a purchase history.
- PurchasesResultWrapper
- A data struct representing the result of a transaction.
- PurchaseStateConverter
- Serializer for PurchaseStateWrapper.
- PurchaseStateStreamInterface
- PurchaseVerificationData
- Represents the data that is used to verify purchases.
- PurchaseWrapper
- Data structure representing a successful purchase.
- ReassembleHandler
- If you need your provider to be notified when 'Hot Reload' occurs, use this class
- RecurrenceModeConverter
- Serializer for RecurrenceMode.
- ReplacementModeConverter
- Serializer for ReplacementMode.
-
Selector<
A, S> - An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change.
-
Selector0<
T> - A base class for custom Selector.
-
Selector2<
A, B, S> - An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change.
-
Selector3<
A, B, C, S> - An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change.
-
Selector4<
A, B, C, D, S> - An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change.
-
Selector5<
A, B, C, D, E, S> - An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change.
-
Selector6<
A, B, C, D, E, F, S> - An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change.
-
StreamProvider<
T> -
Listens to a Stream and exposes its content to
child
and descendants. - SubscriptionData
- SubscriptionOfferDetailsWrapper
-
Dart wrapper around
com.android.billingclient.api.ProductDetails.SubscriptionOfferDetails
. - UserChoiceDetailsProductWrapper
- Data structure representing a UserChoiceDetails product.
- UserChoiceDetailsWrapper
-
This wraps
com.android.billingclient.api.UserChoiceDetails
-
ValueListenableProvider<
T> - Listens to a ValueListenable and exposes its current value.
Enums
- BillingChoiceMode
- Plugin concept to cover billing modes.
- BillingClientFeature
- Features/capabilities supported by BillingClient.isFeatureSupported().
- BillingResponse
-
Possible
BillingClient
response statuses. - LinkFiveEnvironment
- LinkFiveLogLevel
- PeriodUnit
- ISO 8601 conform Units
- ProductType
- Enum representing potential ProductDetailsWrapper.productTypes.
- ProrationMode
- Enum representing the proration mode.
- PurchaseState
- PurchaseStateWrapper
- Possible state of a PurchaseWrapper.
- PurchaseStatus
- Status for a PurchaseDetails.
- Recurrence
- RecurrenceMode
- Recurrence mode of the pricing phase.
- ReplacementMode
- Enum representing the replacement mode.
- SubscriptionDuration
Extensions
- LinkFiveLogLevelExtension on LinkFiveLogLevel
- ReadContext on BuildContext
- Exposes the read method.
- SelectContext on BuildContext
-
Adds a
select
method on BuildContext. - WatchContext on BuildContext
- Exposes the watch method.
Constants
- kInvalidAlternativeBillingReportingDetailsErrorMessage → const String
- The error message shown when the map representing details is invalid from method channel.
- kInvalidBillingResultErrorMessage → const String
- The error message shown when the map represents billing result is invalid from method channel.
Typedefs
- BillingClientFactory = BillingClient Function(PurchasesUpdatedListener onPurchasesUpdated, UserSelectedAlternativeBillingListener? alternativeBillingListener)
- Factory for creating BillingClient instances, to allow injection of custom billing clients in tests.
-
Create<
T> = T Function(BuildContext context) -
A function that creates an object of type
T
. -
DeferredStartListening<
T, R> = VoidCallback Function(InheritedContext< R?> context, void setState(R value), T controller, R? value) -
A callback used to handle the subscription of
controller
. -
Dispose<
T> = void Function(BuildContext context, T value) -
A function that disposes an object of type
T
. -
ErrorBuilder<
T> = T Function(BuildContext context, Object? error) - A callback used to build a valid value from an error.
-
Locator
= T Function<
T>() - A generic function that can be called to read providers, without having a reference on BuildContext.
- OnBillingServiceDisconnected = void Function()
-
Callback triggered when the
BillingClientWrapper
is disconnected. -
ProviderBuilder<
R> = Widget Function(BuildContext context, R value, Widget child) -
ProxyProviderBuilder<
T, R> = R Function(BuildContext context, T value, R? previous) -
ProxyProviderBuilder2<
T, T2, R> = R Function(BuildContext context, T value, T2 value2, R? previous) -
ProxyProviderBuilder3<
T, T2, T3, R> = R Function(BuildContext context, T value, T2 value2, T3 value3, R? previous) -
ProxyProviderBuilder4<
T, T2, T3, T4, R> = R Function(BuildContext context, T value, T2 value2, T3 value3, T4 value4, R? previous) -
ProxyProviderBuilder5<
T, T2, T3, T4, T5, R> = R Function(BuildContext context, T value, T2 value2, T3 value3, T4 value4, T5 value5, R? previous) -
ProxyProviderBuilder6<
T, T2, T3, T4, T5, T6, R> = R Function(BuildContext context, T value, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, R? previous) - PurchasesUpdatedListener = void Function(PurchasesResultWrapper purchasesResult)
- Callback triggered by Play in response to purchase activity.
-
ShouldRebuild<
T> = bool Function(T previous, T next) - Used by providers to determine whether dependents needs to be updated when the value exposed changes
-
StartListening<
T> = VoidCallback Function(InheritedContext< T?> element, T value) - A callback used to start the listening of an object and return a function that cancels the subscription.
-
UpdateShouldNotify<
T> = bool Function(T previous, T current) -
A function that returns true when the update from
previous
tocurrent
should notify listeners, if any. - UserSelectedAlternativeBillingListener = void Function(UserChoiceDetailsWrapper userChoiceDetailsWrapper)
- Wraps a UserChoiceBillingListener
Exceptions / Errors
- InAppPurchaseException
- Thrown to indicate that an action failed while interacting with the in_app_purchase plugin.
- ProviderNotFoundException
- The error that will be thrown if Provider.of fails to find a Provider as an ancestor of the BuildContext used.
- ProviderNullException
-
Called
Provider.of<T>
instead ofProvider.of<T?>
but the provider returnednull
.