AppeonMobile.CordovaPlugin acts as a bridge for the PowerBuilder code to execute the JavaScript code. You will need to connect with AppeonMobile.CordovaPlugin first and then use the functions it provides to execute the JavaScript code.
To connect/disconnect with the AppeonMobile.CordovaPlugin object, you can use
the PowerBuilder OLEObject's ConnectToNewObject
and DisconnectObject
functions, for
example,
Oleobject ole Ole = Create Oleobject //connects with the AppeonMobile.CordovaPlugin object ole.Connecttonewobject ( "AppeonMobile.CordovaPlugin" ) //disconnects with the AppeonMobile.CordovaPlugin object ole.DisconnectObject ()