TomTomMapNode

@RestrictToExtendedFlavor(value = [ExternalScope.LIBRARY_GROUP])
abstract class TomTomMapNode

Base class for all TomTomMap nodes. Each node configures a part of the map view.

Implementations are supposed to cleanup the changes they are representing for example unregister listeners, callbacks etc. the node interface has callbacks for attaching or detaching the node. In these callbacks all nodes should do initialization and cleanup respectively.

See also

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Returns true if the the node is attached to the compose graph. Returns false if the node is not yet attached or is currently detached.

Functions

Link copied to clipboard
fun attach(nodeContext: TomTomMapNodeContext, parent: TomTomMapNode)

Marks that the node is attached to the Compose graph and causes the callback to onAttached to be called. Multiple consecutive calls won't cause the onAttached to be called multiple times.

Link copied to clipboard
fun detach()

Marks that the node is detached from the Compose graph and causes the callback to onDetached to be called. Multiple consecutive calls won't cause the onDetached to be called multiple times.