LocalStorage

open class LocalStorage(context: Context, json: Json, _apiKey: String, factory: LocalStorage.Factory, ioScope: IOScope, cache: Cache = Cache(context = context, json = json), val coreDataManager: CoreDataManager = CoreDataManager(context = context)) : Storage, CoroutineScope(source)

Constructors

Link copied to clipboard
constructor(context: Context, json: Json, _apiKey: String, factory: LocalStorage.Factory, ioScope: IOScope, cache: Cache = Cache(context = context, json = json), coreDataManager: CoreDataManager = CoreDataManager(context = context))

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun clean()
Link copied to clipboard
Link copied to clipboard
fun configure(apiKey: String)
Link copied to clipboard
open override fun <T : Any> delete(storable: Storable<T>)
Link copied to clipboard
Link copied to clipboard
open override fun <T> read(storable: Storable<T>): T?
Link copied to clipboard
fun recordAppInstall(trackEvent: suspend (Trackable) -> Result<TrackingResult>)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun reset()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun <T : Any> write(storable: Storable<T>, data: T)