dismiss method

void dismiss()

Tears the guide down as a user-driven close — fired when the anchored screen leaves the tree (the user navigated back or away), mirroring RN's back_gesture dismissal. Goes through the showcaseview onDismiss_finish path so the normal Dismissed analytics fire, unlike the orchestrator's silent invalidation.

No-op when nothing is showing. A guide that was routed but hasn't started yet (still inside the first step's delayInMs/post-frame wait) is cleared silently — it never rendered, so there is no view to dismiss and no impression to abandon.

Implementation

void dismiss() {
  if (_view.isShowcaseRunning) {
    _view.dismiss();
  } else if (_orchestrator.state != null) {
    _orchestrator.dismiss();
  }
}