Package-level declarations

Types

Link copied to clipboard
class KVCache

KVCache:统一管理缓存键值;支持无缝切换。

Link copied to clipboard

属性委托 Boolean

Link copied to clipboard

属性委托 ByteArray

Link copied to clipboard

属性委托 Double

Link copied to clipboard
class KVCachePropertyFloat(key: String?, defaultValue: Float) : ReadWriteProperty<Any, Float>

属性委托 Float

Link copied to clipboard
class KVCachePropertyInt(key: String?, defaultValue: Int) : ReadWriteProperty<Any, Int>

属性委托 Int

Link copied to clipboard
class KVCachePropertyLong(key: String?, defaultValue: Long) : ReadWriteProperty<Any, Long>

属性委托 Long

Link copied to clipboard
class KVCachePropertyParcelable<T : Parcelable>(key: String?, tClass: Class<T>, defaultValue: T?) : ReadWriteProperty<Any, T?>

属性委托 Parcelable

Link copied to clipboard
class KVCachePropertyString(key: String?, defaultValue: String?) : ReadWriteProperty<Any, String?>

属性委托 String

Link copied to clipboard

属性委托 Set

Functions

Link copied to clipboard
inline fun <T : Parcelable> kvCache(key: String? = null, defaultValue: T? = null): KVCachePropertyParcelable<T>
fun kvCache(key: String? = null, defaultValue: Boolean = false): KVCachePropertyBoolean
fun kvCache(key: String? = null, defaultValue: ByteArray? = null): KVCachePropertyByteArray
fun kvCache(key: String? = null, defaultValue: Double = 0.0): KVCachePropertyDouble
fun kvCache(key: String? = null, defaultValue: Float = 0.0f): KVCachePropertyFloat
fun kvCache(key: String? = null, defaultValue: Int = 0): KVCachePropertyInt
fun kvCache(key: String? = null, defaultValue: Long = 0): KVCachePropertyLong
fun kvCache(key: String? = null, defaultValue: String? = null): KVCachePropertyString
fun kvCache(key: String? = null, defaultValue: Set<String>? = null): KVCachePropertyStringSet
fun <T : Parcelable> kvCache(key: String? = null, tClass: Class<T>, defaultValue: T? = null): KVCachePropertyParcelable<T>
Link copied to clipboard
fun kvCacheBoolean(key: String? = null, defaultValue: Boolean = false): KVCachePropertyBoolean
Link copied to clipboard
fun kvCacheByteArray(key: String? = null, defaultValue: ByteArray? = null): KVCachePropertyByteArray
Link copied to clipboard
fun kvCacheDouble(key: String? = null, defaultValue: Double = 0.0): KVCachePropertyDouble
Link copied to clipboard
fun kvCacheFloat(key: String? = null, defaultValue: Float = 0.0f): KVCachePropertyFloat
Link copied to clipboard
fun kvCacheInt(key: String? = null, defaultValue: Int = 0): KVCachePropertyInt
Link copied to clipboard
fun kvCacheLong(key: String? = null, defaultValue: Long = 0): KVCachePropertyLong
Link copied to clipboard
inline fun <T : Parcelable> kvCacheParcelable(key: String? = null, defaultValue: T? = null): KVCachePropertyParcelable<T>
fun <T : Parcelable> kvCacheParcelable(key: String? = null, tClass: Class<T>, defaultValue: T? = null): KVCachePropertyParcelable<T>
Link copied to clipboard
fun kvCacheString(key: String? = null, defaultValue: String? = null): KVCachePropertyString
Link copied to clipboard
fun kvCacheStringSet(key: String? = null, defaultValue: Set<String>? = null): KVCachePropertyStringSet