Registering a listener for 'onPromotedPurchaseReceived' replaces the
SDK's default behaviour, which is to complete the purchase automatically.
While a listener is registered you are responsible for completing the
purchase — call AdaptyPlugin.makePromotedPurchase with the product
you receive, or the purchase never happens. Removing the returned handle
restores the default.
Initializes the Adapty SDK. This method must be called in order for the SDK to work.
Creates a URL for web paywall.
Gets the current installation status.
Gets a flow by placement ID.
Gets a flow for default audience by placement ID.
Gets an onboarding by placement ID.
Gets an onboarding for default audience by placement ID.
Gets products for a specific flow.
Gets the current user profile.
Identifies the user with a customer user ID.
Checks if the SDK is activated.
Logs out the current user.
Logs that a flow was shown to the user.
Purchases a product promoted in the App Store.
Makes a purchase of a product.
Opens a web paywall.
Opens a URL using the native browser.
Presents the code redemption sheet (iOS only).
Removes all listeners.
Reports a transaction to Adapty.
Requests the native app-review prompt.
Restores user purchases.
Sets fallback paywalls from a file.
Sets an integration identifier.
Sets the log level for the SDK or configures JS logger sinks.
Updates collecting refund data consent (iOS only).
Updates attribution data from an external attribution provider for the current user.
Updates refund preference (iOS only).
Adds a strongly-typed event listener.
Supported events: