binding

inline fun <H : HasModals<*, *>> binding(@IdRes id: Int = View.NO_ID): ViewFactory<H>

Creates a ViewFactory for modal container screens of type H.

Each view created for HasModals.modals will be shown in a Dialog whose window is set to size itself to WRAP_CONTENT (see android.view.Window.setLayout).

Parameters

id

a unique identifier for containers of this type, allowing them to participate view persistence