SharedPreferenceManager

constructor(context: Context, preferenceName: String, encrypted: Boolean = false, gson: Gson = Gson())

Parameters

context

Context used to create the instance of android.content.SharedPreferences

preferenceName
encrypted

Boolean to define does the android.content.SharedPreferences is encrypted or not, if true, will use EncryptedSharedPreferences. And if not, will use default android.content.SharedPreferences from Context

gson

Gson instance that used for parsing object to String