| 1 | use serde::de::DeserializeOwned; |
| 2 | use tauri::{plugin::PluginApi, AppHandle, Runtime}; |
| 3 | |
| 4 | use crate::models::*; |
| 5 | |
| 6 | pub fn init<R: Runtime, C: DeserializeOwned>( |
| 7 | app: &AppHandle<R>, |
| 8 | _api: PluginApi<R, C>, |
| 9 | ) -> crate::Result<AndroidTvCheck<R>> { |
| 10 | Ok(AndroidTvCheck(app.clone())) |
| 11 | } |
| 12 | |
| 13 | /// Access to the android-tv-check APIs. |
| 14 | pub struct AndroidTvCheck<R: Runtime>(AppHandle<R>); |
| 15 | |
| 16 | impl<R: Runtime> AndroidTvCheck<R> { |
| 17 | pub fn check(&self) -> crate::Result<CheckResponse> { |
| 18 | Ok(CheckResponse { |
| 19 | is_android_tv: false, |
| 20 | }) |
| 21 | } |
| 22 | } |