False touch prevention method and device and storage medium

文档序号:1686768 发布日期:2020-01-03 浏览:15次 中文

阅读说明:本技术 防误触方法、装置及存储介质 (False touch prevention method and device and storage medium ) 是由 张翔 姜东亚 罗曦 于 2019-09-20 设计创作,主要内容包括:本公开是关于一种防误触方法、装置及存储介质。防误触方法包括:在终端上的指定应用处于运行进程中时,响应用户对所述指定应用进行的应用操作;在接收到用于划出通知栏的滑动手势时,屏蔽通知栏划出;在接收到通知消息时,以悬浮窗形式显示所述通知消息。通过本公开,可以防止用户滑动手势的误触行为划出通知栏,并可基于悬浮窗显示通知消息,使重要信息不被遗漏,提升用户体验。(The disclosure relates to a false touch prevention method, a false touch prevention device and a storage medium. The false touch prevention method comprises the following steps: when a designated application on a terminal is in a running process, responding to application operation of a user on the designated application; when a sliding gesture for drawing out the notification bar is received, shielding the drawing out of the notification bar; upon receipt of a notification message, the notification message is displayed in a floating window. Through the method and the device, the notification bar can be prevented from being drawn out by the mistaken touch of the sliding gesture of the user, and the notification message can be displayed based on the floating window, so that important information is not omitted, and the user experience is improved.)

1. A method of preventing false touches, the method comprising:

when a designated application on a terminal is in a running process, responding to application operation of a user on the designated application;

when a sliding gesture for drawing out the notification bar is received, shielding the drawing out of the notification bar;

upon receipt of a notification message, the notification message is displayed in a floating window.

2. The false touch prevention method of claim 1, further comprising:

and presetting the floating window in a notification bar display area of the terminal.

3. The method according to claim 2, wherein the step of presetting the floating window in a display area of a notification bar of the terminal comprises:

when the specified application is in a running process, adding the floating window to the notification bar display area, and floating the floating window in the notification bar display area;

based on the floating window floating in the notification bar display area, masking the sliding gesture triggering the notification bar to be drawn.

4. The method according to claim 2, wherein the floating window is a transparent floating window and has a shape similar to the notification bar display area, and the size of the floating window is smaller than or equal to the size of the notification bar display area, and the size of the floating window covers the display area of the trigger marking-out notification bar.

5. The false touch prevention method of claim 2, further comprising:

and removing the preset floating window when the specified application exits the running process.

6. The method of claim 1, wherein prior to the masking notification bar being marked out, the method further comprises:

and confirming that the function of marking out the shielding notification bar is opened.

7. The false touch protection method of claim 1, wherein the designated application comprises one or more of a game, video, and audio.

8. The false touch prevention method according to claim 1, wherein the swipe gesture comprises a downslide gesture or a upslide gesture.

9. An anti-false touch device, the device comprising:

the execution unit is configured to respond to application operation of a user on a specified application when the specified application on the terminal is in a running process;

a shielding unit configured to shield the notification bar from being drawn out when a slide gesture for drawing out the notification bar is received;

a display unit configured to display the notification message in a floating window form when the notification message is received.

10. The false touch prevention device of claim 9, further comprising:

a setting unit configured to preset the floating window in a notification bar display area of the terminal.

11. The false touch prevention device according to claim 10, wherein the setting unit presets the floating window in a notification bar display area of the terminal in the following manner:

when the specified application is in a running process, adding the floating window to the notification bar display area, and floating the floating window in the notification bar display area;

the shielding unit is configured to:

based on the floating window floating in the notification bar display area, masking the sliding gesture triggering the notification bar to be drawn.

12. The device of claim 10, wherein the floating window is a transparent floating window and is similar in shape to the notification bar display area, and wherein the size of the floating window is smaller than or equal to the size of the notification bar display area, and wherein the size of the floating window covers the display area where the trigger bar is drawn.

13. The false touch prevention device according to claim 10, wherein the setting unit is further configured to:

and removing the preset floating window when the specified application exits the running process.

14. The false touch prevention device of claim 9, wherein the shielding unit is further configured to:

before the shielding notification bar is marked out, the opening of the marking-out function of the shielding notification bar is confirmed.

15. The anti-false touch device of claim 9, wherein the designated application comprises one or more of games, video, and audio.

16. The false touch protection device of claim 9, wherein the swipe gesture comprises a downslide gesture or a upslide gesture.

17. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform the method of any of claims 1-8.

18. An electronic device, characterized in that the electronic device comprises:

a memory configured to store instructions; and

a processor configured to invoke the instructions to perform the method of any one of claims 1-8.

15页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种手写轨迹信息获取方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类