mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
[HTML5] Add easy to use download API.
New `JavaScript.download_buffer` method to create a prompt that let the user download a file.
This commit is contained in:
parent
c311b4c039
commit
bf078814cc
8 changed files with 51 additions and 61 deletions
|
@ -58,6 +58,7 @@ public:
|
|||
Ref<JavaScriptObject> get_interface(const String &p_interface);
|
||||
Ref<JavaScriptObject> create_callback(Object *p_ref, const StringName &p_method);
|
||||
Variant _create_object_bind(const Variant **p_args, int p_argcount, Variant::CallError &r_error);
|
||||
void download_buffer(Vector<uint8_t> p_arr, const String &p_name, const String &p_mime = "application/octet-stream");
|
||||
|
||||
static JavaScript *get_singleton();
|
||||
JavaScript();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue