Documentation
    Preparing search index...

    Class StorageAbstract

    The storage used in the SDK

    Hierarchy (View Summary)

    Implemented by

    Index

    Constructors

    Methods

    • Delete a key from storage

      Type Parameters

      Parameters

      • key: K

        The storage key

      Returns Promise<void>

    • Get the key with the internal prefix

      Type Parameters

      Parameters

      • key: K

        the storage key

      Returns string

    • Sets a value in the storage and persist it

      Type Parameters

      Parameters

      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>