linkfive_purchases library Null safety

LinkFive Purchases Package

This Plugin will connect your App to https://www.linkfive.io

Classes

BillingClient
This class can be used directly instead of InAppPurchaseConnection to call Play-specific billing APIs.
BillingClientFeatureConverter
Serializer for BillingClientFeature.
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/
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.
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.
LinkFivePurchases
LinkFive Purchases.
LinkFivePurchasesMain
LinkFiveResponseData
Response Data from LinkFive
LinkFiveResponseDataSubscription
LinkFiveVerifiedReceipt
Verified Receipt from LinkFive including all data
ProductDetails
The class represents the information of a product.
ProductDetailsResponse
The response returned by InAppPurchasePlatform.queryProductDetails.
ProrationModeConverter
Serializer for ProrationMode.
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.
SkuDetailsResponseWrapper
Translation of com.android.billingclient.api.SkuDetailsResponseListener.
SkuDetailsWrapper
Dart wrapper around com.android.billingclient.api.SkuDetails.
SkuTypeConverter
Serializer for SkuType.
SubscriptionData
SubscriptionDurationConvert
Convert The duration String from Google and Apple to an actual Duration

Extensions

LinkFiveLogLevelExtension

Constants

kInvalidBillingResultErrorMessage → const String
The error message shown when the map represents billing result is invalid from method channel.
'Invalid billing result map from method channel.'
kOnPurchasesUpdated → const String
Method identifier for the OnPurchaseUpdated method channel method.
'PurchasesUpdatedListener#onPurchasesUpdated(int, List<Purchase>)'

Enums

BillingClientFeature
Features/capabilities supported by BillingClient.isFeatureSupported().
BillingResponse
Possible BillingClient response statuses.
LinkFiveEnvironment
LinkFiveLogLevel
ProrationMode
Enum representing the proration mode.
PurchaseState
PurchaseStateWrapper
Possible state of a PurchaseWrapper.
PurchaseStatus
Status for a PurchaseDetails.
SkuType
Enum representing potential SkuDetailsWrapper.types.
SubscriptionDuration

Typedefs

OnBillingServiceDisconnected = void Function()
Callback triggered when the BillingClientWrapper is disconnected.
PurchasesUpdatedListener = void Function(PurchasesResultWrapper purchasesResult)
Callback triggered by Play in response to purchase activity.

Exceptions / Errors

InAppPurchaseException
Thrown to indicate that an action failed while interacting with the in_app_purchase plugin.