Multiple Validation Checks
This section describes how to perform multiple validation checks at a single time.
var txtPassword = findViewById<EditText>(R.id.txtPassword)
txtPassword.validator()
.nonEmpty()
.minLength(8)
.atleastOneUperCase()
.atleastOneSpecialCharacters()
.atleastOneNumber()
.addErrorCallback( {
// Invalid password
txtPassword.error = it
})
.addSuccessCallback({
// call Login webservice here or anything else for success usecase
})
.check()Last updated