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§
- Asset
File Entry - Asset file entry with reader for streaming content
- Badge
Surfaces - The product-owned chrome this platform can actually paint a count on.
- Device
Info - Device information
- Platform
- Screen
Info - 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, andlx.getDeviceInfo().osName(lingxia-logic) so the three can never drift apart. Matches the values the View-side bridge already exposes viausePlatform().os.