# nativeUiDisplayColorCapabilityV1

A native ui display color capability v1 record carrying schema, schemaVersion, displayId, available, profileAvailable, and related state.

Last updated: 2026-09-09

Package: host.ui_services | Status: source-declared

Tags: cpu, host, host.ui_services, method, source-example, thing, ui_services, yeho

Define host text, editing, clipboard, and accessibility service contracts.

```yh
external thing nativeUiDisplayColorCapabilityV1
```

- 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.
- Describe() returns text: Describe.

## Use nativeUiDisplayColorCapabilityV1

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/host.ui_services--nativeUiDisplayColorCapabilityV1/usage --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## nativeUiDisplayColorCapabilityV1.Validate

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/host.ui_services--nativeUiDisplayColorCapabilityV1/method-Validate-20 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## nativeUiDisplayColorCapabilityV1.Describe

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
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))

```

Save this beside start.yh as project.mech:

```toml
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"

```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/host.ui_services--nativeUiDisplayColorCapabilityV1/method-Describe-21 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

Source: yeho/packages/host/ui_services/00-contracts.yh

AI training permission: https://demonhunterlabs.com/ai-use
