Overview
The State class can be used to store & fetch data in the user's phone
Creating a State
import * as VOLTS from './volts';
const State = new State('persistenceKey');Updating data
import * as VOLTS from './volts';
const State = new State('persistenceKey');
const someValue = 100;
State.setValue('someDescriptiveName', someValue);
State.setValue('string', 'a string');
State.setValue('number', 12345);
State.setValue('vector', new VOLTS.Vector(1,2,3));
State.setValue('boolean', true);Last updated