pub enum SyncCall {
Show 14 variants
Measure {
node_id: NodeId,
},
MeasureText {
text: String,
style: TextStyleInput,
max_width: f32,
},
IsFocused {
node_id: NodeId,
},
GetFocusedNode,
GetScrollOffset {
node_id: NodeId,
},
SupportsCapability {
capability: String,
},
GetScreenInfo,
IsProcessing,
GetAccessibilityRole {
node_id: NodeId,
},
GetFrameStats,
NodeExists {
node_id: NodeId,
},
GetChildCount {
node_id: NodeId,
},
CanGoBack,
GetActiveRoute,
}Expand description
Synchronous call from JS → Rust. Returns immediately. RULE: No mutation allowed. Read-only queries only.
Variants§
Measure
Measure a node’s computed layout (x, y, width, height).
MeasureText
Measure text without creating a node (for layout calculations).
IsFocused
Check if a node currently has accessibility/keyboard focus.
GetFocusedNode
Get the node that currently holds focus (if any).
GetScrollOffset
Get the current scroll offset of a ScrollView node.
SupportsCapability
Query a platform capability (haptics, biometrics, etc.).
GetScreenInfo
Get the current screen dimensions and scale factor.
IsProcessing
Check if Rust scheduler is processing (backpressure signal).
GetAccessibilityRole
Get the accessibility role assigned to a node.
GetFrameStats
Get scheduler frame stats (for DevTools).
NodeExists
Check if a node exists in the shadow tree.
GetChildCount
Get the child count of a node.
CanGoBack
Check if back navigation is possible.
GetActiveRoute
Get the currently active route name and params.