floaterStoryActionScope method

EngageActionScope floaterStoryActionScope(
  1. BuildContext context
)

Action bindings for content inside a story floater.

Overrides dismiss for the same two reasons the PiP's scope does: the window is mounted above the app's Navigator, so there is no route to pop, and Hide on a floater means "end this showing", not "pop something". And with the same reason: a dismiss authored on a CTA is the CTA taken, not the user closing it (the window's × stays userClose).

Implementation

EngageActionScope floaterStoryActionScope(BuildContext context) =>
    EngageActionScope.fromContext(
      context,
      dismiss: () =>
          _floaterStoryOrchestrator.dismiss(PipDismissReason.ctaTaken),
    );