InteractionScope interface

Module @runic-artifex/views/generated in @runic-artifex/views 0.23.0

interface InteractionScope

The presentation one set of interaction handlers belongs to. Created by connectView.

Properties

route

readonly route: string;

No documentation.

presentation

readonly presentation: string;

The presentation id, which stays the same across reconnects.

live

readonly live: () => boolean;

The presentation is not disposed and its route is open.

Methods

request

request(message: Message): Promise<Reply>;

Sends a request of the route.

onPush

onPush(kind: "interaction" | "interaction-cancelled", handler: (push: Push) => void): () => void;

Registers a handler for interaction pushes of the route.