[go: up one dir, main page]

CN108958627A - Touch operation method and device, storage medium and electronic equipment - Google Patents

Touch operation method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN108958627A
CN108958627A CN201810726028.1A CN201810726028A CN108958627A CN 108958627 A CN108958627 A CN 108958627A CN 201810726028 A CN201810726028 A CN 201810726028A CN 108958627 A CN108958627 A CN 108958627A
Authority
CN
China
Prior art keywords
touch
command
slide
display area
sliding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810726028.1A
Other languages
Chinese (zh)
Other versions
CN108958627B (en
Inventor
宁梦琪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810726028.1A priority Critical patent/CN108958627B/en
Publication of CN108958627A publication Critical patent/CN108958627A/en
Application granted granted Critical
Publication of CN108958627B publication Critical patent/CN108958627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供一种触控操作方法、装置、存储介质及电子设备,该触控操作方法可以检测用户在触控显示屏上的第一滑动操作信息;根据滑动操作信息确定第一滑动操作在触控显示屏上的操作区域;当操作区域位于侧边触控显示区域内时,获取第一滑动操作的方向;当第一滑动操作的方向为预设方向时,获取预设方向对应的第一触控指令;根据触控指令对电子设备执行相应的第一触控操作;该方案可以提升电子设备的操作效率。

The embodiments of the present application provide a touch operation method, device, storage medium and electronic device. The touch operation method can detect first sliding operation information of a user on a touch display screen; determine an operation area of the first sliding operation on the touch display screen according to the sliding operation information; when the operation area is located in the side touch display area, obtain the direction of the first sliding operation; when the direction of the first sliding operation is a preset direction, obtain a first touch instruction corresponding to the preset direction; perform a corresponding first touch operation on the electronic device according to the touch instruction; this scheme can improve the operating efficiency of the electronic device.

Description

触控操作方法、装置、存储介质及电子设备Touch operation method, device, storage medium and electronic device

技术领域technical field

本申请涉及电子设备技术领域,特别涉及一种触控操作方法、装置、存储介质及电子设备。The present application relates to the technical field of electronic equipment, and in particular 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 touch display screen, and the touch display screen includes a main touch display area and a side touch display area. The side touch display area is connected to the main display area; the touch operation method includes:

检测用户在所述触控显示屏上的第一滑动操作信息;Detecting the first sliding operation information of the user on the touch display screen;

根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;determining an operation area of a first sliding operation on the touch display screen according to the sliding operation information;

当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;Acquiring the direction of the first sliding operation when the operation area is located in the side touch display area;

当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;When the direction of the first sliding operation is a preset direction, acquiring a first touch instruction corresponding to the preset direction;

根据所述触控指令对所述电子设备执行相应的第一触控操作。Execute a corresponding first touch operation on the electronic device according to the touch instruction.

本申请实施例还提供一种触控操作装置,应用于电子设备中,所述电子设备包括触控显示屏,所述触控显示屏包括主触控显示区域以及侧边触控显示区域,所述侧边触控显示区域与所述主显示区域连接,所述触控操作装置包括:The embodiment of the present application also provides a touch operation device, which is applied to an electronic device. The electronic device includes a touch display screen, and the touch display screen includes a main touch display area and a side touch display area. The side touch display area is connected to the main display area, and the touch operation device includes:

检测模块,用于检测用户在所述触控显示屏上的第一滑动操作信息;A detection module, configured to detect the first sliding operation information of the user on the touch display screen;

区域确定模块,用于根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;An area determining module, configured to determine an operation area of the first sliding operation on the touch display screen according to the sliding operation information;

方向获取模块,用于当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;a direction acquisition module, configured to acquire the direction of the first sliding operation when the operation area is located in the side touch display area;

指令获取模块,用于当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;An instruction acquiring module, configured to acquire a first touch instruction corresponding to the preset direction when the direction of the first sliding operation is a preset direction;

第一操作执行模块,用于根据所述触控指令对所述电子设备执行相应的第一触控操作。The first operation execution module is configured to perform a corresponding first touch operation on the electronic device according to the touch instruction.

本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,使得所述计算机执行上述触控操作方法。An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer is made to execute the above touch operation method.

本申请实施例还提供一种电子设备,包括处理器和存储器,所述存储器中存储有计算机程序,所述处理器通过调用所述存储器中存储的所述计算机程序,用于执行上述触控操作方法。The embodiment of the present application also provides an electronic device, including a processor and a memory, the memory stores a computer program, and the processor invokes the computer program stored in the memory to perform the above-mentioned touch operation method.

本申请实施例提供的触控操作方法,可以检测用户在触控显示屏上的第一滑动操作信息;根据滑动操作信息确定第一滑动操作在触控显示屏上的操作区域;当操作区域位于侧边触控显示区域内时,获取第一滑动操作的方向;当第一滑动操作的方向为预设方向时,获取预设方向对应的第一触控指令;根据触控指令对电子设备执行相应的第一触控操作;该方案可以使得用户在侧边触控显示区域进行滑动操作即可实现对电子设备的触控操作,便于用户操作,提升了电子设备的操作效率。,从而使得用户通过简单的滑动操作即可快速实现对电子设备的触控操作,可以提高电子设备的操作效率。The touch operation method provided by the embodiment of the present application can detect the user's first sliding operation information on the touch display screen; determine the operation area of the first sliding operation on the touch display screen according to the sliding operation information; When the side touches the display area, acquire the direction of the first sliding operation; when the direction of the first sliding operation is the preset direction, acquire the first touch instruction corresponding to the preset direction; execute the electronic device according to the touch instruction Corresponding to the first touch operation; this solution can enable the user to perform a touch operation on the electronic device by performing a sliding operation on the side touch display area, which is convenient for the user to operate and improves the operation efficiency of the electronic device. , so that the user can quickly realize the touch operation on the electronic device through a simple sliding operation, which can improve the operation efficiency of the electronic device.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍。显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative efforts.

图1是本申请实施例提供的触控显示屏的显示区域划分示意图。FIG. 1 is a schematic diagram of display area division of a touch display screen provided by an embodiment of the present application.

图2是本申请实施例提供的触控操作方法的流程示意图。FIG. 2 is a schematic flowchart of a touch operation method provided by an embodiment of the present application.

图3是本申请实施例提供的触控操作方法的第一种应用场景示意图。FIG. 3 is a schematic diagram of a first application scenario of the touch operation method provided by the embodiment of the present application.

图4是本申请实施例提供的触控操作方法的第二种应用场景示意图。FIG. 4 is a schematic diagram of a second application scenario of the touch operation method provided by the embodiment of the present application.

图5是本申请实施例提供的触控操作方法的第三种应用场景示意图。FIG. 5 is a schematic diagram of a third application scenario of the touch operation method provided by the embodiment of the present application.

图6是本申请实施例提供的触控显示屏的另一种区域划分示意图。FIG. 6 is a schematic diagram of another area division of the touch display screen provided by the embodiment of the present application.

图7是本申请实施例提供的触控操作方法的第四种应用场景示意图。FIG. 7 is a schematic diagram of a fourth application scenario of the touch operation method provided by the embodiment of the present application.

图8是本申请实施例提供的触控操作方法的第五种应用场景示意图。FIG. 8 is a schematic diagram of a fifth application scenario of the touch operation method provided by the embodiment of the present application.

图9是本申请实施例提供的触控操作方法的第六种应用场景示意图。FIG. 9 is a schematic diagram of a sixth application scenario of the touch operation method provided by the embodiment of the present application.

图10是本申请实施例提供的触控操作方法的另一流程示意图。FIG. 10 is another schematic flowchart of the touch operation method provided by the embodiment of the present application.

图11是本申请实施例提供的触控操作装置的第一种结构示意图。FIG. 11 is a schematic diagram of a first structure of a touch operation device provided by an embodiment of the present application.

图12是本申请实施例提供的触控操作装置的第二种结构示意图。FIG. 12 is a schematic diagram of a second structure of a touch operation device provided by an embodiment of the present application.

图13是本申请实施例提供的触控操作装置的第三种结构示意图。FIG. 13 is a schematic diagram of a third structure of a touch operation device provided by an embodiment of the present application.

图14是本申请实施例提供的电子设备的第一种结构示意图。FIG. 14 is a schematic diagram of a first structure of an electronic device provided by an embodiment of the present application.

图15是本申请实施例提供的电子设备的第二种结构示意图。FIG. 15 is a schematic diagram of a second structure of an electronic device provided by an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请的保护范围。The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Apparently, the described embodiments are only some of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of this application.

本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、电子设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、电子设备或系统固有的其它步骤或模块或单元。The terms "first", "second", "third", etc. (if any) in the description and claims of the present application and the above drawings are used to distinguish similar objects and not necessarily to describe a specific order or sequentially. It should be understood that the items so described are interchangeable under appropriate circumstances. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, a method comprising a series of steps, or an apparatus comprising a series of modules or units, an electronic device, a system are not necessarily limited to those steps or modules or units clearly listed, and may also include steps not clearly listed or modules or units, may also include other steps or modules or units inherent to these processes, methods, devices, electronic equipment or systems.

本申请实施例提供一种触控操作方法,所述触控操作方法可以应用于电子设备中。所述电子设备可以是智能手机、平板电脑等设备。An embodiment of the present application provides a touch operation method, which can be applied to an electronic device. The electronic device may be a smart phone, a tablet computer or the like.

其中,参考图1,电子设备可以包括触控显示屏10,该触控显示屏10可以包括主触控显示区域11和侧边触控显示区域12,主触控显示区域11和侧边触控显示区域12连接。主触控显示区域11具有触控功能和显示功能,也即电子设备可以在主触控显示区域11显示信息如文字、图片等,此外,用户还可以在主触控显示区域11进行触控操作如点击操作、滑动操作等等,以实现对电子设备进行控制等。Wherein, referring to FIG. 1 , the electronic device may include a touch display screen 10, and the touch display screen 10 may include a main touch display area 11 and a side touch display area 12, and the main touch display area 11 and the side touch display area The display area 12 is connected. The main touch display area 11 has a touch function and a display function, that is, the electronic device can display information such as text, pictures, etc. in the main touch display area 11. In addition, the user can also perform touch operations on the main touch display area 11 For example, a click operation, a slide operation, etc., so as to control the electronic device, etc.

侧边触控显示区域12具有触控功能和显示功能,用户可以在侧边触控显示区域12中进行触控操作如点击操作、滑动操作等等。实际应用中,电子设备可以包括两个侧边触控显示区域12,即左侧边触控显示区域、右侧边触控显示区域。参考图1,在一些实施例中,电子设备的触控显示屏10可以仅包括一个侧边触控显示区域,如左侧边触控显示区域、或者右侧边触控显示区域。The side touch display area 12 has a touch function and a display function, and the user can perform touch operations in the side touch display area 12 such as click operations, slide operations, and the like. In practical applications, the electronic device may include two side touch display areas 12 , namely, a left side touch display area and a right side touch display area. Referring to FIG. 1 , in some embodiments, the touch display screen 10 of an electronic device may only include one side touch display area, such as a left side touch display area or a right side touch display area.

在一些实施例中,侧边触控显示区域12可以不具有显示功能,也即侧边触控显示区域12仅仅具有触控功能,作为主触控显示区域11的辅助触控区域。In some embodiments, the side touch display area 12 may not have a display function, that is, the side touch display area 12 only has a touch function, and serves as an auxiliary touch area of the main touch display area 11 .

在一些实施例中,侧边触控显示区域12也可以具有显示功能,也即侧边触控显示区域12可以为侧边触控显示区域。也即,电子设备可以通过侧边触控显示区域12显示信息如文字、图片等。此时,侧边触控显示区域12可以为主触控显示区域11的辅助显示区域。In some embodiments, the side touch display area 12 may also have a display function, that is, the side touch display area 12 may be a side touch display area. That is, the electronic device can display information such as text, pictures, etc. through the side touch display area 12 . At this time, the side touch display area 12 can be an auxiliary display area of the main touch display area 11 .

其中,侧边触控显示区域12的形状可以根据实际需求设定;例如,在一些实施例中,触控显示屏10可以为曲面触控显示屏,该侧边触控显示区域12可以弧形区域,电子设备可以在侧边触控显示区域12具有与主触控显示区域11相同的功能,用户可以在主触控显示区域11、或侧边触控显示区域12进行触控操作等。Wherein, the shape of the side touch display area 12 can be set according to actual needs; for example, in some embodiments, the touch display screen 10 can be a curved touch display screen, and the side touch display area 12 can be curved area, the electronic device can have the same function as the main touch display area 11 in the side touch display area 12 , and the user can perform touch operations in the main touch display area 11 or the side touch display area 12 .

基于上述的电子设备,在一些实施例中,如图2所示,所述触控操作方法,可以包括以下步骤:Based on the above-mentioned electronic device, in some embodiments, as shown in FIG. 2, the touch operation method may include the following steps:

101、检测用户在所述触控显示屏上的第一滑动操作信息。101. Detect first sliding operation information of a user on the touch display screen.

其中,用户在触控显示屏上的滑动操作信息可以包括:滑动操作的位置信息(如滑动操作起始点、终点的位置信息)、滑动距离、滑动方向等等。Wherein, the user's sliding operation information on the touch display screen may include: location information of the sliding operation (such as location information of a starting point and an ending point of the sliding operation), sliding distance, sliding direction, and the like.

用户对触控显示屏进行滑动操作时,会在触控显示屏上形成滑动轨迹。滑动轨迹由滑动过程中显示屏上的每一个按压点构成。用户对显示屏进行滑动操作时,电子设备会检测用户在显示屏上的滑动轨迹的各按压点位置信息,比如起始点、终点位置信息等。其中,起始点即为用户在滑动操作中,在所述显示屏上的第一个按压点。终点即为用户在滑动操作中,在所述显示屏上的最后一个按压点。When the user performs a sliding operation on the touch display screen, a sliding track will be formed on the touch display screen. The swipe trajectory consists of each press point on the display during the swipe. When the user performs a sliding operation on the display screen, the electronic device will detect position information of each pressing point of the user's sliding track on the display screen, such as starting point, end point position information, and the like. Wherein, the starting point is the user's first pressing point on the display screen during the sliding operation. The end point is the last pressing point of the user on the display screen during the sliding operation.

因此,在一实施例中,滑动操作信息可以滑动轨迹信息,该滑动轨迹信息可以包括按压点的位置信息、滑动轨迹长度、滑动轨迹方向等等。Therefore, in an embodiment, the sliding operation information may be sliding track information, and the sliding track information may include position information of the pressing point, length of the sliding track, direction of the sliding track, and the like.

102、根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域。102. Determine an operation area of a first sliding operation on the touch display screen according to the sliding operation information.

比如,在一实施例中,可以根据滑动操作的位置信息如起始点位置信息以及终点位置信息,确定第一滑动操作在触控显示屏上的操作区域For example, in one embodiment, the operation area of the first sliding operation on the touch screen can be determined according to the position information of the sliding operation, such as the starting point position information and the end point position information

例如,可以建立触控显示屏的坐标系,当用户在触控显示屏进行滑动操作时,可以检测或记录滑动操作的坐标信息(如横轴坐标x、纵轴坐标y等),如起始点坐标信息、终点坐标信息,然后,基于坐标信息构建滑动操作在触控显示屏的操作区域。For example, the coordinate system of the touch screen can be established. When the user performs a sliding operation on the touch screen, the coordinate information of the sliding operation (such as the coordinate x on the horizontal axis, the coordinate y on the vertical axis, etc.), such as the starting point, can be detected or recorded. Coordinate information, end point coordinate information, and then, based on the coordinate information, the sliding operation is constructed in the operation area of the touch display screen.

譬如,可以基于起始点与终点之间的距离(如横轴方向的距离、纵轴方向的距离)构建滑动操作的操作区域。For example, the operation area of the sliding operation may be constructed based on the distance between the start point and the end point (such as the distance along the horizontal axis and the distance along the vertical axis).

103、当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向。103. Acquire the direction of the first sliding operation when the operation area is located in the side touch display area.

在确定滑动操作的操作区域之后,可以判断操作区域是否位于侧边触控显示区域,也即判断用户是否在侧边触控显示区域内进行滑动操作,若是,则可以获取滑动操作的方向。After determining the operation area of the slide operation, it can be determined whether the operation area is located in the side touch display area, that is, whether the user performs a slide operation in the side touch display area, and if so, the direction of the slide operation can be obtained.

在一实施例中,滑动操作信息可以包括滑动操作的方向,此时,可以直接提取该滑动操作的方向即可。In an embodiment, the sliding operation information may include the direction of the sliding operation, and in this case, the direction of the sliding operation may be directly extracted.

其中,滑动操作的方向可以为用户在触控显示屏上的滑动方向,具体地滑动方向可以根据实际需求来定义,如上下左右等;比如,从显示屏下方向显示屏上方滑动、向显示屏左侧滑动、向显示屏下方滑动等等。Wherein, the direction of the sliding operation can be the sliding direction of the user on the touch screen, and specifically the sliding direction can be defined according to actual needs, such as up, down, left, right, etc.; Swipe left, swipe down the display, and more.

在一实施例中,滑动方向可以基于滑动操作的按压点的位置变化确定,比如,滑动操作的按压点纵轴方向的位置逐渐增大时,可以确定滑动方向为向上滑动。In an embodiment, the sliding direction may be determined based on the position change of the pressing point of the sliding operation. For example, when the position of the pressing point of the sliding operation in the longitudinal axis direction gradually increases, the sliding direction may be determined to be upward sliding.

104、当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令。104. When the direction of the first sliding operation is a preset direction, acquire a first touch instruction corresponding to the preset direction.

其中,预设方向可以为根据实际需求设定,比如,可以为由下向上(即上滑),由上向下(即下滑),由左至右等。Wherein, the preset direction can be set according to actual needs, for example, it can be from bottom to top (ie, slide up), from top to bottom (ie, slide down), from left to right, and so on.

本申请实施例在确定用户在侧边触控显示区域内进行滑动操作时,可以进一步确定滑动操作的方向是否为预设方向,比如,确定滑动操作的方向为上滑时,可以获取在侧边触控显示区域上滑对应的触控指令。In the embodiment of the present application, when it is determined that the user performs a sliding operation in the side touch display area, it can further determine whether the direction of the sliding operation is a preset direction. For example, when it is determined that the direction of the sliding operation is sliding up, the Swipe up on the touch display area to correspond to the touch command.

其中,触控指令可以为根据实际需求设定,比如,可以返回指令、返回主界面指令、锁屏指令、解锁指令、音量调节指令、截屏指令、任务管理指令、相机开启指令、网络连接指令等等。Among them, the touch command can be set according to actual needs, such as return command, return to the main interface command, lock screen command, unlock command, volume adjustment command, screenshot command, task management command, camera start command, network connection command, etc. Wait.

例如,当确定第一滑动操作的方向为由向上的方向,此时,获取该方向对应的返回指令。For example, when it is determined that the direction of the first sliding operation is an upward direction, at this time, a return instruction corresponding to the direction is acquired.

在一实施例中,为提升触控操作的准确性,防止误操作,还可以结合滑动距离来获取触控指令,并执行相应的触控操作。比如,第一滑动操作信息可以包括第一滑动操作的位置信息以及滑动距离;此时,可以根据所述位置信息确定第一滑动操作在所述触控显示屏上的操作区域;当操作区域位于侧边触控显示区域内时,可以获取第一滑动操作的方向;当所述第一滑动操作的方向为预设方向,且所述滑动距离大于预设距离时,获取所述预设方向对应的第一触控指令。In an embodiment, in order to improve the accuracy of the touch operation and prevent misoperation, the touch instruction may be acquired in combination with the sliding distance, and the corresponding touch operation may be performed. For example, the first sliding operation information may include the position information and the sliding distance of the first sliding operation; at this time, the operating area of the first sliding operation on the touch display screen may be determined according to the position information; when the operating area is located When the side touches the display area, the direction of the first sliding operation can be obtained; when the direction of the first sliding operation is a preset direction, and the sliding distance is greater than the preset distance, the corresponding The first touch command for .

在一实施例中,当滑动距离不大于预设距离时,电子设备不执行任何操作,也即电子设备不对用户的滑动操作给出任何响应。In an embodiment, when the sliding distance is not greater than the preset distance, the electronic device does not perform any operation, that is, the electronic device does not give any response to the user's sliding operation.

其中,本申请实施例中的滑动距离可以为滑动操作的起始点与终点之间的距离,该距离可以为直线距离、或者弧线距离等等。Wherein, the sliding distance in the embodiment of the present application may be the distance between the start point and the end point of the sliding operation, and the distance may be a straight line distance, an arc distance, or the like.

例如,参考图4,假设预设方向为上滑和预设距离为S,电子设备显示应用页面A,当用户在侧边触控显示区域12中向上进行滑动操作,并且滑动S1距离时,电子设备可以检测到滑动操作信息,然后,根据滑动操作信息确定滑动操作在触控显示屏上的操作区域,此时,可以确定操作区域位于侧边触控显示区域12内,电子设备可以获取滑动操作的方向即上滑,如果确定滑动操作的方向为预设方向,并且S1大于S,那么电子设备可以获取上滑对应的返回指令,电子设备根据返回指令可以返回显示应用页面A的之前应用B。如果滑动操作的滑动距离为S2时,确定滑动操作的方向为预设方向,并且S2小于S,电子设备不执行任何操作,此时电子设备还是继续显示应用页面A。For example, referring to FIG. 4 , assuming that the preset direction is sliding up and the preset distance is S, and the electronic device displays the application page A, when the user performs an upward sliding operation in the side touch display area 12 and slides the distance S1, the electronic device displays the application page A. The device can detect the sliding operation information, and then determine the operation area of the sliding operation on the touch display screen according to the sliding operation information. At this time, it can be determined that the operating area is located in the side touch display area 12, and the electronic device can obtain the sliding operation If it is determined that the direction of the sliding operation is the preset direction and S1 is greater than S, then the electronic device can obtain a return instruction corresponding to the upward slide, and the electronic device can return to the previous application B that displayed the application page A according to the return instruction. If the sliding distance of the sliding operation is S2, it is determined that the direction of the sliding operation is the preset direction, and S2 is smaller than S, the electronic device does not perform any operation, and the electronic device continues to display the application page A at this time.

在一些实施例中,为提升触控操作的准确性,防止误操作,还可以结合滑动速度来获取触控指令,并执行相应的触控操作。比如,第一滑动操作信息可以包括第一滑动操作的位置信息以及滑动速度;此时,可以根据所述位置信息确定第一滑动操作在所述触控显示屏上的操作区域;当操作区域位于侧边触控显示区域内时,可以获取第一滑动操作的方向;当所述第一滑动操作的方向为预设方向,且所述滑动速度大于预设速度时,获取所述预设方向对应的第一触控指令。In some embodiments, in order to improve the accuracy of the touch operation and prevent misoperation, the touch command can be acquired in combination with the sliding speed, and the corresponding touch operation can be performed. For example, the first sliding operation information may include position information and sliding speed of the first sliding operation; at this time, the operating area of the first sliding operation on the touch display screen may be determined according to the position information; when the operating area is located at When the side touches the display area, the direction of the first sliding operation can be obtained; when the direction of the first sliding operation is a preset direction, and the sliding speed is greater than the preset speed, the corresponding The first touch command for .

其中,本申请实施例中的滑动速度可以为滑动操作的滑动速度,比如,手指在触控显示屏上的滑动速度等。在一些实施例中,滑动速度可以为滑动操作的平均滑动速度、起始滑动速度或者终点滑动速度等等。Wherein, the sliding speed in the embodiment of the present application may be a sliding speed of a sliding operation, for example, a sliding speed of a finger on a touch screen. In some embodiments, the sliding speed may be an average sliding speed, an initial sliding speed or an ending sliding speed of a sliding operation, and the like.

在一实施例中,当滑动速度不大于预设距离时,电子设备不执行任何操作,也即电子设备不对用户的滑动操作给出任何响应。In an embodiment, when the sliding speed is not greater than the preset distance, the electronic device does not perform any operation, that is, the electronic device does not give any response to the user's sliding operation.

例如,参考图5,假设预设方向为上滑和预设速度为V,电子设备显示应用页面A,当用户在侧边触控显示区域12中向上进行滑动操作时,电子设备可以检测到滑动操作信息(滑动操作的围着信息以及滑动速度V1),然后,根据滑动操作的位置信息确定滑动操作在触控显示屏上的操作区域,此时,可以确定操作区域位于侧边触控显示区域12内,电子设备可以获取滑动操作的方向即上滑,如果确定滑动操作的方向为预设方向,并且V1大于V,那么电子设备可以获取上滑对应的返回桌面指令,电子设备根据返回桌面指令可以返回显示桌面。如果滑动操作的滑动速度为V2时,确定滑动操作的方向为预设方向,并且V2小于V,电子设备不执行任何操作,此时电子设备还是继续显示应用页面A。For example, referring to FIG. 5 , assuming that the preset direction is sliding up and the preset speed is V, and the electronic device displays the application page A, when the user slides upward in the side touch display area 12, the electronic device can detect the sliding Operation information (the surrounding information of the sliding operation and the sliding speed V1), and then determine the operating area of the sliding operation on the touch screen according to the position information of the sliding operation. At this time, it can be determined that the operating area is located in the side touch display area In 12, the electronic device can obtain the direction of the sliding operation, that is, slide up. If it is determined that the direction of the sliding operation is the preset direction, and V1 is greater than V, then the electronic device can obtain the command to return to the desktop corresponding to the slide up, and the electronic device can follow the command to return to the desktop You can return to displaying the desktop. If the sliding speed of the sliding operation is V2, it is determined that the direction of the sliding operation is the preset direction, and V2 is less than V, the electronic device does not perform any operation, and the electronic device continues to display the application page A at this time.

在一些实施例中,侧边触控显示区域可以包括依次相邻的多个子侧边触控显示区域;此时,可以基于操作区域所处的子侧边触控显示区域以及滑动方向来选取触控指令。In some embodiments, the side touch display area may include multiple adjacent sub-side touch display areas; control command.

也即,步骤“当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的触控指令”,可以包括:That is, the step "acquire a touch command corresponding to the preset direction when the direction of the first sliding operation is a preset direction" may include:

当所述第一滑动操作的方向为预设方向时,获取与预设方向对应的候选触控指令;When the direction of the first sliding operation is a preset direction, acquiring a candidate touch command corresponding to the preset direction;

确定所述操作区域所处的目标子侧边触控显示区域;Determine the target sub-side touch display area where the operation area is located;

根据目标子侧边触控显示区域从所述候选触控指令选取第一触控指令。A first touch command is selected from the candidate touch commands according to the target sub-side touch display area.

其中,操作区域所处的目标子侧边触控显示区域可以一个或者多个,比如,操作区域完全位于某个子侧边触控显示区域,此时,目标子侧边触控显示区域为一个;或者,操作区域一部分位于一个子侧边触控显示区域、另一部分位于另一个子侧边触控显示区域,此时目标子侧边触控显示区域为两个。Wherein, the target sub-side touch display area where the operation area is located can be one or more. For example, the operation area is completely located in a certain sub-side touch display area. At this time, there is one target sub-side touch display area; Alternatively, part of the operation area is located in one sub-side touch display area, and the other part is located in the other sub-side touch display area. In this case, there are two target sub-side touch display areas.

其中,预设方向对应的候选触控指令可以为不同类型的触控指令,比如,返回类型指令(包括返回上一级指令、返回桌面指令、返回应用指令)、截屏类型指令(如快速截屏指令、定时截屏指令等等)、锁屏类型的指令(如快速锁屏指令、定时锁屏指令等等)。Among them, the candidate touch commands corresponding to the preset direction can be different types of touch commands, for example, return type commands (including return to the previous level command, return to the desktop command, and return to the application command), screen capture type commands (such as quick screen capture commands) , scheduled screen capture instructions, etc.), lock screen type instructions (such as quick lock screen instructions, timed screen lock instructions, etc.).

在一些实施例中,预设方向对应的候选触控指令也可以为相同类型的触控指令,比如,均为返回类型指令,如返回上一级指令、返回桌面指令、返回应用指令等等。In some embodiments, the candidate touch commands corresponding to the preset directions may also be touch commands of the same type, for example, they are all return type commands, such as a return to previous level command, a return to desktop command, a return to application command, and so on.

比如,参考图6,侧边触控显示区域12可以包括依次相邻的三个子侧边触控显示区域,即第一子侧边触控显示区域120(可以称为侧边顶部触控区域)、第二子侧边触控显示区域121(可以称为侧边中部触控区域)、第三子侧边触控显示区域122(可以称为侧边底部触控区域)。For example, referring to FIG. 6, the side touch display area 12 may include three adjacent sub-side touch display areas in sequence, that is, the first sub-side touch display area 120 (which may be referred to as the side top touch area). , the second sub-side touch display area 121 (may be referred to as the side middle touch area), and the third sub-side touch display area 122 (may be referred to as the side bottom touch area).

当第一滑动操作的方向为预设方向如下滑时,可以获取下滑对应的候选触控指令,如截屏指令、锁屏指令以及返回指令等等;此时,电子设备可以确定第一滑动操作的操作区域所处的目标子侧边触控显示区域;然后,根据目标子侧边触控显示区域从候选触控指令中选取或者确定相应的触控指令,例如,假设操作区域位于第二子侧边触控显示区域121内时,可以选取锁屏指令,电子设备可以根据锁屏指令进行锁屏操作。When the direction of the first sliding operation is the preset direction such as sliding, candidate touch commands corresponding to the sliding can be obtained, such as screenshot commands, screen lock commands, return commands, etc.; at this time, the electronic device can determine the direction of the first sliding operation The target sub-side touch display area where the operation area is located; then, select or determine the corresponding touch command from candidate touch commands according to the target sub-side touch display area, for example, assuming that the operation area is located on the second sub-side When touching the display area 121 by the edge, a screen lock command can be selected, and the electronic device can perform a screen lock operation according to the lock screen command.

其中,基于目标子侧边触控显示区域选取触控指令的方式有多种,比如,可以从候选触控指令选取与目标子侧边触控显示区域对应的触控指令。实际应用中,可以设目标子侧边触控显示区域(如区别标识)与候选触控指令的映射关系,这样后续在确定目标子侧边触控显示区域后,便可以基于该映射关系确定所需的触控指令。There are multiple ways to select touch commands based on the target sub-side touch display area. For example, a touch command corresponding to the target sub-side touch display area may be selected from candidate touch commands. In practical applications, the mapping relationship between the target sub-side touch display area (such as a distinguishing mark) and candidate touch commands can be set, so that after the target sub-side touch display area is determined, the target sub-side touch display area can be determined based on the mapping relationship. required touch commands.

比如,参考图6,获取预设方向对应的候选触控指令包括:返回上一级指令、返回桌面指令、返回应用主界面指令等等,当操作区域位于第一子侧边触控显示区域120,此时,可以从候选触控指令中选取返回上一级指令。又比如,当操作区域位于第二子侧边触控显示区域121时可以选取返回桌面指令,又比如,当操作区域位于第三子侧边触控显示区域122时可以选取返回应用界面指令。For example, referring to FIG. 6 , acquiring the candidate touch commands corresponding to the preset direction includes: command to return to the previous level, command to return to the desktop, command to return to the main interface of the application, etc., when the operation area is located in the first sub-side touch display area 120 , at this point, you can select a command from the candidate touch commands to return to the previous level. For another example, when the operation area is located in the second sub-side touch display area 121, the command to return to the desktop can be selected. For another example, when the operation area is located in the third sub-side touch display area 122, the command to return to the application interface can be selected.

又比如,在一些实施例中,还可以基于目标子侧边触控显示区域的区域数量选取;也即,步骤“根据目标子侧边触控显示区域从所述候选触控指令选取第一触控指令”,可以包括:For another example, in some embodiments, it may also be selected based on the area quantity of the target sub-side touch display area; that is, the step "select the first touch command from the candidate touch instruction according to the target sub-side touch display area." control instructions", which can include:

获取目标子侧边触控显示区域的区域数量;Obtain the area quantity of the target sub-side touch display area;

从所述候选触控指令选取与所述区域数量对应的第一触控指令。A first touch command corresponding to the number of regions is selected from the candidate touch commands.

实际应用中,可以设置区域数量与候选触控指令的映射关系,这样候选在获取区域数量后,便可以基于该映射关系确定所需的触控指令。In practical applications, the mapping relationship between the number of areas and candidate touch commands can be set, so that the candidate can determine the required touch command based on the mapping relationship after acquiring the number of areas.

比如,参考图6,获取预设方向对应的候选触控指令包括:返回上一级指令、返回桌面指令、返回应用指令等等,For example, referring to FIG. 6 , acquiring candidate touch commands corresponding to preset directions includes: command to return to the previous level, command to return to the desktop, command to return to the application, etc.

当操作区域分别位于一个子侧边触控显示区域内如第一子侧边触控显示区域120内时,此时,可以从候选触控指令中选取返回上一级指令。When the operation areas are respectively located in a sub-side touch display area such as the first sub-side touch display area 120 , at this time, an instruction returning to a previous level may be selected from candidate touch instructions.

当操作区域分别位于两个子侧边触控显示区域内如第一子侧边触控显示区域120、第二子侧边触控显示区域122两个子区域内时,此时,可以从候选触控指令中选取返回应用主界面指令。When the operation area is respectively located in two sub-side touch display areas, such as the first sub-side touch display area 120 and the second sub-side touch display area 122, at this time, the candidate touch Select the command to return to the main interface of the application in the command.

当操作区域分别位于三个子侧边触控显示区域内如第一、二、三子侧边触控显示区域内时,可以选取返回桌面指令。When the operation areas are respectively located in the three sub-side touch display areas such as the first, second, and third sub-side touch display areas, an instruction to return to the desktop can be selected.

在一些实施例中,考虑到用户实际滑动操作的滑动方向与预设方向不能完全一致,因此,为了提升触控操作的便利性,可以允许方向误差存在,即当滑动方向与预设方向的夹角角度在某个范围内时,确定认为滑动方向与预设方向一致。比如,步骤“当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的触控指令”可以包括:In some embodiments, considering that the sliding direction of the user's actual sliding operation cannot be completely consistent with the preset direction, therefore, in order to improve the convenience of touch operation, a direction error can be allowed to exist, that is, when the sliding direction is between the preset direction When the angle is within a certain range, it is determined that the sliding direction is consistent with the preset direction. For example, the step "acquiring a touch instruction corresponding to the preset direction when the direction of the first sliding operation is a preset direction" may include:

获取第一滑动操作的方向与所述预设方向之间的夹角角度;acquiring an included angle between the direction of the first sliding operation and the preset direction;

当所述夹角角度位于预设角度范围内时,确定所述第一滑动操作的方向为预设方向,并获取所述预设方向对应的触控指令。When the included angle is within a preset angle range, it is determined that the direction of the first sliding operation is a preset direction, and a touch command corresponding to the preset direction is acquired.

其中,预设角度范围可以根据实际对操作精度的要求来设定,比如,预设角度范围可以0°到1°等等。Wherein, the preset angle range can be set according to the actual requirements for operation accuracy, for example, the preset angle range can be 0° to 1° and so on.

例如,当用户在侧边触控显示区域向上滑动时,可以获取该上滑的实际方向与垂直方向之间的夹角角度,如该角度位于0°到1°之间,那么默认该实际方向即为垂直方向。For example, when the user slides up on the side touch display area, the angle between the actual direction of the upward slide and the vertical direction can be obtained. If the angle is between 0° and 1°, the actual direction is defaulted. is the vertical direction.

105、根据所述第一触控指令对所述电子设备执行相应的第一触控操作。105. Perform a corresponding first touch operation on the electronic device according to the first touch instruction.

比如,当触控指令为返回指令,电子设备可以返回上一个界面或者上一级菜单等。又比如,当触控指令为锁屏指令,电子设备可以进行锁屏操作。For example, when the touch command is a return command, the electronic device may return to a previous interface or a previous menu. For another example, when the touch command is a screen lock command, the electronic device may perform a screen lock operation.

例如,参考图3,电子设备显示应用页面A,当用户在侧边触控显示区域12中向上进行滑动操作时,电子设备可以检测到滑动操作信息,然后,根据滑动操作信息确定滑动操作在触控显示屏上的操作区域,此时,可以确定操作区域位于侧边触控显示区域12内,电子设备可以获取滑动操作的方向即上滑方向,假设预设方向为上滑方向时,此时,可以确定滑动操作的方向为预设方向,电子设备可以获取上滑对应的返回指令,电子设备根据返回指令返回显示应用页面A的之前应用B。对于用户来说,只需在侧边触控显示区域12向上滑动即可实现返回功能。For example, referring to FIG. 3 , the electronic device displays the application page A. When the user performs an upward sliding operation in the side touch display area 12, the electronic device can detect the sliding operation information, and then determine that the sliding operation is performed on the touch screen according to the sliding operation information. At this time, it can be determined that the operation area is located in the side touch display area 12, and the electronic device can obtain the direction of the sliding operation, that is, the upward sliding direction. Assuming that the preset direction is the upward sliding direction, at this time , it can be determined that the direction of the sliding operation is the preset direction, the electronic device can acquire a return instruction corresponding to the upward slide, and the electronic device returns to the previous application B that displayed the application page A according to the return instruction. For the user, the return function can be realized by simply sliding up on the side touch display area 12 .

例如,参考图7,电子设备显示应用页面A,当用户在侧边触控显示区域12中向下进行滑动操作时,电子设备可以检测到滑动操作信息,然后,根据滑动操作信息确定滑动操作在触控显示屏上的操作区域,此时,可以确定操作区域位于侧边触控显示区域12内,电子设备可以获取滑动操作的方向即下滑方向,假设预设方向为上滑方向时,此时,可以确定滑动操作的方向为预设方向,电子设备可以获取下滑方向对应的锁屏指令,电子设备根据锁屏指令执行锁屏操作。对于用户来说,只需在侧边触控显示区域12向下滑动即可实现锁屏功能。For example, referring to FIG. 7, the electronic device displays the application page A. When the user performs a sliding operation in the side touch display area 12, the electronic device can detect the sliding operation information, and then determine the sliding operation according to the sliding operation information. Touch the operation area on the display screen. At this time, it can be determined that the operation area is located in the side touch display area 12, and the electronic device can obtain the direction of the sliding operation, that is, the downward direction. Assuming that the preset direction is the upward sliding direction, at this time , it can be determined that the direction of the sliding operation is a preset direction, the electronic device can acquire a screen lock instruction corresponding to the sliding direction, and the electronic device executes a screen lock operation according to the screen lock instruction. For the user, the screen lock function can be realized by sliding down on the side touch display area 12 .

在一些实施例中,为了便于用户操作,还可以基于第一触控操作的基础上,继续基于用户的相同滑动操作进行关联触控操作。比如,本申请实施例方法,在对电子设备执行第一触控操作之后,还可以包括:In some embodiments, for the convenience of the user's operation, based on the first touch operation, the associated touch operation may be continued based on the same sliding operation of the user. For example, after performing the first touch operation on the electronic device, the method in the embodiment of the present application may further include:

当在预设时间段内检测到用户在所述侧边触控显示区域中的第二滑动操作信息时,获取第二滑动操作的方向;When detecting the user's second sliding operation information in the side touch display area within the preset time period, acquiring the direction of the second sliding operation;

当所述第二滑动操作的方向为所述预设方向时,获取与所述第一触控指令关联的第二触控指令;When the direction of the second sliding operation is the preset direction, acquiring a second touch command associated with the first touch command;

根据所述第二触控指令对所述电子设备进行相应的第二触控操作。Performing a corresponding second touch operation on the electronic device according to the second touch instruction.

其中,第二触控指令与第一触控指令不相同,且与第一触控指令关联。关联指令指的是:指令功能类型与第一触控指令的指令功能类型相关联的触控指令,比如,指令功能类型相同,但具体实现的触控操作不相同的指令。Wherein, the second touch command is different from the first touch command, and is associated with the first touch command. The associated command refers to a touch command whose command function type is associated with the command function type of the first touch command, for example, commands with the same command function type but different specific touch operations.

其中,指令功能类型可以根据实际需求划分,比如,可以划分屏幕处理类指令(如锁屏指令、解锁指令、亮度调节指令、截屏指令等等)、返回功能类指令(如返回上一级界面指令、返回主界面指令)、任务管理类指令(如任务关闭指令、任务开启指令等等)Among them, the instruction function type can be divided according to actual needs, for example, it can be divided into screen processing instructions (such as lock screen instructions, unlock instructions, brightness adjustment instructions, screen capture instructions, etc.), return function instructions (such as return to the previous interface instruction) , return to the main interface instruction), task management instructions (such as task closing instructions, task opening instructions, etc.)

例如,第一触控指令为返回上一级指令时,第二触控指令可以为返回主界面指令。For example, when the first touch instruction is an instruction to return to the previous level, the second touch instruction may be an instruction to return to the main interface.

在一些实施例中,关联指令还可以为实现功能相反的指令;比如,第一触控指令为锁屏指令时,第二触控指令为解锁指令。In some embodiments, the associated instruction can also be an instruction that realizes the opposite function; for example, when the first touch instruction is a lock screen instruction, the second touch instruction is an unlock instruction.

在一些实施例中,“获取与所述第一触控指令关联的第二触控指令”,可以包括:In some embodiments, "obtaining the second touch instruction associated with the first touch instruction" may include:

确定所述第一触控指令对应的指令功能类型;determining a command function type corresponding to the first touch command;

获取所述指令功能类型对应的多个候选触控指令;Obtaining multiple candidate touch commands corresponding to the command function type;

从所述多个候选触控指令中选取与所述第一触控指令关联的第二触控指令。。A second touch command associated with the first touch command is selected from the plurality of candidate touch commands. .

例如,假设第一触控指令为返回上一级界面指令,可以确定第一触控指令对应的指令功能类型为返回功能类指令,获取返回功能类对应的候选触控指令,比如可以包括返回上一级界面指令、返回主界面指令、返回上上一级界面指令;此时,可以从候选触控指令中选取返回主界面指令作为第二触控指令。For example, assuming that the first touch instruction is an instruction to return to the upper interface, it can be determined that the instruction function type corresponding to the first touch instruction is an instruction to return to the function class, and the candidate touch instructions corresponding to the return function class can be obtained, for example, it can include returning to the previous A first-level interface command, a return to the main interface command, and a return to the upper-level interface command; at this time, the return to the main interface command can be selected from the candidate touch commands as the second touch command.

其中,预设时间段的时间起点可以为第一触控操作的执行时间;该预设时间段的时间长度可以根据实际需求设定,比如,10s等等。Wherein, the time starting point of the preset time period may be the execution time of the first touch operation; the length of the preset time period may be set according to actual needs, for example, 10s and so on.

比如,当用户在侧边触控显示区域进行第一滑动操作时,根据上述方法电子设备可以执行第一触控操作;在执行触控操作的10s内如果用户在侧边触控显示区域再次进行第二滑动操作,那么电子设备将会在执行第一触控操作后的10s内检测到用户在侧边触控显示区域的第二滑动操作信息;此时,可以获取该滑动操作的滑动方向,当该滑动方向与第一滑动操作的方向一致时,可以获取关联触控指令对电子设备执行相应的第二触控操作。For example, when the user performs the first sliding operation on the side touch display area, the electronic device can perform the first touch operation according to the above method; The second sliding operation, the electronic device will detect the second sliding operation information of the user touching the display area on the side within 10s after performing the first touch operation; at this time, the sliding direction of the sliding operation can be obtained, When the sliding direction is consistent with the direction of the first sliding operation, an associated touch instruction may be acquired to perform a corresponding second touch operation on the electronic device.

例如,参考图8,电子设备显示应用页面A,当用户在侧边触控显示区域12中向上进行滑动操作时,电子设备可以检测到滑动操作信息,然后,根据滑动操作信息确定滑动操作在触控显示屏上的操作区域,此时,可以确定操作区域位于侧边触控显示区域12内,电子设备可以获取滑动操作的方向即上滑方向,假设预设方向为上滑方向时,此时,可以确定滑动操作的方向为预设方向,电子设备可以获取上滑对应的返回指令,电子设备根据返回指令返回显示应用页面A的之前应用B。对于用户来说,只需在侧边触控显示区域12向上滑动即可实现返回功能。For example, referring to FIG. 8, the electronic device displays the application page A. When the user performs an upward sliding operation in the side touch display area 12, the electronic device can detect the sliding operation information, and then determine that the sliding operation is performed on the touch screen according to the sliding operation information. At this time, it can be determined that the operation area is located in the side touch display area 12, and the electronic device can obtain the direction of the sliding operation, that is, the upward sliding direction. Assuming that the preset direction is the upward sliding direction, at this time , it can be determined that the direction of the sliding operation is the preset direction, the electronic device can acquire a return instruction corresponding to the upward slide, and the electronic device returns to the previous application B that displayed the application page A according to the return instruction. For the user, the return function can be realized by simply sliding up on the side touch display area 12 .

如果用户在电子设备执行触控操作后的一定时长内,再次在侧边触控显示区域12中向上进行滑动操作,电子设备将会在预设时间段内再次检测到用户在所述侧边触控显示区域中的滑动操作信息,此时,电子设备会获取当前滑动操作的方向即上滑方向,该场景下,当前滑动操作的方向与预设方向相同,即与前一次滑动操作的方向相同,那么电子设备可以获取与返回指令关联的关联指令,如返回主界面指令;并根据关联指令执行关联触控操作,如返回主界面。If the user performs an upward sliding operation in the side touch display area 12 again within a certain period of time after the electronic device performs a touch operation, the electronic device will detect again within a preset period of time Control the sliding operation information in the display area. At this time, the electronic device will obtain the direction of the current sliding operation, that is, the upward sliding direction. In this scenario, the direction of the current sliding operation is the same as the preset direction, that is, the same as the direction of the previous sliding operation. , then the electronic device can obtain an associated instruction associated with the return instruction, such as a return to the main interface instruction; and perform an associated touch operation according to the associated instruction, such as return to the main interface.

又例如,参考图9,电子设备显示应用页面A,当用户在侧边触控显示区域12中向下进行滑动操作时,电子设备可以检测到滑动操作信息,然后,根据滑动操作信息确定滑动操作在触控显示屏上的操作区域,此时,可以确定操作区域位于侧边触控显示区域12内,电子设备可以获取滑动操作的方向即下滑方向,假设预设方向为上滑方向时,此时,可以确定滑动操作的方向为预设方向,电子设备可以获取下滑方向对应的锁屏指令,电子设备根据锁屏指令执行锁屏操作。对于用户来说,只需在侧边触控显示区域12向下滑动即可实现锁屏功能。For another example, referring to FIG. 9, the electronic device displays the application page A. When the user performs a sliding operation in the side touch display area 12, the electronic device can detect the sliding operation information, and then determine the sliding operation according to the sliding operation information. In the operation area on the touch display screen, at this time, it can be determined that the operation area is located in the side touch display area 12, and the electronic device can obtain the direction of the sliding operation, that is, the downward direction. Assuming that the preset direction is the upward sliding direction, this , the direction of the sliding operation can be determined as the preset direction, the electronic device can acquire a screen lock instruction corresponding to the sliding direction, and the electronic device performs a screen lock operation according to the screen lock instruction. For the user, the screen lock function can be realized by sliding down on the side touch display area 12 .

如果用户在电子设备执行触控操作后的一定时长内,再次在侧边触控显示区域12中向下进行滑动操作,电子设备将会在预设时间段内再次检测到用户在所述侧边触控显示区域中的滑动操作信息,此时,电子设备会获取当前滑动操作的方向即下滑方向,该场景下,当前滑动操作的方向与预设方向相同,即与前一次滑动操作的方向相同,那么电子设备可以获取与锁屏指令关联的关联指令,如解锁指令;并根据关联指令执行关联触控操作,如解锁屏幕。If the user slides down again in the side touch display area 12 within a certain period of time after the electronic device performs a touch operation, the electronic device will detect that the user is on the side again within a preset time period. Touch the sliding operation information in the display area. At this time, the electronic device will obtain the direction of the current sliding operation, that is, the sliding direction. In this scenario, the direction of the current sliding operation is the same as the preset direction, that is, the same as the direction of the previous sliding operation , then the electronic device can obtain an associated instruction associated with the lock screen instruction, such as an unlock instruction; and perform an associated touch operation according to the associated instruction, such as unlocking the screen.

在一些实施例中,还可以在执行第一触控操作之后,基于用户在侧边触控显示区域中的第二滑动操作执行与第一触控操作关联的关联触控操作。比如,在对所述电子设备执行相应的第一触控操作之后,本申请触控操作方法还包括In some embodiments, after performing the first touch operation, an associated touch operation associated with the first touch operation may be performed based on the user's second sliding operation in the side touch display area. For example, after performing the corresponding first touch operation on the electronic device, the touch operation method of the present application further includes

当检测到用户在所述侧边触控显示区域中的第二滑动操作信息时,获取第二滑动操作的方向以及当前时间;When detecting the user's second sliding operation information in the side touch display area, acquire the direction of the second sliding operation and the current time;

当所述第二滑动操作的方向为所述预设方向时,获取所述当前时间与第一触控操作执行时间之间的时间距离;When the direction of the second sliding operation is the preset direction, acquiring the time distance between the current time and the execution time of the first touch operation;

当所述时间距离小于预设阈值时,获取与所述第一触控指令关联的第二触控指令;When the time distance is less than a preset threshold, acquire a second touch command associated with the first touch command;

根据所述第二触控指令对所述电子设备执行相应的第二触控操作。Execute a corresponding second touch operation on the electronic device according to the second touch instruction.

其中,第二触控指令与第一触控指令不相同,且与第一触控指令关联。关联指令指的是:指令功能类型与第一触控指令的指令功能类型相关联的触控指令,比如,指令功能类型相同,但具体实现的触控操作不相同的指令。Wherein, the second touch command is different from the first touch command, and is associated with the first touch command. The associated command refers to a touch command whose command function type is associated with the command function type of the first touch command, for example, commands with the same command function type but different specific touch operations.

其中,指令功能类型可以根据实际需求划分,比如,可以划分屏幕处理类指令(如锁屏指令、解锁指令、亮度调节指令、截屏指令等等)、返回功能类指令(如返回上一级界面指令、返回主界面指令)、任务管理类指令(如任务关闭指令、任务开启指令等等)Among them, the instruction function type can be divided according to actual needs, for example, it can be divided into screen processing instructions (such as lock screen instructions, unlock instructions, brightness adjustment instructions, screen capture instructions, etc.), return function instructions (such as return to the previous interface instruction) , return to the main interface instruction), task management instructions (such as task closing instructions, task opening instructions, etc.)

例如,第一触控指令为返回上一级指令时,第二触控指令可以为返回主界面指令。For example, when the first touch instruction is an instruction to return to the previous level, the second touch instruction may be an instruction to return to the main interface.

在一些实施例中,关联指令还可以为实现功能相反的指令;比如,第一触控指令为锁屏指令时,第二触控指令为解锁指令。In some embodiments, the associated instruction can also be an instruction that realizes the opposite function; for example, when the first touch instruction is a lock screen instruction, the second touch instruction is an unlock instruction.

比如,当用户在侧边触控显示区域进行第一滑动操作时,根据上述方法电子设备可以执行第一触控操作;之后如果用户在侧边触控显示区域再次进行第二滑动操作,电子设备将会检测到用户在侧边触控显示区域的第二滑动操作信息;此时,可以获取该滑动操作的滑动方向以及当前时间t1,当该滑动方向与第一滑动操作的方向一致时,可以获取当前时间t1与第一触控操作执行时间t2之间的时间距离t,当时间距离t小于预设阈值如8s时,电子设备可以获取关联触控指令对电子设备执行相应的第二触控操作。For example, when the user performs the first sliding operation on the side touch display area, the electronic device can perform the first touch operation according to the above method; then if the user performs the second sliding operation on the side touch display area again, the electronic device The second sliding operation information of the user touching the display area on the side will be detected; at this time, the sliding direction of the sliding operation and the current time t1 can be obtained. When the sliding direction is consistent with the direction of the first sliding operation, you can Obtain the time distance t between the current time t1 and the execution time t2 of the first touch operation, and when the time distance t is smaller than a preset threshold such as 8s, the electronic device can obtain an associated touch command to perform a corresponding second touch on the electronic device operate.

由上可知,本申请实施例可以检测用户在所述触控显示屏上的第一滑动操作信息;根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;根据所述触控指令对所述电子设备执行相应的第一触控操作;该方案可以使得用户在侧边触控显示区域进行滑动操作即可实现对电子设备的触控操作,便于用户操作,提升了电子设备的操作效率。It can be known from the above that the embodiment of the present application can detect the user's first sliding operation information on the touch display screen; determine the operation area of the first sliding operation on the touch display screen according to the sliding operation information; when When the operation area is located in the side touch display area, acquire the direction of the first sliding operation; when the direction of the first sliding operation is a preset direction, acquire the second corresponding to the preset direction A touch command; perform a corresponding first touch operation on the electronic device according to the touch command; this solution allows the user to perform a sliding operation on the side touch display area to realize the touch operation on the electronic device , which is convenient for the user to operate, and improves the operating efficiency of the electronic device.

在一些实施例,还提供了一种触控操作方法,参考图10,具体流程如下:In some embodiments, a touch operation method is also provided. Referring to FIG. 10 , the specific process is as follows:

201、电子设备检测用户在所述触控显示屏上的第一滑动操作信息,该第一滑动操作信息包括第一滑动操作的位置信息。201. The electronic device detects first sliding operation information performed by a user on the touch display screen, where the first sliding operation information includes position information of the first sliding operation.

其中,用户在触控显示屏上的滑动操作信息可以包括:滑动操作的位置信息(如滑动操作起始点、终点的位置信息)、滑动距离、滑动方向等等。Wherein, the user's sliding operation information on the touch display screen may include: location information of the sliding operation (such as location information of a starting point and an ending point of the sliding operation), sliding distance, sliding direction, and the like.

202、电子设备根据第一滑动操作的位置信息确定第一滑动操作在所述触控显示屏上的操作区域。202. The electronic device determines an operation area of the first sliding operation on the touch display screen according to the position information of the first sliding operation.

其中,滑动操作的位置信息可以包括起始点位置信息以及终点位置信息;因此,在一实施例中,电子设备可以基于起始点位置信息以及终点位置信息确定操作区域。Wherein, the position information of the sliding operation may include start point position information and end point position information; therefore, in an embodiment, the electronic device may determine the operation area based on the start point position information and the end point position information.

其中,滑动操作的位置信息可以包括滑动操作的坐标值,例如,可以建立触控显示屏的坐标系,当用户在触控显示屏进行滑动操作时,可以检测或记录滑动操作的坐标信息(如横轴坐标x、纵轴坐标y等),如起始点坐标信息、终点坐标信息,然后,基于坐标信息构建滑动操作在触控显示屏的操作区域。Wherein, the position information of the sliding operation may include the coordinate value of the sliding operation, for example, a coordinate system of the touch display screen may be established, and when the user performs a sliding operation on the touch display screen, the coordinate information of the sliding operation (such as coordinate x on the horizontal axis, coordinate y on the vertical axis, etc.), such as the coordinate information of the starting point and the coordinate information of the end point, and then construct a sliding operation in the operation area of the touch display screen based on the coordinate information.

譬如,可以基于起始点与终点之间的距离(如横轴方向的距离、纵轴方向的距离)构建滑动操作的操作区域。For example, the operation area of the sliding operation may be constructed based on the distance between the start point and the end point (such as the distance along the horizontal axis and the distance along the vertical axis).

203、当操作区域位于侧边触控显示区域内时,电子设备获取第一滑动操作的滑动方向。203. When the operation area is located in the side touch display area, the electronic device obtains the sliding direction of the first sliding operation.

其中,滑动操作的方向可以为用户在触控显示屏上的滑动方向,如上下左右等;比如,从显示屏下方向显示屏上方滑动、向显示屏左侧滑动、向显示屏下方滑动等等。Wherein, the direction of the sliding operation may be the sliding direction of the user on the touch display screen, such as up, down, left, and right; for example, sliding from the bottom of the display to the top of the display, sliding to the left of the display, sliding to the bottom of the display, etc. .

在一实施例中,滑动方向可以基于滑动操作的按压点的位置变化确定,比如,滑动操作的按压点纵轴方向的位置逐渐增大时,可以确定滑动方向为向上滑动。In an embodiment, the sliding direction may be determined based on the position change of the pressing point of the sliding operation. For example, when the position of the pressing point of the sliding operation in the longitudinal axis direction gradually increases, the sliding direction may be determined to be upward sliding.

204、当所述第一滑动操作的方向为预设方向时,电子设备获取所述预设方向对应的第一触控指令。204. When the direction of the first sliding operation is a preset direction, the electronic device acquires a first touch instruction corresponding to the preset direction.

其中,预设方向可以为根据实际需求设定,比如,可以为由下向上(即上滑),由上向下(即下滑),由左至右等。Wherein, the preset direction can be set according to actual needs, for example, it can be from bottom to top (ie, slide up), from top to bottom (ie, slide down), from left to right, and so on.

其中,触控指令可以为根据实际需求设定,比如,可以返回指令、返回主界面指令、锁屏指令、解锁指令、音量调节指令、截屏指令、任务管理指令、相机开启指令、网络连接指令等等。Among them, the touch command can be set according to actual needs, such as return command, return to the main interface command, lock screen command, unlock command, volume adjustment command, screenshot command, task management command, camera start command, network connection command, etc. Wait.

在一实施例中,为提升触控操作的准确性,防止误操作,还可以结合滑动距离或者滑动速度来获取触控指令,并执行相应的触控操作。比如,第一滑动操作信息可以包括第一滑动操作的位置信息以及滑动距离(或者滑动速度);此时,可以根据所述位置信息确定第一滑动操作在所述触控显示屏上的操作区域;当操作区域位于侧边触控显示区域内时,可以获取第一滑动操作的方向;当所述第一滑动操作的方向为预设方向,且所述滑动距离大于预设距离(或者滑动速度大于预设速度)时,获取所述预设方向对应的第一触控指令。In an embodiment, in order to improve the accuracy of the touch operation and prevent misoperation, the touch command may be acquired in combination with the sliding distance or the sliding speed, and the corresponding touch operation may be performed. For example, the first sliding operation information may include the position information and the sliding distance (or sliding speed) of the first sliding operation; at this time, the operating area of the first sliding operation on the touch display screen may be determined according to the position information ; When the operation area is located in the side touch display area, the direction of the first sliding operation can be obtained; when the direction of the first sliding operation is a preset direction, and the sliding distance is greater than the preset distance (or sliding speed greater than the preset speed), the first touch instruction corresponding to the preset direction is acquired.

在一些实施例中,侧边触控显示区域可以包括依次相邻的多个子侧边触控显示区域;此时,可以基于操作区域所处的子侧边触控显示区域以及滑动方向来选取触控指令。In some embodiments, the side touch display area may include multiple adjacent sub-side touch display areas; control command.

比如,当所述第一滑动操作的方向为预设方向时,获取与预设方向对应的候选触控指令;确定所述操作区域所处的目标子侧边触控显示区域;根据目标子侧边触控显示区域从所述候选触控指令选取第一触控指令。For example, when the direction of the first sliding operation is a preset direction, acquire a candidate touch command corresponding to the preset direction; determine the target sub-side touch display area where the operation area is located; The side touch display area selects a first touch command from the candidate touch commands.

其中,预设方向对应的候选触控指令可以为不同类型的触控指令,比如,返回类型指令(包括返回上一级指令、返回桌面指令、返回应用指令)、截屏类型指令(如快速截屏指令、定时截屏指令等等)、锁屏类型的指令(如快速锁屏指令、定时锁屏指令等等)。Among them, the candidate touch commands corresponding to the preset direction can be different types of touch commands, for example, return type commands (including return to the previous level command, return to the desktop command, and return to the application command), screen capture type commands (such as quick screen capture commands) , scheduled screen capture instructions, etc.), lock screen type instructions (such as quick lock screen instructions, timed screen lock instructions, etc.).

在一些实施例中,预设方向对应的候选触控指令也可以为相同类型的触控指令,比如,均为返回类型指令,如返回上一级指令、返回桌面指令、返回应用指令等等。In some embodiments, the candidate touch commands corresponding to the preset directions may also be touch commands of the same type, for example, they are all return type commands, such as a return to previous level command, a return to desktop command, a return to application command, and so on.

其中,基于目标子侧边触控显示区域选取触控指令的方式有多种,比如,可以从候选触控指令选取与目标子侧边触控显示区域对应的触控指令。实际应用中,可以设目标子侧边触控显示区域(如区别标识)与候选触控指令的映射关系,这样后续在确定目标子侧边触控显示区域后,便可以基于该映射关系确定所需的触控指令。There are multiple ways to select touch commands based on the target sub-side touch display area. For example, a touch command corresponding to the target sub-side touch display area may be selected from candidate touch commands. In practical applications, the mapping relationship between the target sub-side touch display area (such as a distinguishing mark) and candidate touch commands can be set, so that after the target sub-side touch display area is determined, the target sub-side touch display area can be determined based on the mapping relationship. required touch commands.

又比如,在一些实施例中,还可以基于目标子侧边触控显示区域的区域数量选取;具体地,获取目标子侧边触控显示区域的区域数量;从所述候选触控指令选取与所述区域数量对应的第一触控指令。实际应用中,可以设置区域数量与候选触控指令的映射关系,这样候选在获取区域数量后,便可以基于该映射关系确定所需的触控指令。For another example, in some embodiments, it can also be selected based on the area quantity of the target sub-side touch display area; specifically, the area quantity of the target sub-side touch display area is acquired; The first touch command corresponding to the number of areas. In practical applications, the mapping relationship between the number of areas and candidate touch commands can be set, so that the candidate can determine the required touch command based on the mapping relationship after acquiring the number of areas.

205、电子设备根据第一触控指令执行相应的第一触控操作。205. The electronic device executes a corresponding first touch operation according to the first touch instruction.

比如,当触控指令为返回指令,电子设备可以返回上一个界面或者上一级菜单等。又比如,当触控指令为锁屏指令,电子设备可以进行锁屏操作。例如参考图3和图7。For example, when the touch command is a return command, the electronic device may return to a previous interface or a previous menu. For another example, when the touch command is a screen lock command, the electronic device may perform a screen lock operation. See, for example, FIGS. 3 and 7 .

206、当电子设备检测到用户在侧边触控显示区域中的第二滑动操作信息时,获取第二滑动操作的滑动方向和当前时间。206. When the electronic device detects the user's second sliding operation information in the side touch display area, acquire the sliding direction and current time of the second sliding operation.

比如,用户在侧边触控显示区域进行第一滑动操作之后,电子设备根据上述方法可以执行第一触控操作,之后如果用户在侧边触控显示区域再次进行第二滑动操作,那么电子设备将会检测到用户在侧边触控显示区域的第二滑动操作信息,并获取滑动操作的滑动方向和当前时间。For example, after the user performs the first sliding operation on the side touch display area, the electronic device can perform the first touch operation according to the above method, and then if the user performs the second sliding operation on the side touch display area again, then the electronic device The second sliding operation information of the user in the side touch display area will be detected, and the sliding direction and current time of the sliding operation will be obtained.

207、当所述第二滑动操作的方向为所述预设方向时,电子设备获取所述当前时间与第一触控操作执行时间之间的时间距离。207. When the direction of the second sliding operation is the preset direction, the electronic device acquires a time distance between the current time and the execution time of the first touch operation.

如果第二滑动操作与第一滑动操作的均为预设方向,也即方向相同,那么电子设备将获取当前时间与第一触控操作执行时间的时间间隔也即时间距离,以便确定第二滑动操作的有效性。If both the second sliding operation and the first sliding operation are in the preset direction, that is, the direction is the same, then the electronic device will obtain the time interval between the current time and the execution time of the first touch operation, that is, the time distance, so as to determine the second sliding effectiveness of the operation.

208、当所述时间距离小于预设阈值时,电子设备获取与所述第一触控指令关联的第二触控指令。208. When the time distance is smaller than a preset threshold, the electronic device acquires a second touch instruction associated with the first touch instruction.

如果判断时间距离小于预设阈值如7s时,那么电子设备将会获取第一触控指令关联的第二触控指令。If it is determined that the time distance is less than a preset threshold, such as 7s, the electronic device will acquire a second touch command associated with the first touch command.

其中,第二触控指令与第一触控指令不相同,且与第一触控指令关联。关联指令指的是:指令功能类型与第一触控指令的指令功能类型相关联的触控指令,比如,指令功能类型相同,但具体实现的触控操作不相同的指令。Wherein, the second touch command is different from the first touch command, and is associated with the first touch command. The associated command refers to a touch command whose command function type is associated with the command function type of the first touch command, for example, commands with the same command function type but different specific touch operations.

其中,指令功能类型可以根据实际需求划分,比如,可以划分屏幕处理类指令(如锁屏指令、解锁指令、亮度调节指令、截屏指令等等)、返回功能类指令(如返回上一级界面指令、返回主界面指令)、任务管理类指令(如任务关闭指令、任务开启指令等等)Among them, the instruction function type can be divided according to actual needs, for example, it can be divided into screen processing instructions (such as lock screen instructions, unlock instructions, brightness adjustment instructions, screen capture instructions, etc.), return function instructions (such as return to the previous interface instruction) , return to the main interface instruction), task management instructions (such as task closing instructions, task opening instructions, etc.)

例如,第一触控指令为返回上一级指令时,第二触控指令可以为返回主界面指令。For example, when the first touch instruction is an instruction to return to the previous level, the second touch instruction may be an instruction to return to the main interface.

在一些实施例中,关联指令还可以为实现功能相反的指令;比如,第一触控指令为锁屏指令时,第二触控指令为解锁指令。In some embodiments, the associated instruction can also be an instruction that realizes the opposite function; for example, when the first touch instruction is a lock screen instruction, the second touch instruction is an unlock instruction.

在一些实施例中,确定所述第一触控指令对应的指令功能类型;获取所述指令功能类型对应的多个候选触控指令;从所述多个候选触控指令中选取与所述第一触控指令关联的第二触控指令。In some embodiments, the instruction function type corresponding to the first touch instruction is determined; a plurality of candidate touch instructions corresponding to the instruction function type are acquired; and a selection corresponding to the first touch instruction is selected from the plurality of candidate touch instructions. A second touch command associated with a touch command.

例如,假设第一触控指令为返回上一级界面指令,可以确定第一触控指令对应的指令功能类型为返回功能类指令,获取返回功能类对应的候选触控指令,比如可以包括返回上一级界面指令、返回主界面指令、返回上上一级界面指令;此时,可以从候选触控指令中选取返回主界面指令作为第二触控指令。For example, assuming that the first touch instruction is an instruction to return to the upper interface, it can be determined that the instruction function type corresponding to the first touch instruction is an instruction to return to the function class, and the candidate touch instructions corresponding to the return function class can be obtained, for example, it can include returning to the previous A first-level interface command, a return to the main interface command, and a return to the upper-level interface command; at this time, the return to the main interface command can be selected from the candidate touch commands as the second touch command.

209、电子设备根据第二触控指令执行相应的第二触控操作。209. The electronic device performs a corresponding second touch operation according to the second touch instruction.

例如,第一触控操作为返回上一级界面操作时,那么此时,电子设备可以执行返回桌面或主界面的第二触控操作;又例如,第一触控操作为锁屏操作时,那么电子设备可以执行解锁操作。For example, when the first touch operation is to return to the previous interface operation, then at this time, the electronic device can perform a second touch operation to return to the desktop or the main interface; for another example, when the first touch operation is a lock screen operation, The electronic device can then perform an unlocking operation.

由上可知,本申请实施例可以检测用户在所述触控显示屏上的第一滑动操作信息;根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;根据所述触控指令对所述电子设备执行相应的第一触控操作;该方案可以使得用户在侧边触控显示区域进行滑动操作即可实现对电子设备的触控操作,便于用户操作,提升了电子设备的操作效率。It can be known from the above that the embodiment of the present application can detect the user's first sliding operation information on the touch display screen; determine the operation area of the first sliding operation on the touch display screen according to the sliding operation information; when When the operation area is located in the side touch display area, acquire the direction of the first sliding operation; when the direction of the first sliding operation is a preset direction, acquire the second corresponding to the preset direction A touch command; perform a corresponding first touch operation on the electronic device according to the touch command; this solution allows the user to perform a sliding operation on the side touch display area to realize the touch operation on the electronic device , which is convenient for the user to operate, and improves the operating efficiency of the electronic device.

此外,本申请实施例还可以执行第一触控操作后,可以基于用户在侧边触控显示区域的再次滑动操作执行第一触控操作的关联操作,大大提升了电子设备的操作效率以及用户体验。In addition, in the embodiment of the present application, after the first touch operation is performed, the associated operation of the first touch operation can be performed based on the user's second sliding operation on the side touch display area, which greatly improves the operation efficiency of the electronic device and the user experience. experience.

本申请实施例还提供一种触控操作装置,所述触控操作装置可以集成在电子设备中,所述电子设备可以是智能手机、平板电脑等设备。The embodiment of the present application also provides a touch operation device, and the touch operation device may be integrated into an electronic device, and the electronic device may be a smart phone, a tablet computer, or the like.

在一些实施例中,参考图11,触控操作装置300可以包括:检测模块301、区域确定模块302、方向获取模块303、指令获取模块304以及第一操作执行模块305。如下:In some embodiments, referring to FIG. 11 , the touch operation device 300 may include: a detection module 301 , an area determination module 302 , a direction acquisition module 303 , an instruction acquisition module 304 and a first operation execution module 305 . as follows:

检测模块301,用于检测用户在所述触控显示屏上的第一滑动操作信息;A detection module 301, configured to detect the first sliding operation information of the user on the touch display screen;

区域确定模块302,用于根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;An area determining module 302, configured to determine an operation area of the first sliding operation on the touch display screen according to the sliding operation information;

方向获取模块303,用于当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;A direction acquisition module 303, configured to acquire the direction of the first sliding operation when the operation area is located in the side touch display area;

指令获取模块304,用于当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;An instruction acquiring module 304, configured to acquire a first touch instruction corresponding to the preset direction when the direction of the first sliding operation is a preset direction;

第一操作执行模块305,用于根据所述触控指令对所述电子设备执行相应的第一触控操作。The first operation execution module 305 is configured to perform a corresponding first touch operation on the electronic device according to the touch instruction.

在一些实施例中,参考图12,触控操作装置300还可以包括第二操作执行模块306;In some embodiments, referring to FIG. 12 , the touch operation device 300 may further include a second operation execution module 306;

所述第二操作执行模块306可以用于:The second operation executing module 306 may be used for:

在所述第一操作执行模块305执行相应的第一触控操作之后,当在预设时间段内检测到用户在所述侧边触控显示区域中的第二滑动操作信息时,获取第二滑动操作的方向;After the first operation execution module 305 performs the corresponding first touch operation, when detecting the user's second sliding operation information in the side touch display area within a preset time period, acquire the second The direction of the swipe action;

当所述第二滑动操作的方向为所述预设方向时,获取与所述第一触控指令关联的第二触控指令;When the direction of the second sliding operation is the preset direction, acquiring a second touch command associated with the first touch command;

根据所述第二触控指令对所述电子设备执行相应的第二触控操作。Execute a corresponding second touch operation on the electronic device according to the second touch instruction.

在一些实施例中,参考图12,触控操作装置300还可以包括第二操作执行模块306;In some embodiments, referring to FIG. 12 , the touch operation device 300 may further include a second operation execution module 306;

第二操作执行模块306,用于:The second operation execution module 306 is configured to:

在所述第一操作执行模块305执行相应的第一触控操作之后,当检测到用户在所述侧边触控显示区域中的第二滑动操作信息时,获取第二滑动操作的方向以及当前时间;After the first operation execution module 305 performs the corresponding first touch operation, when detecting the user's second slide operation information in the side touch display area, acquire the direction of the second slide operation and the current time;

当所述第二滑动操作的方向为所述预设方向时,获取所述当前时间与第一触控操作执行时间之间的时间距离;When the direction of the second sliding operation is the preset direction, acquiring the time distance between the current time and the execution time of the first touch operation;

当所述时间距离小于预设阈值时,获取与所述第一触控指令关联的第二触控指令;When the time distance is less than a preset threshold, acquire a second touch command associated with the first touch command;

根据所述第二触控指令对所述电子设备进行相应的第二触控操作。Performing a corresponding second touch operation on the electronic device according to the second touch instruction.

在一些实施例中,指令获取模块304获取第二触控指令的过程可以包括:In some embodiments, the process of obtaining the second touch instruction by the instruction obtaining module 304 may include:

确定所述第一触控指令对应的指令功能类型;determining a command function type corresponding to the first touch command;

获取所述指令功能类型对应的多个候选触控指令;Obtaining multiple candidate touch commands corresponding to the command function type;

从所述多个候选触控指令中选取与所述第一触控指令关联的第二触控指令selecting a second touch command associated with the first touch command from the plurality of candidate touch commands

在一些实施例中,所述第一滑动操作信息包括第一滑动操作的位置信息以及滑动距离;In some embodiments, the first sliding operation information includes position information and sliding distance of the first sliding operation;

所述区域确定模块302可以用于:根据所述位置信息确定第一滑动操作在所述触控显示屏上的操作区域;The area determination module 302 may be configured to: determine an operation area of the first sliding operation on the touch display screen according to the position information;

所述指令获取模块303可以用于:当所述第一滑动操作的方向为预设方向,且所述滑动距离大于预设距离时,获取所述预设方向对应的第一触控指令。The instruction acquiring module 303 may be configured to: acquire a first touch instruction corresponding to the preset direction when the direction of the first sliding operation is a preset direction and the sliding distance is greater than a preset distance.

在一些实施例中,所述第一滑动操作信息包括第一滑动操作的位置信息以及滑动速度;In some embodiments, the first sliding operation information includes position information and sliding speed of the first sliding operation;

所述区域确定模块302可以用于:根据所述位置信息确定第一滑动操作在所述触控显示屏上的操作区域;The area determination module 302 may be configured to: determine an operation area of the first sliding operation on the touch display screen according to the position information;

所述指令获取模块304可以用于:当所述第一滑动操作的方向为预设方向,且所述滑动速度大于预设速度时,获取所述预设方向对应的触控指令。The instruction acquiring module 304 may be configured to: acquire a touch instruction corresponding to the preset direction when the direction of the first sliding operation is a preset direction and the sliding speed is greater than a preset speed.

在一些实施例中,所述侧边触控显示区域包括依次相邻的多个子侧边触控显示区域,参考图13,所述指令获取模块304可以包括:In some embodiments, the side touch display area includes multiple adjacent sub-side touch display areas in sequence. Referring to FIG. 13 , the instruction acquisition module 304 may include:

指令获取子模块3041,用于当所述第一滑动操作的方向为预设方向时,获取与预设方向对应的候选触控指令;An instruction acquisition sub-module 3041, configured to acquire a candidate touch instruction corresponding to the preset direction when the direction of the first sliding operation is a preset direction;

确定子模块3042,用于确定所述操作区域所处的目标子侧边触控显示区域;A determination submodule 3042, configured to determine the target sub-side touch display area where the operation area is located;

指令选取子模块3043,用于根据目标子侧边触控显示区域从所述候选触控指令选取第一触控指令。The command selection sub-module 3043 is configured to select a first touch command from the candidate touch commands according to the target sub-side touch display area.

在一些实施例中,指令选取子模块3043,可以具体用于:In some embodiments, the instruction selection submodule 3043 can be specifically used for:

获取目标子侧边触控显示区域的区域数量;Obtain the area quantity of the target sub-side touch display area;

从所述候选触控指令选取与所述区域数量对应的第一触控指令。A first touch command corresponding to the number of regions is selected from the candidate touch commands.

在一实施例中,指令获取模块304,可以用于:In an embodiment, the instruction acquisition module 304 may be used to:

获取第一滑动操作的方向与所述预设方向之间的夹角角度;acquiring an included angle between the direction of the first sliding operation and the preset direction;

当所述夹角角度位于预设角度范围内时,确定所述第一滑动操作的方向为预设方向,并获取所述预设方向对应的第一触控指令。When the included angle is within a preset angle range, it is determined that the direction of the first sliding operation is a preset direction, and a first touch command corresponding to the preset direction is acquired.

以上各模块的功能可以参考上述方法实施例中各步骤的描述。For the functions of the above modules, reference may be made to the description of the steps in the above method embodiments.

具体实施时,以上各个模块可以作为独立的实体来实现,也可以进行任意组合,作为同一或若干个实体来实现。During specific implementation, each of the above modules may be implemented as an independent entity, or may be combined arbitrarily to be implemented as the same or several entities.

由上可知,本申请实施例提供的触控操作装置300,通过检测模块301检测用户在所述触控显示屏上的第一滑动操作信息;由区域确定模块302根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;由方向获取模块303当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;由指令获取模块304当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;由第一操作执行模块305根据所述触控指令对所述电子设备执行相应的第一触控操作;从而使得用户通过简单的滑动操作即可快速实现对电子设备的触控操作,可以提高电子设备的操作效率。It can be seen from the above that the touch operation device 300 provided by the embodiment of the present application uses the detection module 301 to detect the first sliding operation information of the user on the touch display screen; the area determination module 302 determines the first sliding operation information according to the sliding operation information. An operation area of a sliding operation on the touch display screen; the direction acquisition module 303 obtains the direction of the first sliding operation when the operation area is located in the side touch display area; Module 304 acquires a first touch command corresponding to the preset direction when the direction of the first sliding operation is a preset direction; and the first operation execution module 305 executes on the electronic device according to the touch command Corresponding first touch operation; so that the user can quickly realize the touch operation on the electronic device through a simple sliding operation, which can improve the operation efficiency of the electronic device.

本申请实施例还提供一种电子设备。所述电子设备可以是智能手机、平板电脑等设备。如图14所示,电子设备400包括处理器401和存储器402。其中,处理器401与存储器402电性连接。The embodiment of the present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer or the like. As shown in FIG. 14 , an electronic device 400 includes a processor 401 and a memory 402 . Wherein, the processor 401 is electrically connected with the memory 402 .

处理器401是电子设备400的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或调用存储在存储器402内的计算机程序,以及调用存储在存储器402内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. Various functions and processing data of the equipment, so as to monitor the electronic equipment as a whole.

在本实施例中,电子设备400中的处理器401会按照如下的步骤,将一个或一个以上的计算机程序的进程对应的指令加载到存储器402中,并由处理器401来运行存储在存储器402中的计算机程序,从而实现各种功能:In this embodiment, the processor 401 in the electronic device 400 will follow the steps below to load the instructions corresponding to the process of one or more computer programs into the memory 402, and the instructions stored in the memory 402 will be executed by the processor 401. The computer program in, thereby realizes various functions:

检测用户在所述触控显示屏上的第一滑动操作信息;Detecting the first sliding operation information of the user on the touch display screen;

根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;determining an operation area of a first sliding operation on the touch display screen according to the sliding operation information;

当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;Acquiring the direction of the first sliding operation when the operation area is located in the side touch display area;

当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;When the direction of the first sliding operation is a preset direction, acquiring a first touch instruction corresponding to the preset direction;

根据所述触控指令对所述电子设备执行相应的第一触控操作。Execute a corresponding first touch operation on the electronic device according to the touch instruction.

在一些实施例中,在对所述电子设备执行相应的第一触控操作之后时,处理器401还执行以下步骤:In some embodiments, after performing the corresponding first touch operation on the electronic device, the processor 401 further performs the following steps:

当在预设时间段内检测到用户在所述侧边触控显示区域中的第二滑动操作信息时,获取第二滑动操作的方向;When detecting the user's second sliding operation information in the side touch display area within the preset time period, acquiring the direction of the second sliding operation;

当所述第二滑动操作的方向为所述预设方向时,获取与所述第一触控指令关联的第二触控指令;When the direction of the second sliding operation is the preset direction, acquiring a second touch command associated with the first touch command;

根据所述第二触控指令对所述电子设备执行相应的第二触控操作。Execute a corresponding second touch operation on the electronic device according to the second touch instruction.

在一些实施例中,在对所述电子设备执行相应的第一触控操作之后时,处理器401还执行以下步骤:In some embodiments, after performing the corresponding first touch operation on the electronic device, the processor 401 further performs the following steps:

当检测到用户在所述侧边触控显示区域中的第二滑动操作信息时,获取第二滑动操作的方向以及当前时间;When detecting the user's second sliding operation information in the side touch display area, acquire the direction of the second sliding operation and the current time;

当所述第二滑动操作的方向为所述预设方向时,获取所述当前时间与第一触控操作执行时间之间的时间距离;When the direction of the second sliding operation is the preset direction, acquiring the time distance between the current time and the execution time of the first touch operation;

当所述时间距离小于预设阈值时,获取与所述第一触控指令关联的第二触控指令;When the time distance is less than a preset threshold, acquire a second touch command associated with the first touch command;

根据所述第二触控指令对所述电子设备进行相应的第二触控操作。Performing a corresponding second touch operation on the electronic device according to the second touch instruction.

在一些实施例中,获取与所述第一触控指令关联的第二触控指令时,处理器401执行以下步骤:In some embodiments, when obtaining the second touch instruction associated with the first touch instruction, the processor 401 performs the following steps:

确定所述第一触控指令对应的指令功能类型;determining a command function type corresponding to the first touch command;

获取所述指令功能类型对应的多个候选触控指令;Obtaining multiple candidate touch commands corresponding to the command function type;

从所述多个候选触控指令中选取与所述第一触控指令关联的第二触控指令。A second touch command associated with the first touch command is selected from the plurality of candidate touch commands.

在一些实施例中,所述第一滑动操作信息包括第一滑动操作的位置信息以及滑动距离,根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域时,处理器401可以执行以下步骤:In some embodiments, the first sliding operation information includes the position information and the sliding distance of the first sliding operation, and when the operation area of the first sliding operation on the touch display screen is determined according to the sliding operation information, the processing The device 401 can perform the following steps:

根据所述位置信息确定第一滑动操作在所述触控显示屏上的操作区域;determining an operation area of the first sliding operation on the touch display screen according to the position information;

此时,当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的触控指令,处理器401可以执行以下步骤:At this time, when the direction of the first sliding operation is a preset direction, the processor 401 may perform the following steps to obtain a touch instruction corresponding to the preset direction:

当所述第一滑动操作的方向为预设方向,且所述滑动距离大于预设距离时,获取所述预设方向对应的第一触控指令。When the direction of the first sliding operation is a preset direction and the sliding distance is greater than the preset distance, a first touch command corresponding to the preset direction is acquired.

在一些实施例中,所述第一滑动操作信息包括第一滑动操作的位置信息以及滑动速度;根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域时,处理器401可以执行以下步骤:In some embodiments, the first sliding operation information includes position information and sliding speed of the first sliding operation; when determining the operation area of the first sliding operation on the touch display screen according to the sliding operation information, processing The device 401 can perform the following steps:

根据所述位置信息确定第一滑动操作在所述触控显示屏上的操作区域;determining an operation area of the first sliding operation on the touch display screen according to the position information;

当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的触控指令时,处理器401可以执行以下步骤:When the direction of the first sliding operation is a preset direction, when acquiring a touch instruction corresponding to the preset direction, the processor 401 may perform the following steps:

当所述第一滑动操作的方向为预设方向,且所述滑动速度大于预设速度时,获取所述预设方向对应的触控指令。When the direction of the first sliding operation is a preset direction and the sliding speed is greater than the preset speed, a touch command corresponding to the preset direction is acquired.

在一些实施例中,所述侧边触控显示区域包括依次相邻的多个子侧边触控显示区域;当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的触控指令时,处理器401可以执行以下步骤:In some embodiments, the side touch display area includes a plurality of adjacent sub-side touch display areas in sequence; when the direction of the first sliding operation is a preset direction, obtain the corresponding When the touch instruction is received, the processor 401 may perform the following steps:

当所述第一滑动操作的方向为预设方向时,获取与预设方向对应的候选触控指令;When the direction of the first sliding operation is a preset direction, acquiring a candidate touch command corresponding to the preset direction;

确定所述操作区域所处的目标子侧边触控显示区域;Determine the target sub-side touch display area where the operation area is located;

根据目标子侧边触控显示区域从所述候选触控指令选取第一触控指令。A first touch command is selected from the candidate touch commands according to the target sub-side touch display area.

在一些实施例中,根据目标子侧边触控显示区域从所述候选触控指令选取第一触控指令,处理器401可以执行以下步骤:In some embodiments, the processor 401 may perform the following steps to select the first touch command from the candidate touch commands according to the target sub-side touch display area:

获取目标子侧边触控显示区域的区域数量;Obtain the area quantity of the target sub-side touch display area;

从所述候选触控指令选取与所述区域数量对应的第一触控指令。A first touch command corresponding to the number of regions is selected from the candidate touch commands.

在一些实施例中,当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令,处理器401可以执行以下步骤:In some embodiments, when the direction of the first sliding operation is a preset direction, the processor 401 may perform the following steps to obtain the first touch command corresponding to the preset direction:

获取第一滑动操作的方向与所述预设方向之间的夹角角度;acquiring an included angle between the direction of the first sliding operation and the preset direction;

当所述夹角角度位于预设角度范围内时,确定所述第一滑动操作的方向为预设方向,并获取所述预设方向对应的第一触控指令。When the included angle is within a preset angle range, it is determined that the direction of the first sliding operation is a preset direction, and a first touch command corresponding to the preset direction is acquired.

存储器402可用于存储计算机程序和数据。存储器402存储的计算机程序中包含有可在处理器中执行的指令。计算机程序可以组成各种功能模块。处理器401通过调用存储在存储器402的计算机程序,从而执行各种功能应用以及数据处理。Memory 402 may be used to store computer programs and data. The computer program stored in the memory 402 includes instructions executable by the processor. Computer programs can be composed of various functional modules. The processor 401 executes various functional applications and data processing by calling computer programs stored in the memory 402 .

在一些实施例中,如图15所示,电子设备400还包括:射频电路403、显示屏404、控制电路405、输入单元406、音频电路407、传感器408以及电源409。其中,处理器401分别与射频电路403、显示屏404、控制电路405、输入单元406、音频电路407、传感器408以及电源409电性连接。In some embodiments, as shown in FIG. 15 , the electronic device 400 further includes: a radio frequency circuit 403 , a display screen 404 , a control circuit 405 , an input unit 406 , an audio circuit 407 , a sensor 408 and a power supply 409 . Wherein, the processor 401 is electrically connected to the radio frequency circuit 403 , the display screen 404 , the control circuit 405 , the input unit 406 , the audio circuit 407 , the sensor 408 and the power supply 409 .

射频电路403用于收发射频信号,以通过无线通信与网络设备或其他电子设备进行通信。The radio frequency circuit 403 is used to send and receive radio frequency signals to communicate with network equipment or other electronic equipment through wireless communication.

显示屏404可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图像、文本、图标、视频和其任意组合来构成。The display screen 404 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 images, texts, icons, videos and any combination thereof.

控制电路405与显示屏404电性连接,用于控制显示屏404显示信息。The control circuit 405 is electrically connected to the display screen 404 for controlling the display screen 404 to display information.

输入单元406可用于接收输入的数字、字符信息或用户特征信息(例如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。其中,输入单元406可以包括指纹识别模组。The input unit 406 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. Wherein, the input unit 406 may include a fingerprint recognition module.

音频电路407可通过扬声器、传声器提供用户与电子设备之间的音频接口。The audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker or a microphone.

传感器408用于采集外部环境信息。传感器408可以包括环境亮度传感器、加速度传感器、陀螺仪等传感器中的一种或多种。The sensor 408 is used to collect external environment information. The sensor 408 may include one or more of sensors such as an ambient brightness sensor, an acceleration sensor, and a gyroscope.

电源409用于给电子设备400的各个部件供电。在一些实施例中,电源409可以通过电源管理系统与处理器401逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The power supply 409 is used to supply power to various components of the electronic device 400 . In some embodiments, the power supply 409 may be logically connected to the processor 401 through a power management system, so that functions such as charging, discharging, and power consumption management may be implemented through the power management system.

尽管图15中未示出,电子设备400还可以包括摄像头、蓝牙模块等,在此不再赘述。Although not shown in FIG. 15 , the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be repeated here.

由上可知,本申请实施例提供了一种电子设备,可以检测用户在所述触控显示屏上的第一滑动操作信息;根据所述滑动操作信息确定第一滑动操作在所述触控显示屏上的操作区域;当所述操作区域位于所述侧边触控显示区域内时,获取所述第一滑动操作的方向;当所述第一滑动操作的方向为预设方向时,获取所述预设方向对应的第一触控指令;根据所述触控指令对所述电子设备执行相应的第一触控操作;该方案可以使得用户在侧边触控显示区域进行滑动操作即可实现对电子设备的触控操作,便于用户操作,提升了电子设备的操作效率。It can be known from the above that the embodiment of the present application provides an electronic device that can detect the first sliding operation information of the user on the touch display screen; An operation area on the screen; when the operation area is located in the side touch display area, acquire the direction of the first sliding operation; when the direction of the first sliding operation is a preset direction, acquire the direction of the first sliding operation The first touch command corresponding to the preset direction; perform the corresponding first touch operation on the electronic device according to the touch command; this solution can enable the user to perform a sliding operation on the side touch display area The touch operation of the electronic device is convenient for the user to operate, and the operating efficiency of the electronic device is improved.

本申请实施例还提供一种存储介质,所述存储介质中存储有计算机程序,当所述计算机程序在计算机上运行时,所述计算机执行上述任一实施例所述的触控操作方法。An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is run on a computer, the computer executes the touch operation method described in any one of the above-mentioned embodiments.

需要说明的是,本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过计算机程序来指令相关的硬件来完成,所述计算机程序可以存储于计算机可读存储介质中,所述存储介质可以包括但不限于:只读存储器(ROM,Read OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁盘或光盘等。It should be noted that those skilled in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium In this example, the storage medium may include but not limited to: a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and the like.

以上对本申请实施例所提供的触控操作方法、装置、存储介质及电子设备进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The touch operation method, device, storage medium and electronic equipment provided by the embodiments of the present application are described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application. The descriptions of the above embodiments are only used To help understand the method and its core idea of this application; at the same time, for those skilled in the art, according to the idea of this application, there will be changes in the specific implementation and application scope. In summary, the content of this specification It should not be construed as a limitation of the application.

Claims (14)

1. a kind of touch operation method is applied in electronic equipment, the electronic equipment includes touching display screen, and feature exists In the touching display screen includes main touch display area and side touch display area, the side touch display area It is connect with the main display area;The touch operation method includes:
Detect first slide information of the user on the touching display screen;
Operating area of first slide on the touching display screen is determined according to the slide information;
When the operating area is located in the side touch display area, the direction of first slide is obtained;
When the direction of first slide is preset direction, corresponding first touch command of the preset direction is obtained;
Corresponding first touch control operation is executed to the electronic equipment according to the touch command.
2. touch operation method as described in claim 1, which is characterized in that executing corresponding first to the electronic equipment After touch control operation, the touch operation method further include:
When detecting second slide information of the user in the side touch display area within a preset period of time, obtain Take the direction of the second slide;
When the direction of second slide is the preset direction, obtain and first touch command associated second Touch command;
Corresponding second touch control operation is executed to the electronic equipment according to second touch command.
3. touch operation method as described in claim 1, which is characterized in that executing corresponding first to the electronic equipment After touch control operation, the touch operation method further includes
When detecting second slide information of the user in the side touch display area, the second slide is obtained Direction and current time;
When the direction of second slide is the preset direction, obtains the current time and held with the first touch control operation Time gap between the row time;
When the time gap is less than preset threshold, obtain and associated second touch command of first touch command;
Corresponding second touch control operation is carried out to the electronic equipment according to second touch command.
4. touch operation method as claimed in claim 2 or claim 3, which is characterized in that acquisition is associated with first touch command The second touch command, comprising:
Determine the corresponding command function type of first touch command;
Obtain the corresponding multiple candidate touch commands of described instruction function type;
It is chosen and associated second touch command of first touch command from the multiple candidate touch command.
5. touch operation method as described in claim 1, which is characterized in that the first slide information includes first sliding The location information and sliding distance of dynamic operation;
Operating area of first slide on the touching display screen is determined according to the slide information, comprising:
Operating area of first slide on the touching display screen is determined according to the positional information;
When the direction of first slide is preset direction, the corresponding touch command of the preset direction is obtained, comprising:
When the direction of first slide is preset direction, and the sliding distance is greater than pre-determined distance, described in acquisition Corresponding first touch command of preset direction.
6. touch operation method as described in claim 1, which is characterized in that the first slide information includes first sliding The location information and sliding speed of dynamic operation;
Operating area of first slide on the touching display screen is determined according to the slide information, comprising:
Operating area of first slide on the touching display screen is determined according to the positional information;
When the direction of first slide is preset direction, corresponding first touch command of the preset direction is obtained, Include:
When the direction of first slide is preset direction, and the sliding speed is greater than pre-set velocity, described in acquisition Corresponding first touch command of preset direction.
7. touch operation method as described in claim 1, which is characterized in that the side touch display area includes successively phase Adjacent multiple sub- side touch display areas;
When the direction of first slide is preset direction, corresponding first touch command of the preset direction is obtained, Include:
When the direction of first slide is preset direction, candidate touch command corresponding with preset direction is obtained;
Determine the sub- side touch display area of target locating for the operating area;
The first touch command is chosen from the candidate touch command according to the sub- side touch display area of target.
8. touch operation method as claimed in claim 7, which is characterized in that according to the sub- side touch display area of target from institute It states candidate touch command and chooses the first touch command, comprising:
Obtain the region quantity of the sub- side touch display area of target;
The first touch command corresponding with the region quantity is chosen from the candidate touch command.
9. touch operation method as described in claim 1, which is characterized in that when the direction of first slide is default When direction, corresponding first touch command of the preset direction is obtained, comprising:
Obtain the included angle between the direction of the first slide and the preset direction;
When the included angle is located within the scope of predetermined angle, determine that the direction of first slide is preset direction, And obtain corresponding first touch command of the preset direction.
10. a kind of touch control operation device is applied in electronic equipment, the electronic equipment includes display screen, which is characterized in that institute Stating touching display screen includes main touch display area and side touch display area, the side touch display area with it is described Main display area connection, the touch control operation device include:
Detection module, for detecting first slide information of the user on the touching display screen;
Area determination module, for determining the first slide on the touching display screen according to the slide information Operating area;
Direction obtains module, for obtaining described first when the operating area is located in the side touch display area The direction of slide;
Instruction acquisition module, for obtaining the preset direction pair when the direction of first slide is preset direction The first touch command answered;
First operation executing module is grasped for executing corresponding first touch-control to the electronic equipment according to the touch command Make.
11. touch control operation device as claimed in claim 10, which is characterized in that further include: the second operation executing module;
Second operation executing module, is used for:
After first operation executing module executes corresponding first touch control operation, when detecting use within a preset period of time When second slide information of the family in the side touch display area, the direction of the second slide is obtained;
When the direction of second slide is the preset direction, obtain and first touch command associated second Touch command;
Corresponding second touch control operation is executed to the electronic equipment according to second touch command.
12. touch control operation device as claimed in claim 10, which is characterized in that further include: the second operation executing module;
Second operation executing module, is used for:
After first operation executing module executes corresponding first touch control operation, when detecting that user touches in the side When controlling the second slide information in display area, direction and the current time of the second slide are obtained;
When the direction of second slide is the preset direction, obtains the current time and held with the first touch control operation Time gap between the row time;
When the time gap is less than preset threshold, obtain and associated second touch command of first touch command;
Corresponding second touch control operation is carried out to the electronic equipment according to second touch command.
13. a kind of storage medium, which is characterized in that computer program is stored in the storage medium, when the computer journey When sequence is run on computers, so that the computer perform claim requires 1 to 9 described in any item touch operation methods.
14. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor and memory, is deposited in the memory Computer program is contained, the processor is used for right of execution by calling the computer program stored in the memory Benefit requires 1 to 9 described in any item touch operation methods.
CN201810726028.1A 2018-07-04 2018-07-04 Touch operation method and device, storage medium and electronic equipment Active CN108958627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810726028.1A CN108958627B (en) 2018-07-04 2018-07-04 Touch operation method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810726028.1A CN108958627B (en) 2018-07-04 2018-07-04 Touch operation method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN108958627A true CN108958627A (en) 2018-12-07
CN108958627B CN108958627B (en) 2022-04-01

Family

ID=64485514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810726028.1A Active CN108958627B (en) 2018-07-04 2018-07-04 Touch operation method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN108958627B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683799A (en) * 2018-12-30 2019-04-26 努比亚技术有限公司 A kind of control method by sliding, equipment and computer readable storage medium
CN110753258A (en) * 2019-10-18 2020-02-04 维沃移动通信有限公司 Video operation method and device
CN111182137A (en) * 2019-12-19 2020-05-19 华为技术有限公司 Display method and electronic device of electronic device with flexible screen
CN111601114A (en) * 2020-05-29 2020-08-28 广州酷狗计算机科技有限公司 User operation response method and device applied to live broadcast room
CN113064538A (en) * 2020-01-02 2021-07-02 佛山市云米电器科技有限公司 Equipment parameter setting method, intelligent refrigerator and computer readable storage medium
WO2021213449A1 (en) * 2020-04-23 2021-10-28 华为技术有限公司 Touch operation method and device
CN113608635A (en) * 2021-08-24 2021-11-05 宁波视睿迪光电有限公司 Touch display device and control method thereof
CN115113793A (en) * 2022-05-25 2022-09-27 海信视像科技股份有限公司 Gesture erasing method, device and electronic device
US11775087B2 (en) 2021-03-31 2023-10-03 Asustek Computer Inc. Electronic device and touch operation method for the same

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639740A (en) * 2008-08-01 2010-02-03 鸿富锦精密工业(深圳)有限公司 Input method and password protection method based on touch screen
US20110187657A1 (en) * 2010-02-04 2011-08-04 Ian Robert Knowles Touch sensitive screen for scrolling through sets of data
CN102369501A (en) * 2009-02-23 2012-03-07 胜利电子株式会社 Touch screen control method and touch screen device using the same
CN103914243A (en) * 2013-01-08 2014-07-09 联想(北京)有限公司 Information processing method and electronic equipment
CN104216639A (en) * 2014-08-28 2014-12-17 深圳市金立通信设备有限公司 Terminal operation method
CN104615342A (en) * 2013-11-01 2015-05-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104883439A (en) * 2015-05-04 2015-09-02 努比亚技术有限公司 Terminal operating method and mobile terminal
US20160170620A1 (en) * 2013-08-02 2016-06-16 Zag Holdings Inc. Systems and methods for presenting summary information associated with map elements
CN106155524A (en) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 Page control method and device
CN106210289A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 Information processing method, device and mobile terminal
CN108089786A (en) * 2017-12-14 2018-05-29 广东欧珀移动通信有限公司 Method for displaying user interface, device, equipment and storage medium
CN108089795A (en) * 2018-01-22 2018-05-29 广东欧珀移动通信有限公司 Touch operation method and device, storage medium and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639740A (en) * 2008-08-01 2010-02-03 鸿富锦精密工业(深圳)有限公司 Input method and password protection method based on touch screen
CN102369501A (en) * 2009-02-23 2012-03-07 胜利电子株式会社 Touch screen control method and touch screen device using the same
US20110187657A1 (en) * 2010-02-04 2011-08-04 Ian Robert Knowles Touch sensitive screen for scrolling through sets of data
CN103914243A (en) * 2013-01-08 2014-07-09 联想(北京)有限公司 Information processing method and electronic equipment
US20160170620A1 (en) * 2013-08-02 2016-06-16 Zag Holdings Inc. Systems and methods for presenting summary information associated with map elements
CN104615342A (en) * 2013-11-01 2015-05-13 联想(北京)有限公司 Information processing method and electronic equipment
CN104216639A (en) * 2014-08-28 2014-12-17 深圳市金立通信设备有限公司 Terminal operation method
CN106155524A (en) * 2015-03-23 2016-11-23 阿里巴巴集团控股有限公司 Page control method and device
CN104883439A (en) * 2015-05-04 2015-09-02 努比亚技术有限公司 Terminal operating method and mobile terminal
CN106210289A (en) * 2016-06-30 2016-12-07 北京奇虎科技有限公司 Information processing method, device and mobile terminal
CN108089786A (en) * 2017-12-14 2018-05-29 广东欧珀移动通信有限公司 Method for displaying user interface, device, equipment and storage medium
CN108089795A (en) * 2018-01-22 2018-05-29 广东欧珀移动通信有限公司 Touch operation method and device, storage medium and electronic equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109683799A (en) * 2018-12-30 2019-04-26 努比亚技术有限公司 A kind of control method by sliding, equipment and computer readable storage medium
CN109683799B (en) * 2018-12-30 2021-07-23 努比亚技术有限公司 Sliding control method and device and computer readable storage medium
CN110753258A (en) * 2019-10-18 2020-02-04 维沃移动通信有限公司 Video operation method and device
CN111182137A (en) * 2019-12-19 2020-05-19 华为技术有限公司 Display method and electronic device of electronic device with flexible screen
CN113064538A (en) * 2020-01-02 2021-07-02 佛山市云米电器科技有限公司 Equipment parameter setting method, intelligent refrigerator and computer readable storage medium
CN113064538B (en) * 2020-01-02 2024-03-05 佛山市云米电器科技有限公司 Equipment parameter setting method, smart refrigerator and computer-readable storage medium
WO2021213449A1 (en) * 2020-04-23 2021-10-28 华为技术有限公司 Touch operation method and device
CN111601114A (en) * 2020-05-29 2020-08-28 广州酷狗计算机科技有限公司 User operation response method and device applied to live broadcast room
CN111601114B (en) * 2020-05-29 2022-09-13 广州酷狗计算机科技有限公司 User operation response method and device applied to live broadcast room
US11775087B2 (en) 2021-03-31 2023-10-03 Asustek Computer Inc. Electronic device and touch operation method for the same
CN113608635A (en) * 2021-08-24 2021-11-05 宁波视睿迪光电有限公司 Touch display device and control method thereof
CN115113793A (en) * 2022-05-25 2022-09-27 海信视像科技股份有限公司 Gesture erasing method, device and electronic device

Also Published As

Publication number Publication date
CN108958627B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN108958627A (en) Touch operation method and device, storage medium and electronic equipment
US10401964B2 (en) Mobile terminal and method for controlling haptic feedback
CN109062479B (en) Split-screen application switching method, device, storage medium and electronic device
RU2654145C2 (en) Information search method and device and computer readable recording medium thereof
US11392271B2 (en) Electronic device having touchscreen and input processing method thereof
CN108089795A (en) Touch operation method and device, storage medium and electronic equipment
US20160004373A1 (en) Method for providing auxiliary information and touch control display apparatus using the same
CN101727283B (en) Image processing apparatus, image processing method, and program
CN105843491A (en) Quick navigation switching method and device of page, and terminal
CN108984096A (en) Touch operation method, device, storage medium and electronic device
CN106415472A (en) A gesture control method, device, terminal device and storage medium
CN108845751A (en) Touch information processing method and device, storage medium and electronic equipment
CN108920055A (en) Touch operation method, device, storage medium and electronic device
CN108845752A (en) Touch operation method and device, storage medium and electronic equipment
US20180210597A1 (en) Information processing device, information processing method, and program
CN106527937B (en) Method for adding mobile terminal widget and mobile terminal
CN109002339A (en) Touch operation method and device, storage medium and electronic equipment
CN108846271B (en) Device control method, device, storage medium and electronic device
CN107563165A (en) Fingerprint identification method, device, storage medium and terminal
CN108958628A (en) Touch operation method and device, storage medium and electronic equipment
CN108984097B (en) Touch operation method, device, storage medium and electronic device
WO2017143575A1 (en) Method for retrieving content of image, portable electronic device, and graphical user interface
CN109032487A (en) Electronic device control method, electronic device control device, storage medium and electronic device
CN108845756B (en) Touch operation method and device, storage medium and electronic equipment
CN109085983A (en) Operation control method, operation control device, storage medium and electronic equipment

Legal Events

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