For Cordova iOS and Cordova Android it is possible to create plugins
that create native UI on top of your app - you just include the
libraries in your plugin and execute their API. Example for Android
InAppBrowser: 
https://github.com/apache/cordova-plugin-inappbrowser/blob/a162bd90764e7b3c6a5f8b2f394e7ff71ba166d5/src/android/InAppBrowser.java#L920-L922

For Cordova Windows, the native code _is_ HTML and Javascript, hence
the InAppBrowser plugin also adds a standard HTML tag for a Webview
(or even plain Iframe) to get the same effect:
https://github.com/apache/cordova-plugin-inappbrowser/blob/master/src/windows/InAppBrowserProxy.js#L177-L182

But you can also create plugins for Cordova Windows that use C# or C++
native code via a Windows Runtime Component. A public example is the
globalization plugin that uses a `.winmd` file to offer APIs to the
Javascript code
https://github.com/apache/cordova-plugin-globalization/tree/master/src/windows/
(source for that lives in
https://github.com/apache/cordova-plugin-globalization/blob/master/src/windows/GlobalizationProxy/GlobalizationProxy/Globalization/GlobalizationImpl.cs).
This works great and is pretty awesome.

Unfortunately all the plugins that I could find use this C#/C++ native
plugin mechanism only to receive some method call, do something with
the parameters and return some data. None of those open any windows or
create any other GUI (that might for example be offered by an external
C# SDK).

Is it possible to create User Interface with native (C#, C++) plugins
for Cordova Windows?

Best,
Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to