Add a function that minimizes the Android app (#692)

Add a function that minimizes the Android app
This commit is contained in:
albexk 2024-03-31 14:14:12 +03:00 committed by GitHub
parent db8d966fac
commit c6e6f2ae84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 25 additions and 0 deletions

View file

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