Featured classes

net.rim.device.api.ui.Touchscreen

The Touchscreen class provides access to the touch screen on a BlackBerry® device with a touch screen. The class provides the method isSupported() which returns true if the BlackBerry device that is running the application has a touch screen.

The sample application uses this class to check if the BlackBerry device has a touch screen. If the BlackBerry device does not have a touch screen, the sample application displays a dialog box with the message "This application requires a touch screen device" and closes.

net.rim.device.api.ui.VirtualKeyboard

The VirtualKeyboard class provides methods to access, show, and hide the keyboard that appears on the screen of a BlackBerry device with a touch screen.

The sample application uses this class to toggle the visibility of the keyboard that appears on the screen.

net.rim.device.api.ui.UiEngineInstance

The UiEngineInstance class provides the setAcceptableDirections() method that you can use to set the screen orientations that the application supports. To retrieve an instance of this class for your application, you must use the Ui.getUiEngineInstance() method. The sample application uses this method to set the screen orientations that the sample application supports.

Previous topic: Overview

Was this information helpful? Send us your comments.