MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / doPlayTouchesCallback

Method doPlayTouchesCallback

tools/mcsim/main.js:549–556  ·  view source on GitHub ↗
(application, path)

Source from the content-addressed store, hash-verified

547 system.openFile({ prompt:"Play Touches", path:system.documentsDirectory }, path => { if (path) application.defer("doPlayTouchesCallback", new String(path)); });
548 }
549 doPlayTouchesCallback(application, path) {
550 try {
551 this.doReloadFile();
552 this.SCREEN.delegate("doStartPlayingTouches", path);
553 }
554 catch (e) {
555 }
556 }
557 doReloadSimulators() {
558 this.quitScreen();
559 this.reloadDevices(application);

Callers

nothing calls this directly

Calls 2

doReloadFileMethod · 0.95
delegateMethod · 0.80

Tested by

no test coverage detected