JavaScript Events
Listen Android UI Events
<script>
function onEvent(eventType) {
if (eventType == 'OnPlayClick') {
JavaScriptInterface.runScript(`start();`);
} else if (eventType == 'OnPauseClick') {
JavaScriptInterface.runScript('stop();');
}
}
function onLog(message) {
console.log(message);
}
</script>Last updated