Skip to main content

Crate lingxia_app_context

Crate lingxia_app_context 

Source

Modules§

capability
The one place each host capability is decided. lx.supports(), the FFI capability bitmask, and the optional lx.* members all read these, so they cannot drift apart.

Structs§

AppConfig
AppLinksConfig
CapabilitiesConfig
The capabilities: section, shared verbatim between the CLI (parsing lingxia.yaml, writing app.json) and the runtime (reading app.json) — one definition so a capability can never exist on one side only. deny_unknown_fields gives lingxia.yaml typo errors; the runtime always reads an app.json generated by the same CLI build, so it never sees fields this struct lacks.
HostBuild
What the host binary was compiled with, recorded once at boot.
MediaCaptureConfig
Declared realtime-capture tracks. Each track is independently optional.
PanelContent
PanelItem
PanelsConfig
SplashConfig
Runtime half of splash:. Images and colors are platform resources; only the minimum hold time is a runtime decision, and the upper bound is a framework constant that hosts deliberately cannot configure.
StorageConfig
ThemeColor
Opaque sRGB color used by the host theme wire format.
ThemeConfig
ThemeStyle

Enums§

AppContextError
EnvVersion
Build-time environment version baked into app.json.
PanelContentKind
PanelPosition

Constants§

DEFAULT_SPLASH_MIN_DURATION_MS
Default minimum hold, in milliseconds. Long enough that a fast first render does not flash the cover, short enough not to feel like a delay.

Functions§

app_config
app_state_dir
app_state_file
app_storage_max_size_bytes
autostart_enabled
browser_enabled
cache_max_size_bytes
data_max_size_bytes
env_version
Active environment version baked into the running build. Defaults to EnvVersion::Release before set_app_config is called and for any app.json produced before the envVersion field existed.
home_app_id
home_app_version
host_build
host_build_recorded
Whether the boot recorded the build yet. Lets a consumer assert it is not reading the all-false default before set_host_build ran.
lingxia_id
mark_startup
Start the cold-start clock. Idempotent; call as early as possible.
notifications_enabled
process_enabled
product_name
product_version
proxy_enabled
set_app_config
set_host_build
Records the host build’s capabilities. Idempotent; the first call wins.
set_splash_min_duration_override
Override the configured minimum hold for this launch, from the host’s splash selection hook.
since_startup
splash_min_duration
How long the splash must stay up before a ready signal may dismiss it.
temp_max_size_bytes
terminal_enabled
theme