DynamicPropsManager

Takes care of dynamic Props

Usage from DynamicPropsExtension

Unique per DynamicPropsExtension instance, which calls onBindComponentToContent and onUnbindComponent when it binds and unbinds Components respectively.

When Component is being bound, a DynamicPropsManager subscribes to DynamicValues that its represent dynamic props, and keeps the mounted content the Components is rendered into in sync with DynamicValue.get until the Component gets unbound, at which point, the DynamicPropsManager unsubscribes from the DynamicValues.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun onBindComponentToContent(component: Component, scopedContext: ComponentContext?, commonDynamicProps: SparseArray<out DynamicValue<Any?>>?, content: Any)
Link copied to clipboard
fun onUnbindComponent(component: Component, commonDynamicProps: SparseArray<out DynamicValue<Any?>>?, content: Any)
Link copied to clipboard
open override fun onValueChange(value: DynamicValue<Any?>)

Called when a view has been clicked.