PurchaseService class abstract interface

Store purchases. Only a purchase verified on a trusted server grants an entitlement: implementations report PaywallOutcome.purchased only with the verified entitlement id.

Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
updates → Stream<PaywallResult>
Purchase outcomes, as the store delivers them.
no setter

Methods

dispose() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
products(List<ProductSlot> slots) → Future<List<PaywallProduct>>
The store's products for slots.
purchase(PaywallProduct product) → Future<void>
Starts buying product; the outcome arrives on updates.
restore() → Future<void>
Restores verified purchases; outcomes arrive on updates.
toString() → String
A string representation of this object.
inherited

Operators

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