Skip to main content

onShellAppReady Event

Event​

Since JavaScript APIs provided by Shell App Framework are initialized after a page is loaded in the WebView, they can be used after an onShellAppReady event occurs. Note, however, that if they are called before the onShellAppReady event, an undefined error will occur. Usually the onShellAppReady event is called after an onLoad event.

Sample​

<script type="text/javascript" charset="utf-8">
document.addEventListener('onShellAppReady', function(event) {
// Play bgm1.ogg
mobage.shellapp.Music.play("bgm1.ogg", 1.0, -1);
}, false);
</script>

Revision History​

  • 06/12/2013
    • Initial release
  • Event
  • Sample
  • Revision History