Featured classes


This class contains methods and constants for handling basic touch events that the BlackBerry® device user inputs.

The sample application demonstrates how to use the getX() and getY() methods to retrieve the location of the touch event and the getEvent() method to identify the type of touch event.


This class contains the method touchEvent(TouchEvent message), which is invoked to handle touch events when they occur on a Screen object.

The sample application demonstrates how to override this method to customize the behavior of touch events. In the sample application, when a TouchEvent.MOVE event follows a TouchEvent.DOWN event, the application draws a line on the screen to trace the movement.

Previous topic: Overview

Was this information helpful? Send us your comments.