Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "application-settings"

Allows you to save and restore any kind of information related to your application.

Index

Functions

clear

  • clear(): void

getBoolean

  • getBoolean(key: string, defaultValue?: boolean): boolean
  • Gets a value (if existing) for a key as a Boolean Object. A default value can be provided in case there is no existing value.

    Parameters

    • key: string

      The key to check for.

    • Optional defaultValue: boolean

      An optional value to be returned in case there is no existing value.

    Returns boolean

getNumber

  • getNumber(key: string, defaultValue?: number): number
  • Gets a value (if existing) for a key as a Number Object. A default value can be provided in case there is no existing value.

    Parameters

    • key: string

      The key to check for.

    • Optional defaultValue: number

      An optional value to be returned in case there is no existing value.

    Returns number

getString

  • getString(key: string, defaultValue?: string): string
  • Gets a value (if existing) for a key as a String Object. A default value can be provided in case there is no existing value.

    Parameters

    • key: string

      The key to check for.

    • Optional defaultValue: string

      An optional value to be returned in case there is no existing value.

    Returns string

hasKey

  • hasKey(key: string): boolean

remove

  • remove(key: string): void

setBoolean

  • setBoolean(key: string, value: boolean): void

setNumber

  • setNumber(key: string, value: number): void

setString

  • setString(key: string, value: string): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method