host.ui_services · class ·

nativeUiHostReferenceProvider

A native ui host reference provider record carrying schema, schemaVersion, provider, capabilitySchema, capabilitySchemaVersion, and related state.

classcpuhosthost.ui_servicesmethodsource-exampleui_servicesyeho

Define host text, editing, clipboard, and accessibility service contracts.

external class nativeUiHostReferenceProvider

Status: source-declared

Fields and methods (93)
text schema
Stores schema as text.
int schemaVersion
Stores schema version as int.
text provider
Stores provider as text.
text capabilitySchema
Stores capability schema as text.
int capabilitySchemaVersion
Stores capability schema version as int.
text state
Stores state as text.
int ownerThread
Stores owner thread as int.
text diagnostic
Stores diagnostic as text.
int nextSequence
Stores next sequence as int.
int lastTimestamp
Stores last timestamp as int.
int lastCorrelation
Stores last correlation as int.
int failureCount
Stores failure count as int.
int allocationCount
Stores allocation count as int.
int maxLatencyMicroseconds
Stores max latency microseconds as int.
bool dispatching
Stores dispatching as bool.
bool accessibilityAvailable
Stores accessibility available as bool.
bool textInputAvailable
Stores text input available as bool.
bool clipboardAvailable
Stores clipboard available as bool.
bool displayAvailable
Stores display available as bool.
bool sessionAvailable
Stores session available as bool.
bool virtualKeyboardAvailable
Stores virtual keyboard available as bool.
bool delayedClipboardAvailable
Stores delayed clipboard available as bool.
int accessibilityBatchDepth
Stores accessibility batch depth as int.
list of text accessibilityNodeIds
Stores accessibility node ids as list of text.
list of int accessibilityGenerations
Stores accessibility generations as list of int.
list of text accessibilityRoles
Stores accessibility roles as list of text.
list of text accessibilityNames
Stores accessibility names as list of text.
text textWindow
Stores text window as text.
text preedit
Stores preedit as text.
text surroundingText
Stores surrounding text as text.
int selectionStart
Stores selection start as int.
int selectionLength
Stores selection length as int.
int replacementStart
Stores replacement start as int.
int replacementLength
Stores replacement length as int.
int caretX
Stores caret x as int.
int caretY
Stores caret y as int.
int caretWidth
Stores caret width as int.
int caretHeight
Stores caret height as int.
int candidateX
Stores candidate x as int.
int candidateY
Stores candidate y as int.
text inputPurpose
Stores input purpose as text.
text inputHints
Stores input hints as text.
bool compositionActive
Stores composition active as bool.
bool virtualKeyboardRequested
Stores virtual keyboard requested as bool.
bool virtualKeyboardVisible
Stores virtual keyboard visible as bool.
text clipboardOwner
Stores clipboard owner as text.
text clipboardFormat
Stores clipboard format as text.
text clipboardData
Stores clipboard data as text.
bool clipboardDelayed
Stores clipboard delayed as bool.
list of text displayIds
Stores display ids as list of text.
list of int displayX
Stores display x as list of int.
list of int displayY
Stores display y as list of int.
list of int displayWidth
Stores display width as list of int.
list of int displayHeight
Stores display height as list of int.
list of int displayWorkX
Stores display work x as list of int.
list of int displayWorkY
Stores display work y as list of int.
list of int displayWorkWidth
Stores display work width as list of int.
list of int displayWorkHeight
Stores display work height as list of int.
list of int displayScale
Stores display scale as list of int.
list of bool displayPrimary
Stores display primary as list of bool.
int topologyRevision
Stores topology revision as int.
text sessionState
Stores session state as text.
list of text events
Stores events as list of text.
nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord capabilities, int ownerThread)
Native ui host reference provider.
Reject(text operation, text reason) returns bool
Reject. Complete example
CapabilityAvailable(text capability) returns bool
Capability available. Complete example
Ready(int thread, text capability) returns bool
Ready. Complete example
Initialize(bool providerAvailable, bool failAfterCapabilities, int thread, int timestampMicroseconds, int correlationId) returns bool
Initialize. Complete example
Record(text category, text subject, text eventState, text detail, int timestampMicroseconds, int correlationId, int latencyMicroseconds)
Record. Complete example
ObserveWindowEvent(text windowId, text eventState, int timestampMicroseconds, int correlationId, int thread) returns bool
Observe window event. Complete example
AccessibilityNodeIndex(text nodeId) returns int
Accessibility node index. Complete example
BeginAccessibilityBatch(int thread, int timestampMicroseconds, int correlationId) returns bool
Begin accessibility batch. Complete example
PublishAccessibilityNode(text nodeId, int generation, text role, text name, int thread) returns bool
Publish accessibility node. Complete example
EndAccessibilityBatch(int thread, int timestampMicroseconds, int correlationId) returns bool
End accessibility batch. Complete example
RouteAccessibilityAction(text nodeId, int generation, text action, bool simulateReentrancy, int thread, int timestampMicroseconds, int correlationId) returns bool
Route accessibility action. Complete example
BeginTextInput(text windowId, text value, int selectionStart, int selectionLength, int replacementStart, int replacementLength, int caretX, int caretY, int caretWidth, int caretHeight, int candidateX, int candidateY, text purpose, text hints, bool deadKey, bool requestVirtualKeyboard, int thread, int timestampMicroseconds, int correlationId) returns bool
Begin text input. Complete example
UpdateSurroundingText(text windowId, text value, int selectionStart, int selectionLength, int deleteStart, int deleteLength, int thread, int timestampMicroseconds, int correlationId) returns bool
Update surrounding text. Complete example
CommitText(text windowId, text value, int replacementStart, int replacementLength, int thread, int timestampMicroseconds, int correlationId) returns bool
Commit text. Complete example
CancelText(text windowId, text reason, int thread, int timestampMicroseconds, int correlationId) returns bool
Cancel text. Complete example
TransferTextFocus(text fromWindowId, text toWindowId, int thread, int timestampMicroseconds, int correlationId) returns bool
Transfer text focus. Complete example
SetVirtualKeyboard(bool requested, bool visible, text keyboardState, int thread, int timestampMicroseconds, int correlationId) returns bool
Set virtual keyboard. Complete example
ClipboardFormatKnown(text format) returns bool
Clipboard format known. Complete example
SetClipboard(text owner, text format, text value, bool delayed, bool permissionGranted, int thread, int timestampMicroseconds, int correlationId) returns bool
Set clipboard. Complete example
MaterializeClipboard(text owner, text value, bool permissionGranted, int thread, int timestampMicroseconds, int correlationId) returns bool
Materialize clipboard. Complete example
ReadClipboard(text format, bool permissionGranted, int thread, int timestampMicroseconds, int correlationId) returns text
Read clipboard. Complete example
DisplayIndex(text displayId) returns int
Display index. Complete example
PublishDisplay(nativeUiDisplayRecord display, int thread) returns bool
Publish display. Complete example
CommitTopology(int thread, int timestampMicroseconds, int correlationId) returns bool
Commit topology. Complete example
SetSessionSuspended(bool suspended, text reason, int thread, int timestampMicroseconds, int correlationId) returns bool
Set session suspended. Complete example
ProviderLost(text reason, int thread, int timestampMicroseconds, int correlationId) returns bool
Provider lost. Complete example
TearDown(int thread, int timestampMicroseconds, int correlationId) returns bool
Tear down. Complete example
EventAt(int index) returns text
Event at. Complete example
Describe() returns text
Describe. Complete example

Use nativeUiHostReferenceProvider

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using host.ui_services

// Define host text, editing, clipboard, and accessibility service contracts.
nativeUiHostReferenceProvider sample = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
Console.Log(Text.From(sample.schema))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.Reject

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Reject.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_operation = "argument operation"
text argument_reason = "argument reason"
bool result = instance.Reject(argument_operation, argument_reason)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.CapabilityAvailable

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Capability available.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_capability = "argument capability"
bool result = instance.CapabilityAvailable(argument_capability)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.Ready

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Ready.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
int argument_thread = 1
text argument_capability = "argument capability"
bool result = instance.Ready(argument_thread, argument_capability)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.Initialize

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Initialize.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
bool argument_providerAvailable = true
bool argument_failAfterCapabilities = true
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.Initialize(argument_providerAvailable, argument_failAfterCapabilities, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.Record

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Record.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_category = "argument category"
text argument_subject = "argument subject"
text argument_eventState = "argument event State"
text argument_detail = "argument detail"
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
int argument_latencyMicroseconds = 1
instance.Record(argument_category, argument_subject, argument_eventState, argument_detail, argument_timestampMicroseconds, argument_correlationId, argument_latencyMicroseconds)
Console.Log("Record completed")
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.ObserveWindowEvent

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Observe window event.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_windowId = "argument window Id"
text argument_eventState = "argument event State"
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
int argument_thread = 1
bool result = instance.ObserveWindowEvent(argument_windowId, argument_eventState, argument_timestampMicroseconds, argument_correlationId, argument_thread)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.AccessibilityNodeIndex

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Accessibility node index.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_nodeId = "argument node Id"
int result = instance.AccessibilityNodeIndex(argument_nodeId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.BeginAccessibilityBatch

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Begin accessibility batch.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.BeginAccessibilityBatch(argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.PublishAccessibilityNode

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Publish accessibility node.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_nodeId = "argument node Id"
int argument_generation = 1
text argument_role = "argument role"
text argument_name = "argument name"
int argument_thread = 1
bool result = instance.PublishAccessibilityNode(argument_nodeId, argument_generation, argument_role, argument_name, argument_thread)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.EndAccessibilityBatch

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// End accessibility batch.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.EndAccessibilityBatch(argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.RouteAccessibilityAction

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Route accessibility action.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_nodeId = "argument node Id"
int argument_generation = 1
text argument_action = "argument action"
bool argument_simulateReentrancy = true
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.RouteAccessibilityAction(argument_nodeId, argument_generation, argument_action, argument_simulateReentrancy, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.BeginTextInput

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Begin text input.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_windowId = "argument window Id"
text argument_value = "argument value"
int argument_selectionStart = 1
int argument_selectionLength = 1
int argument_replacementStart = 1
int argument_replacementLength = 1
int argument_caretX = 1
int argument_caretY = 1
int argument_caretWidth = 1
int argument_caretHeight = 1
int argument_candidateX = 1
int argument_candidateY = 1
text argument_purpose = "argument purpose"
text argument_hints = "argument hints"
bool argument_deadKey = true
bool argument_requestVirtualKeyboard = true
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.BeginTextInput(argument_windowId, argument_value, argument_selectionStart, argument_selectionLength, argument_replacementStart, argument_replacementLength, argument_caretX, argument_caretY, argument_caretWidth, argument_caretHeight, argument_candidateX, argument_candidateY, argument_purpose, argument_hints, argument_deadKey, argument_requestVirtualKeyboard, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.UpdateSurroundingText

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Update surrounding text.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_windowId = "argument window Id"
text argument_value = "argument value"
int argument_selectionStart = 1
int argument_selectionLength = 1
int argument_deleteStart = 1
int argument_deleteLength = 1
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.UpdateSurroundingText(argument_windowId, argument_value, argument_selectionStart, argument_selectionLength, argument_deleteStart, argument_deleteLength, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.CommitText

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Commit text.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_windowId = "argument window Id"
text argument_value = "argument value"
int argument_replacementStart = 1
int argument_replacementLength = 1
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.CommitText(argument_windowId, argument_value, argument_replacementStart, argument_replacementLength, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.CancelText

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Cancel text.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_windowId = "argument window Id"
text argument_reason = "argument reason"
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.CancelText(argument_windowId, argument_reason, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.TransferTextFocus

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Transfer text focus.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_fromWindowId = "argument from Window Id"
text argument_toWindowId = "argument to Window Id"
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.TransferTextFocus(argument_fromWindowId, argument_toWindowId, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.SetVirtualKeyboard

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Set virtual keyboard.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
bool argument_requested = true
bool argument_visible = true
text argument_keyboardState = "argument keyboard State"
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.SetVirtualKeyboard(argument_requested, argument_visible, argument_keyboardState, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.ClipboardFormatKnown

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Clipboard format known.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_format = "argument format"
bool result = instance.ClipboardFormatKnown(argument_format)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.SetClipboard

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Set clipboard.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_owner = "argument owner"
text argument_format = "argument format"
text argument_value = "argument value"
bool argument_delayed = true
bool argument_permissionGranted = true
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.SetClipboard(argument_owner, argument_format, argument_value, argument_delayed, argument_permissionGranted, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.MaterializeClipboard

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Materialize clipboard.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_owner = "argument owner"
text argument_value = "argument value"
bool argument_permissionGranted = true
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.MaterializeClipboard(argument_owner, argument_value, argument_permissionGranted, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.ReadClipboard

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Read clipboard.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_format = "argument format"
bool argument_permissionGranted = true
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
text result = instance.ReadClipboard(argument_format, argument_permissionGranted, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.DisplayIndex

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Display index.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_displayId = "argument display Id"
int result = instance.DisplayIndex(argument_displayId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.PublishDisplay

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Publish display.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
nativeUiDisplayRecord argument_display = nativeUiDisplayRecord("id", 1, 1, 1, 1, 1, 1, 1, 1, 1, true)
int argument_thread = 1
bool result = instance.PublishDisplay(argument_display, argument_thread)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.CommitTopology

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Commit topology.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.CommitTopology(argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.SetSessionSuspended

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Set session suspended.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
bool argument_suspended = true
text argument_reason = "argument reason"
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.SetSessionSuspended(argument_suspended, argument_reason, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.ProviderLost

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Provider lost.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text argument_reason = "argument reason"
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.ProviderLost(argument_reason, argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.TearDown

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Tear down.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
int argument_thread = 1
int argument_timestampMicroseconds = 1
int argument_correlationId = 1
bool result = instance.TearDown(argument_thread, argument_timestampMicroseconds, argument_correlationId)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.EventAt

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Event at.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
int argument_index = 1
text result = instance.EventAt(argument_index)
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

nativeUiHostReferenceProvider.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

cpu · method · source-example · type checked

using host.ui_services

// Describe.
nativeUiHostReferenceProvider instance = nativeUiHostReferenceProvider(nativeUiHostCapabilityRecord("provider", true, true, true, true, true, true, true), 1)
text result = instance.Describe()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuihostreferenceprovider"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/host/ui_services/10-reference-provider.yh:1