{"id":"ui--yuiRetainedDependencySubscription","name":"yuiRetainedDependencySubscription","owner":"yeho","package":"ui","kind":"thing","signature":"external thing yuiRetainedDependencySubscription","description":"A yui retained dependency subscription record carrying key, scope, ownerIds.","context":"Build YUI's reusable control, layout, interaction, text, accessibility, and retained-rendering models.","parameters":[],"returns":"void","members":[{"name":"key","kind":"field","type":"text","description":"Stores key as text.","signature":"text key","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"scope","kind":"field","type":"text","description":"Stores scope as text.","signature":"text scope","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"ownerIds","kind":"field","type":"list of text","description":"Stores owner ids as list of text.","signature":"list of text ownerIds","tags":["thing","field","ui"],"updated":"2026-09-09"},{"name":"yuiRetainedDependencySubscription","kind":"constructor","parameters":[{"name":"key","type":"text","description":"Key."},{"name":"scope","type":"text","description":"Scope."}],"returns":"void","signature":"yuiRetainedDependencySubscription(text key, text scope)","description":"Yui retained dependency subscription.","tags":["thing","constructor","ui"],"updated":"2026-09-09"},{"name":"AddOwner","kind":"method","parameters":[{"name":"ownerId","type":"text","description":"Owner id."}],"returns":"bool","signature":"AddOwner(text ownerId) returns bool","description":"Add owner.","tags":["thing","method","ui"],"exampleId":"method-AddOwner-4","updated":"2026-09-09"},{"name":"HasOwner","kind":"method","parameters":[{"name":"ownerId","type":"text","description":"Owner id."}],"returns":"bool","signature":"HasOwner(text ownerId) returns bool","description":"Has owner.","tags":["thing","method","ui"],"exampleId":"method-HasOwner-5","updated":"2026-09-09"}],"tags":["cpu","method","source-example","thing","ui","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/ui/render-50-retained-fragments.yh","line":323,"sha256":"1062403654e37b95d0b190990ad54290638b64d047aa164ee82220bd91ac0674"},"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 yuiRetainedDependencySubscription","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.\nyuiRetainedDependencySubscription sample = yuiRetainedDependencySubscription(\"key\", \"scope\")\nConsole.Log(Text.From(sample.key))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiretaineddependencysubscription\"\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":"68e802c7ef41711edfeb9fc3b81006e4cac6b997873f73651a509255f49043df","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-AddOwner-4","title":"yuiRetainedDependencySubscription.AddOwner","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Add owner.\nyuiRetainedDependencySubscription instance = yuiRetainedDependencySubscription(\"key\", \"scope\")\ntext argument_ownerId = \"argument owner Id\"\nbool result = instance.AddOwner(argument_ownerId)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiretaineddependencysubscription\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"95b92af790051a909f726b0e57d0e2d2ecd1cbf63f28b20fd6a9d839888ca66d","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-HasOwner-5","title":"yuiRetainedDependencySubscription.HasOwner","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using ui\n\n// Has owner.\nyuiRetainedDependencySubscription instance = yuiRetainedDependencySubscription(\"key\", \"scope\")\ntext argument_ownerId = \"argument owner Id\"\nbool result = instance.HasOwner(argument_ownerId)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.ui__yuiretaineddependencysubscription\"\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","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"6575b97598144000912f749238c140211dc0f986c582bca2778b8b72ac8dfbe7","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["key","scope","ownerIds","yuiRetainedDependencySubscription","AddOwner","HasOwner"],"url":"https://demonhunterlabs.com/academy/api?item=ui--yuiRetainedDependencySubscription","json":"https://demonhunterlabs.com/reference/items/ui--yuiRetainedDependencySubscription.json","markdown":"https://demonhunterlabs.com/reference/text/ui--yuiRetainedDependencySubscription.md"}
