Package-level declarations

Types

Link copied to clipboard

A ContextWrapper that holds a reference to a Graph and creates a clone of LayoutInflater that is bound to this.

Link copied to clipboard

A ViewModel that can hold a Graph instance and closes it onCleared.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun Graph.closeWithLifecycle(lifecycle: Lifecycle, closeEvent: Lifecycle.Event = when (lifecycle.currentState) { Lifecycle.State.INITIALIZED -> Event.ON_DESTROY Lifecycle.State.CREATED -> Event.ON_STOP Lifecycle.State.STARTED -> Event.ON_PAUSE Lifecycle.State.RESUMED, Lifecycle.State.DESTROYED -> { throw WinterException("Cannot setup lifecycle auto close after onResume") } }): Graph