Skip to content

Latest commit

 

History

History

local-settings

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Module: "local-settings"

// To import the "local-settings" module:
var local_settings = require("local-settings");

How to "local-settings"

Functions
  • hasKey( key String ) Boolean
    Checks whether such a key exists.
    • key - String
      The key to check for.
    • return - Boolean
  • 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.
    • key - String
      The key to check for.
    • defaultValue - (optional) - Boolean
      An optional value to be returned in case there is no existing value.
    • return - Boolean
  • 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.
    • key - String
      The key to check for.
    • defaultValue - (optional) - String
      An optional value to be returned in case there is no existing value.
    • return - String
  • 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.
    • key - String
      The key to check for.
    • defaultValue - (optional) - Number
      An optional value to be returned in case there is no existing value.
    • return - Number
  • setBoolean( key String, value Boolean )
    Sets a Boolean Object for a key.
    • key - String
      The key.
    • value - Boolean
      The value.
  • setString( key String, value String )
    Sets a String Object for a key.
    • key - String
      The key.
    • value - String
      The value.
  • setNumber( key String, value Number )
    Sets a Number Object for a key.
    • key - String
      The key.
    • value - Number
      The value.
  • remove( key String )
    Removes a value (if existing) for a key.
    • key - String
      The key to check for.