I am using SharedPreferences in my application. I have a new requirement that the user can change these settings, but when they leave the settings screen, they should be asked to confirm the changes to the settings.
If they prefer not to, what is the best way to discard changes in any settings state when the user first opens the settings screen?
change
as suggested by @Sachin Gadagi, I am thinking of the following, but I am wondering if this is correct:
var editor = PreferenceManager.GetDefaultSharedPreferences(this).Edit(); foreach (var sp in _prefsBackup) {
source share