#screen-capture #screenshot #tauri-plugin #android #tauri

sys tauri-plugin-android-prevent-screen-capture

Prevent screen capture on Tauri app for Android

2 stable releases

1.0.1 Mar 6, 2025

#497 in GUI

Download history 184/week @ 2025-03-01 64/week @ 2025-03-08

248 downloads per month

MIT/Apache

39KB
118 lines

Overview

This Tauri plugin makes your app treat the screen content as secure, ensuring it does not appear in screenshots, recordings, or on non-secure displays. This is only for Android.

Setup

All you need to do is register this plugin with your Tauri project:

src-tauri/src/lib.rs

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
    tauri::Builder::default()
        .plugin(tauri_plugin_android_prevent_screen_capture::init()) // This
        .run(tauri::generate_context!())
        .expect("error while running tauri application");
}

License

MIT OR Apache-2.0

Dependencies

~19–53MB
~854K SLoC