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.
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
Called when a view has been clicked.