Step

abstract class Step(val toolbarData: ToolbarData? = null) : CoroutineScope

Base controller that controls the fragment of a Step. It is a controller in the context of the MVC architectural pattern. This controller is responsible for populating the fragment with the sections HeaderSection, ContentSection and FooterSection.

It also dictates the flow by using the flowCoordinator.

Constructors

Link copied to clipboard
fun Step(toolbarData: ToolbarData? = null)

Functions

Link copied to clipboard
open fun canGoBack(): Boolean
Link copied to clipboard
open fun getMenuResource(): Int

Used to provide the menu resource that will be displayed in the toolbar for this step. By default, no menu is displayed.

Link copied to clipboard
open fun onCreate(    activity: Activity,     header: Section?,     content: Section?,     footer: Section?)

Base Lifecycle onCreate method called by the StepFragment

Link copied to clipboard
open fun onDestroy()

Base Lifecycle onDestroyed method called by the StepFragment

Link copied to clipboard
open fun onFragmentCreated(fragment: Fragment)

Base Lifecycle onFragmentCreated method called by the StepFragment

Link copied to clipboard
open fun onOptionsItemSelected(menuItem: MenuItem): Boolean

Called when an item was selected.

Link copied to clipboard
open fun onPause()

Base Lifecycle onPause method called by the StepFragment

Link copied to clipboard
open fun onRequestPermissionsResult(    requestCode: Int,     permissions: Array<out String>,     grantResults: IntArray)
Link copied to clipboard
open fun onResume()

Base Lifecycle onResume method called by the StepFragment

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
open val backButtonOverride: () -> Unit? = null
Link copied to clipboard
var bundle: Bundle

Bundle object used to share information between Steps.

Link copied to clipboard
open val contentSectionCls: KClass<out Section>? = null
Link copied to clipboard
open override val coroutineContext: CoroutineContext
Link copied to clipboard
open val footerSectionCls: KClass<out Section>? = null
Link copied to clipboard
open val headerSectionCls: KClass<out Section>? = null
Link copied to clipboard
val toolbarData: ToolbarData? = null

Inheritors

Link copied to clipboard