技术领域technical field
本申请属于终端技术领域,尤其涉及一种触控操作方法、装置、存储介质及电子设备。The present application belongs to the technical field of terminals, and in particular relates to a touch operation method, device, storage medium and electronic equipment.
背景技术Background technique
随着电子技术的快速发展,诸如智能手机等电子设备的功能越来越多。例如,用户可以选择电子设备的网络连接模式、待机模式等,用户也可以使用电子设备上的各种应用来实现不同的功能。With the rapid development of electronic technology, electronic devices such as smart phones have more and more functions. For example, the user can select a network connection mode, a standby mode, etc. of the electronic device, and the user can also use various applications on the electronic device to implement different functions.
在用户使用电子设备的过程中,经常需要对电子设备发出各种指令。而用户通常需要从电子设备的系统菜单或者电子设备上安装的应用的设置菜单中来选择所需的指令。这种选择指令的方式操作繁琐,效率低。During the process of using an electronic device, a user often needs to issue various instructions to the electronic device. However, the user usually needs to select the desired command from the system menu of the electronic device or the setting menu of the application installed on the electronic device. This method of selecting instructions is cumbersome and inefficient.
发明内容Contents of the invention
本申请实施例提供一种触控操作方法、装置、存储介质及电子设备,可以提高电子设备的操作效率。Embodiments of the present application provide a touch operation method, device, storage medium, and electronic equipment, which can improve the operating efficiency of the electronic equipment.
本申请实施例提供一种触控操作方法,应用于电子设备,所述电子设备包括显示屏,所述显示屏的一端设有缺口,缺口区域内设有触摸传感器,所述显示屏还包括第一异形显示区域和第二异形显示区域,所述第一异形显示区域和所述第二异形显示区域位于所述缺口两侧,所述方法包括:An embodiment of the present application provides a touch operation method, which is applied to an electronic device. The electronic device includes a display screen, a notch is provided at one end of the display screen, and a touch sensor is provided in the notch area. The display screen also includes a second A special-shaped display area and a second special-shaped display area, the first special-shaped display area and the second special-shaped display area are located on both sides of the gap, and the method includes:
通过所述触摸传感器,获取触摸信息,所述触摸信息表示的触摸操作的起点或终点位于所述缺口区域;Acquiring touch information through the touch sensor, where the start point or end point of the touch operation indicated by the touch information is located in the notch area;
获取所述触摸信息对应的指令;Obtain an instruction corresponding to the touch information;
执行所述指令所指示的操作。Perform the operation indicated by the instruction.
本申请实施例提供一种触控操作装置,应用于电子设备,所述电子设备包括显示屏,所述显示屏的一端设有缺口,缺口区域内设有触摸传感器,所述显示屏还包括第一异形显示区域和第二异形显示区域,所述第一异形显示区域和所述第二异形显示区域位于所述缺口两侧,所述装置包括:An embodiment of the present application provides a touch operation device, which is applied to electronic equipment. The electronic equipment includes a display screen, a notch is provided at one end of the display screen, and a touch sensor is provided in the notch area. The display screen also includes a second A special-shaped display area and a second special-shaped display area, the first special-shaped display area and the second special-shaped display area are located on both sides of the gap, and the device includes:
第一获取模块,用于通过所述触摸传感器,获取触摸信息,所述触摸信息表示的触摸操作的起点或终点位于所述缺口区域;The first acquisition module is configured to acquire touch information through the touch sensor, where the start or end point of the touch operation represented by the touch information is located in the notch area;
第二获取模块,用于获取所述触摸信息对应的指令;A second acquiring module, configured to acquire an instruction corresponding to the touch information;
执行模块,用于执行所述指令所指示的操作。The executing module is configured to execute the operation indicated by the instruction.
本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的触控操作方法中的步骤。An embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed on a computer, the computer is made to execute the steps in the touch operation method provided in the embodiment of the present application.
本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的触控操作方法中的步骤。The embodiment of the present application also provides an electronic device, including a memory and a processor, and the processor is used to execute the steps in the touch operation method provided in the embodiment of the present application by invoking a computer program stored in the memory.
本实施例中,在电子设备显示屏的一端设有缺口,在缺口区域内设有触摸传感器,从而使得该缺口区域也成为触摸区域。并且,电子设备的显示屏还包括第一异形显示区域和第二异形显示区域,该第一异形显示区域和第二异形显示区域位于缺口的两侧。电子设备通过设于缺口区域内的触摸传感器可以获取用户对显示屏的触摸信息,并执行与该触摸信息对应的指令,从而实现该指令对应的操作。因此,本实施例可以提高对电子设备进行操作的效率。In this embodiment, a notch is provided at one end of the display screen of the electronic device, and a touch sensor is provided in the notch area, so that the notch area also becomes a touch area. Moreover, the display screen of the electronic device further includes a first special-shaped display area and a second special-shaped display area, and the first special-shaped display area and the second special-shaped display area are located on two sides of the notch. The electronic device can obtain the user's touch information on the display screen through the touch sensor provided in the notch area, and execute an instruction corresponding to the touch information, so as to realize the operation corresponding to the instruction. Therefore, this embodiment can improve the efficiency of operating electronic equipment.
附图说明Description of drawings
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其有益效果显而易见。The technical solution and beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.
图1是本申请实施例提供的触控操作方法的第一种流程示意图。FIG. 1 is a schematic flowchart of a first touch operation method provided by an embodiment of the present application.
图2是本申请实施例提供的触控操作方法的第一种场景示意图。FIG. 2 is a schematic diagram of a first scenario of a touch operation method provided by an embodiment of the present application.
图3是本申请实施例提供的触控操作方法的第二种流程示意图。FIG. 3 is a schematic flowchart of a second touch operation method provided by an embodiment of the present application.
图4是本申请实施例提供的触控操作方法的第二种场景示意图。FIG. 4 is a schematic diagram of a second scenario of the touch operation method provided by the embodiment of the present application.
图5是本申请实施例提供的触控操作方法的第三种流程示意图。FIG. 5 is a schematic flowchart of a third touch operation method provided by an embodiment of the present application.
图6是本申请实施例提供的触控操作方法的第三种场景示意图。FIG. 6 is a schematic diagram of a third scenario of the touch operation method provided by the embodiment of the present application.
图7是本申请实施例提供的触控操作方法的第四种流程示意图。FIG. 7 is a schematic flowchart of a fourth touch operation method provided by an embodiment of the present application.
图8是本申请实施例提供的触控操作方法的第四种场景示意图。FIG. 8 is a schematic diagram of a fourth scenario of the touch operation method provided by the embodiment of the present application.
图9是本申请实施例提供的触控操作方法的第五种流程示意图。FIG. 9 is a schematic flowchart of a fifth touch operation method provided by an embodiment of the present application.
图10是本申请实施例提供的触控操作方法的第五种场景示意图。FIG. 10 is a schematic diagram of a fifth scenario of the touch operation method provided by the embodiment of the present application.
图11是本申请实施例提供的触控操作方法的第六种流程示意图。FIG. 11 is a schematic flowchart of a sixth touch operation method provided by an embodiment of the present application.
图12是本申请实施例提供的触控操作方法的第六种场景示意图。FIG. 12 is a schematic diagram of a sixth scenario of the touch operation method provided by the embodiment of the present application.
图13是本申请实施例提供的触控操作方法的第七种场景示意图。FIG. 13 is a schematic diagram of a seventh scene of the touch operation method provided by the embodiment of the present application.
图14是本申请实施例提供的触控操作装置的结构示意图。FIG. 14 is a schematic structural diagram of a touch operation device provided by an embodiment of the present application.
图15是本申请实施例提供的电子设备的结构示意图。FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图16是本申请实施例提供的电子设备的另一结构示意图。FIG. 16 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图式,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, wherein like reference numerals represent like components, the principles of the present invention are exemplified when implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.
请参阅图1,图1是本申请实施例提供的触控操作方法的第一种流程示意图。该触控操作方法可以应用于电子设备。如图2所示,该电子设备100可以包括可以显示屏10。该显示屏10的一端设有缺口,缺口区域20内设有触摸传感器。显示屏10还可以包括第一异形显示区域11和第二异形显示区域12。第一异形显示区域11和第二异形显示区域12位于缺口的两侧。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a first touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 2 , the electronic device 100 may include a display screen 10 . One end of the display screen 10 is provided with a notch, and a touch sensor is provided in the notch area 20 . The display screen 10 may also include a first special-shaped display area 11 and a second special-shaped display area 12 . The first special-shaped display area 11 and the second special-shaped display area 12 are located on two sides of the notch.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在101中,通过触摸传感器,获取触摸信息,该触摸信息表示的触摸操作的起点或终点位于缺口区域。In 101, touch information is acquired through a touch sensor, and the touch information indicates that a start point or an end point of a touch operation is located in a notch area.
随着电子技术的快速发展,诸如智能手机等电子设备的功能越来越多。例如,用户可以选择电子设备的网络连接模式、待机模式等,用户也可以使用电子设备上的各种应用来实现不同的功能。在用户使用电子设备的过程中,经常需要对电子设备发出各种指令。而用户通常需要从电子设备的系统菜单或者电子设备上安装的应用的设置菜单中来选择所需的指令。这种选择指令的方式操作繁琐,效率低。With the rapid development of electronic technology, electronic devices such as smart phones have more and more functions. For example, the user can select a network connection mode, a standby mode, etc. of the electronic device, and the user can also use various applications on the electronic device to implement different functions. During the process of using an electronic device, a user often needs to issue various instructions to the electronic device. However, the user usually needs to select the desired command from the system menu of the electronic device or the setting menu of the application installed on the electronic device. This method of selecting instructions is cumbersome and inefficient.
在本申请实施例的101中,比如,电子设备可以通过设于缺口区域内的触摸传感器获取用户对显示屏的触摸信息,其中该触摸信息表示的触摸操作的起点或终点位于该缺口区域内。In 101 of the embodiment of the present application, for example, the electronic device may obtain the user's touch information on the display screen through the touch sensor provided in the notch area, wherein the touch information indicates that the start point or end point of the touch operation is located in the notch area.
在102中,获取触摸信息对应的指令。In 102, an instruction corresponding to the touch information is acquired.
在103中,执行指令所指示的操作。In 103, the operation indicated by the instruction is performed.
比如,102和103可以包括:For example, 102 and 103 could include:
在获取到用户对显示屏的触摸信息后,电子设备可以获取与该触摸信息对应的指令。然后,电子设备可以执行该指令所指示的操作。After acquiring the user's touch information on the display screen, the electronic device can acquire an instruction corresponding to the touch information. Then, the electronic device can execute the operation indicated by the instruction.
可以理解的是,本实施例中,在电子设备显示屏的一端设有缺口,在缺口区域内设有触摸传感器,从而使得该缺口区域也成为触摸区域。并且,电子设备的显示屏还包括第一异形显示区域和第二异形显示区域,该第一异形显示区域和第二异形显示区域位于缺口的两侧。电子设备通过设于缺口区域内的触摸传感器可以获取用户对显示屏的触摸信息,并执行与该触摸信息对应的指令,从而实现该指令对应的操作。因此,本实施例可以提高对电子设备进行操作的效率。It can be understood that, in this embodiment, a notch is provided at one end of the display screen of the electronic device, and a touch sensor is provided in the notch area, so that the notch area also becomes a touch area. Moreover, the display screen of the electronic device further includes a first special-shaped display area and a second special-shaped display area, and the first special-shaped display area and the second special-shaped display area are located on two sides of the notch. The electronic device can obtain the user's touch information on the display screen through the touch sensor provided in the notch area, and execute an instruction corresponding to the touch information, so as to realize the operation corresponding to the instruction. Therefore, this embodiment can improve the efficiency of operating electronic equipment.
请参阅图3,图3为本申请实施例提供的触控操作方法的第二种流程示意图。该触控操作方法可以应用于电子设备。如图2所示,该电子设备100可以包括显示屏10。该显示屏10的一端设有缺口,缺口区域20内设有触摸传感器。显示屏10还可以包括第一异形显示区域11和第二异形显示区域12。第一异形显示区域11和第二异形显示区域12位于缺口的两侧。Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a second touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 2 , the electronic device 100 may include a display screen 10 . One end of the display screen 10 is provided with a notch, and a touch sensor is provided in the notch area 20 . The display screen 10 may also include a first special-shaped display area 11 and a second special-shaped display area 12 . The first special-shaped display area 11 and the second special-shaped display area 12 are located on two sides of the notch.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在201中,通过触摸传感器,电子设备获取触摸信息,该触摸信息表示的触摸操作的起点位于缺口区域且终点位于第一异形显示区域。In 201, the electronic device acquires touch information through a touch sensor, and the touch information indicates that a start point of a touch operation is located in a notch area and an end point is located in a first special-shaped display area.
比如,电子设备可以通过设于缺口区域内的触摸传感器获取用户对显示屏的触摸信息。其中,该触摸信息表示的触摸操作的起点位于该缺口区域内,而该触摸操作的终点位于第一异形显示区域。For example, the electronic device can obtain the user's touch information on the display screen through the touch sensor provided in the notch area. Wherein, the starting point of the touch operation represented by the touch information is located in the notch area, and the end point of the touch operation is located in the first special-shaped display area.
如图4所示,图中箭头方向表示用户在显示屏上的触摸操作由缺口区域20向左滑动到第一异形显示区域11。As shown in FIG. 4 , the direction of the arrow in the figure indicates that the user's touch operation on the display screen slides from the notch area 20 to the left to the first special-shaped display area 11 .
在202中,电子设备获取在起点位置检测到的第一压力值,以及在终点位置检测到的第二压力值。In 202, the electronic device acquires the first pressure value detected at the start position and the second pressure value detected at the end position.
比如,在获取到触摸信息后,电子设备可以获取在该触摸信息对应的触摸操作的起点位置检测到的第一压力值,以及在触摸操作的终点位置检测到的第二压力值。For example, after acquiring the touch information, the electronic device may acquire the first pressure value detected at the start position of the touch operation corresponding to the touch information, and the second pressure value detected at the end position of the touch operation.
之后,电子设备可以检测该第一压力值和该第二压力值是否均达到预设压力阈值。Afterwards, the electronic device may detect whether the first pressure value and the second pressure value both reach a preset pressure threshold.
如果检测到该第一压力值和该第二压力值并未均达到预设压力阈值,那么电子设备可以执行其它操作。If it is detected that both the first pressure value and the second pressure value do not reach the preset pressure threshold, the electronic device may perform other operations.
如果检测到该第一压力值和该第二压力值均达到预设压力阈值,那么进入203。If it is detected that both the first pressure value and the second pressure value reach the preset pressure threshold, then go to step 203 .
在203中,若第一压力值和第二压力值均达到预设压力阈值,则电子设备获取触摸信息对应的指令。In 203, if both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device acquires an instruction corresponding to the touch information.
在204中,电子设备执行指令所指示的操作。In 204, the electronic device executes the operation indicated by the instruction.
比如,203和204可以包括:For example, 203 and 204 could include:
电子设备检测到第一压力值和第二压力值均达到预设压力阈值,那么电子设备可以获取触摸信息对应的指令,并执行该指令所指示的操作。When the electronic device detects that both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device may obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction.
例如,预先设定的由缺口区域滑动到第一异形显示区域这一触摸操作所对应的功能为打开手电筒。那么,若获取到的触摸信息表示的触摸操作的起点位于缺口区域,且终点位于第一异形区域,同时在起点位置检测到的第一压力值和在终点位置检测到的第二压力值均达到预设压力阈值的情况下,电子设备可以打开手电筒功能。For example, the function corresponding to the preset touch operation of sliding from the notch area to the first special-shaped display area is to turn on the flashlight. Then, if the starting point of the touch operation indicated by the acquired touch information is located in the notch area, and the end point is located in the first special-shaped area, at the same time, the first pressure value detected at the starting point and the second pressure value detected at the end point both reach In the case of a preset pressure threshold, the electronic device can turn on the flashlight function.
可以理解的是,本实施例中,通过在检测到第一压力值和第二压力值均达到预设压力阈值时电子设备才会执行触摸信息对应的指令的这种方式,可以有效避免因用户误触摸导致电子设备执行不必要的操作。It can be understood that, in this embodiment, the electronic device executes the instruction corresponding to the touch information only when it detects that both the first pressure value and the second pressure value reach the preset pressure threshold, which can effectively avoid Inadvertent touches cause electronic equipment to perform unwanted operations.
请参阅图5,图5为本申请实施例提供的触控操作方法的第三种流程示意图。该触控操作方法可以应用于电子设备。如图2所示,该电子设备100可以包括显示屏10。该显示屏10的一端设有缺口,缺口区域20内设有触摸传感器。显示屏10还可以包括第一异形显示区域11和第二异形显示区域12。第一异形显示区域11和第二异形显示区域12位于缺口的两侧。Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of a third touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 2 , the electronic device 100 may include a display screen 10 . One end of the display screen 10 is provided with a notch, and a touch sensor is provided in the notch area 20 . The display screen 10 may also include a first special-shaped display area 11 and a second special-shaped display area 12 . The first special-shaped display area 11 and the second special-shaped display area 12 are located on two sides of the notch.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在301中,通过触摸传感器,电子设备获取触摸信息,该触摸信息表示的触摸操作的起点位于缺口区域且终点位于第二异形显示区域。In 301, the electronic device acquires touch information through the touch sensor, and the touch information indicates that the start point of the touch operation is located in the notch area and the end point is located in the second special-shaped display area.
比如,电子设备可以通过设于缺口区域内的触摸传感器获取用户对显示屏的触摸信息。其中,该触摸信息表示的触摸操作的起点位于该缺口区域内,而该触摸操作的终点位于第二异形显示区域。For example, the electronic device can obtain the user's touch information on the display screen through the touch sensor provided in the notch area. Wherein, the starting point of the touch operation represented by the touch information is located in the notch area, and the end point of the touch operation is located in the second special-shaped display area.
如图6所示,图中箭头方向表示用户在显示屏上的触摸操作由缺口区域20向右滑动到第二异形显示区域12。As shown in FIG. 6 , the direction of the arrow in the figure indicates that the user's touch operation on the display screen slides from the notch area 20 to the right to the second special-shaped display area 12 .
在302中,电子设备获取在起点位置检测到的第一压力值,以及在终点位置检测到的第二压力值。In 302, the electronic device acquires the first pressure value detected at the start position and the second pressure value detected at the end position.
比如,在获取到触摸信息后,电子设备可以获取在该触摸信息对应的触摸操作的起点位置检测到的第一压力值,以及在触摸操作的终点位置检测到的第二压力值。For example, after acquiring the touch information, the electronic device may acquire the first pressure value detected at the start position of the touch operation corresponding to the touch information, and the second pressure value detected at the end position of the touch operation.
之后,电子设备可以检测该第一压力值和该第二压力值是否均达到预设压力阈值。Afterwards, the electronic device may detect whether the first pressure value and the second pressure value both reach a preset pressure threshold.
如果检测到该第一压力值和该第二压力值并未均达到预设压力阈值,那么电子设备可以执行其它操作。If it is detected that both the first pressure value and the second pressure value do not reach the preset pressure threshold, the electronic device may perform other operations.
如果检测到该第一压力值和该第二压力值均达到预设压力阈值,那么进入303。If it is detected that both the first pressure value and the second pressure value reach the preset pressure threshold, then go to 303 .
在303中,若第一压力值和第二压力值均达到预设压力阈值,则电子设备获取触摸信息对应的指令。In 303, if both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device acquires an instruction corresponding to the touch information.
在304中,电子设备执行指令所指示的操作。In 304, the electronic device executes the operation indicated by the instruction.
比如,303和304可以包括:For example, 303 and 304 can include:
电子设备检测到第一压力值和第二压力值均达到预设压力阈值,那么电子设备可以获取触摸信息对应的指令,并执行该指令所指示的操作。When the electronic device detects that both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device may obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction.
例如,预先设定的由缺口区域滑动到第二异形显示区域这一触摸操作所对应的功能为打开电子设备的相机。那么,若获取到的触摸信息表示的触摸操作的起点位于缺口区域,且终点位于第二异形区域,同时在起点位置检测到的第一压力值和在终点位置检测到的第二压力值均达到预设压力阈值的情况下,电子设备可以打开相机应用,从而进入相机拍摄界面。For example, the function corresponding to the preset touch operation of sliding from the notch area to the second special-shaped display area is to turn on the camera of the electronic device. Then, if the starting point of the touch operation represented by the acquired touch information is located in the notch area, and the end point is located in the second special-shaped area, at the same time, the first pressure value detected at the starting point and the second pressure value detected at the end point both reach In the case of a preset pressure threshold, the electronic device can open the camera application to enter the camera shooting interface.
请参阅图7,图7为本申请实施例提供的触控操作方法的第四种流程示意图。该触控操作方法可以应用于电子设备。如图2所示,该电子设备100可以包括显示屏10。该显示屏10的一端设有缺口,缺口区域20内设有触摸传感器。显示屏10还可以包括第一异形显示区域11和第二异形显示区域12。第一异形显示区域11和第二异形显示区域12位于缺口的两侧。Please refer to FIG. 7 . FIG. 7 is a schematic flowchart of a fourth touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 2 , the electronic device 100 may include a display screen 10 . One end of the display screen 10 is provided with a notch, and a touch sensor is provided in the notch area 20 . The display screen 10 may also include a first special-shaped display area 11 and a second special-shaped display area 12 . The first special-shaped display area 11 and the second special-shaped display area 12 are located on two sides of the notch.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在401中,通过触摸传感器,电子设备获取触摸信息,该触摸信息表示的触摸操作的起点位于第一异形显示区域且终点位于缺口区域。In 401, the electronic device acquires touch information through the touch sensor, and the touch information indicates that the start point of the touch operation is located in the first special-shaped display area and the end point is located in the notch area.
比如,电子设备可以通过设于缺口区域内的触摸传感器获取用户对显示屏的触摸信息。其中,该触摸信息表示的触摸操作的起点位于第一异形显示区域内,而该触摸操作的终点位于缺口区域。For example, the electronic device can obtain the user's touch information on the display screen through the touch sensor provided in the notch area. Wherein, the starting point of the touch operation represented by the touch information is located in the first special-shaped display area, and the end point of the touch operation is located in the notch area.
如图8所示,图中箭头方向表示用户在显示屏上的触摸操作由第一异形显示区域11向右滑动到缺口区域20。As shown in FIG. 8 , the direction of the arrow in the figure indicates that the user's touch operation on the display screen slides rightward from the first special-shaped display area 11 to the notch area 20 .
在402中,电子设备获取在起点位置检测到的第一压力值,以及在终点位置检测到的第二压力值。In 402, the electronic device acquires the first pressure value detected at the start position and the second pressure value detected at the end position.
比如,在获取到触摸信息后,电子设备可以获取在该触摸信息对应的触摸操作的起点位置检测到的第一压力值,以及在触摸操作的终点位置检测到的第二压力值。For example, after acquiring the touch information, the electronic device may acquire the first pressure value detected at the start position of the touch operation corresponding to the touch information, and the second pressure value detected at the end position of the touch operation.
之后,电子设备可以检测该第一压力值和该第二压力值是否均达到预设压力阈值。Afterwards, the electronic device may detect whether the first pressure value and the second pressure value both reach a preset pressure threshold.
如果检测到该第一压力值和该第二压力值并未均达到预设压力阈值,那么电子设备可以执行其它操作。If it is detected that both the first pressure value and the second pressure value do not reach the preset pressure threshold, the electronic device may perform other operations.
如果检测到该第一压力值和该第二压力值均达到预设压力阈值,那么进入403。If it is detected that both the first pressure value and the second pressure value reach the preset pressure threshold, then go to 403 .
在403中,若第一压力值和第二压力值均达到预设压力阈值,则电子设备获取触摸信息对应的指令。In 403, if both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device acquires an instruction corresponding to the touch information.
在404中,电子设备执行指令所指示的操作。In 404, the electronic device executes the operation indicated by the instruction.
比如,403和404可以包括:For example, 403 and 404 can include:
电子设备检测到第一压力值和第二压力值均达到预设压力阈值,那么电子设备可以获取触摸信息对应的指令,并执行该指令所指示的操作。When the electronic device detects that both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device may obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction.
例如,预先设定的由第一异形显示区域滑动到缺口区域这一触摸操作所对应的功能为打开设置面板。那么,若获取到的触摸信息表示的触摸操作的起点位于第一异形显示区域,且终点位于缺口区域,同时在起点位置检测到的第一压力值和在终点位置检测到的第二压力值均达到预设压力阈值的情况下,电子设备可以设置面板。在该设置面板,用户可以通过终端对网络连接方式、信息提醒方式等进行设置。For example, the preset function corresponding to the touch operation of sliding from the first special-shaped display area to the notch area is to open the setting panel. Then, if the starting point of the touch operation represented by the acquired touch information is located in the first special-shaped display area, and the end point is located in the notch area, at the same time, the first pressure value detected at the starting point and the second pressure value detected at the end point are both Electronics may set the panel in the event of a preset pressure threshold being reached. In the setting panel, the user can set the network connection method, information reminder method, etc. through the terminal.
请参阅图9,图9为本申请实施例提供的触控操作方法的第五种流程示意图。该触控操作方法可以应用于电子设备。如图2所示,该电子设备100可以包括显示屏10。该显示屏10的一端设有缺口,缺口区域20内设有触摸传感器。显示屏10还可以包括第一异形显示区域11和第二异形显示区域12。第一异形显示区域11和第二异形显示区域12位于缺口的两侧。Please refer to FIG. 9 . FIG. 9 is a schematic flowchart of a fifth touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 2 , the electronic device 100 may include a display screen 10 . One end of the display screen 10 is provided with a notch, and a touch sensor is provided in the notch area 20 . The display screen 10 may also include a first special-shaped display area 11 and a second special-shaped display area 12 . The first special-shaped display area 11 and the second special-shaped display area 12 are located on two sides of the notch.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在501中,通过触摸传感器,电子设备获取触摸信息,该触摸信息表示的触摸操作的起点位于第二异形显示区域且终点位于缺口区域。In 501, the electronic device acquires touch information through the touch sensor, and the touch information indicates that the start point of the touch operation is located in the second special-shaped display area and the end point is located in the notch area.
比如,电子设备可以通过设于缺口区域内的触摸传感器获取用户对显示屏的触摸信息。其中,该触摸信息表示的触摸操作的起点位于第二异形显示区域内,而该触摸操作的终点位于缺口区域。For example, the electronic device can obtain the user's touch information on the display screen through the touch sensor provided in the notch area. Wherein, the starting point of the touch operation represented by the touch information is located in the second special-shaped display area, and the end point of the touch operation is located in the notch area.
如图10所示,图中箭头方向表示用户在显示屏上的触摸操作由第二异形显示区域12向左滑动到缺口区域20。As shown in FIG. 10 , the direction of the arrow in the figure indicates that the user's touch operation on the display screen slides from the second special-shaped display area 12 to the left to the notch area 20 .
在502中,电子设备获取在起点位置检测到的第一压力值,以及在终点位置检测到的第二压力值。In 502, the electronic device acquires the first pressure value detected at the start position and the second pressure value detected at the end position.
比如,在获取到触摸信息后,电子设备可以获取在该触摸信息对应的触摸操作的起点位置检测到的第一压力值,以及在触摸操作的终点位置检测到的第二压力值。For example, after acquiring the touch information, the electronic device may acquire the first pressure value detected at the start position of the touch operation corresponding to the touch information, and the second pressure value detected at the end position of the touch operation.
之后,电子设备可以检测该第一压力值和该第二压力值是否均达到预设压力阈值。Afterwards, the electronic device may detect whether the first pressure value and the second pressure value both reach a preset pressure threshold.
如果检测到该第一压力值和该第二压力值并未均达到预设压力阈值,那么电子设备可以执行其它操作。If it is detected that both the first pressure value and the second pressure value do not reach the preset pressure threshold, the electronic device may perform other operations.
如果检测到该第一压力值和该第二压力值均达到预设压力阈值,那么进入503。If it is detected that both the first pressure value and the second pressure value reach the preset pressure threshold, then go to 503 .
在503中,若第一压力值和第二压力值均达到预设压力阈值,则电子设备获取触摸信息对应的指令。In 503, if both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device acquires an instruction corresponding to the touch information.
在504中,电子设备执行指令所指示的操作。In 504, the electronic device executes the operation indicated by the instruction.
比如,503和504可以包括:For example, 503 and 504 can include:
电子设备检测到第一压力值和第二压力值均达到预设压力阈值,那么电子设备可以获取触摸信息对应的指令,并执行该指令所指示的操作。When the electronic device detects that both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device may obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction.
例如,预先设定的由第二异形显示区域滑动到缺口区域这一触摸操作所对应的功能为打开设置多任务控制面板。那么,若获取到的触摸信息表示的触摸操作的起点位于第二异形显示区域,且终点位于缺口区域,同时在起点位置检测到的第一压力值和在终点位置检测到的第二压力值均达到预设压力阈值的情况下,电子设备可以打开多任务控制面板。在电子设备的多任务控制面板上可以对电子设备当前正在进行的任务进行管理,如关闭某一任务(如关闭某一应用)等。For example, the preset function corresponding to the touch operation of sliding from the second special-shaped display area to the notch area is to open the setting multitasking control panel. Then, if the starting point of the touch operation represented by the acquired touch information is located in the second special-shaped display area, and the end point is located in the notch area, at the same time, the first pressure value detected at the starting point and the second pressure value detected at the end point are both The electronic device may open a multi-tasking control panel when a preset stress threshold is reached. On the multi-task control panel of the electronic device, the tasks currently being performed by the electronic device can be managed, such as closing a certain task (such as closing a certain application).
请参阅图11,图11为本申请实施例提供的触控操作方法的第五种流程示意图。该触控操作方法可以应用于电子设备。如图2所示,该电子设备100可以包括显示屏10。该显示屏10的一端设有缺口,缺口区域20内设有触摸传感器。显示屏10还可以包括第一异形显示区域11和第二异形显示区域12。第一异形显示区域11和第二异形显示区域12位于缺口的两侧。Please refer to FIG. 11 . FIG. 11 is a schematic flowchart of a fifth touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 2 , the electronic device 100 may include a display screen 10 . One end of the display screen 10 is provided with a notch, and a touch sensor is provided in the notch area 20 . The display screen 10 may also include a first special-shaped display area 11 and a second special-shaped display area 12 . The first special-shaped display area 11 and the second special-shaped display area 12 are located on two sides of the notch.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在601中,通过触摸传感器,电子设备获取触摸信息,该触摸信息表示的触摸操作的起点位于缺口区域,且终点位于显示屏中除第一异形显示区域和第二异形显示区域外的区域。In 601, the electronic device acquires touch information through the touch sensor, and the touch information indicates that the start point of the touch operation is located in the notch area, and the end point is located in an area of the display screen other than the first special-shaped display area and the second special-shaped display area.
比如,电子设备可以通过设于缺口区域内的触摸传感器获取用户对显示屏的触摸信息。其中,该触摸信息表示的触摸操作的起点位于缺口区域,并且该触摸操作的终点位于显示屏中除第一异形显示区域和第二异形显示区域外的区域。For example, the electronic device can obtain the user's touch information on the display screen through the touch sensor provided in the notch area. Wherein, the starting point of the touch operation represented by the touch information is located in the notch area, and the end point of the touch operation is located in an area of the display screen other than the first special-shaped display area and the second special-shaped display area.
如图12所示,图中箭头方向表示用户在显示屏上的触摸操作由缺口区域20向下滑动到显示屏的第三显示区域13。其中,如图12所示,该第三显示区域为显示屏中除第一异形显示区域和第二异形显示区域外的区域。As shown in FIG. 12 , the direction of the arrow in the figure indicates that the user's touch operation on the display screen slides down from the notch area 20 to the third display area 13 of the display screen. Wherein, as shown in FIG. 12 , the third display area is an area of the display screen other than the first and second special-shaped display areas.
在602中,电子设备获取在起点位置检测到的第一压力值,以及在终点位置检测到的第二压力值。In 602, the electronic device acquires the first pressure value detected at the start position and the second pressure value detected at the end position.
比如,在获取到触摸信息后,电子设备可以获取在该触摸信息对应的触摸操作的起点位置检测到的第一压力值,以及在触摸操作的终点位置检测到的第二压力值。For example, after acquiring the touch information, the electronic device may acquire the first pressure value detected at the start position of the touch operation corresponding to the touch information, and the second pressure value detected at the end position of the touch operation.
之后,电子设备可以检测该第一压力值和该第二压力值是否均达到预设压力阈值。Afterwards, the electronic device may detect whether the first pressure value and the second pressure value both reach a preset pressure threshold.
如果检测到该第一压力值和该第二压力值并未均达到预设压力阈值,那么电子设备可以执行其它操作。If it is detected that both the first pressure value and the second pressure value do not reach the preset pressure threshold, the electronic device may perform other operations.
如果检测到该第一压力值和该第二压力值均达到预设压力阈值,那么进入603。If it is detected that both the first pressure value and the second pressure value reach the preset pressure threshold, go to 603 .
在603中,若第一压力值和第二压力值均达到预设压力阈值,则电子设备获取触摸信息对应的指令。In 603, if both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device acquires an instruction corresponding to the touch information.
在604中,电子设备执行指令所指示的操作。In 604, the electronic device executes the operation indicated by the instruction.
比如,603和604可以包括:For example, 603 and 604 could include:
电子设备检测到第一压力值和第二压力值均达到预设压力阈值,那么电子设备可以获取触摸信息对应的指令,并执行该指令所指示的操作。When the electronic device detects that both the first pressure value and the second pressure value reach the preset pressure threshold, the electronic device may obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction.
例如,预先设定的由缺口区域向下滑动到第三显示区域这一触摸操作所对应的功能为打开未读消息面板。那么,若获取到的触摸信息表示的触摸操作的起点位于缺口区域,且终点位于第三显示区域,同时在起点位置检测到的第一压力值和在终点位置检测到的第二压力值均达到预设压力阈值的情况下,电子设备可以打开未读消息面板。For example, the preset function corresponding to the touch operation of sliding down from the notch area to the third display area is to open the unread message panel. Then, if the starting point of the touch operation represented by the acquired touch information is located in the notch area, and the end point is located in the third display area, and at the same time, the first pressure value detected at the starting point and the second pressure value detected at the end point both reach In the case of a preset pressure threshold, the electronic device may open an unread message panel.
在另一种实施方式中,除了通过检测触摸操作的起点位置和终点位置的压力值均达到预设压力阈值来判断该触摸操作是否为误触摸操作的方式,本实施例还可以通过如下方式来判断触摸操作是否为误触摸操作:比如在获取到触摸信息后,电子设备可以获取该触摸信息对应的触摸操作在起点位置的第一按压时长,以及在终点位置的第二按压时长。如果检测到该第一按压时长和第二按压时长均大于预设时长阈值,那么可以确定出该触摸操作为有效的触摸操作,而非误触摸操作。之后,电子设备可以获取触摸信息对应的指令,并执行该指令所指示的操作。In another implementation manner, in addition to detecting whether the touch operation is a false touch operation by detecting that the pressure values at the start point and end point of the touch operation reach the preset pressure threshold, this embodiment can also use the following methods to detect Judging whether the touch operation is an incorrect touch operation: For example, after obtaining the touch information, the electronic device may obtain the first press duration at the start position and the second press duration at the end position of the touch operation corresponding to the touch information. If it is detected that both the first press duration and the second press duration are greater than the preset duration threshold, it can be determined that the touch operation is a valid touch operation rather than a false touch operation. Afterwards, the electronic device may acquire an instruction corresponding to the touch information, and execute the operation indicated by the instruction.
请参阅图13,图13为本申请实施例提供的触控操作方法的第七种场景示意图。Please refer to FIG. 13 . FIG. 13 is a schematic diagram of a seventh scene of the touch operation method provided by the embodiment of the present application.
电子设备可以包括显示屏。该显示屏10的一端设有缺口,缺口区域20内设有触摸传感器。显示屏还可以包括第一异形显示区域11和第二异形显示区域12。第一异形显示区域11和第二异形显示区域12位于缺口的两侧。Electronic devices may include display screens. One end of the display screen 10 is provided with a notch, and a touch sensor is provided in the notch area 20 . The display screen may also include a first special-shaped display area 11 and a second special-shaped display area 12 . The first special-shaped display area 11 and the second special-shaped display area 12 are located on two sides of the notch.
例如,在电子设备处于亮屏解锁状态时,用户对显示屏进行了触摸操作。该触摸操作对应的触摸轨迹如图13中的轨迹61,即由缺口区域向下滑动到显示屏的区域。此时,电子设备可以获取用户对显示屏的触摸信息,并获取该触摸信息对应的指令,以及执行该指令所指示的操作。例如,电子设备执行开启截屏的操作。For example, when the electronic device is in the unlocked state with the screen turned on, the user performs a touch operation on the display screen. The touch track corresponding to this touch operation is shown as track 61 in FIG. 13 , that is, slides down from the notch area to the area of the display screen. At this time, the electronic device may obtain the user's touch information on the display screen, obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction. For example, the electronic device performs an operation of enabling screen capture.
又如,在电子设备处于亮屏解锁状态时,用户对显示屏进行了触摸操作。该触摸操作对应的触摸轨迹如图13中的轨迹62,即由第一异形显示区域向下滑动到显示屏的区域。此时,电子设备可以获取用户对显示屏的触摸信息,并获取该触摸信息对应的指令,以及执行该指令所指示的操作。例如,电子设备开启分屏显示功能。For another example, when the electronic device is in the unlocked state with the screen turned on, the user performs a touch operation on the display screen. The touch track corresponding to this touch operation is shown as track 62 in FIG. 13 , that is, the first special-shaped display area slides down to the area of the display screen. At this time, the electronic device may obtain the user's touch information on the display screen, obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction. For example, the electronic device enables a split-screen display function.
再如,在电子设备处于亮屏解锁状态时,用户对显示屏进行了触摸操作。该触摸操作对应的触摸轨迹如图13中的轨迹63,即由第二异形显示区域向下滑动到显示屏的区域。此时,电子设备可以获取用户对显示屏的触摸信息,并获取该触摸信息对应的指令,以及执行该指令所指示的操作。例如,电子设备执行打开多任务控制面板的操作。For another example, when the electronic device is in the unlocked state with the screen turned on, the user performs a touch operation on the display screen. The touch track corresponding to the touch operation is shown as track 63 in FIG. 13 , that is, the second special-shaped display area slides down to the area of the display screen. At this time, the electronic device may obtain the user's touch information on the display screen, obtain an instruction corresponding to the touch information, and execute the operation indicated by the instruction. For example, the electronic device performs an operation of opening a multitasking control panel.
请参阅图14,图14为本申请实施例提供的触控操作装置的结构示意图。该触控操作装置可以应用于电子设备,所述电子设备包括显示屏,所述显示屏的一端设有缺口,缺口区域内设有触摸传感器,所述显示屏还包括第一异形显示区域和第二异形显示区域,所述第一异形显示区域和所述第二异形显示区域位于所述缺口两侧。触控操作装置700可以包括:第一获取模块701,第二获取模块702,执行模块703。Please refer to FIG. 14 . FIG. 14 is a schematic structural diagram of a touch operation device provided by an embodiment of the present application. The touch operation device can be applied to electronic equipment, and the electronic equipment includes a display screen, a notch is provided at one end of the display screen, and a touch sensor is provided in the notch area, and the display screen also includes a first special-shaped display area and a second display area. Two special-shaped display areas, the first special-shaped display area and the second special-shaped display area are located on both sides of the gap. The touch operation device 700 may include: a first acquisition module 701 , a second acquisition module 702 , and an execution module 703 .
第一获取模块701,用于通过所述触摸传感器,获取触摸信息,所述触摸信息表示的触摸操作的起点或终点位于所述缺口区域。The first acquiring module 701 is configured to acquire touch information through the touch sensor, and the touch information indicates that the start point or end point of the touch operation is located in the notch area.
第二获取模块702,用于获取所述触摸信息对应的指令;The second acquiring module 702 is configured to acquire an instruction corresponding to the touch information;
执行模块703,用于执行所述指令所指示的操作。The executing module 703 is configured to execute the operation indicated by the instruction.
在一种实施方式中,所述第一获取模块701可以用于:In an implementation manner, the first obtaining module 701 may be used to:
获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述缺口区域且终点位于所述第一异形显示区域。Acquiring touch information, wherein the starting point of the touch operation represented by the touch information is located in the notch area and the end point is located in the first special-shaped display area.
在一种实施方式中,所述第一获取模块701可以用于:In an implementation manner, the first obtaining module 701 may be used to:
获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述缺口区域且终点位于所述第二异形显示区域。Acquiring touch information, wherein the start point of the touch operation represented by the touch information is located in the notch area and the end point is located in the second special-shaped display area.
在一种实施方式中,所述第一获取模块701可以用于:In an implementation manner, the first obtaining module 701 may be used to:
获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述第一异形显示区域且终点位于所述缺口区域。Acquiring touch information, wherein the start point of the touch operation indicated by the touch information is located in the first special-shaped display area and the end point is located in the notch area.
在一种实施方式中,所述第一获取模块701可以用于:In an implementation manner, the first obtaining module 701 may be used to:
获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述第二异形显示区域且终点位于所述缺口区域。Acquiring touch information, wherein the start point of the touch operation represented by the touch information is located in the second special-shaped display area and the end point is located in the notch area.
在一种实施方式中,所述第一获取模块701可以用于:In an implementation manner, the first obtaining module 701 may be used to:
获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述缺口区域,且终点位于所述显示屏中除所述第一异形显示区域和所述第二异形显示区域外的区域。Acquiring touch information, wherein the start point of the touch operation indicated by the touch information is located in the notch area, and the end point is located in an area of the display screen other than the first special-shaped display area and the second special-shaped display area.
在一种实施方式中,所述第一获取模块701可以用于:获取在所述起点位置检测到的第一压力值,以及在所述终点位置检测到的第二压力值;In an implementation manner, the first obtaining module 701 may be configured to: obtain a first pressure value detected at the starting point and a second pressure value detected at the end point;
那么,所述第二获取模块702可以用于:若所述第一压力值和所述第二压力值均达到预设压力阈值,则获取所述触摸信息对应的指令。Then, the second obtaining module 702 may be configured to: if both the first pressure value and the second pressure value reach a preset pressure threshold, obtain an instruction corresponding to the touch information.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的触控操作方法中的步骤。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is made to perform the steps in the touch operation method provided in this embodiment. .
本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的触控操作方法中的步骤。The embodiment of the present application also provides an electronic device, including a memory and a processor, and the processor is used to execute the steps in the touch operation method provided in this embodiment by invoking a computer program stored in the memory.
例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图15,图15为本申请实施例提供的电子设备的结构示意图。For example, the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG. 15 . FIG. 15 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
该电子设备800可以包括显示屏801、存储器802、处理器803等部件。本领域技术人员可以理解,图15中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device 800 may include components such as a display screen 801 , a memory 802 , and a processor 803 . Those skilled in the art can understand that the structure of the electronic device shown in FIG. 15 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
显示屏801可以用于显示图文等。显示屏801的一端设有缺口,缺口区域内设有触摸传感器,显示屏801还包括第一异形显示区域和第二异形显示区域,第一异形显示区域和第二异形显示区域位于缺口两侧。The display screen 801 can be used for displaying pictures and texts and the like. One end of the display screen 801 is provided with a notch, and a touch sensor is provided in the notch area. The display screen 801 also includes a first special-shaped display area and a second special-shaped display area, and the first special-shaped display area and the second special-shaped display area are located on both sides of the notch.
存储器802可用于存储应用程序和数据。存储器802存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器803通过运行存储在存储器802的应用程序,从而执行各种功能应用以及数据处理。Memory 802 may be used to store applications and data. The application programs stored in the memory 802 include executable codes. Applications can be composed of various functional modules. The processor 803 executes various functional applications and data processing by running the application programs stored in the memory 802 .
处理器803是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器802内的应用程序,以及调用存储在存储器802内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 803 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing the application program stored in the memory 802 and calling the data stored in the memory 802, the electronic device executes Various functions and processing data, so as to monitor the electronic equipment as a whole.
在本实施例中,电子设备中的处理器803会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器802中,并由处理器803来运行存储在存储器802中的应用程序,从而实现步骤:In this embodiment, the processor 803 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 802 according to the following instructions, and the processor 803 runs the executable code stored in the memory. 802 in the application, thereby implementing the steps:
通过所述触摸传感器,获取触摸信息,所述触摸信息表示的触摸操作的起点或终点位于所述缺口区域;Acquiring touch information through the touch sensor, where the start point or end point of the touch operation indicated by the touch information is located in the notch area;
获取所述触摸信息对应的指令;Obtain an instruction corresponding to the touch information;
执行所述指令所指示的操作。Perform the operation indicated by the instruction.
请参阅图16,电子设备900可以包括显示屏901、存储器902、处理器903、输入单元904、输出单元905等部件。Referring to FIG. 16 , an electronic device 900 may include a display screen 901 , a memory 902 , a processor 903 , an input unit 904 , an output unit 905 and other components.
显示屏901可以用于显示图文等。显示屏901的一端设有缺口,缺口区域内设有触摸传感器,显示屏901还包括第一异形显示区域和第二异形显示区域,第一异形显示区域和第二异形显示区域位于缺口两侧。The display screen 901 can be used to display pictures and texts and the like. One end of the display screen 901 is provided with a notch, and a touch sensor is provided in the notch area. The display screen 901 also includes a first special-shaped display area and a second special-shaped display area, and the first special-shaped display area and the second special-shaped display area are located on both sides of the notch.
存储器902可用于存储应用程序和数据。存储器902存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器903通过运行存储在存储器902的应用程序,从而执行各种功能应用以及数据处理。Memory 902 may be used to store applications and data. The application programs stored in the memory 902 include executable codes. Applications can be composed of various functional modules. The processor 903 executes various functional applications and data processing by running the application programs stored in the memory 902 .
处理器903是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器902内的应用程序,以及调用存储在存储器902内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 903 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing the application program stored in the memory 902 and calling the data stored in the memory 902, the electronic device executes Various functions and processing data, so as to monitor the electronic equipment as a whole.
输入单元904可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The input unit 904 can be used to receive input numbers, character information or user characteristic information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.
输出单元905可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。输出单元可包括显示面板。The output unit 905 can be used to display information input by or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The output unit may include a display panel.
在本实施例中,电子设备中的处理器903会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器902中,并由处理器903来运行存储在存储器902中的应用程序,从而实现步骤:In this embodiment, the processor 903 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 902 according to the following instructions, and the processor 903 runs the executable code stored in the memory. 902 in the application, thereby implementing the steps:
通过所述触摸传感器,获取触摸信息,所述触摸信息表示的触摸操作的起点或终点位于所述缺口区域;Acquiring touch information through the touch sensor, where the start point or end point of the touch operation indicated by the touch information is located in the notch area;
获取所述触摸信息对应的指令;Obtain an instruction corresponding to the touch information;
执行所述指令所指示的操作。Perform the operation indicated by the instruction.
在一种实施方式中,处理器903执行所述获取触摸信息的步骤时,可以执行:获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述缺口区域且终点位于所述第一异形显示区域。In one implementation manner, when the processor 903 executes the step of acquiring touch information, it may perform: acquire touch information, wherein the start point of the touch operation represented by the touch information is located in the notch area and the end point is located in the first Shaped display area.
在一种实施方式中,处理器903执行所述获取触摸信息的步骤时,可以执行:获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述缺口区域且终点位于所述第二异形显示区域。In one implementation manner, when the processor 903 executes the step of acquiring touch information, it may perform: acquire touch information, wherein the touch operation represented by the touch information has a starting point located in the notch area and an end point located in the second Shaped display area.
在一种实施方式中,处理器903执行所述获取触摸信息的步骤时,可以执行:获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述第一异形显示区域且终点位于所述缺口区域。In one implementation manner, when the processor 903 executes the step of acquiring touch information, it may perform: acquire touch information, wherein the touch operation represented by the touch information has a starting point located in the first special-shaped display area and an end point located in the the notch area.
在一种实施方式中,处理器903执行所述获取触摸信息的步骤时,可以执行:获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述第二异形显示区域且终点位于所述缺口区域。In one implementation manner, when the processor 903 executes the step of acquiring touch information, it may perform: acquire touch information, wherein the touch operation represented by the touch information has a start point located in the second special-shaped display area and an end point located in the the notch area.
在一种实施方式中,处理器903执行获取触摸信息的步骤时,可以执行:获取触摸信息,其中所述触摸信息表示的触摸操作的起点位于所述缺口区域,且终点位于所述显示屏中除所述第一异形显示区域和所述第二异形显示区域外的区域。In one implementation manner, when the processor 903 executes the step of acquiring touch information, it may perform: acquire touch information, wherein the starting point of the touch operation represented by the touch information is located in the notch area, and the end point is located in the display screen Areas other than the first special-shaped display area and the second special-shaped display area.
在一种实施方式中,在获取触摸信息的步骤之后,处理器903还可以执行:获取在所述起点位置检测到的第一压力值,以及在所述终点位置检测到的第二压力值。In an implementation manner, after the step of acquiring the touch information, the processor 903 may further execute: acquiring a first pressure value detected at the start position and a second pressure value detected at the end position.
那么,处理器903执行所述获取所述触摸信息对应的触控指令的步骤时,可以执行:若所述第一压力值和所述第二压力值均达到预设压力阈值,则获取所述触摸信息对应的指令。Then, when the processor 903 executes the step of acquiring the touch instruction corresponding to the touch information, it may execute: if both the first pressure value and the second pressure value reach a preset pressure threshold, then acquire the Touch the command corresponding to the message.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对触控操作方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the detailed description of the touch operation method above, and will not be repeated here.
本申请实施例提供的所述触控操作装置与上文实施例中的触控操作方法属于同一构思,在所述触控操作装置上可以运行所述触控操作方法实施例中提供的任一方法,其具体实现过程详见所述触控操作方法实施例,此处不再赘述。The touch operation device provided in the embodiment of the present application belongs to the same idea as the touch operation method in the above embodiments, and any of the touch operation methods provided in the embodiments of the touch operation method can be run on the touch operation device. method, and its specific implementation process can be found in the embodiment of the touch operation method, and will not be repeated here.
需要说明的是,对本申请实施例所述触控操作方法而言,本领域普通技术人员可以理解实现本申请实施例所述触控操作方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述触控操作方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the touch operation method described in the embodiment of the present application, those skilled in the art can understand that all or part of the flow of the touch operation method described in the embodiment of the application can be controlled by a computer program. hardware, the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the implementation of the touch operation method example process. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.
对本申请实施例的所述触控操作装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the touch operation device in the embodiment of the present application, its various functional modules may be integrated into one processing chip, or each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .
以上对本申请实施例所提供的一种触控操作方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A touch operation method, device, storage medium, and electronic equipment provided by the embodiments of the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments It is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this The content of the description should not be construed as limiting the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810678567.2ACN108984024B (en) | 2018-06-27 | 2018-06-27 | Touch operation method, device, storage medium and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810678567.2ACN108984024B (en) | 2018-06-27 | 2018-06-27 | Touch operation method, device, storage medium and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN108984024Atrue CN108984024A (en) | 2018-12-11 |
| CN108984024B CN108984024B (en) | 2021-07-20 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810678567.2AExpired - Fee RelatedCN108984024B (en) | 2018-06-27 | 2018-06-27 | Touch operation method, device, storage medium and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN108984024B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111489990A (en)* | 2020-04-17 | 2020-08-04 | 大族激光科技产业集团股份有限公司 | Glass display screen splitting device, glass display screen splitting method and glass display screen cutting system |
| CN112558808A (en)* | 2020-12-02 | 2021-03-26 | 惠州Tcl移动通信有限公司 | Unlocking method and device for bang screen, terminal and storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105549868A (en)* | 2015-07-25 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal operation processing method and apparatus and mobile terminal |
| CN105786354A (en)* | 2016-02-29 | 2016-07-20 | 宇龙计算机通信科技(深圳)有限公司 | Hidden application opening method and device |
| CN107402703A (en)* | 2017-07-28 | 2017-11-28 | 维沃移动通信有限公司 | A kind of control method by sliding and mobile terminal |
| CN107611142A (en)* | 2017-09-11 | 2018-01-19 | 上海天马有机发光显示技术有限公司 | Display panel and display device |
| CN108089795A (en)* | 2018-01-22 | 2018-05-29 | 广东欧珀移动通信有限公司 | Touch operation method and device, storage medium and electronic equipment |
| CN108196714A (en)* | 2018-01-02 | 2018-06-22 | 联想(北京)有限公司 | A kind of electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105549868A (en)* | 2015-07-25 | 2016-05-04 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal operation processing method and apparatus and mobile terminal |
| CN105786354A (en)* | 2016-02-29 | 2016-07-20 | 宇龙计算机通信科技(深圳)有限公司 | Hidden application opening method and device |
| CN107402703A (en)* | 2017-07-28 | 2017-11-28 | 维沃移动通信有限公司 | A kind of control method by sliding and mobile terminal |
| CN107611142A (en)* | 2017-09-11 | 2018-01-19 | 上海天马有机发光显示技术有限公司 | Display panel and display device |
| CN108196714A (en)* | 2018-01-02 | 2018-06-22 | 联想(北京)有限公司 | A kind of electronic equipment |
| CN108089795A (en)* | 2018-01-22 | 2018-05-29 | 广东欧珀移动通信有限公司 | Touch operation method and device, storage medium and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111489990A (en)* | 2020-04-17 | 2020-08-04 | 大族激光科技产业集团股份有限公司 | Glass display screen splitting device, glass display screen splitting method and glass display screen cutting system |
| CN111489990B (en)* | 2020-04-17 | 2024-03-12 | 深圳市大族半导体装备科技有限公司 | Splitting device, splitting method and cutting system for glass display screen |
| CN112558808A (en)* | 2020-12-02 | 2021-03-26 | 惠州Tcl移动通信有限公司 | Unlocking method and device for bang screen, terminal and storage medium |
| Publication number | Publication date |
|---|---|
| CN108984024B (en) | 2021-07-20 |
| Publication | Publication Date | Title |
|---|---|---|
| JP6338829B2 (en) | Multiple input processing method and apparatus | |
| US20120289290A1 (en) | Transferring objects between application windows displayed on mobile terminal | |
| CN106415472B (en) | Gesture control method and device, terminal equipment and storage medium | |
| CN108984093B (en) | Touch operation method, device, storage medium and electronic device | |
| CN108984089B (en) | Touch operation method, device, storage medium and electronic device | |
| CN108845751A (en) | Touch information processing method and device, storage medium and electronic equipment | |
| CN108845752A (en) | Touch operation method and device, storage medium and electronic equipment | |
| CN104216646A (en) | Method and device for creating application program based on gesture | |
| CN107391165A (en) | Control display methods, client and storage medium | |
| CN109032732A (en) | Notification display method and device, storage medium and electronic equipment | |
| EP3229132A1 (en) | Method and system for detection and resolution of frustration with a device user interface | |
| CN105677148A (en) | A search method and device for a terminal application | |
| CN111694626A (en) | Application skipping method and device, terminal and storage medium | |
| US11243679B2 (en) | Remote data input framework | |
| CN115729412A (en) | Interface display method and device | |
| CN115357177A (en) | Device control method, device, storage medium and electronic device | |
| CN108984024A (en) | Touch operation method and device, storage medium and electronic equipment | |
| CN103955326A (en) | Method and terminal for displaying information | |
| CN110570830B (en) | Device adjustment method, device, storage medium and electronic device | |
| EP3438809A1 (en) | Control instruction identification method and apparatus, and storage medium | |
| EP2849058A1 (en) | Method and device for displaying a message associated with an application | |
| CN116893770A (en) | Screenshot method, device, electronic device and readable storage medium | |
| CN112162689B (en) | Input method and device and electronic equipment | |
| CN108089792A (en) | A kind of application icon lookup method and relevant device | |
| CN105718197B (en) | A kind of screenshotss method and device |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20210720 |