Clear SharedPreferences (preferenceName, showTimes)
See original GitHub issueIs your feature request related to a problem? We have a logout feature in our app. The problem is that when the user logged out we need to clear the showTime but as far as I could see there is not a function for that. Am I wrong?
Describe the solution you’d like:
Actually, I can clear the preferences like this way;
context.getSharedPreferences("com.skydoves.balloon", Context.MODE_PRIVATE).edit { clear() }
But I prefer to do that Balloon.clearAllPreferences()
as like with Only
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to delete shared preferences data from App in Android
To remove specific values: SharedPreferences.Editor.remove() followed by a commit(). To remove them all SharedPreferences.Editor.clear() followed by a ...
Read more >How to Delete Shared Preferences Data in Android?
In this article, we will show you how you could save and delete data from Shared Preferences in Android. Follow the below steps...
Read more >All about SharedPreferences in Android app- create, retrieve ...
This video gives details and demonstrates to create, retrieve or delete the shared preference variables as your Android App data.
Read more >Delete Shared Preference Value | Android Studio Tutorial
Remove or Delete key from SharedPreferences for Android App DevelopmentDelete SharedPreferences data from App in Android.
Read more >Android 101: Shared Preferences - ProAndroidDev
Retrieves shared preferences instance for the name “PREF”. Each shared preferences will have its own instance based on the preference name. val pref2...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I will consider the DI. Thanks again for the great works! 🙂
Hi @utkualtas, Thanks for your issue! A new snapshot
1.3.8-SNAPSHOT
is released. You can use theBalloon.clearAllPreferences()
function in this release.