| Crates.io | tauri-plugin-android-prevent-screen-capture |
| lib.rs | tauri-plugin-android-prevent-screen-capture |
| version | 1.0.1 |
| created_at | 2025-03-06 14:00:57.098339+00 |
| updated_at | 2025-03-06 14:10:45.542036+00 |
| description | Prevent screen capture on Tauri app for Android. |
| homepage | |
| repository | https://github.com/aiueo13/tauri-plugin-android-prevent-screen-capture |
| max_upload_size | |
| id | 1581130 |
| size | 144,464 |
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.
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");
}
MIT OR Apache-2.0