playtron_core/dbus/
sdk_manager_interface.rs1use zbus::proxy;
2
3#[proxy(
4 interface = "one.playtron.sdk.Manager",
5 default_path = "/one/playtron/sdk/Manager",
6 default_service = "one.playtron.Playserve"
7)]
8pub trait SdkManagerInterface {
9 async fn is_playtron(&self) -> zbus::fdo::Result<bool>;
10
11 async fn is_keyboard_open(&self) -> zbus::fdo::Result<bool>;
12
13 async fn show_keyboard(&self) -> zbus::fdo::Result<()>;
14
15 async fn hide_keyboard(&self) -> zbus::fdo::Result<()>;
16
17 async fn open_browser(&self, url: String) -> zbus::fdo::Result<()>;
18
19 async fn close_browser(&self) -> zbus::fdo::Result<()>;
20}