Index
All Classes and Interfaces|All Packages
C
- com.pranavpandey.android.dynamic.preferences - package com.pranavpandey.android.dynamic.preferences
D
- delete(String) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Remove a key from the default shared preferences.
- delete(String, String) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Remove a key from the supplied shared preferences.
- deleteSharedPreferences() - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Delete the default shared preferences.
- deleteSharedPreferences(String) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Delete a shared preferences.
- DynamicPreferences - Class in com.pranavpandey.android.dynamic.preferences
-
Helper class to handle shared preferences operations like saving or retrieving the values from default shared preferences.
G
- getContext() - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Returns the context used by this instance.
- getDefaultSharedPreferencesName() - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Get the default shared preferences name to perform other operations like backup and restore.
- getInstance() - Static method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieves the singleton instance of
DynamicPreferences
. - getSharedPreferences(String) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Returns the
SharedPreferences
object for the supplied name.
I
- initializeInstance(Context) - Static method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Initialize preferences when application starts.
- isNullKey(String) - Static method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Checks whether the key is
null
as listener returnsnull
key when it is removed (or cleared) since API 30.
L
- load(String, boolean) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
boolean
preference value from the supplied shared preferences. - load(String, float) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
float
preference value from the supplied shared preferences. - load(String, int) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve an
integer
preference value from the supplied shared preferences. - load(String, long) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
long
preference value from the supplied shared preferences. - load(String, String) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
String
preference value from the supplied shared preferences. - load(String, String, boolean) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
boolean
preference value from the supplied shared preferences. - load(String, String, float) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
float
preference value from the supplied shared preferences. - load(String, String, int) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve an
integer
preference value from the supplied shared preferences. - load(String, String, long) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
long
preference value from the supplied shared preferences. - load(String, String, String) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a
String
preference value from the supplied shared preferences. - loadStringSet(String, String, Set<String>) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a Set<String> preference value from the supplied shared preferences.
- loadStringSet(String, Set<String>) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Retrieve a Set<String> preference value from the supplied shared preferences.
S
- save(String, String, T) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a preference value in the supplied preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor. - save(String, String, T, boolean) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a preference value in the supplied preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor. - save(String, T) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a preference value in the default shared preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor. - save(String, T, boolean) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a preference value in the supplied preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor. - saveStringSet(String, String, Set<String>) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a Set<String> in the supplied preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor. - saveStringSet(String, String, Set<String>, boolean) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a Set<String> in the supplied preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor. - saveStringSet(String, Set<String>) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a Set<String> in the default preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor. - saveStringSet(String, Set<String>, boolean) - Method in class com.pranavpandey.android.dynamic.preferences.DynamicPreferences
-
Save a Set<String> in the default preferences editor and call
SharedPreferences.Editor.apply()
to apply changes back from this editor.
All Classes and Interfaces|All Packages