Android: Implement support for native dialog
This adds support for DisplayServer::dialog_show() on Android, aligning it with the functionality already available on macOS and Windows.
This commit is contained in:
parent
bdf625bd54
commit
cb9ee099ac
14 changed files with 347 additions and 37 deletions
|
|
@ -87,7 +87,9 @@ class DisplayServerAndroid : public DisplayServer {
|
|||
|
||||
Callable system_theme_changed;
|
||||
|
||||
Callable dialog_callback;
|
||||
Callable input_dialog_callback;
|
||||
|
||||
Callable file_picker_callback;
|
||||
|
||||
void _window_callback(const Callable &p_callable, const Variant &p_arg, bool p_deferred = false) const;
|
||||
|
|
@ -119,6 +121,9 @@ public:
|
|||
virtual String clipboard_get() const override;
|
||||
virtual bool clipboard_has() const override;
|
||||
|
||||
virtual Error dialog_show(String p_title, String p_description, Vector<String> p_buttons, const Callable &p_callback) override;
|
||||
void emit_dialog_callback(int p_button_index);
|
||||
|
||||
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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue