Internalapi

The storage used in the SDK

Hierarchy

  • Storage

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

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

    Parameters

    • callback: ((arg) => {})

      The callback to be called when a storage value changes

        • (arg): {}
        • Parameters

          • arg: {
                eventType: "storageCleared" | "entryModified";
                key: null | string;
                newValue: null | string;
                oldValue: null | string;
            }
            • eventType: "storageCleared" | "entryModified"
            • key: null | string
            • newValue: null | string
            • oldValue: null | string

          Returns {}

      Returns Promise<void>

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

      Returns Promise<boolean>

    Generated using TypeDoc