playtron-core 1.0.0

Playtron GameOS core utilities for Rust
Documentation
use zbus::proxy;

#[proxy(
    interface = "one.playtron.sdk.Manager",
    default_path = "/one/playtron/sdk/Manager",
    default_service = "one.playtron.Playserve"
)]
pub trait SdkManagerInterface {
    async fn is_playtron(&self) -> zbus::fdo::Result<bool>;

    async fn is_keyboard_open(&self) -> zbus::fdo::Result<bool>;

    async fn show_keyboard(&self) -> zbus::fdo::Result<()>;

    async fn hide_keyboard(&self) -> zbus::fdo::Result<()>;

    async fn open_browser(&self, url: String) -> zbus::fdo::Result<()>;

    async fn close_browser(&self) -> zbus::fdo::Result<()>;
}