I want to intercept the proximity sensor without turning off the display.
I know by the documentation that I have two Bool variables:
proximityMonitoring
fo swift / iOS 10 / xcode 8.2
UIDevice.current.isProximityMonitoringEnabled = true/false..