Class

UserState

(abstract) UserState(key)

A class to read and write local storage contents.
Constructor

# abstract new UserState(key)

Parameters:
Name Type Description
key string The local storage key.

View Source lib/state/UserState.ts, line 18

Extends

Members

LocalStorage

# protected ls

Inherited From:

View Source lib/state/State.ts, line 24

Methods

# protected getUserState(userID) → {LocalStorageUser}

Gets the state of the specified user.
Parameters:
Name Type Description
userID string The UUID of the user.

View Source lib/state/UserState.ts, line 66

# protected read() → {State}

Reads and decodes the locally stored data.
Overrides:

View Source lib/state/State.ts, line 32

State

# write() → {State}

Encodes and writes the data to the local storage.
Overrides:

View Source lib/state/State.ts, line 51

State