Package-level declarations

Types

Link copied to clipboard
interface ChangeListener

A callback for Widgets to know when the current set of changes has fully be applied.

Link copied to clipboard
Link copied to clipboard
@ObjCName(name = "MutableListChildren", exact = true)
class MutableListChildren<W : Any>(list: MutableList<Widget<W>> = mutableListOf(), modifierUpdated: () -> Unit = {}) : Widget.Children<W> , MutableList<Widget<W>>

A MutableList that is also a Widget.Children.

Link copied to clipboard
open class RedwoodLayout(context: Context, androidOnBackPressedDispatcher: OnBackPressedDispatcher) : FrameLayout, RedwoodView<View>
Link copied to clipboard
open class RedwoodUIView(val view: UIView) : RedwoodView<UIView>
Link copied to clipboard
@ObjCName(name = "RedwoodView", exact = true)
interface RedwoodView<W : Any>
Link copied to clipboard
Link copied to clipboard
class UIViewChildren(parent: UIView, insert: (UIView, Int) -> Unit = when (parent) { is UIStackView -> { view, index -> parent.insertArrangedSubview(view, index.convert()) } else -> { view, index -> parent.insertSubview(view, index.convert<NSInteger>()) } }, remove: (index: Int, count: Int) -> Array<UIView> = when (parent) { is UIStackView -> { index, count -> parent.typedArrangedSubviews.remove(index, count) } else -> { index, count -> parent.typedSubviews.remove(index, count) } }) : Widget.Children<UIView>
Link copied to clipboard
class ViewGroupChildren(parent: ViewGroup, insert: (index: Int, view: View) -> Unit = { index, view -> parent.addView(view, index) }, remove: (index: Int, count: Int) -> Unit = { index, count -> parent.removeViews(index, count) }) : Widget.Children<View>
Link copied to clipboard
@ObjCName(name = "Widget", exact = true)
interface Widget<W : Any>

The target of a composable function's values. Usually binds to an associated native UI toolkit element, but could also forward changes through a serialized protocol or record the latest values for testing.

Functions

Link copied to clipboard