react-native-adapty - v3.15.2
    Preparing search index...

    Interface ActivateParamsInput

    Describes optional parameters for the activate method.

    interface ActivateParamsInput {
        __debugDeferActivation?: boolean;
        __ignoreActivationOnFastRefresh?: boolean;
        activateUi?: boolean;
        android?: {
            adIdCollectionDisabled?: boolean;
            localAccessLevelAllowed?: boolean;
            obfuscatedAccountId?: string;
            pendingPrepaidPlansEnabled?: boolean;
        };
        backendProxyHost?: string;
        backendProxyPort?: number;
        customerUserId?: string;
        enableMock?: boolean;
        ios?: {
            appAccountToken?: string;
            clearDataOnBackup?: boolean;
            idfaCollectionDisabled?: boolean;
        };
        ipAddressCollectionDisabled?: boolean;
        lockMethodsUntilReady?: boolean;
        logLevel?: LogLevel;
        mediaCache?: AdaptyUiMediaCache;
        mockConfig?: AdaptyMockConfig;
        observerMode?: boolean;
        serverCluster?: "default"
        | "eu"
        | "cn";
    }
    Index

    Properties

    __debugDeferActivation?: boolean

    Does not activate SDK until any other method is called Fixes annoying iOS simulator auhtentication

    __ignoreActivationOnFastRefresh?: boolean

    Ignores multiple activation attempts on fast refresh. If true, skips activation if SDK is already activated.

    activateUi?: boolean
    android?: {
        adIdCollectionDisabled?: boolean;
        localAccessLevelAllowed?: boolean;
        obfuscatedAccountId?: string;
        pendingPrepaidPlansEnabled?: boolean;
    }

    Type Declaration

    • OptionaladIdCollectionDisabled?: boolean

      Disables Google AdvertisingID collection

      false
      
    • OptionallocalAccessLevelAllowed?: boolean
    • OptionalobfuscatedAccountId?: string
    • OptionalpendingPrepaidPlansEnabled?: boolean
    backendProxyHost?: string
    backendProxyPort?: number
    customerUserId?: string

    User identifier in your system

    If none of the parameters are passed, the SDK will generate an ID and use it for a current device. Use your own ID:

    1. If you want to support a cross-device experience
    2. If you have your own authentication system, and you want to associate adapty profile with your user
    enableMock?: boolean

    Enables mock mode for web platform

    When enabled, SDK will use mock implementations instead of native modules. Useful for Expo Web and testing.

    false

    ios?: {
        appAccountToken?: string;
        clearDataOnBackup?: boolean;
        idfaCollectionDisabled?: boolean;
    }

    Type Declaration

    • OptionalappAccountToken?: string
    • OptionalclearDataOnBackup?: boolean

      Controls whether the SDK will create a new profile when the app is restored from an iCloud backup

      false

    • OptionalidfaCollectionDisabled?: boolean

      Disables IDFA collection

      false
      
    ipAddressCollectionDisabled?: boolean

    Disables IP address collection

    false

    lockMethodsUntilReady?: boolean

    Locks methods threads until the SDK is ready.

    false

    Turned on by default

    logLevel?: LogLevel

    Log level for the SDK

    Logging is performed on a native side. So you are expected to watch logs in Xcode or Android Studio.

    mediaCache?: AdaptyUiMediaCache
    mockConfig?: AdaptyMockConfig

    Configuration for mock mode

    Allows customization of mock data returned by the SDK.

    observerMode?: boolean

    Turn it on if you handle purchases and subscription status yourself and use Adapty for sending subscription events and analytics

    false

    serverCluster?: "default" | "eu" | "cn"