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

Version Path
rhodes-7.6.0 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-7.5.1 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-7.4.1 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-7.1.17 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-6.2.0 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-6.0.11 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.18 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.17 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.15 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.0.22 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.2 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.0.7 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.0.3 platform/android/Rhodes/jni/include/MethodExecutorJni.h
rhodes-5.5.0 platform/android/Rhodes/jni/include/MethodExecutorJni.h
tauplatform-1.0.3 platform/android/Rhodes/jni/include/MethodExecutorJni.h
tauplatform-1.0.2 platform/android/Rhodes/jni/include/MethodExecutorJni.h
tauplatform-1.0.1 platform/android/Rhodes/jni/include/MethodExecutorJni.h