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