Methods
Static
ReadBoolean
- ReadBoolean(key, defaultValue): boolean
Parameters
key: string
defaultValue: boolean
Returns boolean
The boolean value
Static
ReadNumber
- ReadNumber(key, defaultValue): number
Parameters
key: string
defaultValue: number
Returns number
The number value
Static
ReadString
- ReadString(key, defaultValue): string
Parameters
key: string
defaultValue: string
Returns string
The string value
Static
WriteBoolean
- WriteBoolean(key, value): void
Parameters
key: string
value: boolean
Returns void
Static
WriteNumber
- WriteNumber(key, value): void
Returns void
Static
WriteString
- WriteString(key, value): void
Returns void
Class for storing data to local storage if available or in-memory storage otherwise