MiniProgramInteractionController class

Provider-neutral foreground UI bridge. Owned by the host, never an artifact. No model, API key, server, per-action catalog or native plugin is required.

Constructors

MiniProgramInteractionController({Future<void> onExit()?})

Properties

hashCode → int
The hash code for this object.
no setterinherited
onExit → Future<void> Function()?
Optional host-owned root Back operation (for example, showHost for a retained separate Android task). The SDK never finishes a task itself.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() → void
handleRequest(Map<String, dynamic> request) → Future<Map<String, Object?>>
JSON boundary for a host-owned authenticated transport. Never expose this as an unauthenticated network service or to artifact-provided code.
interact(MiniProgramInteractionRequest request) → Future<MiniProgramInteractionResult>
Runs one interaction against exactly the observed session/revision. Retry an uncertain response by observing; never replay a new request ID.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
observe({String? sessionId}) → Future<MiniProgramInteractionSnapshot>
Reads only the current rendered surface. Hidden sessions return no nodes.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited