Conductor

object Conductor

Conductor will create a Router that has been initialized for your Activity and containing ViewGroup. If an existing Router is already associated with this Activity/ViewGroup pair, either in memory or in the savedInstanceState, that router will be used and rebound instead of creating a new one with an empty backstack.

Return

A fully configured Router instance for use with this Activity/ViewGroup pair.

Parameters

activity

The Activity that will host the Router being attached.

container

The ViewGroup in which the Router's Controller views will be hosted

savedInstanceState

The savedInstanceState passed into the hosting Activity's onCreate method. Used for restoring the Router's state if possible.

Functions

attachRouter
Link copied to clipboard
fun attachRouter(activity: Activity, container: ViewGroup, savedInstanceState: Bundle?): Router