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) releases
the CEP slot without recording a rich dismissal for an unseen guide.
Implementation
void dismiss() {
if (_view.isShowcaseRunning) {
_view.dismiss();
} else if (_orchestrator.state != null) {
_dismissBeforeShown();
}
}