The only way I could find to programmatically turn off (not just dim) the iPhone's screen was by utilizing the UIDevice
property proximityMonitoringEnabled
, which will automatically turn off the screen if the infrared sensor detects proximity to an object while enabled.
Any other (public API only) methods for this? Any way to achieve a reverse-proximity effect (the screen dims when not proximal)?