microsoft / ace

Build Cordova apps with true native UI
http://microsoft.github.io/ace
Other
850 stars 157 forks source link

open XML Layout and run java function on load #77

Open igutman opened 6 years ago

igutman commented 6 years ago

Is there a way to show an android xml layout and run a java function on load? (I have java class that embeded an android layout in init)

I tried things like that: ace.navigate("android://android_sample.xml", function (root) { var className = ace.valueOn({ android: "mypackage.example", ios: "example" }); ace.NativeObject.invoke(className, "check", 1, function (result) { }); });