Skip to content

Love it! But a couple of questions #3

@DaveOddy

Description

@DaveOddy

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!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions