Add in-app screenshot preventing (#606)

In-app screenshot preventing fixes
This commit is contained in:
isamnezia 2024-03-06 04:18:19 +03:00 committed by GitHub
parent 5b4ec608c8
commit 840c388ab9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 116 additions and 55 deletions

View file

@ -204,6 +204,11 @@ void AndroidController::clearLogs()
callActivityMethod("clearLogs", "()V");
}
void AndroidController::setScreenshotsEnabled(bool enabled)
{
callActivityMethod("setScreenshotsEnabled", "(Z)V", enabled);
}
// Moving log processing to the Android side
jclass AndroidController::log;
jmethodID AndroidController::logDebug;