Krita Source Code Documentation
Loading...
Searching...
No Matches
KisAndroidUtils.h
Go to the documentation of this file.
1/*
2 * SPDX-License-Identifier: GPL-3.0-or-later
3 */
4#ifndef __KISANDROIDUTILS_H_
5#define __KISANDROIDUTILS_H_
6
7#include <QString>
8#include <kritaglobal_export.h>
9
10namespace KisAndroidUtils
11{
12
13// Installs the Android log handler and copies assets.
14KRITAGLOBAL_EXPORT void performInitialSetup();
15
16// Check whether we seem to be running on a Xiaomi device, which requires
17// enabling several workarounds by default. If we need additional workarounds
18// in the future, change this to return an enum or a flag set instead, depending
19// on what's actually needed.
20KRITAGLOBAL_EXPORT bool looksLikeXiaomiDevice();
21
22// Check whether the device supports reporting low-memory situations as an exit
23// reason. Devices that don't will instead report a SIGKILL.
24KRITAGLOBAL_EXPORT bool isLowMemoryKillReportSupported();
25
26// Checks , logs and clears the pending exception in the Java Native Interface.
27// If an exception occurs while one is pending, the application dies. Some Qt
28// stuff, such as QDesktopServices, can throw JNI errors and don't clear them.
29KRITAGLOBAL_EXPORT void clearJniException(const QString &location);
30
31// Checks whether we are in immersive mode, which is basically full-screen.
32KRITAGLOBAL_EXPORT bool isInFullScreen();
33
34// Enters or exits immersive mode if we're not in that state already.
35KRITAGLOBAL_EXPORT void setFullScreen(bool fullScreen);
36
37} // namespace KisAndroidUtils
38
39#endif // __KISANDROIDUTILS_H_
bool isLowMemoryKillReportSupported()
void setFullScreen(bool fullScreen)
void clearJniException(const QString &location)