{"id":"ui--CreateYuiTextServiceAdapterContract","name":"CreateYuiTextServiceAdapterContract","owner":"yeho","package":"ui","kind":"function","signature":"external CreateYuiTextServiceAdapterContract(text target, text contractVersion, text capabilities, bool platformTypesInUi) returns yuiTextServiceAdapterContract","description":"Create yui text service adapter contract from the supplied values.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[{"name":"target","type":"text","description":"Supply target as text."},{"name":"contractVersion","type":"text","description":"Supply contract version as text."},{"name":"capabilities","type":"text","description":"Supply capabilities as text."},{"name":"platformTypesInUi","type":"bool","description":"Supply platform types in ui as bool."}],"returns":"yuiTextServiceAdapterContract","members":[],"tags":["cpu","function","source-example","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/text-locale.yh","line":223,"sha256":"f94675a021e536a25eeecbefd67a1e88ba3c63fddf46ace8e10a80b7140bff2a"},"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 CreateYuiTextServiceAdapterContract","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using ui\n\n// Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.\ntext target = \"target\"\ntext contractVersion = \"contract Version\"\ntext capabilities = \"capabilities\"\nbool platformTypesInUi = true\nyuiTextServiceAdapterContract result = CreateYuiTextServiceAdapterContract(target, contractVersion, capabilities, platformTypesInUi)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__createyuitextserviceadaptercontract\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"graphics.image\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/image\"\n\n[[dependencies]]\npackage = \"graphics.text\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/graphics/text\"\n\n[[dependencies]]\npackage = \"host.ui_services\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/ui_services\"\n\n[[dependencies]]\npackage = \"ui\"\nversion = \"0.2.0\"\npath = \"../../../yeho/packages/ui\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"9886dacfa9e9973241fb49e7d81f7b2bba7fbc415f33745a973ab65a7e5e41ac","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=ui--CreateYuiTextServiceAdapterContract","json":"https://demonhunterlabs.com/reference/items/ui--CreateYuiTextServiceAdapterContract.json","markdown":"https://demonhunterlabs.com/reference/text/ui--CreateYuiTextServiceAdapterContract.md"}
