25.3.2231.6R ENABLE.persistStorage

Methods

static ENABLE.persistStorage.clear () {Object}

Remove all stored values.

Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS

static ENABLE.persistStorage.getItem (Key) {Object}

Return stored item associated with key provided.

Name Type Description
Key String

key for looking up value

Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS
result Boolean | String | Number Value value associated with the key, null when not found

static ENABLE.persistStorage.removeItem (Key) {Object}

Remove stored value associated with key provided.

Name Type Description
Key String

key for looking up value

Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or ENABLE.status.INVALID_ARGUMENT

static ENABLE.persistStorage.setItem (Key, Value) {Object}

Update/Store the item associate with key provided.

Name Type Description
Key String

key to be associated with for looking up value

Value Boolean | String | Number

value to be updated or/and stored.

Returns:
Name Type Description
object Object
Name Type Description
status_code String ENABLE.status.SUCCESS or ENABLE.status.INVALID_ARGUMENT