SerializedFileManager

Use class to load a type of items (T) from disk and store a type of items (T) on disk.

How to use: 1. inheritance this file manager. 2. call setup() to setup. Remember to addItems() one by one from indexJsonArray to load itemsMap by json file on disk.

Parameters

<T>

generic file items. Can be images, analytics requests, etc.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addItem(item: T)
add a item to item list.
Link copied to clipboard
open fun setup(@NonNull indexFileName: String, @NonNull context: Context)