Contents

isEligible

A Boolean value that indicates at runtime whether the app can use this API for external purchases.

Declaration

static var isEligible: Bool { get async }

Mentioned in

Discussion

Check this value if your app configures any of the following entitlements:

If isEligible is true, your app can use the ExternalPurchaseCustomLink API.

This value is true if all the following conditions are met:

  • The current App Store storefront allows external purchases and the person can make purchases.

  • Your app configures any of the entitlements listed above.

  • Your app configures the current App Store storefront in the property list key associated with the entitlement, SKExternalPurchaseCustomLinkRegions or SKExternalPurchaseLinkStreamingRegions, or has an entitlement that includes the current App Store storefront.

If isEligible is false, don’t use the ExternalPurchaseCustomLink API. The methods of the ExternalPurchaseCustomLink API throw errors at runtime when isEligible is false.