Contents

canPresent

A Boolean value that indicates whether the app can successfully present the notice sheet to inform people about external purchases.

Declaration

static var canPresent: Bool { get async }

Discussion

Check this property, as shown below, to determine whether your app can successfully call presentNoticeSheet() to inform people before showing external purchases:

await externalPurchase.canPresent 

Check the value of this property again whenever the App Store storefront changes by using the updates asynchronous sequence of Storefront.

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

Otherwise, this property is false.

When this property is false, check canMakePayments to determine whether your app can offer in-app purchases using the StoreKit In-App Purchase APIs. For more information, see canMakePayments.

See Also

Offering an external purchase