Methods
getStringVariable
- getStringVariable(key: string): null | string
-
Returns null | string
getBooleanVariable
- getBooleanVariable(key: string): null | boolean
-
Returns null | boolean
getIntVariable
- getIntVariable(key: string): null | number
-
Returns null | number
getFloatVariable
- getFloatVariable(key: string): null | number
-
Returns null | number
getLongVariable
- getLongVariable(key: string): null | number
-
Returns null | number
setStringVariable
- setStringVariable(key: string, value: string): void
-
Parameters
-
key: string
-
value: string
Returns void
setBooleanVariable
- setBooleanVariable(key: string, value: boolean): void
-
Parameters
-
key: string
-
value: boolean
Returns void
setIntVariable
- setIntVariable(key: string, value: number): void
-
Parameters
-
key: string
-
value: number
Returns void
setFloatVariable
- setFloatVariable(key: string, value: number): void
-
Parameters
-
key: string
-
value: number
Returns void
setLongVariable
- setLongVariable(key: string, value: number): void
-
Parameters
-
key: string
-
value: number
Returns void
containsVariable
- containsVariable(key: string): boolean
-
Returns boolean
removeVariable
- removeVariable(key: string): void
-
Returns void
removeAllVariables
- removeAllVariables(): void
-
Returns void
Since
0.1
Data is an interface for storing key data on Device like user information, login data or token.
Example