CPC G09G 3/20 (2013.01) [G09G 5/10 (2013.01); G09G 2360/144 (2013.01)] | 20 Claims |
1. A proximity detection method, comprising:
displaying, by a terminal, a black picture for at least two times in a first area of a display area of a display screen of the terminal, wherein the terminal includes a first optical proximity sensor under the display screen corresponding to the first area, the display area of the display screen includes the first area and a second area, the first optical proximity sensor detects an external object through at least a portion of the first area, and the second area is outside the first area, and wherein the black picture is displayed for at least two times in the first area during refreshing of one frame of an image frame picture, wherein a size of an area for displaying the black picture is equal to a size of the first area;
displaying, by the terminal, the image frame picture in the second area when the black picture is displayed in the first area;
displaying, by the terminal, the image frame picture in the first area in an interval between displaying the black picture in the first area for two times; and
obtaining, by the terminal, approaching data of the external object detected by the first optical proximity sensor when the first area displays the black picture, wherein the first optical proximity sensor controls an emission lamp to emit an infrared ray to detect the external object through the first area when the first area displays the black picture.
|