Package-level declarations

Types

data class AdaptyAndroidSubscriptionUpdateParameters(val oldSubVendorProductId: String, val replacementMode: AdaptyAndroidSubscriptionUpdateReplacementMode)

Parameters for updating an active Android subscription.

Defines the proration mode to use when updating an active Android subscription.

Link copied to clipboard

The main configuration object used to initialize the Adapty SDK.

Link copied to clipboard
sealed interface AdaptyCustomAsset

Represents a customizable media or color asset used within Adapty Paywalls and Onboardings.

Link copied to clipboard
class AdaptyCustomerIdentity(val iosAppAccountToken: String?, val androidObfuscatedAccountId: String?)

Represents a customer's identity used to associate in-app purchases with their corresponding transactions on both iOS and Android platforms.

Link copied to clipboard
data class AdaptyError : Exception

Represents an error returned by the Adapty SDK.

Link copied to clipboard

Enumerates all possible error codes returned by the Adapty SDK.

Link copied to clipboard
data class AdaptyInstallationDetails(val installId: String?, val installTime: LocalDateTime, val appLaunchCount: Int, val payload: AdaptyInstallationDetails.Payload?)

Contains detailed information about the current app installation.

Link copied to clipboard
sealed interface AdaptyInstallationStatus

Represents the status of Adapty installation tracking.

Link copied to clipboard

The installation status has been successfully determined.

Link copied to clipboard

Installation details are not available for this device or configuration.

Link copied to clipboard

The installation status has not yet been determined.

Link copied to clipboard

Represents the developer’s preference for how refund requests should be handled on iOS.

Link copied to clipboard

Defines the verbosity level for Adapty SDK logging output.

Link copied to clipboard
data class AdaptyOnboarding

Represents an onboarding experience configured in the Adapty Dashboard.

Link copied to clipboard

Represents analytics events occurring during an onboarding flow.

Triggered when the onboarding flow is completed.

Triggered when the onboarding flow is first loaded.

data class AdaptyOnboardingsAnalyticsEventScreenCompleted(val elementId: String? = null, val reply: String? = null) : AdaptyOnboardingsAnalyticsEvent

Triggered when a screen is completed.

Triggered when any onboarding screen is presented.

Triggered when the second screen of an onboarding flow is presented.

Link copied to clipboard

Represents an unrecognized or unknown analytics event.

Triggered when the user's email is collected during onboarding.

Link copied to clipboard
data class AdaptyOnboardingsDatePickerParams(val day: Int? = null, val month: Int? = null, val year: Int? = null) : AdaptyOnboardingsStateUpdatedParams

Represents a date picker input update.

Link copied to clipboard

Represents an email input in an onboarding form.

Link copied to clipboard
sealed interface AdaptyOnboardingsInput

Represents an input value in an Adapty onboarding flow.

Link copied to clipboard

Represents a text, email, or numeric input update.

Link copied to clipboard

Represents a multi-select input update.

Link copied to clipboard

Represents a numeric input in an onboarding form.

Link copied to clipboard

Represents a single-select input update.

Link copied to clipboard

Represents updated state parameters in an Adapty onboarding flow.

Link copied to clipboard

Represents a text input in an onboarding form.

Link copied to clipboard
data class AdaptyPaywall

Represents a paywall retrieved from Adapty.

Link copied to clipboard
sealed interface AdaptyPaywallFetchPolicy

Defines policies for fetching paywalls from the Adapty backend.

Link copied to clipboard

Represents a product displayed on a paywall.

Link copied to clipboard
data class AdaptyPaywallProductReference(val vendorId: String, adaptyProductId: String, val productType: String, val accessLevelId: String, val promotionalOfferId: String? = null, val winBackOfferId: String? = null, val basePlanId: String? = null, val offerId: String? = null)

Represents a reference to a product associated with a paywall.

Link copied to clipboard

Represents detailed subscription information for a paywall product.

Link copied to clipboard

Configuration details for a paywall created using the Adapty Paywall Builder.

Link copied to clipboard

Units of time used for subscription periods.

Link copied to clipboard
data class AdaptyPlacement

Represents a paywall or onboarding placement in the Adapty system.

Link copied to clipboard
data class AdaptyPrice

Represents a product price in the store, including optional localized formatting.

Link copied to clipboard

Represents a unique identifier for a product across platforms.

Link copied to clipboard
data class AdaptyProfile

Represents a user profile in Adapty.

Link copied to clipboard

Represents parameters for updating or creating an Adapty profile.

Link copied to clipboard

Parameters used when making a purchase or updating a subscription in Adapty.

Link copied to clipboard
sealed interface AdaptyPurchaseResult

Represents the result of a purchase operation in Adapty.

Link copied to clipboard
data class AdaptyRemoteConfig(val locale: String, val dataJsonString: String, val dataMap: Map<String, Any>)

Represents a remote configuration for a paywall or onboarding, fetched from Adapty.

Link copied to clipboard

Represents the type of subscription renewal.

Link copied to clipboard
sealed interface AdaptyResult<out T>

A wrapper class representing the result of an operation.

Link copied to clipboard

Represents an offer for a subscription product.

Link copied to clipboard

Represents the unique identifier and type of a subscription offer.

Link copied to clipboard

The payment mode of a subscription offer.

Link copied to clipboard

Represents a single phase of a subscription offer, such as an introductory or promotional phase.

Link copied to clipboard

The type of a subscription offer.

Link copied to clipboard

Represents the duration of a subscription period.

Link copied to clipboard
sealed interface AdaptyUIAction

Represents a UI action performed by the user on Adapty paywalls or onboarding screens.

Link copied to clipboard
data class AdaptyUIDialog(val primaryActionTitle: String, val title: String? = null, val content: String? = null, val secondaryActionTitle: String? = null)

Represents a dialog that can be shown in the UI, typically for alerts, confirmations, or information.

Link copied to clipboard

Represents the type of action taken by the user on an AdaptyUIDialog.

Link copied to clipboard

Defines the presentation styles available for displaying Adapty UI screens on iOS.

Link copied to clipboard
data class AdaptyUIOnboardingMeta(val onboardingId: String, val screenClientId: String, val screenIndex: Int, val screensTotal: Int)

Contains metadata about the current onboarding flow and screen.

Link copied to clipboard

Represents an onboarding view in the Adapty UI.

Link copied to clipboard

Represents a paywall view in the Adapty UI.

Link copied to clipboard

Defines how a web-based Adapty paywall should be presented to the user.

Properties

Link copied to clipboard

Returns true if this is an AdaptyResult.Error result.

Link copied to clipboard

Returns true if this is a AdaptyResult.Success result.

Functions

Link copied to clipboard

Returns the AdaptyError if this is AdaptyResult.Error, or null if it is AdaptyResult.Success.

Link copied to clipboard
inline fun <T, R> AdaptyResult<T>.fold(onSuccess: (T) -> R, onError: (AdaptyError) -> R): R

Transforms the AdaptyResult into a value of type R using onSuccess if successful or onError if it is an error.

Link copied to clipboard
inline fun <T> AdaptyResult<T>.getOrNull(): T?

Returns the value if this is AdaptyResult.Success, or null if it is AdaptyResult.Error.

Link copied to clipboard
inline fun <T> AdaptyResult<T>.onError(action: (AdaptyError) -> Unit): AdaptyResult<T>

Executes action if this is an AdaptyResult.Error result, then returns the receiver.

Link copied to clipboard
inline fun <T> AdaptyResult<T>.onSuccess(action: (T) -> Unit): AdaptyResult<T>

Executes action if this is a AdaptyResult.Success result, then returns the receiver.