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