lingxia-platform 0.13.0

Platform abstraction layer for LingXia framework (Android, iOS, HarmonyOS)
Documentation
use std::future::Future;
use std::pin::Pin;

use crate::error::PlatformError;

/// A platform operation that finishes asynchronously and reports only success
/// or failure. Named for its shape rather than for the first caller that
/// needed one, so a second caller does not have to borrow an unrelated alias.
pub type PlatformFuture = Pin<Box<dyn Future<Output = Result<(), PlatformError>> + Send + 'static>>;

pub mod app_runtime;
pub mod device;
pub mod file;
pub mod keyboard;
pub mod location;
pub mod media_interaction;
pub mod media_runtime;
pub mod mouse;
pub mod network;
pub mod pull_to_refresh;
pub mod screenshot;
pub mod secure_store;
pub mod share;
pub mod stream_decoder;
pub mod ui;
pub mod update;
pub mod video_player;
pub mod wifi;

pub mod prelude {
    pub use super::app_runtime::AppRuntime;
    pub use super::device::{Device, DeviceHardware};
    pub use super::file::FileService;
    pub use super::keyboard::{
        AppKeyboard, AppKeyboardAction, AppKeyboardModifier, AppKeyboardRequest,
    };
    pub use super::location::Location;
    pub use super::media_interaction::MediaInteraction;
    pub use super::media_runtime::MediaRuntime;
    pub use super::mouse::{AppMouse, AppMouseAction, AppMouseButton, AppMouseRequest};
    pub use super::network::Network;
    pub use super::pull_to_refresh::PullToRefresh;
    pub use super::screenshot::AppScreenshot;
    pub use super::secure_store::SecureStore;
    pub use super::share::ShareService;
    pub use super::ui::{SurfacePresenter, UIUpdate, UserFeedback};
    pub use super::update::UpdateService;
    pub use super::video_player::{VideoPlayerHandle, VideoPlayerManager};
    pub use super::wifi::Wifi;
}