MetaPhrase

An open source translation editor for native mobile app localization.

View project on GitHub

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

get

[jvm]
abstract suspend fun get(key: String, default: Boolean): Boolean

Retrieve a boolean value from the key store given its key.

Return

value saved in the keystore or the default one

Parameters

jvm

   
key Key
default Default value

[jvm]
abstract suspend fun get(key: String, default: String): String

Retrieve a string value from the key store given its key.

Return

value saved in the keystore or the default one

Parameters

jvm

   
key Key
default Default value

[jvm]
abstract suspend fun get(key: String, default: Int): Int

Retrieve an integer value from the key store given its key.

Return

value saved in the keystore or the default one

Parameters

jvm

   
key Key
default Default value

[jvm]
abstract suspend fun get(key: String, default: Float): Float

Retrieve a floating point value from the key store given its key.

Return

value saved in the keystore or the default one

Parameters

jvm

   
key Key
default Default value

[jvm]
abstract suspend fun get(key: String, default: Double): Double

Retrieve a floating point (double precision) value from the key store given its key.

Return

value saved in the keystore or the default one

Parameters

jvm

   
key Key
default Default value