{"id":"host.ui_services--CreateNativeUiDisplayColorCapabilityV1","name":"CreateNativeUiDisplayColorCapabilityV1","owner":"yeho","package":"host.ui_services","kind":"function","signature":"external CreateNativeUiDisplayColorCapabilityV1(text displayId, bool available, bool profileAvailable, text profileIdentity, bool advancedColorSupported, bool advancedColorActive, bool hdrSupported, bool hdrUserEnabled, bool wideColorSupported, bool wideColorUserEnabled, bool policyLimited, text activeMode, text encoding, int bitsPerChannel, int sdrWhiteMilliNits, text discovery, text source) returns nativeUiDisplayColorCapabilityV1","description":"Create native ui display color capability v1 from the supplied values.","context":"Define host text, editing, clipboard, and accessibility service contracts.","parameters":[{"name":"displayId","type":"text","description":"Supply display id as text."},{"name":"available","type":"bool","description":"Supply available as bool."},{"name":"profileAvailable","type":"bool","description":"Supply profile available as bool."},{"name":"profileIdentity","type":"text","description":"Supply profile identity as text."},{"name":"advancedColorSupported","type":"bool","description":"Supply advanced color supported as bool."},{"name":"advancedColorActive","type":"bool","description":"Supply advanced color active as bool."},{"name":"hdrSupported","type":"bool","description":"Supply hdr supported as bool."},{"name":"hdrUserEnabled","type":"bool","description":"Supply hdr user enabled as bool."},{"name":"wideColorSupported","type":"bool","description":"Supply wide color supported as bool."},{"name":"wideColorUserEnabled","type":"bool","description":"Supply wide color user enabled as bool."},{"name":"policyLimited","type":"bool","description":"Supply policy limited as bool."},{"name":"activeMode","type":"text","description":"Supply active mode as text."},{"name":"encoding","type":"text","description":"Supply encoding as text."},{"name":"bitsPerChannel","type":"int","description":"Supply bits per channel as int."},{"name":"sdrWhiteMilliNits","type":"int","description":"Supply sdr white milli nits as int."},{"name":"discovery","type":"text","description":"Supply discovery as text."},{"name":"source","type":"text","description":"Supply source as text."}],"returns":"nativeUiDisplayColorCapabilityV1","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/00-contracts.yh","line":234,"sha256":"bb2e0a4fdde32198e4c9a2934b8cf26f08629ff18c08155984a323aacc313a21"},"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 CreateNativeUiDisplayColorCapabilityV1","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.\ntext displayId = \"display Id\"\nbool available = true\nbool profileAvailable = true\ntext profileIdentity = \"profile Identity\"\nbool advancedColorSupported = true\nbool advancedColorActive = true\nbool hdrSupported = true\nbool hdrUserEnabled = true\nbool wideColorSupported = true\nbool wideColorUserEnabled = true\nbool policyLimited = true\ntext activeMode = \"active Mode\"\ntext encoding = \"encoding\"\nint bitsPerChannel = 1\nint sdrWhiteMilliNits = 1\ntext discovery = \"discovery\"\ntext source = \"example\"\nnativeUiDisplayColorCapabilityV1 result = CreateNativeUiDisplayColorCapabilityV1(displayId, available, profileAvailable, profileIdentity, advancedColorSupported, advancedColorActive, hdrSupported, hdrUserEnabled, wideColorSupported, wideColorUserEnabled, policyLimited, activeMode, encoding, bitsPerChannel, sdrWhiteMilliNits, discovery, source)\nConsole.Log(\"Inspect result in your debugger\")\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_ui_services__createnativeuidisplaycolorcapabilityv1\"\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":"8959a52bc9483960099fce553dba07368a0a5765d90c91773adbf950fc2c87d8","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=host.ui_services--CreateNativeUiDisplayColorCapabilityV1","json":"https://demonhunterlabs.com/reference/items/host.ui_services--CreateNativeUiDisplayColorCapabilityV1.json","markdown":"https://demonhunterlabs.com/reference/text/host.ui_services--CreateNativeUiDisplayColorCapabilityV1.md"}
