AppDNABilling class
Billing bridge for AppDNA in-app purchases.
Provides purchase, restore, product info, and entitlement streaming via platform channels that delegate to native iOS/Android SDKs.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onEntitlementsChanged
→ Stream<
List< Entitlement> > -
Stream of entitlement changes.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getEntitlements(
) → Future< List< Entitlement> > - Get all current entitlements for the user.
-
getProducts(
List< String> productIds) → Future<List< ProductInfo> > - Get localized product information from the store.
-
hasActiveSubscription(
) → Future< bool> - Check if the user has an active subscription.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onEntitlementsChangedCallback(
void callback(List< Entitlement> )) → void - Register a callback for entitlement changes. Alternative to the onEntitlementsChanged stream for delegate-style usage.
-
purchase(
String productId, {String? offerToken}) → Future< PurchaseResult> - Purchase a product by its store product ID.
-
refreshEntitlementCache(
) → Future< void> - Force a refresh of the native entitlement cache from the store / backend. Real on both platforms.
-
restorePurchases(
) → Future< List< Entitlement> > - Restore previously purchased products.
-
setDelegate(
AppDNABillingDelegate? delegate) → void -
Set a delegate to receive billing lifecycle callbacks (purchases,
failures, entitlement changes, restores, billing-unavailable).
Pass
nullto clear the current delegate and stop listening. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited