MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / get_clipboard

Method get_clipboard

platform/android/java_godot_wrapper.cpp:255–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

253}
254
255String GodotJavaWrapper::get_clipboard() {
256 String clipboard;
257 if (_get_clipboard) {
258 JNIEnv *env = get_jni_env();
259 ERR_FAIL_NULL_V(env, String());
260 jstring s = (jstring)env->CallObjectMethod(godot_instance, _get_clipboard);
261 clipboard = jstring_to_string(s, env);
262 env->DeleteLocalRef(s);
263 }
264 return clipboard;
265}
266
267String GodotJavaWrapper::get_input_fallback_mapping() {
268 String input_fallback_mapping;

Callers 1

clipboard_getMethod · 0.80

Calls 3

get_jni_envFunction · 0.85
jstring_to_stringFunction · 0.85
StringClass · 0.50

Tested by

no test coverage detected