summaryrefslogtreecommitdiffstats
path: root/platform/android/display_server_android.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/display_server_android.h')
-rw-r--r--platform/android/display_server_android.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform/android/display_server_android.h b/platform/android/display_server_android.h
index 65c6a53446..1744ad3069 100644
--- a/platform/android/display_server_android.h
+++ b/platform/android/display_server_android.h
@@ -87,6 +87,9 @@ class DisplayServerAndroid : public DisplayServer {
Callable system_theme_changed;
+ Callable input_dialog_callback;
+ Callable file_picker_callback;
+
void _window_callback(const Callable &p_callable, const Variant &p_arg, bool p_deferred = false) const;
static void _dispatch_input_events(const Ref<InputEvent> &p_event);
@@ -116,6 +119,14 @@ public:
virtual String clipboard_get() const override;
virtual bool clipboard_has() const override;
+ virtual Error dialog_input_text(String p_title, String p_description, String p_partial, const Callable &p_callback) override;
+ void emit_input_dialog_callback(String p_text);
+
+ virtual Error file_dialog_show(const String &p_title, const String &p_current_directory, const String &p_filename, bool p_show_hidden, const FileDialogMode p_mode, const Vector<String> &p_filters, const Callable &p_callback) override;
+ void emit_file_picker_callback(bool p_ok, const Vector<String> &p_selected_paths);
+
+ virtual Color get_accent_color() const override;
+
virtual TypedArray<Rect2> get_display_cutouts() const override;
virtual Rect2i get_display_safe_area() const override;