{"id":"host.storage--DetectHostStorageFamily","name":"DetectHostStorageFamily","owner":"yeho","package":"host.storage","kind":"function","signature":"external DetectHostStorageFamily(text declaredFamily, text osValue, text osType, bool desktopDisplayAvailable) returns text","description":"Detect host storage family.","context":"Read and write bounded application storage through the host contract.","parameters":[{"name":"declaredFamily","type":"text","description":"Supply declared family as text."},{"name":"osValue","type":"text","description":"Supply os value as text."},{"name":"osType","type":"text","description":"Supply os type as text."},{"name":"desktopDisplayAvailable","type":"bool","description":"Supply desktop display available as bool."}],"returns":"text","members":[],"tags":["cpu","function","host","host.storage","source-example","storage","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"packages/host/storage/storage.yh","line":54,"sha256":"3e3700536c764b1a475e76cef4245a94d6c188717b14a72d41a2a0464c122bdb"},"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 DetectHostStorageFamily","description":"A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.","code":"using host.storage\n\n// Read and write bounded application storage through the host contract.\ntext declaredFamily = \"declared Family\"\ntext osValue = \"os Value\"\ntext osType = \"os Type\"\nbool desktopDisplayAvailable = true\ntext result = DetectHostStorageFamily(declaredFamily, osValue, osType, desktopDisplayAvailable)\nConsole.Log(Text.From(result))\n","manifest":"manifestVersion = \"2\"\npackage = \"api.example.host_storage__detecthoststoragefamily\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n\n[[dependencies]]\npackage = \"host.storage\"\nversion = \"0.1.0\"\npath = \"../../../yeho/packages/host/storage\"\n","tags":["cpu","source-example"],"verification":"type checked","run":"cpu-oracle","sha256":"e1b76949468d1a3693ba995e55fd8ef8d09b038e93c7cf89acdfc334cb509bca","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=host.storage--DetectHostStorageFamily","json":"https://demonhunterlabs.com/reference/items/host.storage--DetectHostStorageFamily.json","markdown":"https://demonhunterlabs.com/reference/text/host.storage--DetectHostStorageFamily.md"}
