enableElementTargeting function

void enableElementTargeting()

Start listening for semantics tree changes and send element positions to the native SDK for tooltip/nudge anchoring.

All SemanticsNodes with a non-empty label are captured automatically. Use AmplitudeEngagementView as a SemanticsTag to provide an explicit identifier that overrides the default accessibility label.

await enableElementTargeting();

Implementation

void enableElementTargeting() {
  element_targeting.enableElementTargeting(_elementTargetingChannel);
}