| 162 | } |
| 163 | |
| 164 | void DisplayServerAndroid::clipboard_set(const String &p_text) { |
| 165 | GodotJavaWrapper *godot_java = OS_Android::get_singleton()->get_godot_java(); |
| 166 | ERR_FAIL_NULL(godot_java); |
| 167 | |
| 168 | if (godot_java->has_set_clipboard()) { |
| 169 | godot_java->set_clipboard(p_text); |
| 170 | } else { |
| 171 | DisplayServer::clipboard_set(p_text); |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | String DisplayServerAndroid::clipboard_get() const { |
| 176 | GodotJavaWrapper *godot_java = OS_Android::get_singleton()->get_godot_java(); |
nothing calls this directly
no test coverage detected