简体   繁体   English

IBM Worklight 6.1-如何为Windows 8 Store应用程序创建插件?

[英]IBM Worklight 6.1 - How to create a plug-in for a Windows 8 Store app?

I have tried to create a plug-in for Windows 8 Store without success... 我试图为Windows 8应用商店创建插件没有成功...
Anybody created a plug-in for a Windows 8 Store app? 有人为Windows 8 Store应用程序创建了插件吗? If yes then please tell me steps to create it? 如果是,那么请告诉我创建它的步骤?

It is possible to write Windows 8 Store apps in several languages: C++, C#, or web technologies like HTML, JavaScript and CSS. 可以使用多种语言编写Windows 8 Store应用程序:C ++,C#或HTML,JavaScript和CSS等网络技术。 These are then packaged and distributed to the Windows Store via the Visual Studio IDE. 然后将它们打包并通过Visual Studio IDE分发到Windows应用商店。

In Worklight, the Windows 8 Store apps are written using web technologies. 在Worklight中,Windows 8 Store应用程序是使用Web技术编写的。

Here, the notion of "plug-in" does not exist, because the underlying of the application is based on "web code" rather than "native code". 此处,“插件”的概念不存在,因为应用程序的基础基于“ Web代码”而不是“本机代码”。 Hence, the Windows 8 environment in Worklight does not support the creation of Cordova plug-ins (to interface with native libraries). 因此,Worklight中的Windows 8环境不支持创建Cordova插件(以与本机库交互)。

You can use Cordova APIs to access hardware features and alike. 您可以使用Cordova API来访问硬件功能等。
You can also use the WinJS API provided by Microsoft: 您还可以使用Microsoft提供的WinJS API:

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

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