Is it possible to display a HTML page in a PlayN game?

More generally, is it possible to add a plugin (native iOS code) to an iOS build of a PlayN project? (child browser, Accelerometer,..), same as the phonegap plugins ?

Thank you for your help.

有帮助吗?

解决方案

In theory yes. You have to define and create an API in playn and them you have to code the implementation for each platform.

The implementation in android should be easy, since you just use java for android, but for ios, you have to consider that playn uses MonoTouch to compile from java to native, I think they support WebView so you can go with it. Obviously the simplest implementation is the html5 one through gwt.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top