DefaultPurchaseHandler class
Default Purchase Handler Extend for your own logic
- Implemented types
Constructors
- DefaultPurchaseHandler({bool initialIsPurchaseInProgress = false, PurchaseState initialPurchaseState = PurchaseState.NOT_PURCHASED})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- initialIsPurchaseInProgress → bool
-
initial value for purchase in Progress
final
- initialPurchaseState → PurchaseState
-
initial value for purchase Success
final
- isPendingPurchase ← bool
-
Sets the value and updates all Stream listeners
no getter
- purchaseState ← PurchaseState
-
Sets the value and updates all Stream listeners
no getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
loadSubscriptions(
) → Future< bool> -
Reload the subscriptions
This will be overwritten by LinkFivePurchasesMain
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
purchase(
SubscriptionData productDetails) → Future< bool> -
Overwrite purchase to modify your purchase flow
set isPendingPurchase to show or hide loading
set purchaseState to PurchaseState.PURCHASED or PurchaseState.NOT_PURCHASED
override
-
purchaseInProgressStream(
) → Stream< bool> -
override
-
purchaseStateStream(
) → Stream< PurchaseState> -
override
-
restore(
) → Future< bool> -
Overwrite restore to modify your purchase flow
set isPendingPurchase to show or hide loading
set purchaseState to PurchaseState.PURCHASED or PurchaseState.NOT_PURCHASED
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited