Skip to content

Instantly share code, notes, and snippets.

@kjunichi
Last active September 23, 2016 04:48
Show Gist options
  • Save kjunichi/042f5d50e33d76d50621190665b7712c to your computer and use it in GitHub Desktop.
Save kjunichi/042f5d50e33d76d50621190665b7712c to your computer and use it in GitHub Desktop.
2016/9/23

cordova plugin mruby

hogeはJavaだとどうやって取得できるのか インスタンス化されているのほぼ間違いない

mrubyからみたAPI

proc = Proc.new do |err,data|
  if err 
    puts "oops! error"
  end
  puts data
end

plugin.execute("pluginName","methodName", args, proc)

TODO

Java層でプラグインを呼び出したいが、とりあえずJsでも可

関連

アクセス解析タグ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment