Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Storage

Index

Methods

getItem

  • getItem(key: string): Promise<null | string>
  • Get the key's value from the app storage, or null if the key doesn't exist.

    Parameters

    • key: string

    Returns Promise<null | string>

removeItem

  • removeItem(key: string): Promise<void>
  • Remove the key from the app storage if it exists.

    Parameters

    • key: string

    Returns Promise<void>

setItem

  • setItem(key: string, value: any): Promise<void>
  • Add the given key-value pair to the app storage, or update the key's value if it already exists

    Parameters

    • key: string
    • value: any

      any

    Returns Promise<void>