# SettingsSharedPreferences

class SettingsSharedPreferences(context: Context)
Content copied to clipboard

Functions for using SharedPreferences to manage server address.

## Constructors

SettingsSharedPreferences
Link copied to clipboard
fun SettingsSharedPreferences(context: Context)
Content copied to clipboard

## Properties

sharedPreferences
Link copied to clipboard
private val sharedPreferences: SharedPreferences
Content copied to clipboard

The object of SharedPreferences.

## Functions

addAddressToIpSettingsSet
Link copied to clipboard
fun addAddressToIpSettingsSet(address: String)
Content copied to clipboard

Add address to list of server address.

addUserCreatedState
Link copied to clipboard
fun addUserCreatedState(state: Boolean)
Content copied to clipboard

Saved a user created state.

getIpSettings
Link copied to clipboard
fun getIpSettings(): String
Content copied to clipboard

Return the saved server address.

getIpSettingsSet
Link copied to clipboard
fun getIpSettingsSet(): MutableSet<String>?
Content copied to clipboard

Return a list of all saved server address.

getLanguageSettings
Link copied to clipboard
fun getLanguageSettings(): String
Content copied to clipboard

Return the saved application language.

getUserCreatedState
Link copied to clipboard
fun getUserCreatedState(): Boolean
Content copied to clipboard

Get a user created state.

saveIpSettings
Link copied to clipboard
fun saveIpSettings(address: String)
Content copied to clipboard

Save the new server address.

saveLanguageSettings
Link copied to clipboard
fun saveLanguageSettings(language: String)
Content copied to clipboard

Save the actual application language.