简体   繁体   English

Xamarin项目中的Cordova插件

[英]Cordova plugin in a Xamarin project

Is it possible to use a cordova plugin that was created in a xamarin android/ios project? 是否可以使用在xamarin android / ios项目中创建的cordova插件?

Request you to please share me the source available on internet if there are any. 要求您与我分享互联网上的可用资源(如有)。 Thanks 谢谢

No. However, you can achieve something similar in Xamarin by building your app's UI using embedded HTML/JS/CSS and rendering it with the native browser control for each platform. 不会。但是,您可以通过使用嵌入式HTML / JS / CSS来构建应用程序的UI,并使用每个平台的本机浏览器控件对其进行呈现,从而在Xamarin中实现类似的目的。 I don't think this is a great solution, but if you really want to achieve maximum code sharing between platforms, and don't have an incredibly complex UI, this might be something worth considering. 我认为这不是一个很好的解决方案,但是如果您真的想在平台之间实现最大的代码共享,并且没有一个非常复杂的UI,则可能值得考虑。

For more infomation see: WebView Documentation in Xamarin.Forms 有关更多信息,请参见: Xamarin.Forms中的WebView文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM