tauri-plugin-android-prevent-screen-capture

Crates.iotauri-plugin-android-prevent-screen-capture
lib.rstauri-plugin-android-prevent-screen-capture
version1.0.1
created_at2025-03-06 14:00:57.098339+00
updated_at2025-03-06 14:10:45.542036+00
descriptionPrevent screen capture on Tauri app for Android.
homepage
repositoryhttps://github.com/aiueo13/tauri-plugin-android-prevent-screen-capture
max_upload_size
id1581130
size144,464
(aiueo13)

documentation

README

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

Commit count: 3

cargo fmt