Sha256: ac6a8ef11617cad4ffa54cad9a8a299ce4cb976d4fb3fe2b2420193600bf6bbf

Contents?: true

Size: 1.13 KB

Versions: 19

Compression:

Stored size: 1.13 KB

Contents

#include "rhodes/JNIRhodes.h"

#include "rhodes/jni/com_rhomobile_rhodes_signature_Signature.h"

#include <common/RhodesApp.h>

#undef DEFAULT_LOGCATEGORY
#define DEFAULT_LOGCATEGORY "Signature"

RHO_GLOBAL void JNICALL Java_com_rhomobile_rhodes_signature_Signature_callback
  (JNIEnv *env, jclass, jstring callback, jstring filePath, jstring error, jboolean cancelled)
{
    rho_rhodesapp_callSignatureCallback(rho_cast<std::string>(callback).c_str(),
        rho_cast<std::string>(filePath).c_str(), rho_cast<std::string>(error).c_str(), cancelled);
}


RHO_GLOBAL void rho_signature_take_signature(char* callback_url, char* image_format)
{
///*
    JNIEnv *env = jnienv();
    jclass cls = getJNIClass(RHODES_JAVA_CLASS_SIGNATURE);
    if (!cls) return;
    jmethodID mid = getJNIClassStaticMethod(env, cls, "takeSignature", "(Ljava/lang/String;Ljava/lang/String;)V");
    if (!mid) return;
    jstring objCallback = rho_cast<jstring>(callback_url);
    jstring objFormat = rho_cast<jstring>(image_format);
    env->CallStaticVoidMethod(cls, mid, objCallback, objFormat);
    env->DeleteLocalRef(objCallback);
    env->DeleteLocalRef(objFormat);
//*/
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
rhodes-2.2.6 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.6.beta.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.5 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.5.beta.3 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.5.beta.2 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.5.beta.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.4.beta.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.3 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.3.beta.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.2 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.2.beta.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.1.beta.2 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.1.beta.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.0 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.0.beta.3 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.0.beta.2 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.2.0.beta.1 platform/android/Rhodes/jni/src/signature.cpp
rhodes-2.1.0 platform/android/Rhodes/jni/src/signature.cpp