# SettingsSharPref

class SettingsSharPref(context: Context)
Content copied to clipboard

Functions for using SharedPreferences to manage server address.

## Constructors

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

## Properties

defaultAddress
Link copied to clipboard
private val defaultAddress: String
Content copied to clipboard
defaultLanguage
Link copied to clipboard
private val defaultLanguage: String
Content copied to clipboard
settingsFile
Link copied to clipboard
private var settingsFile: String
Content copied to clipboard

The name of file for data storage.

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.

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.

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.