master
rs 12 lines 330 Bytes
Raw
1 use serde::de::DeserializeOwned;
2 use tauri::{plugin::PluginApi, AppHandle, Runtime};
3
4 pub fn init<R: Runtime, C: DeserializeOwned>(
5 app: &AppHandle<R>,
6 _api: PluginApi<R, C>,
7 ) -> crate::Result<Admob<R>> {
8 Ok(Admob(app.clone()))
9 }
10
11 /// Access to the Admob APIs.
12 pub struct Admob<R: Runtime>(AppHandle<R>);