Develop Guide
How to use Developer IDE to develop your scripts
Last updated
adb forward tcp:8081 tcp:8081console.log('Hello world!');<html>
<!-- You can load any library here like jQuery -->
<script>
function onEvent(eventType) {
if (eventType == 'OnPlayClick') {
JavaScriptInterface.runScript('start();'); // call start function in index.js
// you can also put parameters like 'start(10, "run", "stop")'
} else if (eventType == 'OnPauseClick') {
JavaScriptInterface.runScript('stop();'); // call stop function in index.js
}
}
function onLog(message) {
console.log(message);
}
</script>
<body>
<div>Setting UI</div>
<button>Setting</button>
</body>
</html>