{"id":"host.ui_services--CreateNativeUiHostReferenceProvider","name":"CreateNativeUiHostReferenceProvider","owner":"yeho","package":"host.ui_services","kind":"function","signature":"external CreateNativeUiHostReferenceProvider(nativeUiHostCapabilityRecord capabilities, int ownerThread) returns nativeUiHostReferenceProvider","description":"Create native ui host reference provider from the supplied values.","context":"Define host text, editing, clipboard, and accessibility service contracts.","parameters":[{"name":"capabilities","type":"nativeUiHostCapabilityRecord","description":"Supply capabilities as nativeUiHostCapabilityRecord."},{"name":"ownerThread","type":"int","description":"Supply owner thread as int."}],"returns":"nativeUiHostReferenceProvider","members":[],"tags":["cpu","function","host","host.ui_services","source-example","ui_services","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/host/ui_services/10-reference-provider.yh","line":682,"sha256":"d2f6da00515efd8d418cb0d85cc63c60e2f37b86f8057a79185f8dc0823a8881"},"status":"source-declared","notes":["Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup."],"examples":[{"id":"usage","title":"Use CreateNativeUiHostReferenceProvider","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using host.ui_services\n\n// Define host text, editing, clipboard, and accessibility service contracts.\nnativeUiHostCapabilityRecord capabilities = nativeUiHostCapabilityRecord(\"provider\", true, true, true, true, true, true, true)\nint ownerThread = 1\nnativeUiHostReferenceProvider result = CreateNativeUiHostReferenceProvider(capabilities, ownerThread)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_ui_services__createnativeuihostreferenceprovider\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"889efb8e494004436391607279e632069db2568e0efff2f2cba7ce8a1596d470","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=host.ui_services--CreateNativeUiHostReferenceProvider","json":"https://demonhunterlabs.com/reference/items/host.ui_services--CreateNativeUiHostReferenceProvider.json","markdown":"https://demonhunterlabs.com/reference/text/host.ui_services--CreateNativeUiHostReferenceProvider.md"}
