Skip to content
Junichi Kajiwara edited this page Sep 17, 2016 · 7 revisions

Welcome to the cordova-plugin-mruby wiki!

WIP

pre impl

puts & gets

How to access from C to DOM

  • WebView#evaluateJavascript

How to wait inputs

webview.evaluateJavascript("jsGets()", cb);

cordova.getThreadPool().execute(new Runnable() {
  public void run() {
    
    // 
    while (isFinish) {
      try {
        Thread.sleep(100);
      } catch (InterruptedException e) {
        Thread.currentThread().interrupt();
      }
    }
  }
});

Link

API

Mruby.exec(script, stdin, stdout)

script: ruby script stdin: DOM as standard input stdout: DOM as standard output

Clone this wiki locally