Keep display on when the proximity sensor is covered

后端 未结 5 1031
隐瞒了意图╮
隐瞒了意图╮ 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:34

    After reading different forums on the topic, its currently not possible for us in the public api to prevent the iPhone screen from going black when the proximity sensor is covered. The only thing you can do with the sensor is tell when its covered or not thru the notification center but again you can't control its natural behavior (When it dims/blacks out the screen).

提交回复
热议问题