diff --git a/README.md b/README.md index d1aebb4..3549228 100644 --- a/README.md +++ b/README.md @@ -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.