-
public interface QueryResolverGraphQL root query operations.
-
-
Method Summary
Modifier and Type Method Description abstract BooleancanPresentExternalPurchaseNoticeIOS()Check if external purchase notice sheet can be presented (iOS 17.4+) Uses ExternalPurchase. abstract PurchaseIOScurrentEntitlementIOS(String sku)Get current StoreKit 2 entitlements (iOS 15+) abstract FetchProductsResultfetchProducts(ProductRequest params)Retrieve products or subscriptions from the store abstract List<ActiveSubscription>getActiveSubscriptions(List<String> subscriptionIds)Get active subscriptions (filters by subscriptionIds when provided) abstract AppTransactiongetAppTransactionIOS()Fetch the current app transaction (iOS 16+) abstract List<Purchase>getAvailablePurchases(PurchaseOptions options)Get all available purchases for the current user abstract ExternalPurchaseCustomLinkTokenResultIOSgetExternalPurchaseCustomLinkTokenIOS(ExternalPurchaseCustomLinkTokenTypeIOS tokenType)Get external purchase token for reporting to Apple (iOS 18.1+). abstract List<PurchaseIOS>getPendingTransactionsIOS()Retrieve all pending transactions in the StoreKit queue abstract ProductIOSgetPromotedProductIOS()Get the currently promoted product (iOS 11+) abstract StringgetReceiptDataIOS()Get base64-encoded receipt data for validation abstract StringgetStorefront()Get the current storefront country code abstract StringgetStorefrontIOS()Get the current App Store storefront country code abstract StringgetTransactionJwsIOS(String sku)Get the transaction JWS (StoreKit 2) abstract BooleanhasActiveSubscriptions(List<String> subscriptionIds)Check whether the user has active subscriptions abstract BooleanisEligibleForExternalPurchaseCustomLinkIOS()Check if app is eligible for ExternalPurchaseCustomLink API (iOS 18.1+). abstract BooleanisEligibleForIntroOfferIOS(String groupID)Check introductory offer eligibility for a subscription group abstract BooleanisTransactionVerifiedIOS(String sku)Verify a StoreKit 2 transaction signature abstract PurchaseIOSlatestTransactionIOS(String sku)Get the latest transaction for a product using StoreKit 2 abstract List<SubscriptionStatusIOS>subscriptionStatusIOS(String sku)Get StoreKit 2 subscription status details (iOS 15+) abstract VerifyPurchaseResultIOSvalidateReceiptIOS(VerifyPurchaseProps options)Validate a receipt for a specific product -
-
Method Detail
-
canPresentExternalPurchaseNoticeIOS
abstract Boolean canPresentExternalPurchaseNoticeIOS()
Check if external purchase notice sheet can be presented (iOS 17.4+) Uses ExternalPurchase.canPresent
-
currentEntitlementIOS
abstract PurchaseIOS currentEntitlementIOS(String sku)
Get current StoreKit 2 entitlements (iOS 15+)
-
fetchProducts
abstract FetchProductsResult fetchProducts(ProductRequest params)
Retrieve products or subscriptions from the store
-
getActiveSubscriptions
abstract List<ActiveSubscription> getActiveSubscriptions(List<String> subscriptionIds)
Get active subscriptions (filters by subscriptionIds when provided)
-
getAppTransactionIOS
abstract AppTransaction getAppTransactionIOS()
Fetch the current app transaction (iOS 16+)
-
getAvailablePurchases
abstract List<Purchase> getAvailablePurchases(PurchaseOptions options)
Get all available purchases for the current user
-
getExternalPurchaseCustomLinkTokenIOS
abstract ExternalPurchaseCustomLinkTokenResultIOS getExternalPurchaseCustomLinkTokenIOS(ExternalPurchaseCustomLinkTokenTypeIOS tokenType)
Get external purchase token for reporting to Apple (iOS 18.1+). Use this token with Apple's External Purchase Server API to report transactions. Reference: https://developer.apple.com/documentation/storekit/externalpurchasecustomlink/token(for:)
-
getPendingTransactionsIOS
abstract List<PurchaseIOS> getPendingTransactionsIOS()
Retrieve all pending transactions in the StoreKit queue
-
getPromotedProductIOS
abstract ProductIOS getPromotedProductIOS()
Get the currently promoted product (iOS 11+)
-
getReceiptDataIOS
abstract String getReceiptDataIOS()
Get base64-encoded receipt data for validation
-
getStorefront
abstract String getStorefront()
Get the current storefront country code
-
getStorefrontIOS
abstract String getStorefrontIOS()
Get the current App Store storefront country code
-
getTransactionJwsIOS
abstract String getTransactionJwsIOS(String sku)
Get the transaction JWS (StoreKit 2)
-
hasActiveSubscriptions
abstract Boolean hasActiveSubscriptions(List<String> subscriptionIds)
Check whether the user has active subscriptions
-
isEligibleForExternalPurchaseCustomLinkIOS
abstract Boolean isEligibleForExternalPurchaseCustomLinkIOS()
Check if app is eligible for ExternalPurchaseCustomLink API (iOS 18.1+). Returns true if the app can use custom external purchase links. Reference: https://developer.apple.com/documentation/storekit/externalpurchasecustomlink/iseligible
-
isEligibleForIntroOfferIOS
abstract Boolean isEligibleForIntroOfferIOS(String groupID)
Check introductory offer eligibility for a subscription group
-
isTransactionVerifiedIOS
abstract Boolean isTransactionVerifiedIOS(String sku)
Verify a StoreKit 2 transaction signature
-
latestTransactionIOS
abstract PurchaseIOS latestTransactionIOS(String sku)
Get the latest transaction for a product using StoreKit 2
-
subscriptionStatusIOS
abstract List<SubscriptionStatusIOS> subscriptionStatusIOS(String sku)
Get StoreKit 2 subscription status details (iOS 15+)
-
validateReceiptIOS
abstract VerifyPurchaseResultIOS validateReceiptIOS(VerifyPurchaseProps options)
Validate a receipt for a specific product
-
-
-
-