PurchaseHandler class
Handles purchases and updates purchased products state.
Properties
-
getPurchasedProductIds
→ List<
String> -
Returns a list of purchased product IDs
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addPurchasedProduct(
String key, Purchase purchase) → void - Adds a purchased product to the cache
-
deliverContent(
String productId) → Future< void> - Example content delivery
-
handlePurchaseUpdate(
Purchase? purchase) → Future< void> - Handles purchase updates (cross-platform)
-
isProductPurchased(
String productId) → bool - Checks if a product is purchased
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → PurchaseHandler
-
final