TomTomMapApplier
@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP] )
The applier calls TomTomMapNode.onAttached before child nodes are created and attached. When the composition is disposed, the applier will call on each node TomTomMapNode.onDetached after the child nodes of the node are detached.
Each node is provided with the TomTomMapNodeContext when TomTomMapNode.attach is called.
Example usages:
class CustomElementNode : TomTomMapNode()
@Composable
@TomTomMapComposable
fun CustomElement() {
ComposeNode<CustomElementNode, TomTomMapApplier>(
factory = { CustomElementNode() },
update = {}
)
}
@Composable
fun MapScreen() {
TomTomMap() {
CustomNode()
}
}Content copied to clipboard