DVStoreClient class abstract
The platform's purchase sheet: StoreKit 2, Play Billing, or a fake.
An implementation never verifies anything. It opens the sheet, reports what the store said, and finishes what it is told to finish.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- store → DVStore
-
no setter
-
updates
→ Stream<
DVStoreDeviceTransaction> -
Transactions arriving outside a purchase call: an approved Ask to Buy,
a pending payment completed, a renewal, a purchase on another device.
no setter
Methods
-
available(
) → Future< bool> - Whether the store can sell on this device now: Play Billing connected, StoreKit 2 present and purchases allowed.
-
finish(
DVStoreDeviceTransaction transaction, {required bool consume}) → Future< void> -
Finishes
transactiononce the server has accepted it: StoreKit'sfinish(), or Play's consume whenconsume. -
listings(
Set< String> storeProductIds) → Future<List< DVStoreListing> > -
The store's listing of each of
storeProductIdsit knows. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
owned(
{bool sync = false}) → Future< List< DVStoreDeviceTransaction> > -
What this store account owns now.
syncasks the store to refresh first (AppStore.sync()), which may show a sign-in prompt, so only an explicit restore passes it. -
purchase(
DVStorePurchaseRequest request) → Future< DVStorePurchaseOutcome> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited