Extend CoronaWebView

Hello everybody,

I want to extend CoronaWebView java class with following logic :

  1. Catch Url
  2. If url has like ‘http://solar2dserver’ than
    2.1 skip default web url loading
    2.2 fire event to Lua runtime with full url ( example http://solar2dserver/save?score=55&level=3&user_id=560 )

How this extension can be done?

I found two ways according to docs :

  1. Self-hosted Java-Solar2d plugin
  2. Build Solar2d from source code

Would appreciate any help or java plugin extending webview example