Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinSchildhorn committed Mar 3, 2021
2 parents 9448b4c + 24bb25c commit fd2771f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ otp_view.setOnFinishListener {
Toast.makeText(this,it,Toast.LENGTH_LONG).show()
}
```
* `fun onCharacterUpdatedFunction(func: (Boolean) -> Unit)` - listener callback for when a character was updated. Returns whether or not it was filled.
* `fun setText(str:String)` - Fills in as much of the text into the items as possible, with one character for each item. Overflow characters are discarded

* `fun clearText(showKeyboard: Boolean)` - Clears all the text, also has the option to hide or show the keyboard on the first item

* `fun fitToWidth(width: Int)` - Fits the entire view to the width entered. Made so that you can dynamically resize the view.

* `fun isFilled(): Boolean` - Returns whether or not all the fields have been filled.
* `override fun setEnabled(enabled: Boolean)` - Allows you to disable the view as you normally would.

0 comments on commit fd2771f

Please sign in to comment.