Sha256: eec37729e437a22f4a35dfdf81f6e8b9464bfd572d7f1fac57d1d255e7ee773a
Contents?: true
Size: 775 Bytes
Versions: 17
Compression:
Stored size: 775 Bytes
Contents
#pragma once #include "rhodes/JNIRhodes.h" namespace rho { namespace apiGenerator { class MethodResultJni; enum ForceThread { NOT_FORCE_THREAD, FORCE_CURRENT_THREAD, FORCE_NEW_THREAD, FORCE_MODULE_THREAD, FORCE_UI_THREAD }; class MethodExecutorJni { static const char * const METHOD_EXECUTOR_CLASS; static jclass s_MethodExecutorClass; static jmethodID s_midRun; static jmethodID s_midRunWithSeparateThread; static jmethodID s_midRunWithUiThread; protected: static JNIEnv* jniInit(JNIEnv* env); static JNIEnv* jniInit(); static jclass loadClass(JNIEnv* env, const char* const name); public: static void run(JNIEnv* env, jobject jTask, MethodResultJni& result, ForceThread forceThread); virtual ~MethodExecutorJni() {} }; }}
Version data entries
17 entries across 17 versions & 2 rubygems