You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to call a function from c . The control should go as below:
This is for a scanner device
js:
function jsMethod1(){
calls c MethodA();
}
function jsMethod2(){
// some stuff
}
c :
MethodA(){
// This will initialize the device
}
//This will be called whenever Barcode scanned
MethodB{
//should call jsMethod2
}
The reason why I'm not calling the MethodB directly is, this call will be triggered automatically by the library and there are 4 methods that are triggered similar way by the library. So basically I want to trigger a call from c whenever barcode scan happens which I want to sense from the js
Thanks
The text was updated successfully, but these errors were encountered:
This link contains an example of calling JS functions from C ; if you're in search of class-based instance methods, then perhaps reading this section of the readme might help. Judging by the repository statistics, amount of open issues, and general rule of thumb, expecting spoonfeed from the repository maintainers does not seem to me reasonable, so at the very least the readme is easy to follow, the documentation is extensive, and the examples are nice.
Is there any way to call a function from c . The control should go as below:
This is for a scanner device
js:
function jsMethod1(){
calls c MethodA();
}
function jsMethod2(){
// some stuff
}
c :
MethodA(){
// This will initialize the device
}
//This will be called whenever Barcode scanned
MethodB{
//should call jsMethod2
}
The reason why I'm not calling the MethodB directly is, this call will be triggered automatically by the library and there are 4 methods that are triggered similar way by the library. So basically I want to trigger a call from c whenever barcode scan happens which I want to sense from the js
Thanks
The text was updated successfully, but these errors were encountered: