GeofenceDataStoreProvider

class GeofenceDataStoreProvider(context: <Error class: unknown class>, val apiKey: String) : DataStoreProvider

Constructors

Link copied to clipboard
constructor(context: <Error class: unknown class>, apiKey: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val context: <Error class: unknown class>

Functions

Link copied to clipboard
open fun clearAllData()
Link copied to clipboard
open fun clearData(key: DataStoreKey)
Link copied to clipboard
open override fun getDataStore(): <Error class: unknown class><<Error class: unknown class>>

Subclasses must implement this method to provide their specific DataStore instance.

Link copied to clipboard
open fun readData(key: DataStoreKey, default: Any): Any
Link copied to clipboard
inline fun <T> readList(key: DataStoreKey): MutableList<T>

Reads a list from DataStore.

Link copied to clipboard
inline fun <K, V> readMap(key: DataStoreKey): MutableMap<K, V>

Reads a map from DataStore.

Link copied to clipboard
open fun writeData(key: DataStoreKey, value: Any)
Link copied to clipboard
inline fun <T> writeList(key: DataStoreKey, list: List<T>)

Writes a list to DataStore.

Link copied to clipboard
inline fun <K, V> writeMap(key: DataStoreKey, map: Map<K, V>)

Writes a map to DataStore.