Interface

IStorageProvider

IStorageProvider

Represents a storage provider for the matrix client

View Source storage/IStorageProvider.ts, line 5

Members

IFilterInfo | Promise.<IFilterInfo>

# getFilter

Gets the last preferred filter for this client

View Source storage/IStorageProvider.ts, line 31

string | Promise.<(string|null)> | null

# getSyncToken

Gets the last saved sync token, or null if none has been persisted.

View Source storage/IStorageProvider.ts, line 17

string | Promise.<(string|null|undefined)> | null | undefined

# readValue

Reads a previously stored value under the given key. If the key does not exist, null or undefined is returned.

View Source storage/IStorageProvider.ts, line 46

Promise.<any> | void

# setFilter

Sets the filter to be used by future clients

View Source storage/IStorageProvider.ts, line 24

Promise.<any> | void

# setSyncToken

Sets the sync token, saving it for later retrieval

View Source storage/IStorageProvider.ts, line 10

Promise.<any> | void

# storeValue

Store a simple string value into the provided key.

View Source storage/IStorageProvider.ts, line 38