@adapty/capacitor - v3.10.0-beta.1
    Preparing search index...

    Class Adapty

    This file exposes all the API, that is needed by documentation, not for the end user.

    Implements

    • AdaptyPlugin
    Index

    Constructors

    Properties

    addListener: AddListenerFn = ...

    Adds a strongly-typed event listener.

    Supported events:

    • onLatestProfileLoad → { profile: AdaptyProfile }
    • onInstallationDetailsSuccess → { details: AdaptyInstallationDetails }
    • onInstallationDetailsFail → { error: AdaptyError }

    Methods

    • Initializes the Adapty SDK.

      Parameters

      Returns Promise<void>

      Promise that resolves when the SDK is activated

      Error if the API key is invalid or activation fails

    • Gets an onboarding by placement ID.

      Parameters

      • options: GetOnboardingOptions

      Returns Promise<AdaptyOnboarding>

    • Gets an onboarding for default audience by placement ID.

      Parameters

      • options: GetOnboardingForDefaultAudienceOptions

      Returns Promise<AdaptyOnboarding>

    • Gets a paywall by placement ID.

      Parameters

      • options: GetPaywallOptions

      Returns Promise<AdaptyPaywall>

    • Gets a paywall for default audience by placement ID.

      Parameters

      • options: GetPaywallForDefaultAudienceOptions

      Returns Promise<AdaptyPaywall>

    • Handle method calls through crossplatform bridge with type safety

      Type Parameters

      • M extends MethodName

      Parameters

      • methodName: M
      • args: string
      • ctx: LogContext
      • log: LogScope

      Returns Promise<MethodResponseMap[M]>

    • Identifies the user with a customer user ID.

      Parameters

      • options: { customerUserId: string }

      Returns Promise<void>

    • Checks if the SDK is activated.

      Returns Promise<boolean>

    • Logs out the current user.

      Returns Promise<void>

    • Logs that a paywall was shown to the user.

      Parameters

      Returns Promise<void>

    • Presents the code redemption sheet (iOS only).

      Returns Promise<void>

    • Removes all listeners.

      Returns Promise<void>

    • Reports a transaction to Adapty.

      Parameters

      • options: { transactionId: string; variationId?: string }

      Returns Promise<void>

    • Sets fallback paywalls from a file.

      Parameters

      Returns Promise<void>

    • Sets an integration identifier.

      Parameters

      • options: { key: string; value: string }

      Returns Promise<void>

    • Sets the log level for the SDK or configures JS logger sinks.

      Parameters

      • options: { logger?: LoggerConfig; logLevel?: LogLevel }

      Returns Promise<void>

    • Updates attribution data for the current user.

      Parameters

      • options: { attribution: Record<string, any>; source: string }

      Returns Promise<void>

    • Updates collecting refund data consent (iOS only).

      Parameters

      • options: { consent: boolean }

      Returns Promise<void>

    • Updates refund preference (iOS only).

      Parameters

      Returns Promise<void>