From 314f309035c9d50b41720e02550f31f89751fce0 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Wed, 19 Jan 2022 21:04:52 +0800 Subject: Add `DisplayServer.clipboard_has()` to check clipboard content --- platform/android/java_godot_wrapper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform/android/java_godot_wrapper.h') diff --git a/platform/android/java_godot_wrapper.h b/platform/android/java_godot_wrapper.h index 4d058ac426..42ae91480f 100644 --- a/platform/android/java_godot_wrapper.h +++ b/platform/android/java_godot_wrapper.h @@ -58,6 +58,7 @@ private: jmethodID _get_GLES_version_code = 0; jmethodID _get_clipboard = 0; jmethodID _set_clipboard = 0; + jmethodID _has_clipboard = 0; jmethodID _request_permission = 0; jmethodID _request_permissions = 0; jmethodID _get_granted_permissions = 0; @@ -92,6 +93,8 @@ public: String get_clipboard(); bool has_set_clipboard(); void set_clipboard(const String &p_text); + bool has_has_clipboard(); + bool has_clipboard(); bool request_permission(const String &p_name); bool request_permissions(); Vector get_granted_permissions() const; -- cgit v1.2.3