Opens the external link account in the user's default browser.
Only call this method as a result of deliberate user interaction, such as tapping a button. If
`canOpen` is `false`, this method will always throw an error. Returning without throwing an error
does not guarantee the user was redirected to the external link account.
- Throws: A `StoreKitError`
get · iOS 16.0+
canOpen
TypeScript
static get canOpen(): Promise<boolean>
Swift declaration
static var canOpen: Bool { get async }
Whether the app can open the external link account.
Check this property before showing any UI controls that the user can use to open the external link
account.
You may want to check the value of this property again when the App Store storefront changes.
- Important: If this property is `false`, do not show UI controls that call `open()` as the
method will always fail.