core / com.schibsted.account.engine.controller / Controller

Controller

abstract class Controller<in T : Contract<*>> : Parcelable

Constructors

<init>

Controller(parcel: Parcel)
Controller()

Functions

back

fun back(step: Int = 1): Unit

Goes back one step in the controller.

describeContents

open fun describeContents(): Int

evaluate

abstract fun evaluate(contract: T): Unit

Perform the login sequence. Additional calls to this function will re-trigger the currently active task.

start

fun start(contract: T): Unit

writeToParcel

open fun writeToParcel(parcel: Parcel, flags: Int): Unit

Inheritors

SignUpController

class SignUpController : Controller<SignUpContract>

Controller which administrates the process of creating a user and signing in. This is parcelable and should be persisted during the sign up 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.

VerificationController

abstract class VerificationController<in T> : Controller<T> where T : Agreements.Provider, T : RequiredFields.Provider, T : Contract<*>