Is there a way to limit a text field so that it only accept certain letters from an array?
Let's say I have an array:
val array = arrayOf("a", "b", "c")
I want the list to be manipulated inside code, so that the letters you can type in the text field is changed by code. How do I implement this via a class to make it accept only the letters a, b, or c?