abstract class VerificationController<in T> : Controller<T> where T : Agreements.Provider, T : RequiredFields.Provider, T : Contract<*>
VerificationController() |
fun requestAgreements(contract: T, user: User, agreementsLinks: AgreementLinksResponse): StepValidateAgreements? |
|
fun requestRequiredFields(contract: T, user: User, missingFields: Set<String>): StepValidateReqFields? |
fun back(step: Int = 1): Unit
Goes back one step in the controller. |
|
open fun describeContents(): Int |
|
abstract fun evaluate(contract: T): Unit
Perform the login sequence. Additional calls to this function will re-trigger the currently active task. |
|
fun start(contract: T): Unit |
|
open fun writeToParcel(parcel: Parcel, flags: Int): Unit |
class LoginController : VerificationController<LoginContract>
Controller which administrates the process of a login flow using credentials. This is parcelable and should be persisted during the login sequence. After the sequence has been completed, the reference to this can be destroyed. Note: After an Android configuration change, make sure you call evaluate again to re-trigger the currently active task. |
|
class PasswordlessController : VerificationController<PasswordlessContract>
Controller which administrates the process of a login flow using passwordless login. This is parcelable and should be persisted during the login sequence. After the sequence has been completed, the reference to this can be destroyed. Note: After an Android configuration change, make sure you call evaluate again to re-trigger the currently active task. |