Interface: StorageApi

Interface for storage backend used in ChunkManagerConfig. The interface is modelled on Async Storage from react-native-community.

Table of contents

Methods

Methods

getItem

getItem(key): Promise<undefined | null | string>

Gets the data for the key.

Parameters

Name Type
key string

Returns

Promise<undefined | null | string>

Defined in

types.ts:99


removeItem

removeItem(key): Promise<void>

Removes the item based on the key.

Parameters

Name Type
key string

Returns

Promise<void>

Defined in

types.ts:103


setItem

setItem(key, value): Promise<void>

Sets the item value based on the key.

Parameters

Name Type
key string
value string

Returns

Promise<void>

Defined in

types.ts:101