tauri_plugin_android_prevent_screen_capture/
lib.rs

1use tauri::{plugin::{Builder, TauriPlugin}, Runtime};
2
3/// Initializes the plugin.
4pub fn init<R: Runtime>() -> TauriPlugin<R> {
5    let builder = Builder::new("android-prevent-screen-capture");
6
7    #[cfg(target_os = "android")] 
8    let builder = builder.setup(|_, api| {
9        api.register_android_plugin("com.plugin.android_prevent_screen_capture", "PreventScreenCapture")?;
10        Ok(())
11    });
12
13    builder.build()
14}