{"id":"host.windows--windowsUiClipboardSnapshot","name":"windowsUiClipboardSnapshot","owner":"yeho","package":"host.windows","kind":"thing","signature":"external thing windowsUiClipboardSnapshot","description":"A windows ui clipboard snapshot record carrying opened, unicodeTextAvailable, rgbaImageAvailable, localeAvailable, sequence, and related state.","context":"Connect Windows display, session, clipboard, and accessibility services.","parameters":[],"returns":"void","members":[{"name":"opened","kind":"field","type":"bool","description":"Stores opened as bool.","signature":"bool opened","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"unicodeTextAvailable","kind":"field","type":"bool","description":"Stores unicode text available as bool.","signature":"bool unicodeTextAvailable","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"rgbaImageAvailable","kind":"field","type":"bool","description":"Stores rgba image available as bool.","signature":"bool rgbaImageAvailable","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"localeAvailable","kind":"field","type":"bool","description":"Stores locale available as bool.","signature":"bool localeAvailable","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"sequence","kind":"field","type":"int","description":"Stores sequence as int.","signature":"int sequence","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"unicodeTextUnits","kind":"field","type":"int","description":"Stores unicode text units as int.","signature":"int unicodeTextUnits","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"textReadSafe","kind":"field","type":"bool","description":"Stores text read safe as bool.","signature":"bool textReadSafe","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"refreshed","kind":"field","type":"bool","description":"Stores refreshed as bool.","signature":"bool refreshed","tags":["thing","field","host.windows"],"updated":"2026-09-09"},{"name":"windowsUiClipboardSnapshot","kind":"constructor","parameters":[{"name":"opened","type":"bool","description":"Opened."},{"name":"unicodeTextAvailable","type":"bool","description":"Unicode text available."},{"name":"rgbaImageAvailable","type":"bool","description":"Rgba image available."},{"name":"localeAvailable","type":"bool","description":"Locale available."},{"name":"sequence","type":"int","description":"Sequence."},{"name":"unicodeTextUnits","type":"int","description":"Unicode text units."},{"name":"textReadSafe","type":"bool","description":"Text read safe."},{"name":"refreshed","type":"bool","description":"Refreshed."}],"returns":"void","signature":"windowsUiClipboardSnapshot(bool opened, bool unicodeTextAvailable, bool rgbaImageAvailable, bool localeAvailable, int sequence, int unicodeTextUnits, bool textReadSafe, bool refreshed)","description":"Windows ui clipboard snapshot.","tags":["thing","constructor","host.windows"],"updated":"2026-09-09"},{"name":"Validate","kind":"method","parameters":[],"returns":"text","signature":"Validate() returns text","description":"Validate.","tags":["thing","method","host.windows"],"exampleId":"method-Validate-9","updated":"2026-09-09"}],"tags":["cpu","host","host.windows","method","source-example","thing","windows","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/host/windows/clipboard.yh","line":1,"sha256":"43ed65ef2d3c8357b4f6a512ddbb02ed8fe4cf56c867f567e55bc766ce856f83"},"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 windowsUiClipboardSnapshot","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using host.windows\n\n// Connect Windows display, session, clipboard, and accessibility services.\nwindowsUiClipboardSnapshot sample = windowsUiClipboardSnapshot(true, true, true, true, 1, 1, true, true)\nConsole.Log(Text.From(sample.opened))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_windows__windowsuiclipboardsnapshot\"\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\n[[dependencies]]\npackage = \"host.windows\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/windows\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"295b0e844b51abe066477ec4b59e0ae845a34e22e4779f38fa4afdbdf3d00629","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null},{"id":"method-Validate-9","title":"windowsUiClipboardSnapshot.Validate","description":"A complete caller for this public method. Sample inputs are illustrative; native resources require their owning lifecycle.","code":"using host.windows\n\n// Validate.\nwindowsUiClipboardSnapshot instance = windowsUiClipboardSnapshot(true, true, true, true, 1, 1, true, true)\ntext result = instance.Validate()\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_windows__windowsuiclipboardsnapshot\"\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\n[[dependencies]]\npackage = \"host.windows\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/windows\"\n","tags":["cpu","method","source-example"],"run":"cpu-oracle","verification":"type checked","sha256":"3216e2b4c109cc72ecc286966d54269d8a76fe6188fd8e3d5011d1a824063594","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":["opened","unicodeTextAvailable","rgbaImageAvailable","localeAvailable","sequence","unicodeTextUnits","textReadSafe","refreshed","windowsUiClipboardSnapshot","Validate"],"url":"https://demonhunterlabs.com/academy/api?item=host.windows--windowsUiClipboardSnapshot","json":"https://demonhunterlabs.com/reference/items/host.windows--windowsUiClipboardSnapshot.json","markdown":"https://demonhunterlabs.com/reference/text/host.windows--windowsUiClipboardSnapshot.md"}
