QueryResolver class abstract

GraphQL root query operations.

Constructors

QueryResolver()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canPresentExternalPurchaseNoticeIOS() Future<bool>
Check eligibility for the external purchase notice sheet (iOS 17.4+). Uses ExternalPurchase.canPresent. See: https://www.openiap.dev/docs/apis/ios/can-present-external-purchase-notice-ios
currentEntitlementIOS(String sku) Future<PurchaseIOS?>
Get the user's current entitlement for a product, using StoreKit 2 (iOS 15+). See: https://www.openiap.dev/docs/apis/ios/current-entitlement-ios
fetchProducts({required List<String> skus, ProductQueryType? type}) Future<FetchProductsResult>
Fetch products or subscriptions from the store. See: https://www.openiap.dev/docs/apis/fetch-products
getActiveSubscriptions([List<String>? subscriptionIds]) Future<List<ActiveSubscription>>
Get details of all currently active subscriptions (filters by subscriptionIds when provided). See: https://www.openiap.dev/docs/apis/get-active-subscriptions
getAllTransactionsIOS() Future<List<PurchaseIOS>>
List every StoreKit transaction (finished + unfinished) for the current user. Requires the SK2ConsumableTransactionHistory Info.plist key in the host app for finished consumables to be included (iOS 18+). Unlike getAvailablePurchases, always returns the iOS-specific PurchaseIOS shape. See: https://www.openiap.dev/docs/apis/ios/get-all-transactions-ios
getAppTransactionIOS() Future<AppTransaction?>
Fetch the app transaction (iOS 16+). See: https://www.openiap.dev/docs/apis/ios/get-app-transaction-ios
getAvailablePurchases({bool? alsoPublishToEventListenerIOS, bool? includeSuspendedAndroid, bool? onlyIncludeActiveItemsIOS}) Future<List<Purchase>>
List active purchases for the current user. See: https://www.openiap.dev/docs/apis/get-available-purchases
getExternalPurchaseCustomLinkTokenIOS(ExternalPurchaseCustomLinkTokenTypeIOS tokenType) Future<ExternalPurchaseCustomLinkTokenResultIOS>
Fetch a token for Apple's External Purchase Server reporting API (iOS 18.1+). Use this token to report transactions made through ExternalPurchaseCustomLink. Reference: https://developer.apple.com/documentation/storekit/externalpurchasecustomlink/token(for:) See: https://www.openiap.dev/docs/apis/ios/get-external-purchase-custom-link-token-ios
getPendingTransactionsIOS() Future<List<PurchaseIOS>>
List unfinished StoreKit transactions in the queue. See: https://www.openiap.dev/docs/apis/ios/get-pending-transactions-ios
getPromotedProductIOS() Future<ProductIOS?>
Read the App Store-promoted product, if any (iOS 11+). See: https://www.openiap.dev/docs/apis/ios/get-promoted-product-ios
getReceiptDataIOS() Future<String?>
Get base64-encoded receipt data (legacy validation). See: https://www.openiap.dev/docs/apis/ios/get-receipt-data-ios
getStorefront() Future<String>
Return the user's storefront country code. See: https://www.openiap.dev/docs/apis/get-storefront
getStorefrontIOS() Future<String>
Deprecated. Get the current App Store storefront country code — use cross-platform getStorefront instead. See: https://www.openiap.dev/docs/apis/ios/get-storefront-ios
getTransactionJwsIOS(String sku) Future<String?>
Return the JWS string for a transaction (StoreKit 2). See: https://www.openiap.dev/docs/apis/ios/get-transaction-jws-ios
hasActiveSubscriptions([List<String>? subscriptionIds]) Future<bool>
Check whether the user has any active subscription. See: https://www.openiap.dev/docs/apis/has-active-subscriptions
isEligibleForExternalPurchaseCustomLinkIOS() Future<bool>
Check eligibility for the custom-link variant of external purchase (iOS 18.1+). Returns true if the app can use custom external purchase links. Reference: https://developer.apple.com/documentation/storekit/externalpurchasecustomlink/iseligible See: https://www.openiap.dev/docs/apis/ios/is-eligible-for-external-purchase-custom-link-ios
isEligibleForIntroOfferIOS(String groupID) Future<bool>
Check intro-offer eligibility for a subscription group. See: https://www.openiap.dev/docs/apis/ios/is-eligible-for-intro-offer-ios
isTransactionVerifiedIOS(String sku) Future<bool>
Check whether a transaction's JWS verification passed (StoreKit 2). See: https://www.openiap.dev/docs/apis/ios/is-transaction-verified-ios
latestTransactionIOS(String sku) Future<PurchaseIOS?>
Get the latest verified transaction for a product, using StoreKit 2. See: https://www.openiap.dev/docs/apis/ios/latest-transaction-ios
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscriptionStatusIOS(String sku) Future<List<SubscriptionStatusIOS>>
Get subscription status objects from StoreKit 2 (iOS 15+). See: https://www.openiap.dev/docs/apis/ios/subscription-status-ios
toString() String
A string representation of this object.
inherited
validateReceiptIOS({VerifyPurchaseAppleOptions? apple, VerifyPurchaseGoogleOptions? google, VerifyPurchaseHorizonOptions? horizon}) Future<VerifyPurchaseResultIOS>
Deprecated. Legacy App Store receipt validation — use verifyPurchase instead. See: https://www.openiap.dev/docs/apis/ios/validate-receipt-ios

Operators

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