MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

//MetaPhrase/com.github.diegoberaldin.metaphrase.core.common.keystore/TemporaryKeyStore

TemporaryKeyStore

[jvm]
interface TemporaryKeyStore

Secondary storage in the form of a key store (persistence across application restarts).

Functions

Name Summary
get [jvm]
abstract suspend fun get(key: String, default: Boolean): Boolean
Retrieve a boolean value from the key store given its key.
[jvm]
abstract suspend fun get(key: String, default: Double): Double
Retrieve a floating point (double precision) value from the key store given its key.
[jvm]
abstract suspend fun get(key: String, default: Float): Float
Retrieve a floating point value from the key store given its key.
[jvm]
abstract suspend fun get(key: String, default: Int): Int
Retrieve an integer value from the key store given its key.
[jvm]
abstract suspend fun get(key: String, default: String): String
Retrieve a string value from the key store given its key.
save [jvm]
abstract suspend fun save(key: String, value: Boolean)
Save a boolean value in the keystore under a given key.
[jvm]
abstract suspend fun save(key: String, value: Double)
Save a floating point (double precision) value in the keystore under a given key.
[jvm]
abstract suspend fun save(key: String, value: Float)
Save a floating point value in the keystore under a given key.
[jvm]
abstract suspend fun save(key: String, value: Int)
Save an integer value in the keystore under a given key.
[jvm]
abstract suspend fun save(key: String, value: String)
Save a string value in the keystore under a given key.