attach

fun <T : ViewableComponent, Component> attach(component: T, lifecycleOwner: LifecycleOwner)

Attach this view to a component to interact with.

Parameters

component

The component.

lifecycleOwner

The lifecycle owner where the view is.