Documentation
    Preparing search index...

    The storage used in the SDK

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Copies all key/value pairs from the source store into a target store.

      Parameters

      • targetDBName: string

        Name of the target database.

      • targetStoreName: string

        Name of the target object store.

      • skipKeys: string[] = []

        Keys to skip.

      • sourceStoreName: string = ...

        (Optional) Source store name – defaults to the default store.

      Returns Promise<void>

    • This event will fire if the storage was modified by someone else, eg. on another tab

      Parameters

      • callback: (
            arg: {
                eventType: "storageCleared" | "entryModified";
                key: null | string;
                newValue: null | string;
                oldValue: null | string;
            },
        ) => {}

        The callback to be called when a storage value changes

      Returns Promise<void>

    • Returns a promise that resolves to true if the storage option is available on this platform.

      Returns Promise<boolean>