One Logo Pool Ball
StoreKit · IOS API REFERENCE

ExternalPurchase

enum · iOS 15.4+ · SDK 27.1

enum ExternalPurchase

Members (2)

get · iOS 17.4+

canPresent

TypeScript
static get canPresent(): Promise<boolean>
Swift declaration
static var canPresent: Bool { get async }

Whether the app can present the external notice sheet. Check this property before showing any UI for external purchases Check the value of this property again and update your UI if `Storefront.current` changes. - Important: If this property is `false`, do not call `presentNoticeSheet()` as the method will always fail.

static · iOS 15.4+

presentNoticeSheet

TypeScript
static presentNoticeSheet(): Promise<ExternalPurchase_NoticeResult>
Swift declaration
static func presentNoticeSheet() async throws -> ExternalPurchase.NoticeResult

Present a notice sheet to users before showing external purchases. Only call this method as a result of deliberate user interaction, such as tapping a button. - Returns: Whether the user chose to continue to view the external purchases. Only show external purchases if the result is `NoticeResult.continuedWithExternalPurchaseToken` or `NoticeResult.continued`. - Throws: A `StoreKitError`

Skipped declarations

No declarations were skipped in this snapshot.

All StoreKit types →