Three questions:
-
Is it possible to add any kind of validation to EditTextPref to make sure invalid data doesn't make its way into the data store? For example, I want to make sure only positive integers are added. I also want to validate one value against another (one must always be greater than the other).
-
What's the best way to show the current value of an EditTextPref? I want to make sure the current value is visible without having to click into the edit dialog.
-
Is it possible to separate the DataStore connection so that the library can provide UI only and allow for a custom ViewModel?
Thanks - great work on this!!
Three questions:
Is it possible to add any kind of validation to EditTextPref to make sure invalid data doesn't make its way into the data store? For example, I want to make sure only positive integers are added. I also want to validate one value against another (one must always be greater than the other).
What's the best way to show the current value of an EditTextPref? I want to make sure the current value is visible without having to click into the edit dialog.
Is it possible to separate the DataStore connection so that the library can provide UI only and allow for a custom ViewModel?
Thanks - great work on this!!