element_targeting library

Classes

AmplitudeEngagementView
A SemanticsTag that provides an explicit, stable identifier for element targeting. When present on a SemanticsNode, this identifier takes precedence over the node's accessibility label.

Functions

disableElementTargeting(MethodChannel methodChannel) Future<void>
Disables element targeting and clears the native element store.
enableElementTargeting(MethodChannel methodChannel) → void
Enables element targeting by listening for semantics tree updates.
resetElementTargetingForTesting() → void
Resets all element-targeting state. Only intended for use in tests.
triggerElementTap(String identifier) bool
Triggers a tap on a Flutter element previously reported to the native SDK. Returns true if the matching SemanticsNode was found and the tap action was dispatched.