DefaultPurchaseHandler class

Default Purchase Handler

LinkFivePurchasesMain extends this class to control the state of a purchase

Implemented types
Implementers

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
getter/setter pair
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
purchaseInProgressStream() Stream<bool>
override
purchaseStateStream() Stream<PurchaseState>
override
toString() String
A string representation of this object.
inherited
updateStateFromActiveProducts(LinkFiveActiveProducts activeProducts) → dynamic
Whenever the plugin receives a new active Products we will update the state to either

Operators

operator ==(Object other) bool
The equality operator.
inherited