# yuiAuthoredInteractionRuntime

A yui authored interaction runtime record carrying authored, tree, input, focus, commands, and related state.

Last updated: 2026-09-09

Package: ui | Status: source-declared

Tags: cpu, method, source-example, thing, ui, yeho

Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.

```yh
external thing yuiAuthoredInteractionRuntime
```

- yuiAuthoredRuntime authored: Stores authored as yuiAuthoredRuntime.
- yuiTree tree: Stores tree as yuiTree.
- yuiInputState input: Stores input as yuiInputState.
- yuiFocusModel focus: Stores focus as yuiFocusModel.
- yuiCommandMap commands: Stores commands as yuiCommandMap.
- list of yuiAuthoredControlBehavior behaviors: Stores behaviors as list of yuiAuthoredControlBehavior.
- list of yuiArrangedLayout layout: Stores layout as list of yuiArrangedLayout.
- text surfaceId: Stores surface id as text.
- text pressOwnerId: Stores press owner id as text.
- text pressPointerId: Stores press pointer id as text.
- int revision: Stores revision as int.
- int layoutRevision: Stores layout revision as int.
- int layoutNoOpCount: Stores layout no op count as int.
- text diagnostic: Stores diagnostic as text.
- yuiAuthoredInteractionRuntime(yuiAuthoredRuntime authored, text surfaceId, int dragThreshold): Yui authored interaction runtime.
- Reject(text operation, text reason) returns bool: Reject.
- Accept(): Accept.
- ResolveCatalogBehavior(text kind) returns yuiAuthoredControlBehavior: Resolve catalog behavior.
- BehaviorIndex(text kind) returns int: Behavior index.
- BuildBehaviors(): Build behaviors.
- Behavior(text kind) returns yuiAuthoredControlBehavior: Behavior.
- StateBindingIndex(text nodeId, text propertyName) returns int: State binding index.
- ResolveActionCommand(yuiAuthoredAction action, text preferredEvent) returns yuiAuthoredAction: Resolve action command.
- ApplyBoundValue(yuiAuthoredAction action, text propertyName, text encoded) returns yuiAuthoredAction: Apply bound value.
- SyncTreeFromAuthored() returns bool: Sync tree from authored.
- LayoutEquivalent(list of yuiArrangedLayout placements) returns bool: Layout equivalent.
- SyncLayout(list of yuiArrangedLayout placements) returns bool: Sync layout.
- SetState(text stateId, yuiAuthoredValue value) returns bool: Set state.
- AddShortcut(yuiCommandBinding binding) returns bool: Add shortcut.
- CommitValue(text nodeId, text propertyName, text encoded, text eventProperty, text source) returns yuiAuthoredAction: Commit value.
- Activate(text nodeId, text payload, text source) returns yuiAuthoredAction: Activate.
- HandlePointer(text eventKind, text pointerId, int x, int y) returns yuiAuthoredInteractionResult: Handle pointer.
- HandleKey(text key, text chord) returns yuiAuthoredInteractionResult: Handle key.
- RenderReport() returns text: Render report.

## Use yuiAuthoredInteractionRuntime

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
using ui

// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.
yuiAuthoredInteractionRuntime sample = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
Console.Log(Text.From(sample.surfaceId))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.Reject

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Reject.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_operation = "argument operation"
text argument_reason = "argument reason"
bool result = instance.Reject(argument_operation, argument_reason)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-Reject-15 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.Accept

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Accept.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
instance.Accept()
Console.Log("Accept completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-Accept-16 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.ResolveCatalogBehavior

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Resolve catalog behavior.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_kind = "argument kind"
yuiAuthoredControlBehavior result = instance.ResolveCatalogBehavior(argument_kind)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-ResolveCatalogBehavior-17 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.BehaviorIndex

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Behavior index.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_kind = "argument kind"
int result = instance.BehaviorIndex(argument_kind)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-BehaviorIndex-18 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.BuildBehaviors

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Build behaviors.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
instance.BuildBehaviors()
Console.Log("BuildBehaviors completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-BuildBehaviors-19 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.Behavior

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Behavior.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_kind = "argument kind"
yuiAuthoredControlBehavior result = instance.Behavior(argument_kind)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-Behavior-20 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.StateBindingIndex

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// State binding index.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_nodeId = "argument node Id"
text argument_propertyName = "argument property Name"
int result = instance.StateBindingIndex(argument_nodeId, argument_propertyName)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-StateBindingIndex-21 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.ResolveActionCommand

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Resolve action command.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
yuiAuthoredAction argument_action = yuiAuthoredAction("node Id", "semantic Action", "example")
text argument_preferredEvent = "argument preferred Event"
yuiAuthoredAction result = instance.ResolveActionCommand(argument_action, argument_preferredEvent)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-ResolveActionCommand-22 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.ApplyBoundValue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Apply bound value.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
yuiAuthoredAction argument_action = yuiAuthoredAction("node Id", "semantic Action", "example")
text argument_propertyName = "argument property Name"
text argument_encoded = "argument encoded"
yuiAuthoredAction result = instance.ApplyBoundValue(argument_action, argument_propertyName, argument_encoded)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-ApplyBoundValue-23 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.SyncTreeFromAuthored

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Sync tree from authored.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
bool result = instance.SyncTreeFromAuthored()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-SyncTreeFromAuthored-24 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.LayoutEquivalent

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Layout equivalent.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
list of yuiArrangedLayout argument_placements = []
bool result = instance.LayoutEquivalent(argument_placements)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-LayoutEquivalent-25 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.SyncLayout

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Sync layout.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
list of yuiArrangedLayout argument_placements = []
bool result = instance.SyncLayout(argument_placements)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-SyncLayout-26 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.SetState

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Set state.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_stateId = "argument state Id"
yuiAuthoredValue argument_value = yuiAuthoredValue("kind", "type Name", "encoded")
bool result = instance.SetState(argument_stateId, argument_value)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-SetState-27 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.AddShortcut

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Add shortcut.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
yuiCommandBinding argument_binding = yuiCommandBinding("id", "scope Root Id", "chord", "command", "example")
bool result = instance.AddShortcut(argument_binding)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-AddShortcut-28 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.CommitValue

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Commit value.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_nodeId = "argument node Id"
text argument_propertyName = "argument property Name"
text argument_encoded = "argument encoded"
text argument_eventProperty = "argument event Property"
text argument_source = "argument source"
yuiAuthoredAction result = instance.CommitValue(argument_nodeId, argument_propertyName, argument_encoded, argument_eventProperty, argument_source)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-CommitValue-29 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.Activate

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Activate.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_nodeId = "argument node Id"
text argument_payload = "argument payload"
text argument_source = "argument source"
yuiAuthoredAction result = instance.Activate(argument_nodeId, argument_payload, argument_source)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-Activate-30 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.HandlePointer

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Handle pointer.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_eventKind = "argument event Kind"
text argument_pointerId = "argument pointer Id"
int argument_x = 1
int argument_y = 1
yuiAuthoredInteractionResult result = instance.HandlePointer(argument_eventKind, argument_pointerId, argument_x, argument_y)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-HandlePointer-31 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.HandleKey

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Handle key.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text argument_key = "argument key"
text argument_chord = "argument chord"
yuiAuthoredInteractionResult result = instance.HandleKey(argument_key, argument_chord)
Console.Log("Inspect result in your debugger")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-HandleKey-32 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiAuthoredInteractionRuntime.RenderReport

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Render report.
yuiAuthoredInteractionRuntime instance = yuiAuthoredInteractionRuntime(yuiAuthoredRuntime("id"), "surface Id", 1)
text result = instance.RenderReport()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiauthoredinteractionruntime"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/ui--yuiAuthoredInteractionRuntime/method-RenderReport-33 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/ui/authoring-interaction-10-runtime.yh

AI training permission: https://demonhunterlabs.com/ai-use
