Skip to main content

Crate lingxia_platform

Crate lingxia_platform 

Source
Expand description

LingXia Platform

This crate provides the platform-specific implementation for LingXia.

Re-exports§

pub use control_session::ControlSessionStopHandler;
pub use control_session::request_control_session_stop;
pub use control_session::set_control_session_stop_handler;
pub use error::*;

Modules§

control_session
The shell’s “an AI assistant is in control” indicator, platform side.
error
i18n
Localized strings for platform-owned UI.
traits

Structs§

AssetFileEntry
Asset file entry with reader for streaming content
BadgeSurfaces
The product-owned chrome this platform can actually paint a count on.
DeviceInfo
Device information
Platform
ScreenInfo
Screen information reported in logical pixels (dp/pt) and scale factor

Functions§

badge_surfaces
Android is deliberately absent: there is no cross-vendor launcher badge. What a launcher shows comes from active notifications, so a standalone count is not something the platform can honour — and claiming it, then no-opping, is what this reports instead of.
banner_supported
os_label
Canonical platform-family label — the single source of truth for “which OS is this,” shared by the WebView bridge config injection (lingxia-lxapp), lx.host.getBaseInfo().os, and lx.getDeviceInfo().osName (lingxia-logic) so the three can never drift apart. Matches the values the View-side bridge already exposes via usePlatform().os.