iPhone Proximity Sensor

There is a public API for this. -[UIApplication setProximitySensingEnabled:(BOOL)] will turn the feature on. BTW, it doesn’t seem to be using the light sensor, because proximity sensing would tweak out in a dark room.

However, the API call basically blanks the screen when you hold the phone up to your face. Not useful for interaction, sadly.

Leave a Comment