Beispiel #1
0
	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;
	}
Beispiel #2
0
jboolean JFile::exists() {
	return CallBooleanMethod("exists", "()Z");;
}
Beispiel #3
0
jboolean JFile::mkdirs() {
	return CallBooleanMethod("mkdirs", "()Z");;
}