PlayerPrefs

open class PlayerPrefs

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
operator fun contains(key: String?): Boolean
Link copied to clipboard
fun getBoolean(key: String?, defValue: Boolean): Boolean
Link copied to clipboard
fun getFloat(key: String?, defValue: Float): Float
Link copied to clipboard
fun getInt(key: String?, defValue: Int): Int
Link copied to clipboard
fun getLong(key: String?, defValue: Long): Long
Link copied to clipboard
fun getString(key: String?, defValue: String?): String?
Link copied to clipboard
fun setBoolean(key: String?, value: Boolean)
Link copied to clipboard
fun setFloat(key: String?, value: Float)
Link copied to clipboard
fun setInt(key: String?, value: Int)
Link copied to clipboard
fun setLong(key: String?, value: Long)
Link copied to clipboard
fun setString(key: String?, value: String?)
Link copied to clipboard
fun toggleBoolean(key: String?, defValue: Boolean): Boolean