android-components / / LoginValidationDelegate


interface LoginValidationDelegate (source)

Provides a method for checking whether or not a given login can be stored.


Name Summary
Result sealed class Result
The result of validating a given Login against currently stored Logins. This will include whether it can be created, updated, or neither, along with an explanation of any errors.


Name Summary
validateCanPersist abstract fun validateCanPersist(login: Login): Deferred<Result>
Checks whether or not login can be persisted.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.


Name Summary
DefaultLoginValidationDelegate class DefaultLoginValidationDelegate : LoginValidationDelegate
A delegate that will check against storage to see if a given Login can be persisted, and return information about why it can or cannot.