简体   繁体   中英

Add .jar SDK to Cordova Hybrid app Visual Studio

I'm trying to implement an SDK for my Handheld API to an Cordova Hybrid App in Visual Studio. It's a .jar File. I'm new in Cordova/PhoneGap developing, so I just want to know if its possible to generate the Bindings API/Wrapper automatically like in Xamarin with " Bindings Library(Android) ".

so I just want to know if its possible to generate the Bindings API/Wrapper automatically like in Xamarin with "Bindings Library(Android)".

As far as I know, there is no way to generate the Bindings API/Wrapper automatically. If you want to call the APIs in your .jar file, you can use the Ace Plugin to invoke the native codes.

Or you can write a plugin that reference this framework(using <lib-file /> tag in Plugin.xml ), and wrap the API manually with JS code.

For details about creating an Android Plugin, please refer to Android Plugin Development Guide .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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