bool _isAvailable() { auto env = spjni::getJniEnv(); auto clipboard = spjni::getService(spjni::Service::Clipboard, env); auto clipboardClass = env->GetObjectClass(clipboard); auto method = spjni::getMethodID(env, clipboardClass, "isClipboardAvailable", "()Z"); if (method) { return env->CallBooleanMethod(clipboard, method); } return false; }
jboolean JFile::exists() { return CallBooleanMethod("exists", "()Z");; }
jboolean JFile::mkdirs() { return CallBooleanMethod("mkdirs", "()Z");; }