Phonegap
API Documentation
Method Summary
executeScript
Execute client side script
Params
String
script
script to execute
required
setOnResumeMethod
When resuming an application set a callback method.
Params
Function
callback
on success callback
required
setOnPauseMethod
When pausing an application set a callback method.
Params
Function
callback
on success callback
required
setOnBackMethod
When hitting the hardware back button set a callback method (Android only).
Params
Function
callback
on success callback
required
openHrefTag
execute an HREF url string ( opening a phone app or sending an email )
Params
String
url
example : 'tel:12345678' or 'mailto:info@servoy.com'
Required
exit
Exit the application ( not to be confused with Servoy's application.exit method which only exits server session)
quitServoySolution
Quit/logout to the main solution (calling this instead of security.logout allows us to re-init plugins again)
Example Usage
Last updated
Was this helpful?