JS
From GiderosMobile
Supported platforms:
Available since: 2019.1
Description
Runs JavaScript code.
Example
Get/Set
-- sets a variable and a listener
JS.eval([[
document.isPause = false;
document.addEventListener('visibilitychange', function() {
if (document.visibilityState == 'hidden')
document.isPause = true;
else
document.isPause = false;
});
]])
-- gets the value of a variable
print(JS.eval("document.isPause"))
MethodsJS.eval executes the given JavaScript code |
EventsConstants |