When working with user interfaces that demand a high level of user interaction or certain processes to be run at certain moments, we need to consider using events and detecting them to execute methods. In this recipe, we will create some functionality that will demonstrate not only the setting of an event but also its removal.
We will use the methods available in the XUI library to control the delegation of event handlers:
touchby running the following line:
phonegap create touch com.myapp.touch touch
cordova platform add ios cordova platform add android