
Chapter 22: Sensors
Getting Started with the Proximity Sensor
Psion Mobile Devices Developers Guide
250
Automatic locking and unlocking
Psion computers that have a proximity sensor have the ability to automatically lock, and unlock, features
as follows:
• Lock the display during a phone call, and unblock it at the end of the call.
• Suspend the device when it is placed face-down on a surface for more than 3 seconds.
• Lock the touchscreen and the keyboard when the device is placed on a holster or a pocket.
• Lock the device when resuming from suspend.
Mobile Devices SDK
The Mobile Devices SDK provides APIs that enable an application to make a single reading of the proximity
sensor output, or to register a callback for repeated readings.
The Mobile Devices SDK provides APIs that control the auto-lock feature based on the output of the
proximity sensor.
Interaction between the SDK settings and the GUI settings for the proximity sensor
For an overview of this see
community.psion.com/downloads/developer_sdkhdk/m/mobile_devices_sdk/32745.aspx
22.6.1 Getting Started with the Proximity Sensor
For articles on Ingenuity Working that will guide you in getting started with the proximity sensor see
the following:
community.psion.com/tags/proximity/noteDG
22.6.2 Code Samples for the Proximity Sensor
For postings on Ingenuity Working that contain code samples that use the proximity sensor see:
community.psion.com/tags/proximity/codeDG
22.6.3 Proximity Sensor API Elements
C: Proximity sensor hardware on all computers with a proximity sensor is read, using the Proximity group.
.NET: Proximity sensor hardware on all computers with an accelerometer is read, using the
PsionTeklogix.Sensors.ProximitySensor class.
Comentarios a estos manuales