LayoutInteractionContext Class#
Context provided to OnLayoutInteractionAsync(LayoutInteractionContext) describing a layout-scoped interaction originated by the client.
public sealed class LayoutInteractionContext
Inheritance System.Object → LayoutInteractionContext
Properties#
CancellationToken Property#
Cancellation token for the interaction operation.
public System.Threading.CancellationToken CancellationToken { get; init; }
Property Value#
System.Threading.CancellationToken
ExtensionId Property#
The owning extension's ExtensionId. Together with LayoutId this forms the identity pair that scoped the interaction. Present for symmetry with the JSON-RPC surface; a handler implemented as a sibling class shares this id with its layout engine.
public string ExtensionId { get; init; }
Property Value#
FrameInstanceId Property#
Host-allocated, opaque token identifying which renderer instance originated the interaction. Stable for the life of one mount. Extensions should treat the value as a string token, not parse it.
public string FrameInstanceId { get; init; }
Property Value#
InteractionType Property#
Application-defined interaction type (e.g. "updateCellPosition",
"run").
public string InteractionType { get; init; }
Property Value#
LayoutId Property#
The LayoutId the interaction targets.
public string LayoutId { get; init; }
Property Value#
Payload Property#
Free-form payload from the client (e.g. JSON, form data).
public string Payload { get; init; }
Property Value#
RequestCellRefresh Property#
Requests that the client invalidate cached container info for the
specified cell and re-fetch layout/getCellContainer for it.
The default is a no-op; the host installs a real receiver before
dispatching the context.
public System.Action<System.Guid> RequestCellRefresh { get; init; }
Property Value#
RequestRender Property#
Requests that the client re-fetch the full layout HTML via
layout/render. Equivalent to firing a layout/updated
notification with scope="full". The default is a no-op; the host
installs a real receiver before dispatching the context.
public System.Action RequestRender { get; init; }
Property Value#
TargetId Property#
Optional identifier supplied by the client to disambiguate the target
within a layout (e.g. a clicked element's data-target-id).
public string? TargetId { get; init; }
Property Value#
Verso Property#
Verso context providing access to variables, theme, notebook operations, and the extension host. The host populates this when invoking OnLayoutInteractionAsync(LayoutInteractionContext).
public Verso.Abstractions.IVersoContext Verso { get; init; }