# yuiRetainedResourcePreparedAdmissionV1

A yui retained resource prepared admission v1 object with the operations listed below.

Last updated: 2026-09-09

Package: ui | Status: source-declared

Tags: class, cpu, method, source-example, ui, validation, yeho

Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.

```yh
external class yuiRetainedResourcePreparedAdmissionV1
```

- yuiRetainedResourcePreparedAdmissionV1(yuiRetainedResourceStoreIdentityV1 storeIdentity, yuiRetainedResourcePreflightV1 plan, yuiRetainedOwnerFragment fragment, yuiRetainedResourceDeltaV1 delta, int preparedRevision, bool initial): Yui retained resource prepared admission v1.
- Admitted() returns bool: Admitted.
- Revision() returns int: Revision.
- Validations() returns int: Validations.
- ExplicitComparisons() returns int: Explicit comparisons.
- PayloadComparisons() returns int: Payload comparisons.
- ResourceIndexComparisons() returns int: Resource index comparisons.
- Diagnostic() returns text: Diagnostic.
- Consumed() returns bool: Consumed.
- MatchesStore(yuiRetainedResourceStoreIdentityV1 identity) returns bool: Matches store. Its identity parameter is private. Use the owning store commit operation; it performs this comparison internally.
- IsInitial() returns bool: Is initial.
- Consume(): Consume.
- MatchesInputs(yuiRetainedOwnerFragment fragment, yuiRetainedResourceDeltaV1 delta) returns bool: Matches inputs.
- PreparedPlan(yuiRetainedOwnerFragment fragment, yuiRetainedResourceDeltaV1 delta) returns yuiRetainedResourcePreflightV1: Prepared plan.

## Preflight a HUD resource update

Ask the owning resource store to create a prepared result. Its internal identity is private; inspect admission and diagnostics before committing.

Verification: executed

```yh
using ui

yuiRetainedResourceStoreV1 store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 prepared = store.PrepareInitial(fragment, delta, 0)
Console.Log(Text.From(prepared.Admitted()))
Console.Log(prepared.Diagnostic())

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

Executed backend: cpu-oracle

Observed output:

```text
false
fragment player-panel requires 1..4096 commands
```

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/ui--yuiRetainedResourcePreparedAdmissionV1/complete --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.Admitted

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Admitted.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
bool result = instance.Admitted()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-Admitted-1 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.Revision

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Revision.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
int result = instance.Revision()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-Revision-2 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.Validations

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Validations.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
int result = instance.Validations()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-Validations-3 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.ExplicitComparisons

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Explicit comparisons.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
int result = instance.ExplicitComparisons()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-ExplicitComparisons-4 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.PayloadComparisons

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Payload comparisons.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
int result = instance.PayloadComparisons()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-PayloadComparisons-5 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.ResourceIndexComparisons

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Resource index comparisons.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
int result = instance.ResourceIndexComparisons()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-ResourceIndexComparisons-6 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.Diagnostic

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Diagnostic.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
text result = instance.Diagnostic()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-Diagnostic-7 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.Consumed

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Consumed.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
bool result = instance.Consumed()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-Consumed-8 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.MatchesStore

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
// MatchesStore uses a private store identity. Let the owning store check it.
instance_store.CommitPreparedInitial(instance, instance_fragment, instance_delta)
Console.Log("Store identity was checked by the owner")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-MatchesStore-9 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.IsInitial

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Is initial.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
bool result = instance.IsInitial()
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-IsInitial-10 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.Consume

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Consume.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
instance.Consume()
Console.Log("Consume completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-Consume-11 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.MatchesInputs

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Matches inputs.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
yuiRetainedOwnerFragment argument_fragment = yuiRetainedOwnerFragment("owner Id", 1, 1, yuiRenderBounds(1, 1, 1, 1), yuiRenderBounds(1, 1, 1, 1), yuiFragmentDependencySignature("layout Key", "paint Key", "resource Key", "motion Key", "composite Key", "example"), "example")
yuiRetainedResourceDeltaV1 argument_delta = yuiRetainedResourceDeltaV1("surface Id")
bool result = instance.MatchesInputs(argument_fragment, argument_delta)
Console.Log(Text.From(result))

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-MatchesInputs-12 --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


## yuiRetainedResourcePreparedAdmissionV1.PreparedPlan

A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.

Verification: type checked

```yh
using ui

// Prepared plan.
yuiRetainedResourceStoreV1 instance_store = CreateYuiRetainedResourceStoreV1("hud")
yuiRetainedOwnerFragment instance_fragment = yuiRetainedOwnerFragment("player-panel", 1, 0, yuiRenderBounds(0, 0, 100, 40), yuiRenderBounds(0, 0, 100, 40), yuiFragmentDependencySignature("layout", "paint", "resources", "motion", "composite", "example"), "example")
yuiRetainedResourceDeltaV1 instance_delta = yuiRetainedResourceDeltaV1("hud")
yuiRetainedResourcePreparedAdmissionV1 instance = instance_store.PrepareInitial(instance_fragment, instance_delta, 0)
yuiRetainedOwnerFragment argument_fragment = yuiRetainedOwnerFragment("owner Id", 1, 1, yuiRenderBounds(1, 1, 1, 1), yuiRenderBounds(1, 1, 1, 1), yuiFragmentDependencySignature("layout Key", "paint Key", "resource Key", "motion Key", "composite Key", "example"), "example")
yuiRetainedResourceDeltaV1 argument_delta = yuiRetainedResourceDeltaV1("surface Id")
instance.PreparedPlan(argument_fragment, argument_delta)
Console.Log("PreparedPlan completed")

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.ui__yuiretainedresourcepreparedadmissionv1"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "graphics.image"
version = "0.1.0"
path = "../../../yeho/packages/graphics/image"

[[dependencies]]
package = "graphics.text"
version = "0.1.0"
path = "../../../yeho/packages/graphics/text"

[[dependencies]]
package = "host.ui_services"
version = "0.1.0"
path = "../../../yeho/packages/host/ui_services"

[[dependencies]]
package = "ui"
version = "0.2.0"
path = "../../../yeho/packages/ui"

```

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/ui--yuiRetainedResourcePreparedAdmissionV1/method-PreparedPlan-13 --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/ui/render-60-retained-resource-snapshots.yh

AI training permission: https://demonhunterlabs.com/ai-use
