host.ui_services · thing ·
nativeUiDisplayColorCapabilityV1
A native ui display color capability v1 record carrying schema, schemaVersion, displayId, available, profileAvailable, and related state.
Define host text, editing, clipboard, and accessibility service contracts.
external thing nativeUiDisplayColorCapabilityV1Status: source-declared
Fields and methods (22)
text schema- Stores schema as text.
int schemaVersion- Stores schema version as int.
text displayId- Stores display id as text.
bool available- Stores available as bool.
bool profileAvailable- Stores profile available as bool.
text profileIdentity- Stores profile identity as text.
bool advancedColorSupported- Stores advanced color supported as bool.
bool advancedColorActive- Stores advanced color active as bool.
bool hdrSupported- Stores hdr supported as bool.
bool hdrUserEnabled- Stores hdr user enabled as bool.
bool wideColorSupported- Stores wide color supported as bool.
bool wideColorUserEnabled- Stores wide color user enabled as bool.
bool policyLimited- Stores policy limited as bool.
text activeMode- Stores active mode as text.
text encoding- Stores encoding as text.
int bitsPerChannel- Stores bits per channel as int.
int sdrWhiteMilliNits- Stores sdr white milli nits as int.
text discovery- Stores discovery as text.
text source- Stores source as text.
nativeUiDisplayColorCapabilityV1(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)- Native ui display color capability v1.
Validate() returns text- Validate. Complete example
Describe() returns text- Describe. Complete example
Use nativeUiDisplayColorCapabilityV1
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.
nativeUiDisplayColorCapabilityV1 sample = nativeUiDisplayColorCapabilityV1("display Id", true, true, "profile Identity", true, true, true, true, true, true, true, "active Mode", "encoding", 1, 1, "discovery", "example")
Console.Log(Text.From(sample.schema))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuidisplaycolorcapabilityv1"
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"
nativeUiDisplayColorCapabilityV1.Validate
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
// Validate.
nativeUiDisplayColorCapabilityV1 instance = nativeUiDisplayColorCapabilityV1("display Id", true, true, "profile Identity", true, true, true, true, true, true, true, "active Mode", "encoding", 1, 1, "discovery", "example")
text result = instance.Validate()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuidisplaycolorcapabilityv1"
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"
nativeUiDisplayColorCapabilityV1.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.
nativeUiDisplayColorCapabilityV1 instance = nativeUiDisplayColorCapabilityV1("display Id", true, true, "profile Identity", true, true, true, true, true, true, true, "active Mode", "encoding", 1, 1, "discovery", "example")
text result = instance.Describe()
Console.Log(Text.From(result))
project.mech
manifestVersion = "2"
package = "api.example.host_ui_services__nativeuidisplaycolorcapabilityv1"
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/00-contracts.yh:146