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

Method dialog_show

platform/android/display_server_android.cpp:197–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197Error DisplayServerAndroid::dialog_show(String p_title, String p_description, Vector<String> p_buttons, const Callable &p_callback) {
198 GodotJavaWrapper *godot_java = OS_Android::get_singleton()->get_godot_java();
199 ERR_FAIL_NULL_V(godot_java, FAILED);
200 dialog_callback = p_callback;
201 return godot_java->show_dialog(p_title, p_description, p_buttons);
202}
203
204void DisplayServerAndroid::emit_dialog_callback(int p_button_index) {
205 if (dialog_callback.is_valid()) {

Callers

nothing calls this directly

Calls 2

get_godot_javaMethod · 0.80
show_dialogMethod · 0.45

Tested by

no test coverage detected