Refactor AndroidUtils
This commit is contained in:
parent
e8cc80f046
commit
a961932b2e
10 changed files with 60 additions and 269 deletions
16
client/platforms/android/android_utils.h
Normal file
16
client/platforms/android/android_utils.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef ANDROID_UTILS_H
|
||||
#define ANDROID_UTILS_H
|
||||
|
||||
#include <QJniObject>
|
||||
|
||||
namespace AndroidUtils
|
||||
{
|
||||
QJniObject getActivity();
|
||||
|
||||
QString convertJString(JNIEnv *env, jstring data);
|
||||
|
||||
void runOnAndroidThreadSync(const std::function<void()> &runnable);
|
||||
void runOnAndroidThreadAsync(const std::function<void()> &runnable);
|
||||
};
|
||||
|
||||
#endif // ANDROID_UTILS_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue