Keep display on when the proximity sensor is covered

后端 未结 5 1022
隐瞒了意图╮
隐瞒了意图╮ 2021-02-05 12:39

I want to intercept the proximity sensor without turning off the display.

I know by the documentation that I have two Bool variables:

proximityMonitoring         


        
5条回答
  •  梦如初夏
    2021-02-05 13:29

    fo swift / iOS 10 / xcode 8.2

    UIDevice.current.isProximityMonitoringEnabled = true/false..
    

提交回复
热议问题