create_callback ( Object object, String method )
create_object ( String object, ... ) vararg
download_buffer ( PoolByteArray buffer, String name, String mime="application/octet-stream" )
eval ( String code, bool use_global_execution_context=false )
get_interface ( String interface )
new constructor. The
void download_buffer ( PoolByteArray buffer, String name, String mime="application/octet-stream" )
Prompts the user to download a file containing the specified
buffer. The file will have the given
Note: The browser may override the MIME type provided based on the file
Note: Browsers might block the download if download_buffer is not being called from a user interaction (e.g. button click).
Note: Browsers might ask the user for permission or block the download if multiple download requests are made in a quick succession.
Execute the string
true, the code will be evaluated in the global execution context. Otherwise, it is evaluated in the execution context of a function within the engine's runtime environment.