@kokotree-inc/capacitor-plugin-apple-storekit-external-link-account
v1.0.5
Published
Capacitor plugin for Apple platforms that provides external link account functionality using StoreKit.
Downloads
16
Maintainers
Readme
@kokotree-inc/capacitor-plugin-apple-storekit-external-link-account
Capacitor plugin for Apple platforms that provides external link account functionality using StoreKit.
Install
npm install @kokotree-inc/capacitor-plugin-apple-storekit-external-link-account
npx cap sync
API
Defines the methods that can be used to interact with the external link account functionality using StoreKit on Apple platforms.
canOpen()
canOpen() => Promise<{ value: boolean; }>
Determines if the app can open the external link account functionality.
Resolves with value
=== true
if the functionality is available, false
otherwise.
Returns: Promise<{ value: boolean; }>
open()
open() => Promise<void>
Presents a continuation sheet that enables people to choose whether to open your app’s link to an external website for account creation or management. Throws an exception if the external link account functionality is not available or if the continuation sheet is not available.