feature/extend-tauri-generated-xcode-project-for-tvos-target
| 1 | use tauri::{command, AppHandle, Runtime}; |
| 2 | |
| 3 | use crate::models::*; |
| 4 | use crate::Result; |
| 5 | use crate::TauriPluginIosWindowExt; |
| 6 | |
| 7 | #[command] |
| 8 | pub(crate) async fn open<R: Runtime>(app: AppHandle<R>, payload: OpenRequest) -> Result<()> { |
| 9 | app.tauri_plugin_ios_window().open(payload) |
| 10 | } |
| 11 | |
| 12 | #[command] |
| 13 | pub(crate) async fn close<R: Runtime>(app: AppHandle<R>) -> Result<()> { |
| 14 | app.tauri_plugin_ios_window().close() |
| 15 | } |