You can access the hardware features of BlackBerry 10 devices using the BlackBerry 10 Native SDK. This includes input mechanisms such as the virtual keyboard and sensors (accelerometer, gyroscope, magnetometer, etc.), notification mechanisms such as the LED and vibration, and information about the device such as PIN, locale, and battery state.
Sensor API (BPS library)
If your app uses BlackBerry Platform Services for event handling and control, use this API to get sensor events and data.
orientation.h (BPS library)
If your app uses BlackBerry Platform Services for event handling and control, use this API to determine the orientation of the device.
Touch and input
screen.h (BPS library)
Use this API to handle basic, low-level events such as touch, move, and release. If the Gestures library proves too high-level for your application, use this API instead.
virtualkeyboard.h (BPS library)
You can configure the virtual keyboard and handle keyboard events using this BlackBerry Platform Services API.
geolocation.h (BPS library)
Use this API to determine the current geographic location of the device.
deviceinfo.h (BPS library)
Use this API to determine information about the device, such as PIN, OS version, and serial number.