ia-sdk-react-native-monorepo - v1.0.0
    Preparing search index...

    Class IaSdk

    Main entrypoint for the ia.de AppSDK services and features.

    Index

    Accessors

    Methods

    • Cleans the SDK cache (iOS only).

      Parameters

      • initialization: boolean

        Whether to clean initialization cache.

      • prerequisites: boolean

        Whether to clean prerequisites cache.

      Returns Promise<void>

    • Deletes the current user and all associated data (iOS only).

      Returns Promise<void>

    • Closes all overlaying ia.de screen contents.

      Returns Promise<void>

    • Gets the current server environment (iOS only).

      Returns Promise<string | null>

      The environment string ("development", "staging", "production"), or null.

    • Get a registered module by type.

      Type Parameters

      Parameters

      • type: T["moduleType"]

        The module type to retrieve

      Returns T

      Error if the module is not registered

    • Allocate the resources required for the ia.de SDK runtime execution.

      The method must be called before accessing any additional SDK resources.

      Parameters

      • config: InitConfig

        SDK initialization configuration

      Returns Promise<void>

    • Checks whether the SDK has been initialized.

      Returns Promise<boolean>

      True if the SDK is initialized, false otherwise.

    • Resets the user data and onboarding status (pharmacy selection, user consents statuses).

      Returns Promise<void>

    • Register a collection of specified modules for client integration.

      Modules provide specific functionality to client integrations, and are available after registering via the getModule method.

      Parameters

      • modules: IaModule[]

        Array of module instances to register

      Returns Promise<void>

    • Launches the dashboard screen on top of the navigation stack.

      Returns Promise<void>

    • Transfers user data from SDK v1 to the current SDK.

      This method is intended to be invoked before the initialize method.

      Returns Promise<void>