MiniProgramInteractionSurface class

Opt-in boundary around one trusted, rendered mini-program subtree. MiniProgramHost installs this automatically when given a controller.

Inheritance

Constructors

MiniProgramInteractionSurface({Key? key, required MiniProgramInteractionController controller, required String appId, required String screenId, required Widget child, MiniProgramVisibility visibility = MiniProgramVisibility.foreground, Object? revisionToken()?, Future<bool> onBack()?, String screenIdProvider()?, bool canGoBack()?})
const

Properties

appId → String
final
canGoBack → bool Function()?
final
child → Widget
final
controller → MiniProgramInteractionController
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
onBack → Future<bool> Function()?
final
revisionToken → Object? Function()?
An opaque local change counter, never sent to an AI server.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screenId → String
final
screenIdProvider → String Function()?
Reads the loaded screen identity without rebuilding the boundary.
final
visibility → MiniProgramVisibility
final

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<MiniProgramInteractionSurface>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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

Static Methods

ownedRoute({required BuildContext source, required Widget child}) → Widget
Carries ownership to an SDK-created popup route. Other host routes, authentication UI and native platform views remain outside this boundary.
routeBuilder(BuildContext source) → Widget Function(Widget)
Capture ownership while the source is active, before a deferred route builder runs. The builder must never look up a disposed source context.
userInput(BuildContext context) → void
Trusted renderer hook: manual text edits interrupt an AI action sequence.