javascript - How to use project ace with ionic 2 -
i trying build android app ionic 2 , using project ace create native android widget. looking through documentation how invoke native code project ace, cannot find put code existing javascript code invoke native code. this:
if (ace.platform == "android") { setupwidget(); } function setupwidget() { // handle app being resumed widget click: ace.addeventlistener("android.intentchanged", checkforwidgetactivation); ace.android.appwidget.clear(); (var = 0; < 10; i++) { ace.android.appwidget.add("item index " + i); } }
all in all, , in file should put code , have write special import statement?
thanks in advance
Comments
Post a Comment