在离子v2中集成第三方android SDK [英] Integrate third party android SDK in ionic v2
本文介绍了在离子v2中集成第三方android SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用第三方Android SDK来实现某些功能(读卡器,QR码扫描器),我能够在原生Android应用程序中使用它,现在我想在离子上创建一个混合应用程序,我想使用第三方图书馆。
I am using a third party android SDK for some functionalities (card reader, QR code scanner), I am able to use it in the native Android app, now I want to create a hybrid app on ionic and I want to use that 3rd party library.
提前致谢。
推荐答案
所以我终于得到了答案而且非常直接
So finally I got the answer and it was pretty straight forward
如果您已导出模块/插件,如
If you have exported your module / plugin like
module.exports = new YourPluginJavaClass();
然后你就可以在你的Ionic应用程序中使用它了
then you will be able to use it in your Ionic application as
(window as any).YourPluginJavaClass.yourFunction();
这篇关于在离子v2中集成第三方android SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文