iOS canPresentExternalPurchaseNoticeIOS

Check if external purchase notice sheet can be presented (iOS 17.4+, macOS 14.4+).

Wraps ExternalPurchase.canPresent — gate before calling presentExternalPurchaseNoticeSheetIOS. iOS 17.4+, macOS 14.4+. See the Apple StoreKit reference.

Signature

swift
func canPresentExternalPurchaseNoticeIOS() async throws -> Bool

Returns#

Promise<boolean>true if the external-purchase notice sheet can be presented (iOS 17.4+, macOS 14.4+).

Example

swift
let can = try await OpenIapModule.shared.canPresentExternalPurchaseNoticeIOS()