技术领域technical field
本申请属于终端技术领域,尤其涉及一种触控操作方法、装置、存储介质及电子设备。The present application belongs to the technical field of terminals, and in particular relates to a touch operation method, device, storage medium and electronic equipment.
背景技术Background technique
随着电子技术的快速发展,诸如智能手机等电子设备的功能越来越多。例如,用户可以选择电子设备的网络连接模式、待机模式等,用户也可以使用电子设备上的各种应用来实现不同的功能。With the rapid development of electronic technology, electronic devices such as smart phones have more and more functions. For example, the user can select a network connection mode, a standby mode, etc. of the electronic device, and the user can also use various applications on the electronic device to implement different functions.
在用户使用电子设备的过程中,经常需要对电子设备发出各种指令。而用户通常需要从电子设备的系统菜单或者电子设备上安装的应用的设置菜单中来选择所需的指令。这种选择指令的方式操作繁琐,效率低。During the process of using an electronic device, a user often needs to issue various instructions to the electronic device. However, the user usually needs to select the desired command from the system menu of the electronic device or the setting menu of the application installed on the electronic device. This method of selecting instructions is cumbersome and inefficient.
发明内容Contents of the invention
本申请实施例提供一种触控操作方法、装置、存储介质及电子设备,可以提高电子设备的操作效率。Embodiments of the present application provide a touch operation method, device, storage medium, and electronic equipment, which can improve the operating efficiency of the electronic equipment.
本申请实施例提供一种触控操作方法,应用于电子设备,所述电子设备包括侧边框,所述侧边框包括依次相邻的多个区域,每一区域中均设有触摸传感器,所述触控操作方法包括:An embodiment of the present application provides a touch operation method, which is applied to an electronic device. The electronic device includes a side frame, and the side frame includes a plurality of successively adjacent regions, each region is provided with a touch sensor, and the Touch operation methods include:
通过所述触摸传感器,获取用户的触摸信息;Obtaining user's touch information through the touch sensor;
确定目标区域,所述目标区域为获取到所述触摸信息的触摸传感器所在的区域;determining a target area, where the target area is the area where the touch sensor that acquires the touch information is located;
获取与所述触摸信息及所述目标区域对应的指令;acquiring an instruction corresponding to the touch information and the target area;
执行所述指令所指示的操作。Perform the operation indicated by the instruction.
本申请实施例提供一种触控操作装置,应用于电子设备,所述电子设备包括侧边框,所述侧边框包括依次相邻的多个区域,每一区域中均设有触摸传感器,所述触控操作装置包括:An embodiment of the present application provides a touch operation device, which is applied to an electronic device, and the electronic device includes a side frame, and the side frame includes a plurality of adjacent areas in sequence, and each area is provided with a touch sensor. Touch-operated devices include:
第一获取模块,用于通过所述触摸传感器,获取用户的触摸信息;A first acquiring module, configured to acquire user's touch information through the touch sensor;
确定模块,用于确定目标区域,所述目标区域为获取到所述触摸信息的触摸传感器所在的区域;A determining module, configured to determine a target area, where the target area is the area where the touch sensor that acquires the touch information is located;
第二获取模块,用于获取与所述触摸信息及所述目标区域对应的指令;A second acquiring module, configured to acquire instructions corresponding to the touch information and the target area;
执行模块,用于执行所述指令所指示的操作。The executing module is configured to execute the operation indicated by the instruction.
本申请实施例提供一种存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行本申请实施例提供的触控操作方法中的步骤。An embodiment of the present application provides a storage medium on which a computer program is stored, and when the computer program is executed on a computer, the computer is made to execute the steps in the touch operation method provided in the embodiment of the present application.
本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本申请实施例提供的触控操作方法中的步骤。The embodiment of the present application also provides an electronic device, including a memory and a processor, and the processor is used to execute the steps in the touch operation method provided in the embodiment of the present application by invoking a computer program stored in the memory.
本实施例中,电子设备预先对侧边框进行了分区,在不同区域内均设有触摸传感器,使得每一区域均成为一个触摸区域。在这些触摸区域上电子设备可以获取到用户的触摸信息。即,电子设备可以获取用户在侧边框上的不同触摸区域的触摸信息,并据此获取指令,以及执行该指令所指示的操作。由于本实施例无需通过电子设备内置的系统菜单或应用的设置菜单来执行需要完成的操作,因此本实施例提高了电子设备的操作效率。In this embodiment, the electronic device partitions the side frames in advance, and touch sensors are provided in different areas, so that each area becomes a touch area. The electronic device can acquire user's touch information on these touch areas. That is, the electronic device may acquire touch information of different touch areas of the user on the side frame, acquire an instruction accordingly, and execute the operation indicated by the instruction. Since this embodiment does not need to perform operations to be completed through a built-in system menu or an application setting menu of the electronic device, this embodiment improves the operating efficiency of the electronic device.
附图说明Description of drawings
下面结合附图,通过对本发明的具体实施方式详细描述,将使本发明的技术方案及其有益效果显而易见。The technical solution and beneficial effects of the present invention will be apparent through the detailed description of specific embodiments of the present invention in conjunction with the accompanying drawings.
图1是本申请实施例提供的触控操作方法的第一种流程示意图。FIG. 1 is a schematic flowchart of a first touch operation method provided by an embodiment of the present application.
图2是本申请实施例提供的触控操作方法的第二种流程示意图。FIG. 2 is a schematic flowchart of a second touch operation method provided by an embodiment of the present application.
图3是本申请实施例提供的触控操作方法的第三种流程示意图。FIG. 3 is a schematic flowchart of a third touch operation method provided by an embodiment of the present application.
图4是本申请实施例提供的电子设备的结构示意图。FIG. 4 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图5至图6是本申请实施例提供的触控操作方法的场景示意图。FIG. 5 to FIG. 6 are schematic diagrams of scenes of the touch operation method provided by the embodiment of the present application.
图7至图8是本申请实施例提供的触控操作方法的另一场景示意图。7 to 8 are schematic diagrams of another scene of the touch operation method provided by the embodiment of the present application.
图9是本申请实施例提供的触控操作方法的第四种流程示意图。FIG. 9 is a schematic flowchart of a fourth touch operation method provided by an embodiment of the present application.
图10至图12是本申请实施例提供的触控操作方法的又一场景示意图。10 to 12 are schematic diagrams of another scene of the touch operation method provided by the embodiment of the present application.
图13是本申请实施例提供的触控操作方法的第五种流程示意图。FIG. 13 is a schematic flowchart of a fifth touch operation method provided by an embodiment of the present application.
图14是本申请实施例提供的触控操作装置的结构示意图。FIG. 14 is a schematic structural diagram of a touch operation device provided by an embodiment of the present application.
图15是本申请实施例提供的触控操作装置的另一结构示意图。FIG. 15 is another schematic structural diagram of a touch operation device provided by an embodiment of the present application.
图16是本申请实施例提供的电子设备的结构示意图。FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
图17是本申请实施例提供的电子设备的另一结构示意图。FIG. 17 is another schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
请参照图示,其中相同的组件符号代表相同的组件,本发明的原理是以实施在一适当的运算环境中来举例说明。以下的说明是基于所例示的本发明具体实施例,其不应被视为限制本发明未在此详述的其它具体实施例。Referring to the drawings, where like reference numerals represent like components, the principles of the present invention are exemplified by being implemented in a suitable computing environment. The following description is based on illustrated specific embodiments of the invention, which should not be construed as limiting other specific embodiments of the invention not described in detail herein.
本申请的说明书和权利要求书以及上述附图中的术语“第一”、“第二”、“第三”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应当理解,这样描述的对象在适当情况下可以互换。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含。例如,包含了一系列步骤的过程、方法或包含了一系列模块或单元的装置、电子设备、系统不必限于清楚地列出的那些步骤或模块或单元,还可以包括没有清楚地列出的步骤或模块或单元,也可以包括对于这些过程、方法、装置、电子设备或系统固有的其它步骤或模块或单元。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.
请参阅图1,图1是本申请实施例提供的触控操作方法的第一种流程示意图。该触控操作方法可以应用于电子设备中。该电子设备可以是诸如智能手机或平板电脑等的设备。该电子设备可以包括侧边框,该侧边框可以包括依次相邻的多个区域,每一区域中均设有触摸传感器。Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a first touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. The electronic device may be a device such as a smartphone or a tablet computer. The electronic device may include a side frame, and the side frame may include a plurality of successively adjacent regions, each of which is provided with a touch sensor.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在101中,通过触摸传感器获取用户的触摸信息。In 101, user's touch information is acquired through a touch sensor.
随着电子技术的快速发展,诸如智能手机等电子设备的功能越来越多。例如,用户可以选择电子设备的网络连接模式、待机模式等,用户也可以使用电子设备上的各种应用来实现不同的功能。在用户使用电子设备的过程中,经常需要对电子设备发出各种指令。而用户通常需要从电子设备的系统菜单或者电子设备上安装的应用的设置菜单中来选择所需的指令。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.
例如,为了实现用户对电子设备的设置功能,以满足不同用户的个性化需求,电子设备的系统菜单中通常设置有多种控制指令,例如电子设备的待机模式、网络连接方式、通知栏设置、提醒方式设置、存储空间管理、应用权限设置等等。而为了实现用户对电子设备内安装的应用的设置,应用的设置菜单中也通常设置有多种控制指令,例如新消息提醒、设置字体大小、勿扰模式等等。For example, in order to realize the setting function of the electronic device by the user to meet the personalized needs of different users, the system menu of the electronic device is usually provided with various control commands, such as the standby mode of the electronic device, the network connection method, the notification bar setting, Reminder mode setting, storage space management, application permission setting, etc. In order to realize the user's setting of the application installed in the electronic device, a variety of control commands are usually set in the setting menu of the application, such as new message reminder, font size setting, do not disturb mode and so on.
然而,通过选择系统菜单或应用的设置菜单里包含的控制指令来对电子设备进行操作的方式,其操作繁琐、效率低。However, the way to operate the electronic device by selecting the control commands contained in the system menu or the setting menu of the application is cumbersome and inefficient.
在本申请实施例的101中,比如,电子设备可以先通过设于侧边框的触摸传感器获取用户的触摸信息。In 101 of the embodiment of the present application, for example, the electronic device may first acquire user's touch information through a touch sensor provided on a side frame.
可以理解的是,由于电子设备侧边框的每一区域中均设有触摸传感器,因此每一区域都是一个触摸区域。当用户在侧边框的触摸区域进行触摸时,该触摸区域对应的触摸传感器可以获取到该用户的触摸信息。It can be understood that since each area of the side frame of the electronic device is provided with a touch sensor, each area is a touch area. When the user touches the touch area of the side frame, the touch sensor corresponding to the touch area can acquire the user's touch information.
在一些实施方式中,触摸信息表示的触摸操作可以是单击、双击、长按、滑动、拖动、重按等等。可以理解的是,此处举例不构成对本实施例的限定。In some implementations, the touch operation indicated by the touch information may be single click, double click, long press, slide, drag, heavy press and so on. It should be understood that the examples herein do not constitute a limitation to this embodiment.
在102中,确定目标区域,该目标区域为获取到触摸信息的触摸传感器所在的区域。In 102, a target area is determined, where the target area is the area where the touch sensor that has acquired the touch information is located.
比如,在获取到用户的触摸信息后,电子设备可以确定出获取到该触摸信息的触摸传感器所在的目标区域。可以理解的是,该目标区域可以是侧边框上的多个区域中的一个或多个。For example, after acquiring the user's touch information, the electronic device may determine the target area where the touch sensor that acquired the touch information is located. It can be understood that the target area may be one or more of multiple areas on the side frame.
换句话说,在102中电子设备需要确定出用户的触摸操作发生在侧边框上的哪一区域。In other words, in step 102, the electronic device needs to determine which area on the side frame the user's touch operation occurs.
在103中,获取与触摸信息及目标区域对应的指令。In 103, an instruction corresponding to the touch information and the target area is acquired.
在104中,执行指令所指示的操作。In 104, the operation indicated by the instruction is performed.
比如,在确定出目标区域后,电子设备可以获取与用户的触摸信息以及目标区域对应的指令,并执行该指令所指示的操作。For example, after the target area is determined, the electronic device may acquire an instruction corresponding to the user's touch information and the target area, and execute the operation indicated by the instruction.
可以理解的是,本实施例中,电子设备预先对侧边框进行了分区,在不同区域内均设有触摸传感器,使得每一区域均成为一个触摸区域。在这些触摸区域上电子设备可以获取到用户的触摸信息。即,电子设备可以获取用户在侧边框上的不同触摸区域的触摸信息,并据此获取指令,以及执行该指令所指示的操作。由于本实施例无需通过电子设备内置的系统菜单或应用的设置菜单来执行需要完成的操作,因此本实施例提高了电子设备的操作效率。It can be understood that, in this embodiment, the side frame of the electronic device is partitioned in advance, and touch sensors are provided in different areas, so that each area becomes a touch area. The electronic device can acquire user's touch information on these touch areas. That is, the electronic device may acquire touch information of different touch areas of the user on the side frame, acquire an instruction accordingly, and execute the operation indicated by the instruction. Since this embodiment does not need to perform operations to be completed through a built-in system menu or an application setting menu of the electronic device, this embodiment improves the operating efficiency of the electronic device.
请参阅图2,图2为本申请实施例提供的触控操作方法的第二种流程示意图。该触控操作方法可以应用于电子设备中。该电子设备可以包括侧边框,该侧边框包括多个区域,每一区域中均设有触摸传感器。Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a second touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. The electronic device may include a side frame, and the side frame includes a plurality of areas, and each area is provided with a touch sensor.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在201中,电子设备通过触摸传感器获取用户的触摸信息。In 201, an electronic device acquires touch information of a user through a touch sensor.
比如,电子设备可以先通过设于侧边框上的触摸传感器获取用户的触摸信息。For example, the electronic device may first obtain the user's touch information through the touch sensor provided on the side frame.
在202中,电子设备确定目标区域,该目标区域为获取到触摸信息的触摸传感器所在的区域。In 202, the electronic device determines a target area, where the target area is an area where a touch sensor that acquires touch information is located.
比如,在获取到用户的触摸信息后,电子设备可以确定出获取到该触摸信息的触摸传感器所在的目标区域。可以理解的是,该目标区域即是侧边框上的多个区域中的一个或多个。For example, after acquiring the user's touch information, the electronic device may determine the target area where the touch sensor that acquired the touch information is located. It can be understood that the target area is one or more of the multiple areas on the side frame.
在203中,电子设备确定显示屏状态,该显示屏状态包括息屏状态和亮屏状态,亮屏状态包括锁定状态和解锁状态,解锁状态包括应用界面状态和桌面状态。In 203, the electronic device determines the state of the display screen, the state of the display screen includes an off-screen state and a bright-screen state, the bright-screen state includes a locked state and an unlocked state, and the unlocked state includes an application interface state and a desktop state.
比如,在确定出目标区域后,电子设备可以确定其显示屏状态。其中,该显示屏状态可以包括息屏状态和亮屏状态。亮屏状态又包括屏幕的锁定状态和屏幕的解锁状态。屏幕的解锁状态又包括应用界面状态和桌面状态。For example, after determining the target area, the electronic device can determine the status of its display screen. Wherein, the state of the display screen may include an off-screen state and an on-screen state. The on-screen state further includes a locked state of the screen and an unlocked state of the screen. The unlocked state of the screen includes the state of the application interface and the state of the desktop.
需要说明的是,应用界面状态是指显示屏当前显示的是应用程序的运行界面的状态,而桌面状态是指显示屏当前显示的是电子设备的系统桌面的状态。It should be noted that the application interface state refers to the state in which the display screen currently displays the running interface of the application program, and the desktop state refers to the state in which the display screen currently displays the system desktop of the electronic device.
在204中,电子设备获取与触摸信息、目标区域及显示屏状态对应的指令。In 204, the electronic device acquires an instruction corresponding to the touch information, the target area, and the state of the display screen.
在205中,电子设备执行指令所指示的操作。In 205, the electronic device executes the operation indicated by the instruction.
比如,在确定出显示屏当前的显示屏状态后,电子设备可以获取与触摸信息、目标区域及显示屏状态对应的指令,并执行该指令所指示的操作。For example, after determining the current display screen state of the display screen, the electronic device may acquire an instruction corresponding to the touch information, the target area, and the display screen state, and execute the operation indicated by the instruction.
可以理解的是,本实施例可以根据用户在侧边框上的不同触摸区域触发的不同触摸操作以及显示屏状态,来实现对电子设备的触控操作。这不仅可以提高对电子设备进行操作的效率,而且将触控操作和显示屏状态进行关联,因此本实施例还可以提高触控操作的多样性,并使触控操作的实现更加灵活。It can be understood that, in this embodiment, the touch operation of the electronic device can be realized according to different touch operations triggered by the user on different touch areas on the side frame and the state of the display screen. This can not only improve the efficiency of operating the electronic device, but also associate the touch operation with the state of the display screen, so this embodiment can also improve the diversity of touch operations and make the implementation of touch operations more flexible.
请参阅图3,图3为本申请实施例提供的触控操作方法的第三种流程示意图。该触控操作方法可以应用于电子设备中。如图4所示,该电子设备100可以包括侧边框10,该侧边框包括由上到下、依次相邻的第一区域11、第二区域12和第三区域13。第一区域11、第二区域12和第三区域13中均设有触摸传感器,从而使得第一区域11、第二区域12和第三区域13均成为触摸区域。可以理解的是,本实施例以侧边框分为3个区域为例,但这并不构成对本实施例的限定。在其他实施方式中,也可以为侧边框划分更多的区域或更少的区域,本实施例对此不做限定。Please refer to FIG. 3 . FIG. 3 is a schematic flowchart of a third touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 4 , the electronic device 100 may include a side frame 10 , and the side frame includes a first region 11 , a second region 12 and a third region 13 that are sequentially adjacent from top to bottom. The first area 11 , the second area 12 and the third area 13 are provided with touch sensors, so that the first area 11 , the second area 12 and the third area 13 all become touch areas. It can be understood that, in this embodiment, the side frame is divided into three regions as an example, but this does not constitute a limitation to this embodiment. In other implementation manners, more areas or less areas may also be divided for the side frame, which is not limited in this embodiment.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在301中,电子设备通过触摸传感器获取用户的触摸信息。In 301, the electronic device acquires touch information of a user through a touch sensor.
在302中,电子设备确定目标区域,该目标区域为获取到触摸信息的触摸传感器所在的区域。In 302, the electronic device determines a target area, where the target area is an area where a touch sensor that acquires touch information is located.
在303中,电子设备确定显示屏状态。In 303, the electronic device determines the status of the display screen.
比如,301、301和303可以包括:For example, 301, 301, and 303 could include:
用户在电子设备的侧边框触发了触摸操作。此时,电子设备可以通过其侧边框的触摸传感器获取到用户的触摸信息。The user triggers a touch operation on the side frame of the electronic device. At this time, the electronic device can obtain the user's touch information through the touch sensor of its side frame.
之后,电子设备可以确定出获取到该用户的触摸信息的触摸传感器所在的目标区域。该目标区域可以为第一区域或第二区域或第三区域中的一个或多个。Afterwards, the electronic device can determine the target area where the touch sensor that has acquired the user's touch information is located. The target area may be one or more of the first area or the second area or the third area.
并且,电子设备还可以确定此时显示屏所处的显示屏状态。其中,该显示屏状态可以包括息屏状态和亮屏状态。亮屏状态又包括屏幕的锁定状态和屏幕的解锁状态。屏幕的解锁状态又包括应用界面状态和桌面状态。Moreover, the electronic device can also determine the display state of the display screen at this time. Wherein, the state of the display screen may include an off-screen state and an on-screen state. The on-screen state further includes a locked state of the screen and an unlocked state of the screen. The unlocked state of the screen includes the state of the application interface and the state of the desktop.
在304中,当触摸信息表示的触摸操作为按压且按压时长达到预设时长、显示屏状态为解锁状态时,电子设备确定与目标区域关联的目标应用。In 304, when the touch operation indicated by the touch information is pressing and the pressing time reaches a preset duration, and the display screen is in an unlocked state, the electronic device determines a target application associated with the target area.
在305中,电子设备获取指令,该指令用于指示开启目标应用,并允许用户访问该目标应用的所有数据。In 305, the electronic device obtains an instruction, which is used to instruct to start the target application and allow the user to access all data of the target application.
比如,304和305可以包括:For example, 304 and 305 can include:
用户的触摸信息表示的触摸操作为按压操作,并且该按压操作的按压时长达到预设时长,即该触摸操作为长按操作。此时,如果电子设备的显示屏状态为亮屏下的解锁状态,那么电子设备可以确定出与该目标区域关联的应用,即目标应用。The touch operation represented by the user's touch information is a press operation, and the press time of the press operation reaches a preset duration, that is, the touch operation is a long press operation. At this time, if the state of the display screen of the electronic device is an unlocked state with the screen on, the electronic device can determine the application associated with the target area, that is, the target application.
之后,电子设备可以获取指令,其中该指令用于指示开启该目标应用,并允许用户访问该目标应用的所有数据。然后,进入308。Afterwards, the electronic device may acquire an instruction, where the instruction is used to instruct to start the target application and allow the user to access all data of the target application. Then, go to 308.
例如,电子设备预先设定了与第一区域关联的应用为相机应用A、与第二区域关联应用为即时通讯应用B,与第三区域关联的应用为浏览器应用C。For example, the electronic device presets that the application associated with the first area is the camera application A, the application associated with the second area is the instant messaging application B, and the application associated with the third area is the browser application C.
那么,当显示屏处于亮屏下的解锁状态时,若用户长按第一区域,那么电子设备可以打开相机应用A,并且此时电子设备允许用户访问相机应用A中的所有数据,例如此时电子设备允许用户查看相机相册中的所有照片。Then, when the display screen is in the unlocked state under the bright screen, if the user presses and holds the first area, then the electronic device can open the camera application A, and at this time the electronic device allows the user to access all data in the camera application A, for example, at this time The electronic device allows the user to view all the photos in the camera roll.
例如,相机相册中目前包含照片H、I、J、K、L。当显示屏处于解锁状态时,用户长按了第一区域,如图5所示,那么电子设备可以打开相机应用A。在打开相机应用A后,用户拍摄了照片M。那么,此时电子设备可以允许用户查看所有照片H、I、J、K、L、M。例如,如图6所示,当用户点击“相册”按钮时,电子设备可以将相册中的所有照片呈现给用户查看。For example, the camera roll currently contains photos H, I, J, K, L. When the display screen is in an unlocked state, and the user presses and holds the first area, as shown in FIG. 5 , the electronic device can open the camera application A. After opening the camera application A, the user takes a photo M. Then, at this time, the electronic device may allow the user to view all photos H, I, J, K, L, M. For example, as shown in FIG. 6, when the user clicks the "album" button, the electronic device may present all photos in the album to the user for viewing.
又如,当显示屏处于亮屏下的解锁状态时,若用户长按第二区域,那么电子设备可以打开即时通讯应用B,并且此时电子设备允许用户访问即时通讯应用B中的所有数据,例如此时电子设备允许用户查看即时通讯应用B中的所有消息。For another example, when the display screen is in the unlocked state under the bright screen, if the user presses and holds the second area, then the electronic device can open the instant messaging application B, and at this time the electronic device allows the user to access all data in the instant messaging application B, For example, the electronic device allows the user to view all messages in the instant messaging application B at this time.
在306中,当触摸信息表示的触摸操作为按压且按压时长达到预设时长、显示屏状态为息屏状态或锁定状态时,电子设备确定与目标区域关联的目标应用。In 306, when the touch operation represented by the touch information is pressing and the pressing time reaches a preset duration, and the display screen is in an off-screen state or a locked state, the electronic device determines a target application associated with the target area.
在307中,电子设备获取指令,该指令用于指示开启目标应用,且拒绝用户访问该目标应用在本次开启前产生的数据。In 307, the electronic device acquires an instruction, the instruction is used to instruct to start the target application, and denies the user access to the data generated by the target application before this start.
比如,306和307可以包括:For example, 306 and 307 could include:
用户的触摸信息表示的触摸操作为按压操作,并且该按压操作的按压时长达到预设时长,即该触摸信息表示的触摸操作为长按操作。此时,如果电子设备的显示屏状态为息屏状态或锁定状态,那么电子设备可以先确定出与目标区域关联的应用,即目标应用。The touch operation indicated by the user's touch information is a press operation, and the pressing duration of the press operation reaches a preset duration, that is, the touch operation indicated by the touch information is a long press operation. At this time, if the state of the display screen of the electronic device is an off-screen state or a locked state, the electronic device may first determine the application associated with the target area, that is, the target application.
之后,电子设备可以获取指令,其中该指令用于指示开启该目标应用,但拒绝用户访问该目标应用在本次开启前产生的数据。然后,进入308。Afterwards, the electronic device may acquire an instruction, wherein the instruction is used to instruct to start the target application, but deny the user access to data generated by the target application before this start. Then, go to 308.
例如,电子设备预先设定了与第一区域关联的应用为相机应用A、与第二区域关联应用为即时通讯应用B,与第三区域关联的应用为浏览器应用C。For example, the electronic device presets that the application associated with the first area is the camera application A, the application associated with the second area is the instant messaging application B, and the application associated with the third area is the browser application C.
那么,当显示屏处于息屏状态或亮屏下的锁定状态时,若用户长按第一区域,那么电子设备可以打开相机应用A,但此时电子设备仅允许用户查看本次开启相机应用后拍摄得到的照片,而拒绝用户查看相机相册中的其他照片。Then, when the display screen is in the off-screen state or in the locked state under the bright screen, if the user presses and holds the first area, the electronic device can open the camera application A, but at this time the electronic device only allows the user to view Take the resulting photo, while denying the user access to other photos in the camera roll.
例如,相机相册中目前包含照片H、I、J、K、L。当显示屏处于息屏状态时,用户长按了第一区域,如图7所示,那么电子设备可以打开相机应用A。在打开相机应用A后,用户拍摄了照片N。那么,此时电子设备仅允许用户查看照片N,而无法查看照片H、I、J、K、L。例如,如图8所示,当用户点击“相册”按钮时,电子设备可以仅将相册中的照片N呈现给用户查看。For example, the camera roll currently contains photos H, I, J, K, L. When the display screen is in the off-screen state, and the user presses and holds the first area, as shown in FIG. 7 , the electronic device can open the camera application A. After opening the camera application A, the user takes a photo N. Then, at this time, the electronic device only allows the user to view photo N, but cannot view photos H, I, J, K, and L. For example, as shown in FIG. 8 , when the user clicks the "album" button, the electronic device may only present photos N in the album to the user for viewing.
需要说明的是,在一种实施方式中,如果用户在电子设备处于息屏状态或屏幕未解锁状态时,长按侧边框的某一区域,那么电子设备可以打开与该区域对应的目标应用,但拒绝用户访问该目标应用在本次开启前产生的数据,但是在这一过程中电子设备可以不对屏幕执行解锁操作。比如,当显示屏处于息屏状态时,用户长按了第一区域,那么电子设备可以打开相机应用A。在打开相机应用A后,用户拍摄了照片N。那么,此时电子设备仅允许用户查看照片N,而无法查看其他照片,若用户退出相机应用,那么电子设备仍然处于屏幕锁定状态。It should be noted that, in one embodiment, if the user presses and holds a certain area of the side frame when the electronic device is in the off-screen state or the screen is not unlocked, the electronic device can open the target application corresponding to the area, However, the user is denied access to the data generated by the target application before this opening, but the electronic device may not perform an unlocking operation on the screen during this process. For example, when the display screen is in an off-screen state, and the user presses and holds the first area, then the electronic device can open the camera application A. After opening the camera application A, the user takes a photo N. Then, at this time, the electronic device only allows the user to view the photo N, but cannot view other photos. If the user exits the camera application, the electronic device is still in a screen-locked state.
在308中,电子设备执行指令所指示的操作。In 308, the electronic device executes the operation indicated by the instruction.
比如,在获取到指令后,电子设备可以执行该指令所指示的操作。For example, after acquiring the instruction, the electronic device may execute the operation indicated by the instruction.
在一种实施方式中,电子设备可以允许用户自定义长按侧边框的不同区域所要打开的应用程序。In an implementation manner, the electronic device may allow the user to customize the application programs to be opened by long pressing different areas of the side frame.
可以理解的是,本实施例中,电子设备可以根据用户对侧边框不同区域的长按操作,开启与不同区域对应的不同应用,并且电子设备可以根据该长按操作触发时显示屏的状态来赋予用户不同的数据访问权限。因此,本实施例不仅可以提高电子设备的操作效率,而且还可以提高电子设备的数据安全性。It can be understood that, in this embodiment, the electronic device can open different applications corresponding to different areas according to the user's long press operation on different areas of the side frame, and the electronic device can start the application according to the state of the display screen when the long press operation is triggered. Give users different data access permissions. Therefore, this embodiment can not only improve the operating efficiency of the electronic equipment, but also can improve the data security of the electronic equipment.
请参阅图9,图9为本申请实施例提供的触控操作方法的第四种流程示意图。该触控操作方法可以应用于电子设备中。如图4所示,该电子设备100可以包括侧边框10,该侧边框包括由上到下、依次相邻的第一区域11、第二区域12和第三区域13。在第一区域11、第二区域12和第三区域13中均设有触摸传感器,从而使得第一区域11、第二区域12和第三区域13均成为触摸区域。Please refer to FIG. 9 . FIG. 9 is a schematic flowchart of a fourth touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 4 , the electronic device 100 may include a side frame 10 , and the side frame includes a first region 11 , a second region 12 and a third region 13 that are sequentially adjacent from top to bottom. Touch sensors are provided in the first area 11 , the second area 12 and the third area 13 , so that the first area 11 , the second area 12 and the third area 13 all become touch areas.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在401中,电子设备通过触摸传感器获取用户的触摸信息。In 401, the electronic device acquires touch information of a user through a touch sensor.
在402中,电子设备确定目标区域,该目标区域为获取到触摸信息的触摸传感器所在的区域。In 402, the electronic device determines a target area, where the target area is an area where a touch sensor that acquires touch information is located.
在403中,电子设备确定显示屏状态。In 403, the electronic device determines the status of the display screen.
比如,401、402和403可以包括:For example, 401, 402, and 403 could include:
用户在电子设备的侧边框触发了触摸操作。此时,电子设备可以通过其侧边框的触摸传感器获取到用户的触摸信息。The user triggers a touch operation on the side frame of the electronic device. At this time, the electronic device can obtain the user's touch information through the touch sensor of its side frame.
之后,电子设备可以确定出获取到该用户的触摸信息的触摸传感器所在的目标区域。该目标区域可以是第一区域或第二区域或第三区域中的一个或多个。Afterwards, the electronic device can determine the target area where the touch sensor that has acquired the user's touch information is located. The target area may be one or more of the first area or the second area or the third area.
并且,电子设备还可以确定此时显示屏所处的显示屏状态。其中,该显示屏状态可以包括息屏状态和亮屏状态。亮屏状态又包括屏幕的锁定状态和屏幕的解锁状态。屏幕的解锁状态又包括应用界面状态和桌面状态。Moreover, the electronic device can also determine the display state of the display screen at this time. Wherein, the state of the display screen may include an off-screen state and an on-screen state. The on-screen state further includes a locked state of the screen and an unlocked state of the screen. The unlocked state of the screen includes the state of the application interface and the state of the desktop.
在404中,当显示屏状态为应用界面状态、触摸信息表示的触摸操作为单击或单击与滑动的组合时,电子设备获取当前应用的标识。In 404, when the state of the display screen is the state of the application interface and the touch operation indicated by the touch information is a click or a combination of click and slide, the electronic device acquires the identifier of the current application.
在405中,电子设备获取与当前应用的标识及目标区域对应的指令。In 405, the electronic device acquires an instruction corresponding to the identifier of the current application and the target area.
在406中,电子设备执行该指令所指示的操作。In 406, the electronic device executes the operation indicated by the instruction.
比如,404、405、406可以包括:For example, 404, 405, 406 can include:
用户的触摸信息表示的触摸操作为单击或者单击与滑动的组合,若此时显示屏的显示屏状态为应用界面状态,即显示屏当前显示的是应用的运行界面,那么电子设备可以获取当前应用的标识。之后,电子设备可以获取与该当前应用的标识及目标区域对应指令,并执行该指令所指示的操作。换句话说,若用户在侧边框上触发单击或单击与滑动的组合动作,并且显示屏当前显示的是应用运行界面,那么电子设备可以执行当前应用的某一快捷操作,该快捷操作具体为何种操作则又与用户的触摸操作所对应的区域关联。The touch operation indicated by the user's touch information is a click or a combination of click and slide. If the display status of the display screen is the application interface state at this time, that is, the display screen currently displays the running interface of the application, then the electronic device can obtain The ID of the current application. Afterwards, the electronic device may obtain an instruction corresponding to the identifier of the current application and the target area, and execute the operation indicated by the instruction. In other words, if the user triggers a click or a combined action of clicking and sliding on the side frame, and the display screen currently displays the application running interface, then the electronic device can execute a certain shortcut operation of the current application. What kind of operation is associated with the area corresponding to the user's touch operation.
例如,用户打开了相机应用,此时电子设备的显示屏显示的是相机应用的运行界面,如相机相册的浏览界面或者相机拍摄参数的设置界面等(即显示屏状态为应用界面状态)。若用户单击第一区域,那么电子设备可以获取与相机应用及第一区域关联的跳转至拍照界面指令,并进入拍照界面。若用户单击第二区域,那么电子设备可以获取与相机应用及第二区域关联的打开滤镜选择界面指令,并打开滤镜选择界面。若用户单击第三区域,那么电子设备可以获取与相机应用及第三区域关联的进入切换模式指令,并进入切换模式,此时用户可以控制相机在拍照与录制视频之间切换。For example, when the user opens the camera application, the display screen of the electronic device displays the running interface of the camera application, such as the browsing interface of the camera album or the setting interface of the camera shooting parameters (that is, the state of the display screen is the state of the application interface). If the user clicks on the first area, the electronic device may acquire a jump to the camera interface instruction associated with the camera application and the first area, and enter the camera interface. If the user clicks on the second area, the electronic device may obtain an instruction for opening a filter selection interface associated with the camera application and the second area, and open the filter selection interface. If the user clicks on the third area, the electronic device can obtain an instruction to enter the switching mode associated with the camera application and the third area, and enter the switching mode. At this time, the user can control the camera to switch between taking pictures and recording videos.
又如,用户打开了音乐应用,此时电子设备的显示屏显示的是音乐应用的运行界面,如歌曲播放界面等(即显示屏状态为应用界面状态)。若用户单击第一区域,那么电子设备执行播放上一首歌曲的操作,如图10所示。若用户单击第二区域,那么电子设备可以执行暂停播放的操作,如图11所示。若用户单击第三区域,那么电子设备可以执行播放下一首的操作,如图12所示。In another example, the user opens the music application, and at this time, the display screen of the electronic device displays the running interface of the music application, such as a song playing interface (that is, the state of the display screen is the state of the application interface). If the user clicks on the first area, the electronic device performs an operation of playing the previous song, as shown in FIG. 10 . If the user clicks on the second area, the electronic device may perform an operation of pausing playback, as shown in FIG. 11 . If the user clicks on the third area, the electronic device can perform an operation of playing the next song, as shown in FIG. 12 .
在另一种实施方式中,若用户打开的是音乐应用,那么电子设备也可以在显示屏状态为息屏状态时,若用户单击第一区域,那么电子设备执行播放上一首歌曲的操作。若用户单击第二区域,那么电子设备可以执行暂停播放的操作。若用户单击第三区域,那么电子设备可以执行播放下一首的操作。In another implementation, if the user opens a music application, the electronic device can also perform the operation of playing the previous song if the user clicks on the first area when the display screen is in the off-screen state. . If the user clicks on the second area, the electronic device can perform an operation of pausing playback. If the user clicks on the third area, the electronic device can perform an operation of playing the next song.
又如,用户打开了视频应用,此时电子设备的显示屏显示的是视频应用的运行界面,如视频播放界面等(即显示屏状态为应用界面状态)。若用户单击第一区域并在第一区域进行滑动操作,那么电子设备可以执行音量调节操作。例如,若用户单击第一区域并在第一区域上滑,那么电子设备可以调大当前音量。若用户单击第一区域并在第一区域下滑,那么电子设备可以调小当前音量。若用户单击第二区域,那么电子设备可以执行暂停播放的操作。若用户单击第三区域,那么电子设备可以执行亮度调节操作。例如,若用户单击第一区域并在第一区域上滑,那么电子设备可以调大当前显示屏亮度。若用户单击第一区域并在第一区域下滑,那么电子设备可以调小当前显示屏亮度。In another example, when the user opens the video application, the display screen of the electronic device displays the running interface of the video application, such as a video playback interface (that is, the state of the display screen is the state of the application interface). If the user clicks on the first area and performs a sliding operation on the first area, the electronic device can perform a volume adjustment operation. For example, if the user clicks on the first area and slides up on the first area, the electronic device can increase the current volume. If the user clicks on the first area and slides down on the first area, the electronic device can decrease the current volume. If the user clicks on the second area, the electronic device can perform an operation of pausing playback. If the user clicks on the third area, the electronic device can perform a brightness adjustment operation. For example, if the user clicks on the first area and slides up on the first area, the electronic device can increase the brightness of the current display screen. If the user clicks on the first area and slides down on the first area, the electronic device can reduce the brightness of the current display screen.
又如,用户打开了诸如联系人、闹钟、备忘录或日历等应用,此时电子设备的显示屏显示的是当前应用的运行界面(即显示屏状态为应用界面状态)。若用户单击第二区域,那么电子设备执行新建事项的操作。例如,电子设备可以新建一个联系人或者新建一个闹钟或者新建一则备忘事项或者新建一则与日期关联的事项等。若用户单击第一区域,那么电子设备可以执行编辑操作。例如对当前选中的联系人的信息进行编辑或者对当前选中的备忘事项进行编辑等等。若用户单击第三区域,那么电子设备可以执行切换tab页的操作。例如,当前应用为备忘录,该备忘录中包含三项备忘事项,分别为备忘事项1、备忘事项2和备忘事项3。这3个备忘事项以不同的tab页的形式存在。例如,当前选中的是备忘事项1,那么若用户单击第三区域,则电子设备可以由当前选中的备忘事项1切换到备忘事项2。In another example, the user opens applications such as contacts, alarm clock, memo, or calendar. At this time, the display screen of the electronic device displays the running interface of the current application (that is, the state of the display screen is the state of the application interface). If the user clicks on the second area, the electronic device performs an operation of creating a new item. For example, the electronic device may create a new contact, a new alarm clock, a new memo item, or a new item associated with a date, and the like. If the user clicks on the first area, the electronic device can perform an editing operation. For example, edit the information of the currently selected contact or edit the currently selected memo, and so on. If the user clicks on the third area, the electronic device may perform an operation of switching tab pages. For example, the current application is a memo, and the memo includes three memos, namely memo 1, memo 2, and memo 3. These three memos exist in the form of different tab pages. For example, if the currently selected item 1 is the reminder item, if the user clicks on the third area, the electronic device can switch from the currently selected item 1 to the item 2 .
又如,用户打开了录音或短信应用,此时电子设备的显示屏显示的是应用的运行界面(即显示屏状态为应用界面状态)。若用户单击第二区域,那么电子设备可以执行新建事项的操作。例如,电子设备新建一则短信等。若用户单击第三区域,那么电子设备可以执行编辑的操作。例如,电子设备对当前选中的短信进行编辑等。In another example, the user opens the recording or short message application, and at this moment, the display screen of the electronic device displays the running interface of the application (that is, the state of the display screen is the state of the application interface). If the user clicks on the second area, the electronic device can perform the operation of creating a new item. For example, the electronic device creates a new text message and the like. If the user clicks on the third area, the electronic device can perform editing operations. For example, the electronic device edits the currently selected short message.
又如,用户打开了相册应用,此时电子设备的显示屏为应用界面状态。若用户单击第二区域,那么电子设备可以执行切换到日月年视图。若用户当前正在查看某张照片,若用户单击第二区域,那么电子设备可以执行照片编辑操作。In another example, the user opens the photo album application, and at this time, the display screen of the electronic device is in the state of the application interface. If the user clicks on the second area, the electronic device may switch to the day, month, and year view. If the user is currently viewing a certain photo, if the user clicks on the second area, the electronic device can perform photo editing operations.
又如,用户当前正在使用输入法应用,若用户单击第二区域,那么电子设备可以执行切换不同语音或表情符号的操作。For another example, the user is currently using an input method application, and if the user clicks on the second area, the electronic device may perform an operation of switching between different voices or emoticons.
又如,用户打开了电子书应用,此时电子设备的显示屏显示的电子书阅读界面(即显示屏状态为应用界面状态)。若用户单击第一区域后上下滑动,那么电子设备执行调节字体大小的操作。若用户单击第二区域,那么电子设备可以执行翻页操作。若用户单击第三区域后上下滑动,那么电子设备可以执行调节页面亮度的操作。In another example, when the user opens the e-book application, the display screen of the electronic device displays the e-book reading interface (that is, the state of the display screen is the state of the application interface). If the user clicks on the first area and slides up and down, the electronic device performs an operation of adjusting the font size. If the user clicks on the second area, the electronic device can perform a page turning operation. If the user clicks on the third area and slides up and down, the electronic device can perform an operation of adjusting the brightness of the page.
可以理解的是,本实施例中,当电子设备的显示屏当前显示的是应用运行界面时,若用户单击侧边框上的区域,那么电子设备可以执行与该区域对应的应用快捷功能,如暂停播放或播放上一首或播放下一首等等,从而提高电子设备的操作效率。It can be understood that, in this embodiment, when the display screen of the electronic device currently displays the application running interface, if the user clicks an area on the side frame, the electronic device can execute the application shortcut function corresponding to the area, such as Pause playback or play previous or next song, etc., thereby improving the operating efficiency of electronic equipment.
请参阅图13,图13为本申请实施例提供的触控操作方法的第五种流程示意图。该触控操作方法可以应用于电子设备中。如图4所示,该电子设备100可以包括侧边框10,该侧边框包括由上到下、依次相邻的第一区域11、第二区域12和第三区域13。在第一区域11、第二区域12和第三区域13中均设有触摸传感器,从而使得第一区域11、第二区域12和第三区域13均成为触摸区域。Please refer to FIG. 13 . FIG. 13 is a schematic flowchart of a fifth touch operation method provided by an embodiment of the present application. The touch operation method can be applied to electronic equipment. As shown in FIG. 4 , the electronic device 100 may include a side frame 10 , and the side frame includes a first region 11 , a second region 12 and a third region 13 that are sequentially adjacent from top to bottom. Touch sensors are provided in the first area 11 , the second area 12 and the third area 13 , so that the first area 11 , the second area 12 and the third area 13 all become touch areas.
该触控操作方法的流程可以包括:The process of the touch operation method may include:
在501中,电子设备通过触摸传感器获取用户的触摸信息。In 501, the electronic device acquires touch information of a user through a touch sensor.
在502中,电子设备确定目标区域,该目标区域为获取到触摸信息的触摸传感器所在的区域。In 502, the electronic device determines a target area, where the target area is an area where a touch sensor that acquires touch information is located.
在503中,电子设备确定显示屏状态。In 503, the electronic device determines the status of the display screen.
比如,501、502和503可以包括:For example, 501, 502, and 503 could include:
用户在电子设备的侧边框触发了触摸操作。此时,电子设备可以通过其侧边框的触摸传感器获取到用户的触摸信息。The user triggers a touch operation on the side frame of the electronic device. At this time, the electronic device can obtain the user's touch information through the touch sensor of its side frame.
之后,电子设备可以确定出获取到该用户的触摸信息的触摸传感器所在的目标区域。该目标区域可以是第一区域或第二区域或第三区域中的一个或多个。Afterwards, the electronic device can determine the target area where the touch sensor that has acquired the user's touch information is located. The target area may be one or more of the first area or the second area or the third area.
并且,电子设备还可以确定此时显示屏所处的显示屏状态。其中,该显示屏状态可以包括息屏状态和亮屏状态。亮屏状态又包括屏幕的锁定状态和屏幕的解锁状态。屏幕的解锁状态又包括应用界面状态和桌面状态。Moreover, the electronic device can also determine the display state of the display screen at this time. Wherein, the state of the display screen may include an off-screen state and an on-screen state. The on-screen state further includes a locked state of the screen and an unlocked state of the screen. The unlocked state of the screen includes the state of the application interface and the state of the desktop.
在504中,电子设备获取与触摸信息、目标区域及显示屏状态对应的指令,其中显示屏状态为解锁状态、触摸信息表示的触摸操作为双击。In 504, the electronic device acquires an instruction corresponding to the touch information, the target area, and the state of the display screen, wherein the state of the display screen is an unlocked state, and the touch operation represented by the touch information is a double-click.
比如,电子设备可以获取与触摸信息、目标区域及显示屏状态对应的指令,其中显示屏状态为解锁状态、触摸信息表示的触摸操作为双击。即,用户在侧边框上触发了双击操作,若此时显示屏状态为亮屏下的解锁状态,那么不论此时显示屏显示的是桌面或者应用运行界面,电子设备可以获取与双击操作所在的目标区域对应的指令。之后进入508,即执行该指令所指示的操作。For example, the electronic device may obtain instructions corresponding to the touch information, the target area, and the state of the display screen, wherein the state of the display screen is an unlocked state, and the touch operation represented by the touch information is a double-click. That is, the user triggers a double-click operation on the side frame. If the display screen is in the unlocked state under the bright screen at this time, the electronic device can obtain the location where the double-click operation is located regardless of whether the display screen displays the desktop or the application running interface at this time. The command corresponding to the target area. Then enter 508, that is, execute the operation indicated by the instruction.
例如,电子设备的显示屏当前处于亮屏下的解锁状态。若用户双击第一区域,那么电子设备可以执行清理进程的操作。若用户单击第二区域,那么电子设备可以执行打开语音助手的操作。若用户单击第三区域,那么电子设备可以执行截图功能。For example, the display screen of the electronic device is currently in an unlocked state with the screen on. If the user double-clicks the first area, then the electronic device can perform the operation of the cleaning process. If the user clicks on the second area, the electronic device can perform an operation of opening the voice assistant. If the user clicks on the third area, the electronic device can perform a screenshot function.
在505中,当显示屏状态为解锁状态且目标区域为第二区域时,若触摸信息表示的触摸操作为向上滑动则电子设备获取用于指示开启控制面板的指令,若触摸信息表示的触摸操作为向下滑动则电子设备获取用于指示开启通知面板的指令。In 505, when the state of the display screen is the unlocked state and the target area is the second area, if the touch operation indicated by the touch information is an upward slide, the electronic device acquires an instruction for instructing to open the control panel, and if the touch operation indicated by the touch information For sliding down, the electronic device acquires an instruction for instructing to open the notification panel.
比如,在显示屏状态为亮屏下的解锁状态时,即不论此时显示屏显示的是桌面或者应用运行界面,若用户在第二区域进行了上滑操作,那么电子设备可以获取用于指示开启控制面板的指令。该控制面板中包括电子设备的各种控制功能,如来电提醒模式设置、应用程序许可等。若用户在第二区域进行了下滑操作,那么电子设备可以获取用于指示开启通知面板的指令。该通知面板中包括电子设备的各个应用接收到的未读消息等通知信息。For example, when the state of the display screen is the unlocked state under the bright screen, that is, regardless of whether the display screen displays the desktop or the application running interface at this time, if the user performs an upward sliding operation in the second area, then the electronic device can obtain information for indicating Command to open the control panel. The control panel includes various control functions of the electronic device, such as incoming call reminder mode setting, application program permission, and the like. If the user performs a sliding operation in the second area, the electronic device may obtain an instruction for instructing to open the notification panel. The notification panel includes notification information such as unread messages received by various applications of the electronic device.
之后,进入508,即电子设备执行指令所指示的操作,例如,开启控制面板,或者开启通知面板。Afterwards, enter 508, that is, the electronic device performs the operation indicated by the instruction, for example, opening the control panel or opening the notification panel.
在506中,当显示屏状态为解锁状态且目标区域为第一区域时,若触摸信息表示的触摸动作为滑动,则电子设备获取用于指示进行音量调节的指令。In 506, when the state of the display screen is the unlocked state and the target area is the first area, if the touch action represented by the touch information is sliding, the electronic device acquires an instruction for instructing volume adjustment.
比如,在显示屏状态为亮屏下的解锁状态时,即不论此时显示屏显示的是桌面或者应用运行界面,若用户在第一区域进行了滑动操作,那么电子设备可以获取用于指示进行音量调节的指令。之后,进入508,即电子设备执行该指令所指示的操作。例如,在第一区域进行了上滑操作时,调大音量;在第一区域进行了下滑操作时,调小音量。For example, when the state of the display screen is the unlocked state under the bright screen, that is, regardless of whether the display screen displays the desktop or the application running interface at this time, if the user performs a sliding operation in the first area, then the electronic device can obtain an instruction to perform an operation. Instructions for volume adjustment. After that, go to 508, that is, the electronic device executes the operation indicated by the instruction. For example, when a sliding operation is performed in the first area, the volume is turned up; when a sliding operation is performed in the first area, the volume is turned down.
在507中,当显示屏状态为解锁状态且目标区域为第三区域时,若触摸信息表示的触摸操作为滑动,则电子设备获取用于指示进行亮度调节的指令。In 507, when the state of the display screen is the unlocked state and the target area is the third area, if the touch operation represented by the touch information is sliding, the electronic device acquires an instruction for instructing brightness adjustment.
比如,在显示屏状态为亮屏下的解锁状态时,即不论此时显示屏显示的是桌面或者应用运行界面,若用户在第三区域进行了滑动操作,那么电子设备可以获取用于指示进行亮度调节的指令。之后,进入508,即电子设备执行该指令所指示的操作。例如,在第三区域进行了上滑操作时,调高亮度;在第三区域进行了下滑操作时,调低亮度。For example, when the state of the display screen is the unlocked state under the bright screen, that is, regardless of whether the display screen displays the desktop or the application running interface at this time, if the user performs a sliding operation in the third area, then the electronic device can obtain an instruction to perform Instructions for brightness adjustment. After that, go to 508, that is, the electronic device executes the operation indicated by the instruction. For example, when a sliding operation is performed in the third area, the brightness is increased; when a sliding operation is performed in the third area, the brightness is decreased.
在508中,电子设备执行指令所指示的操作。In 508, the electronic device executes the operation indicated by the instruction.
比如,在获取到指令后,电子设备可以执行该指令所指示的操作。For example, after acquiring the instruction, the electronic device may execute the operation indicated by the instruction.
可以理解的是,本申请实施例中,用户可以通过在电子设备的侧边框上不同区域触发不同的触摸信息,从而实现众多快捷触控操作,而不需要占用屏幕内的区域或实体按键,因此本实施例不仅提高了电子设备的操作效率,而且不会增加屏幕或实体按键的操作负担。It can be understood that, in the embodiment of the present application, the user can trigger different touch information in different areas on the side frame of the electronic device, so as to realize many quick touch operations without occupying the area or physical keys in the screen, so This embodiment not only improves the operating efficiency of the electronic device, but also does not increase the operating burden of the screen or physical keys.
在一种实施方式中,本实施例还可以包括如下步骤:In one embodiment, this embodiment may also include the following steps:
电子设备预先获取多个面积值,并根据所述多个面积值确定出预设面积阈值,所述面积值为用户每次点击所述触摸传感器对应的触摸区域时所述触摸区域与用户手指相互接触的面积;The electronic device acquires a plurality of area values in advance, and determines a preset area threshold according to the plurality of area values, where the area value interacts with the touch area of the user's finger each time the user clicks the touch area corresponding to the touch sensor. contact area;
当获取到的触摸信息表示用户触发对所述触摸区域的一次点击动作时,若所述点击动作对应的面积达到预设面积阈值,则电子设备确定所述点击动作为单击。When the acquired touch information indicates that the user triggers a click action on the touch area, if the area corresponding to the click action reaches a preset area threshold, the electronic device determines that the click action is a single click.
比如,电子设备可以预先引导用户点击侧边框上设备的触摸区域,并获取用户每次点击触摸区域时触摸区域与用户手指相互接触的面积,从而得到多个面积值。然后,电子设备可以根据这多个面积值确定出预设面积阈值。For example, the electronic device may guide the user in advance to click the touch area of the device on the side frame, and obtain the contact area between the touch area and the user's finger each time the user clicks the touch area, so as to obtain multiple area values. Then, the electronic device can determine a preset area threshold according to the multiple area values.
例如,电子设备引导用户进行了5次点击,这5次点击的面积值分别为8.1、8.3、8.3、8.2、8.0。那么,电子设备可以计算这5个面积值的平均值,并将该平均值确定为预设面积阈值。例如,这5个面积值的平均值为8.18,那么预设面积阈值可以为8.18。For example, the electronic device guides the user to click 5 times, and the area values of the 5 clicks are 8.1, 8.3, 8.3, 8.2, and 8.0 respectively. Then, the electronic device can calculate the average value of these five area values, and determine the average value as the preset area threshold. For example, if the average value of these five area values is 8.18, then the preset area threshold may be 8.18.
在得到预设面积阈值后,当用户在侧边框的触摸区域上触发了一次点击动作时,只有在检测到该点击动作对应的面积达到预设面积阈值时,电子设备才会将该点击动作确定为单击。After obtaining the preset area threshold, when the user triggers a click action on the touch area of the side frame, the electronic device will only determine the click action when it detects that the area corresponding to the click action reaches the preset area threshold for click.
同理,当获取到的触摸信息表示用户连续两次在触摸区域触发点击动作时,只有在这连续的两次点击动作中的每一点击动作对应的面积均达到阈值面积阈值时,电子设备才会将这连续两次的点击动作确定为双击操作。Similarly, when the acquired touch information indicates that the user triggers click actions on the touch area twice in a row, the electronic device will only activate when the area corresponding to each click action in the two consecutive click actions reaches the threshold area threshold. The two consecutive click actions will be determined as a double-click operation.
可以理解的是,这样可以避免因用户误点击造成的触控误操作。It is understandable that in this way, touch misoperations caused by accidental clicks by the user can be avoided.
在一种实施方式中,本实施例还可以包括如下步骤:In one embodiment, this embodiment may also include the following steps:
电子设备预先获取多个轨迹长度值,并根据所述多个轨迹长度值确定出预设长度阈值,所述轨迹长度值为用户每次在所述触摸传感器对应的触摸区域进行滑动操作时轨迹的长度值;The electronic device acquires multiple track length values in advance, and determines a preset length threshold according to the multiple track length values, and the track length value is the length of the track every time the user performs a sliding operation on the touch area corresponding to the touch sensor. length value;
当获取到的触摸信息表示用户触发对所述触摸区域的一次触摸操作时,若所述触摸操作对应的触摸轨迹达到所述预设长度阈值,则电子设备确定所述触摸操作为滑动操作。When the acquired touch information indicates that the user triggers a touch operation on the touch area, if the touch track corresponding to the touch operation reaches the preset length threshold, the electronic device determines that the touch operation is a slide operation.
比如,电子设备可以预先引导用户在侧边框上的触摸区域进行滑动操作,并获取用户每次滑动操作的轨迹的长度值,从而得到多个轨迹长度值。然后,电子设备可以根据这多个轨迹长度值确定出预设长度阈值。For example, the electronic device may guide the user in advance to perform a sliding operation on the touch area on the side frame, and acquire a length value of a track of each sliding operation of the user, thereby obtaining multiple track length values. Then, the electronic device can determine a preset length threshold according to the multiple track length values.
例如,电子设备引导用户进行了5次滑动,这5次滑动操作的轨迹的长度值分别为10.5、10.6、10.7、10.8、10.9。那么,电子设备可以计算这5个轨迹长度值的平均值,并将该平均值确定为预设面积阈值。例如,这5个轨迹长度值的平均值为10.7,那么预设长度阈值可以为10.7。For example, the electronic device guides the user to slide five times, and the length values of the trajectories of these five slide operations are 10.5, 10.6, 10.7, 10.8, and 10.9 respectively. Then, the electronic device can calculate the average value of these five track length values, and determine the average value as the preset area threshold. For example, if the average value of the five track length values is 10.7, then the preset length threshold may be 10.7.
在得到预设长度阈值后,当用户在侧边框的触摸区域上触发了一次触摸动作时,只有在检测到该触摸动作对应的触摸轨迹达到预设长度阈值时,电子设备才会将该触摸动作确定为滑动操作。After obtaining the preset length threshold, when the user triggers a touch action on the touch area of the side frame, the electronic device will only take the touch action when it detects that the touch track corresponding to the touch action reaches the preset length threshold Determined as a swipe action.
可以理解的是,这样可以避免因用户误滑动造成的触控误操作。It is understandable that this can avoid touch misoperations caused by users sliding by mistake.
在一些实施方式中,电子设备可以允许用户自定义部分触摸操作所对应的指令或关闭部分触摸操作对应的指令。In some implementation manners, the electronic device may allow the user to customize an instruction corresponding to a partial touch operation or to disable an instruction corresponding to a partial touch operation.
在一些实施方式中,除了本实施例中提供的单击、双击、滑动、长按等等触摸动作时,用户还可以自定义一些触摸动作,如三击、重按、拖动等,及这些触摸动作需要实现的触控操作。In some implementations, in addition to the touch actions such as single click, double click, slide, and long press provided in this embodiment, the user can also customize some touch actions, such as triple click, heavy press, drag, etc., and these The touch operation that needs to be implemented for the touch action.
请参阅图14,图14为本申请实施例提供的触控操作装置的结构示意图。该触控操作装置应用于电子设备,该电子设备包括侧边框,该侧边框包括依次相邻的多个区域,每一区域中均设有触摸传感器。Please refer to FIG. 14 . FIG. 14 is a schematic structural diagram of a touch operation device provided by an embodiment of the present application. The touch operation device is applied to an electronic device, and the electronic device includes a side frame, and the side frame includes a plurality of successively adjacent areas, and each area is provided with a touch sensor.
触控操作装置600可以包括:第一获取模块601,确定模块602,第二获取模块603,执行模块604。The touch operation device 600 may include: a first acquisition module 601 , a determination module 602 , a second acquisition module 603 , and an execution module 604 .
第一获取模块601,用于通过所述触摸传感器,获取用户的触摸信息。The first acquiring module 601 is configured to acquire user's touch information through the touch sensor.
确定模块602,用于确确定目标区域,所述目标区域为获取到所述触摸信息的触摸传感器所在的区域。The determining module 602 is configured to determine a target area, where the target area is the area where the touch sensor that acquires the touch information is located.
第二获取模块603,用于获取与所述触摸信息及所述目标区域对应的指令。The second obtaining module 603 is configured to obtain an instruction corresponding to the touch information and the target area.
执行模块604,用于执行所述指令所指示的操作。The executing module 604 is configured to execute the operation indicated by the instruction.
在一种实施方式中,所述确定模块602还可以用于:确定所述电子设备的显示屏状态,所述显示屏状态包括息屏状态和亮屏状态,所述亮屏状态包括锁定状态和解锁状态,所述解锁状态包括应用界面状态和桌面状态。In one embodiment, the determination module 602 may also be used to: determine the display status of the electronic device, the display status includes an off screen status and a bright screen status, and the bright screen status includes a locked status and An unlocked state, where the unlocked state includes an application interface state and a desktop state.
那么,所述第二获取模块603可以用于获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令。Then, the second acquiring module 603 may be configured to acquire instructions corresponding to the touch information, the target area, and the display screen state.
一种实施方式中,所述第二获取模块603可以用于:In an implementation manner, the second obtaining module 603 may be used to:
当所述显示屏状态为解锁状态、所述触摸信息表示的触摸操作为按压且按压时长达到预设时长时,确定与所述目标区域关联的目标应用;When the state of the display screen is an unlocked state, the touch operation represented by the touch information is a press, and the press time reaches a preset duration, determine a target application associated with the target area;
获取指令,所述指令用于指示开启所述目标应用,并允许用户访问所述目标应用的所有数据。Obtaining an instruction, where the instruction is used to instruct to start the target application and allow the user to access all data of the target application.
一种实施方式中,所述第二获取模块603可以用于:In an implementation manner, the second obtaining module 603 may be used to:
当所述显示屏状态为息屏状态或锁定状态、所述触摸信息表示的触摸操作为按压且按压时长达到预设时长时,确定与所述目标区域关联的目标应用;When the state of the display screen is an off-screen state or a locked state, and the touch operation represented by the touch information is a press and the press time reaches a preset duration, determine the target application associated with the target area;
获取指令,所述指令用于指示开启所述目标应用,且拒绝用户访问所述目标应用在本次开启前产生的数据。Obtaining an instruction, where the instruction is used to instruct to start the target application, and deny the user access to the data generated before the start of the target application.
一种实施方式中,所述第二获取模块603可以用于:In an implementation manner, the second obtaining module 603 may be used to:
当所述显示屏状态为应用界面状态、所述触摸信息表示的触摸操作为单击或单击与滑动的组合时,获取当前应用的标识;When the state of the display screen is an application interface state and the touch operation represented by the touch information is a single click or a combination of single click and slide, obtain the current application identifier;
获取与所述当前应用的标识及所述目标区域对应的指令。Obtain an instruction corresponding to the identifier of the current application and the target area.
一种实施方式中,所述第二获取模块603可以用于:In an implementation manner, the second obtaining module 603 may be used to:
获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令,其中所述显示屏状态为解锁状态、所述触摸信息表示的触摸操作为双击。Acquiring instructions corresponding to the touch information, the target area, and the state of the display screen, wherein the state of the display screen is an unlocked state, and the touch operation indicated by the touch information is a double-click.
一种实施方式中,所述侧边框包括由上到下依次相邻的第一区域、第二区域和第三区域;所述第二获取模块603可以用于:In one implementation manner, the side frame includes a first area, a second area, and a third area that are sequentially adjacent from top to bottom; the second acquisition module 603 can be used to:
当所述显示屏状态为解锁状态且所述目标区域为所述第二区域时,若所述触摸信息表示的触摸操作为向上滑动,则获取用于指示开启控制面板的指令;When the state of the display screen is an unlocked state and the target area is the second area, if the touch operation represented by the touch information is an upward slide, an instruction for instructing to open the control panel is obtained;
当所述显示屏状态为解锁状态且所述目标区域为所述第二区域时,若所述触摸信息表示的触摸操作为向下滑动,则获取用于指示开启通知面板的指令;When the state of the display screen is an unlocked state and the target area is the second area, if the touch operation represented by the touch information is a downward slide, an instruction for instructing to open a notification panel is acquired;
当所述显示屏状态为解锁状态且所述目标区域为所述第一区域时,若所述触摸信息表示的触摸操作为滑动,则获取用于指示进行音量调节的指令;When the state of the display screen is an unlocked state and the target area is the first area, if the touch operation indicated by the touch information is a slide, acquire an instruction for instructing volume adjustment;
当所述显示屏状态为解锁状态且所述目标区域为所述第三区域时,若所述触摸信息表示的触摸操作为滑动,则获取用于指示进行亮度调节的指令。When the state of the display screen is an unlocked state and the target area is the third area, if the touch operation represented by the touch information is sliding, an instruction for instructing brightness adjustment is acquired.
请一并参阅图15,图15为本申请实施例提供的触控操作装置的另一结构示意图。在一实施例中,触控操作装置600还可以包括:设置模块605。Please also refer to FIG. 15 . FIG. 15 is another schematic structural diagram of the touch operation device provided by the embodiment of the present application. In an embodiment, the touch operation device 600 may further include: a setting module 605 .
设置模块605,用于预先获取多个面积值,并根据所述多个面积值确定出预设面积阈值,所述面积值为用户每次点击所述触摸传感器对应的触摸区域时所述触摸区域与用户手指相互接触的面积。A setting module 605, configured to acquire multiple area values in advance, and determine a preset area threshold according to the multiple area values, the area value being the touch area when the user clicks the touch area corresponding to the touch sensor each time The area of mutual contact with the user's finger.
那么,所述第一获取模块601可以用于:当获取到的触摸信息表示用户触发对所述触摸区域的一次点击动作时,若所述点击动作对应的面积达到预设面积阈值,则确定所述点击动作为单击。Then, the first acquiring module 601 may be configured to: when the acquired touch information indicates that the user triggers a click action on the touch area, if the area corresponding to the click action reaches a preset area threshold, determine the The click action described above is a click.
在一种实施方式中,所述第一获取模块601可以用于:当获取到的触摸信息表示用户连续两次触发对所述触摸区域的点击动作时,若每次点击动作对应的面积均达到预设面积阈值,则确定所述点击动作为双击。In one implementation manner, the first obtaining module 601 may be configured to: when the obtained touch information indicates that the user triggers two consecutive click actions on the touch area, if the area corresponding to each click action reaches If the area threshold is preset, it is determined that the click action is a double click.
在另一种实施方式中,所述设置模块605可以用于:In another implementation manner, the setting module 605 may be used to:
预先获取多个轨迹长度值,并根据所述多个轨迹长度值确定出预设长度阈值,所述轨迹长度值为用户每次在所述触摸传感器对应的触摸区域进行滑动操作时轨迹的长度值。Acquiring multiple track length values in advance, and determining a preset length threshold according to the multiple track length values, the track length value is the length value of the track every time the user performs a sliding operation on the touch area corresponding to the touch sensor .
那么,所述第一获取模块601可以用于:当获取到的触摸信息表示用户触发对所述触摸区域的一次触摸操作时,若所述触摸操作对应的触摸轨迹达到所述预设长度阈值,则确定所述触摸操作为滑动操作。Then, the first acquiring module 601 may be configured to: when the acquired touch information indicates that the user triggers a touch operation on the touch area, if the touch track corresponding to the touch operation reaches the preset length threshold, Then it is determined that the touch operation is a sliding operation.
本申请实施例提供一种计算机可读的存储介质,其上存储有计算机程序,当所述计算机程序在计算机上执行时,使得所述计算机执行如本实施例提供的触控操作方法中的步骤。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed on a computer, the computer is made to perform the steps in the touch operation method provided in this embodiment. .
本申请实施例还提供一种电子设备,包括存储器,处理器,所述处理器通过调用所述存储器中存储的计算机程序,用于执行本实施例提供的触控操作方法中的步骤。The embodiment of the present application also provides an electronic device, including a memory and a processor, and the processor is used to execute the steps in the touch operation method provided in this embodiment by invoking a computer program stored in the memory.
例如,上述电子设备可以是诸如平板电脑或者智能手机等移动终端。请参阅图16,图16为本申请实施例提供的电子设备的结构示意图。For example, the above-mentioned electronic device may be a mobile terminal such as a tablet computer or a smart phone. Please refer to FIG. 16 . FIG. 16 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
该电子设备700可以包括侧边框701、存储器702、处理器703等部件。本领域技术人员可以理解,图16中示出的电子设备结构并不构成对电子设备的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The electronic device 700 may include components such as a side frame 701 , a memory 702 , and a processor 703 . Those skilled in the art can understand that the structure of the electronic device shown in FIG. 16 does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
侧边框701可以包括依次相邻的多个区域,在每一区域中均设有触摸传感器。The side frame 701 may include a plurality of adjacent areas in sequence, and a touch sensor is provided in each area.
存储器702可用于存储应用程序和数据。存储器702存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器703通过运行存储在存储器702的应用程序,从而执行各种功能应用以及数据处理。Memory 702 may be used to store applications and data. The application programs stored in the memory 702 include executable codes. Applications can be composed of various functional modules. The processor 703 executes various functional applications and data processing by running the application programs stored in the memory 702 .
处理器703是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器702内的应用程序,以及调用存储在存储器702内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 703 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing the application program stored in the memory 702 and calling the data stored in the memory 702, the electronic device executes Various functions and processing data, so as to monitor the electronic equipment as a whole.
在本实施例中,电子设备中的处理器703会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器702中,并由处理器703来运行存储在存储器702中的应用程序,从而实现步骤:In this embodiment, the processor 703 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 702 according to the following instructions, and the processor 703 runs the executable code stored in the memory. 702 in the application, thereby implementing the steps:
通过所述触摸传感器,获取用户的触摸信息;确定目标区域,所述目标区域为获取到所述触摸信息的触摸传感器所在的区域;获取与所述触摸信息及所述目标区域对应的指令;执行所述指令所指示的操作。Obtain user touch information through the touch sensor; determine a target area, where the target area is the area where the touch sensor that has acquired the touch information is located; acquire an instruction corresponding to the touch information and the target area; execute The operation indicated by the instruction.
请参阅图17,电子设备800可以包括侧边框801、存储器802、处理器803、输入单元804、输出单元805等部件。Referring to FIG. 17 , an electronic device 800 may include components such as a side frame 801 , a memory 802 , a processor 803 , an input unit 804 , and an output unit 805 .
侧边框801可以包括依次相邻的多个区域,在每一区域中均设有触摸传感器。The side frame 801 may include a plurality of successively adjacent regions, each of which is provided with a touch sensor.
存储器802可用于存储应用程序和数据。存储器802存储的应用程序中包含有可执行代码。应用程序可以组成各种功能模块。处理器803通过运行存储在存储器802的应用程序,从而执行各种功能应用以及数据处理。Memory 802 may be used to store applications and data. The application programs stored in the memory 802 include executable codes. Applications can be composed of various functional modules. The processor 803 executes various functional applications and data processing by running the application programs stored in the memory 802 .
处理器803是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器802内的应用程序,以及调用存储在存储器802内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。The processor 803 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing the application program stored in the memory 802 and calling the data stored in the memory 802, the electronic device executes Various functions and processing data, so as to monitor the electronic equipment as a whole.
输入单元804可用于接收输入的数字、字符信息或用户特征信息(比如指纹),以及产生与用户设置以及功能控制有关的键盘、鼠标、操作杆、光学或者轨迹球信号输入。The input unit 804 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.
输出单元805可用于显示由用户输入的信息或提供给用户的信息以及电子设备的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、视频和其任意组合来构成。输出单元可包括显示面板。The output unit 805 can be used to display information input by or provided to the user and various graphical user interfaces of the electronic device. These graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. The output unit may include a display panel.
在本实施例中,电子设备中的处理器803会按照如下的指令,将一个或一个以上的应用程序的进程对应的可执行代码加载到存储器802中,并由处理器803来运行存储在存储器802中的应用程序,从而实现步骤:In this embodiment, the processor 803 in the electronic device loads the executable code corresponding to the process of one or more application programs into the memory 802 according to the following instructions, and the processor 803 runs the executable code stored in the memory. 802 in the application, thereby implementing the steps:
通过所述触摸传感器,获取用户的触摸信息;确定目标区域,所述目标区域为获取到所述触摸信息的触摸传感器所在的区域;获取与所述触摸信息及所述目标区域对应的指令;执行所述指令所指示的操作。Obtain user touch information through the touch sensor; determine a target area, where the target area is the area where the touch sensor that has acquired the touch information is located; acquire an instruction corresponding to the touch information and the target area; execute The operation indicated by the instruction.
在一种实施方式中,处理器803还可以执行:确定所述电子设备的显示屏状态,所述显示屏状态包括息屏状态和亮屏状态,所述亮屏状态包括锁定状态和解锁状态,所述解锁状态包括应用界面状态和桌面状态。In an implementation manner, the processor 803 may further perform: determining a display screen state of the electronic device, the display screen state including an off-screen state and a bright screen state, the bright screen state including a locked state and an unlocked state, The unlocked state includes an application interface state and a desktop state.
那么,处理器803执行所述获取与所述触摸信息及所述目标区域对应的指令的步骤时,可以执行:获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令。Then, when the processor 803 executes the step of acquiring the instruction corresponding to the touch information and the target area, it may perform: acquiring the instruction corresponding to the touch information, the target area, and the state of the display screen.
在一种实施方式中,处理器803执行所述获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令的步骤时,可以执行:当所述显示屏状态为解锁状态、所述触摸信息表示的触摸操作为按压且按压时长达到预设时长时,确定与所述目标区域关联的目标应用;获取指令,所述指令用于指示开启所述目标应用,并允许用户访问所述目标应用的所有数据。In one implementation manner, when the processor 803 executes the step of acquiring the instruction corresponding to the touch information, the target area, and the display screen state, it may execute: when the display screen state is an unlocked state, When the touch operation indicated by the touch information is pressing and the pressing time reaches a preset time, determine the target application associated with the target area; acquire an instruction, the instruction is used to instruct to open the target application, and allow the user to access the target application. All data of the target application.
在一种实施方式中,处理器803执行所述获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令的步骤时,可以执行:当所述显示屏状态为息屏状态或锁定状态、所述触摸信息表示的触摸操作为按压且按压时长达到预设时长时,确定与所述目标区域关联的目标应用;获取指令,所述指令用于指示开启所述目标应用,且拒绝用户访问所述目标应用在本次开启前产生的数据。In one implementation manner, when the processor 803 executes the step of acquiring the instruction corresponding to the touch information, the target area, and the display screen state, it may execute: when the display screen state is the off-screen state Or lock state, when the touch operation represented by the touch information is a press and the press time reaches a preset duration, determine the target application associated with the target area; acquire an instruction, the instruction is used to instruct to open the target application, and Deny user access to data generated by the target application before this launch.
在一种实施方式中,处理器803执行获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令的步骤时,可以执行:当所述显示屏状态为应用界面状态、所述触摸信息表示的触摸操作为单击或单击与滑动的组合时,获取当前应用的标识;获取与所述当前应用的标识及所述目标区域对应的指令。In one embodiment, when the processor 803 executes the step of acquiring the instruction corresponding to the touch information, the target area, and the display screen state, it may execute: when the display screen state is an application interface state, the When the touch operation represented by the touch information is a click or a combination of click and slide, the identification of the current application is acquired; and the instruction corresponding to the identification of the current application and the target area is acquired.
在一种实施方式中,处理器803执行所述获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令的步骤时,可以执行:获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令,其中所述显示屏状态为解锁状态、所述触摸信息表示的触摸操作为双击。In one implementation manner, when the processor 803 executes the step of acquiring the instruction corresponding to the touch information, the target area, and the display screen state, it may perform: acquire An instruction corresponding to the area and the state of the display screen, wherein the state of the display screen is an unlocked state, and the touch operation represented by the touch information is a double-click.
在一种实施方式中,所述侧边框包括由上到下依次相邻的第一区域、第二区域和第三区域;处理器803执行所述获取与所述触摸信息、所述目标区域及所述显示屏状态对应的指令的步骤时,可以执行:当所述显示屏状态为解锁状态且所述目标区域为所述第二区域时,若所述触摸信息表示的触摸操作为向上滑动,则获取用于指示开启控制面板的指令;当所述显示屏状态为解锁状态且所述目标区域为所述第二区域时,若所述触摸信息表示的触摸操作为向下滑动,则获取用于指示开启通知面板的指令;当所述显示屏状态为解锁状态且所述目标区域为所述第一区域时,若所述触摸信息表示的触摸操作为滑动,则获取用于指示进行音量调节的指令;当所述显示屏状态为解锁状态且所述目标区域为所述第三区域时,若所述触摸信息表示的触摸操作为滑动,则获取用于指示进行亮度调节的指令。In one implementation manner, the side frame includes a first area, a second area, and a third area that are sequentially adjacent from top to bottom; In the step of the instruction corresponding to the state of the display screen, it may be executed: when the state of the display screen is an unlocked state and the target area is the second area, if the touch operation represented by the touch information is an upward slide, Then acquire an instruction for instructing to open the control panel; when the state of the display screen is unlocked and the target area is the second area, if the touch operation represented by the touch information is a downward slide, then acquire Instructions for instructing to open the notification panel; when the state of the display screen is unlocked and the target area is the first area, if the touch operation represented by the touch information is a slide, acquire an instruction for volume adjustment An instruction; when the state of the display screen is an unlocked state and the target area is the third area, if the touch operation represented by the touch information is a slide, acquire an instruction for instructing brightness adjustment.
在一种实施方式中,处理器803还可以执行:预先获取多个面积值,并根据所述多个面积值确定出预设面积阈值,所述面积值为用户每次点击所述触摸传感器对应的触摸区域时所述触摸区域与用户手指相互接触的面积;当获取到的触摸信息表示用户触发对所述触摸区域的一次点击动作时,若所述点击动作对应的面积达到预设面积阈值,则确定所述点击动作为单击。In one embodiment, the processor 803 may also perform: pre-acquire multiple area values, and determine a preset area threshold according to the multiple area values, the area value corresponding to each time the user clicks on the touch sensor The touch area is the area where the touch area and the user's finger are in contact with each other; when the acquired touch information indicates that the user triggers a click action on the touch area, if the area corresponding to the click action reaches the preset area threshold, Then it is determined that the click action is a single click.
在一种实施方式中,处理器803还可以执行:当获取到的触摸信息表示用户连续两次触发对所述触摸区域的点击动作时,若每次点击动作对应的面积均达到预设面积阈值,则确定所述点击动作为双击。In an implementation manner, the processor 803 may further execute: when the acquired touch information indicates that the user triggers two consecutive click actions on the touch area, if the area corresponding to each click action reaches the preset area threshold , then it is determined that the click action is a double click.
在一种实施方式中,处理器803还可以执行:预先获取多个轨迹长度值,并根据所述多个轨迹长度值确定出预设长度阈值,所述轨迹长度值为用户每次在所述触摸传感器对应的触摸区域进行滑动操作时轨迹的长度值;当获取到的触摸信息表示用户触发对所述触摸区域的一次触摸操作时,若所述触摸操作对应的触摸轨迹达到所述预设长度阈值,则确定所述触摸操作为滑动操作。In one embodiment, the processor 803 may also perform: pre-obtaining multiple track length values, and determining a preset length threshold according to the multiple track length values, the track length value being the The length value of the track when the touch area corresponding to the touch sensor performs a sliding operation; when the acquired touch information indicates that the user triggers a touch operation on the touch area, if the touch track corresponding to the touch operation reaches the preset length threshold, it is determined that the touch operation is a sliding operation.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见上文针对触控操作方法的详细描述,此处不再赘述。In the above-mentioned embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the detailed description of the touch operation method above, and will not be repeated here.
本申请实施例提供的所述触控操作装置与上文实施例中的触控操作方法属于同一构思,在所述触控操作装置上可以运行所述触控操作方法实施例中提供的任一方法,其具体实现过程详见所述触控操作方法实施例,此处不再赘述。The touch operation device provided in the embodiment of the present application belongs to the same idea as the touch operation method in the above embodiments, and any of the touch operation methods provided in the embodiments of the touch operation method can be run on the touch operation device. method, and its specific implementation process can be found in the embodiment of the touch operation method, and will not be repeated here.
需要说明的是,对本申请实施例所述触控操作方法而言,本领域普通技术人员可以理解实现本申请实施例所述触控操作方法的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述计算机程序可存储于一计算机可读取存储介质中,如存储在存储器中,并被至少一个处理器执行,在执行过程中可包括如所述触控操作方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(ROM,Read Only Memory)、随机存取记忆体(RAM,Random Access Memory)等。It should be noted that, for the touch operation method described in the embodiment of the present application, those skilled in the art can understand that all or part of the flow of the touch operation method described in the embodiment of the application can be controlled by a computer program. hardware, the computer program can be stored in a computer-readable storage medium, such as a memory, and executed by at least one processor, and the execution process can include the implementation of the touch operation method example process. Wherein, the storage medium may be a magnetic disk, an optical disk, a read only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory) and the like.
对本申请实施例的所述触控操作装置而言,其各功能模块可以集成在一个处理芯片中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中,所述存储介质譬如为只读存储器,磁盘或光盘等。For the touch operation device in the embodiment of the present application, its various functional modules may be integrated into one processing chip, or each module may exist separately physically, or two or more modules may be integrated into one module. The above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. If the integrated modules are implemented in the form of software function modules and sold or used as independent products, they can also be stored in a computer-readable storage medium, such as read-only memory, magnetic disk or optical disk, etc. .
以上对本申请实施例所提供的一种触控操作方法、装置、存储介质以及电子设备进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。A touch operation method, device, storage medium, and electronic equipment provided by the embodiments of the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principle and implementation of the present invention. The description of the above embodiments It is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this The content of the description should not be construed as limiting the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810688999.1ACN108984093B (en) | 2018-06-28 | 2018-06-28 | Touch operation method, device, storage medium and electronic device |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201810688999.1ACN108984093B (en) | 2018-06-28 | 2018-06-28 | Touch operation method, device, storage medium and electronic device |
| Publication Number | Publication Date |
|---|---|
| CN108984093Atrue CN108984093A (en) | 2018-12-11 |
| CN108984093B CN108984093B (en) | 2020-12-22 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201810688999.1AExpired - Fee RelatedCN108984093B (en) | 2018-06-28 | 2018-06-28 | Touch operation method, device, storage medium and electronic device |
| Country | Link |
|---|---|
| CN (1) | CN108984093B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110134239A (en)* | 2019-05-13 | 2019-08-16 | Oppo广东移动通信有限公司 | Information transmission method, storage medium, and electronic device |
| CN110297593A (en)* | 2019-06-28 | 2019-10-01 | Oppo广东移动通信有限公司 | The processing method of electronic equipment and notice |
| CN110399082A (en)* | 2019-07-05 | 2019-11-01 | 北京达佳互联信息技术有限公司 | A kind of terminal attribute control method, device, electronic equipment and medium |
| CN111638809A (en)* | 2020-05-22 | 2020-09-08 | 讯飞幻境(北京)科技有限公司 | Method, device, equipment and medium for acquiring touch information |
| CN111666024A (en)* | 2020-05-28 | 2020-09-15 | 维沃移动通信(杭州)有限公司 | Screen recording method and device and electronic equipment |
| CN111756876A (en)* | 2019-03-27 | 2020-10-09 | 北京小米移动软件有限公司 | Touch detection device, method and terminal |
| CN111857496A (en)* | 2020-06-30 | 2020-10-30 | 维沃移动通信有限公司 | Operation execution method, device and electronic device |
| CN112558803A (en)* | 2019-09-26 | 2021-03-26 | 北京钛方科技有限责任公司 | Vehicle-mounted touch device, control method and automobile |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014104727A1 (en)* | 2012-12-26 | 2014-07-03 | 전자부품연구원 | Method for providing user interface using multi-point touch and apparatus for same |
| CN103955337A (en)* | 2014-05-06 | 2014-07-30 | 北京金山安全软件有限公司 | Method and system for opening application program in mobile terminal |
| CN104156073A (en)* | 2014-08-29 | 2014-11-19 | 深圳市中兴移动通信有限公司 | Mobile terminal and operation method thereof |
| CN104636039A (en)* | 2015-01-30 | 2015-05-20 | 深圳市中兴移动通信有限公司 | Application control method and device based on borderless terminal |
| CN104679429A (en)* | 2015-02-12 | 2015-06-03 | 深圳市中兴移动通信有限公司 | Accidental-touch-prevention method and device |
| CN104991711A (en)* | 2015-06-10 | 2015-10-21 | 努比亚技术有限公司 | Method, apparatus and terminal for processing information |
| CN105511784A (en)* | 2015-12-02 | 2016-04-20 | 北京新美互通科技有限公司 | Information input method, device and mobile terminal based on pressure detection |
| CN106527852A (en)* | 2016-10-31 | 2017-03-22 | 努比亚技术有限公司 | Control device and method of terminal application bar |
| CN107037971A (en)* | 2017-03-27 | 2017-08-11 | 努比亚技术有限公司 | Application management device, mobile terminal and method |
| CN108040145A (en)* | 2017-12-14 | 2018-05-15 | 广东欧珀移动通信有限公司 | Electronic device, operation control method and related product |
| CN108089795A (en)* | 2018-01-22 | 2018-05-29 | 广东欧珀移动通信有限公司 | Touch operation method and device, storage medium and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2014104727A1 (en)* | 2012-12-26 | 2014-07-03 | 전자부품연구원 | Method for providing user interface using multi-point touch and apparatus for same |
| CN103955337A (en)* | 2014-05-06 | 2014-07-30 | 北京金山安全软件有限公司 | Method and system for opening application program in mobile terminal |
| CN104156073A (en)* | 2014-08-29 | 2014-11-19 | 深圳市中兴移动通信有限公司 | Mobile terminal and operation method thereof |
| CN104636039A (en)* | 2015-01-30 | 2015-05-20 | 深圳市中兴移动通信有限公司 | Application control method and device based on borderless terminal |
| CN104679429A (en)* | 2015-02-12 | 2015-06-03 | 深圳市中兴移动通信有限公司 | Accidental-touch-prevention method and device |
| CN104991711A (en)* | 2015-06-10 | 2015-10-21 | 努比亚技术有限公司 | Method, apparatus and terminal for processing information |
| CN105511784A (en)* | 2015-12-02 | 2016-04-20 | 北京新美互通科技有限公司 | Information input method, device and mobile terminal based on pressure detection |
| CN106527852A (en)* | 2016-10-31 | 2017-03-22 | 努比亚技术有限公司 | Control device and method of terminal application bar |
| CN107037971A (en)* | 2017-03-27 | 2017-08-11 | 努比亚技术有限公司 | Application management device, mobile terminal and method |
| CN108040145A (en)* | 2017-12-14 | 2018-05-15 | 广东欧珀移动通信有限公司 | Electronic device, operation control method and related product |
| CN108089795A (en)* | 2018-01-22 | 2018-05-29 | 广东欧珀移动通信有限公司 | Touch operation method and device, storage medium and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111756876A (en)* | 2019-03-27 | 2020-10-09 | 北京小米移动软件有限公司 | Touch detection device, method and terminal |
| CN110134239A (en)* | 2019-05-13 | 2019-08-16 | Oppo广东移动通信有限公司 | Information transmission method, storage medium, and electronic device |
| CN110134239B (en)* | 2019-05-13 | 2022-05-17 | Oppo广东移动通信有限公司 | Information transmission method, storage medium and electronic device |
| CN110297593A (en)* | 2019-06-28 | 2019-10-01 | Oppo广东移动通信有限公司 | The processing method of electronic equipment and notice |
| CN110399082A (en)* | 2019-07-05 | 2019-11-01 | 北京达佳互联信息技术有限公司 | A kind of terminal attribute control method, device, electronic equipment and medium |
| CN112558803A (en)* | 2019-09-26 | 2021-03-26 | 北京钛方科技有限责任公司 | Vehicle-mounted touch device, control method and automobile |
| CN111638809A (en)* | 2020-05-22 | 2020-09-08 | 讯飞幻境(北京)科技有限公司 | Method, device, equipment and medium for acquiring touch information |
| CN111666024A (en)* | 2020-05-28 | 2020-09-15 | 维沃移动通信(杭州)有限公司 | Screen recording method and device and electronic equipment |
| CN111857496A (en)* | 2020-06-30 | 2020-10-30 | 维沃移动通信有限公司 | Operation execution method, device and electronic device |
| Publication number | Publication date |
|---|---|
| CN108984093B (en) | 2020-12-22 |
| Publication | Publication Date | Title |
|---|---|---|
| US12216897B2 (en) | Device, method, and graphical user interface for displaying a plurality of setting controls | |
| CN108984093B (en) | Touch operation method, device, storage medium and electronic device | |
| US12197695B2 (en) | Device, method, and graphical user interface for navigating and displaying content in context | |
| JP7469396B2 (en) | Gestural Graphical User Interface for Managing Simultaneously Open Software Applications - Patent application | |
| KR102490421B1 (en) | Systems, devices, and methods for dynamically providing user interface controls at a touch-sensitive secondary display | |
| KR102367838B1 (en) | Device, method, and graphical user interface for managing concurrently open software applications | |
| US11914419B2 (en) | Systems and methods for prompting a log-in to an electronic device based on biometric information received from a user | |
| US20190073101A1 (en) | Method and device for switching pages of applications in a terminal device | |
| US8060825B2 (en) | Creating digital artwork based on content file metadata | |
| US20120289290A1 (en) | Transferring objects between application windows displayed on mobile terminal | |
| US8694902B2 (en) | Device, method, and graphical user interface for modifying a multi-column application | |
| US20150026554A1 (en) | Device, method, and graphical user interface for manipulating tables using multicontact gestures | |
| US20140282110A1 (en) | Device, method, and graphical user interface for managing concurrently open software applications | |
| US20140157201A1 (en) | Touch screen hover input handling | |
| CN110531920A (en) | Display method and device of sidebar, terminal and storage medium | |
| CN113311968B (en) | Application association method and device | |
| CN108334371A (en) | The method and apparatus of edit object | |
| CN112540821A (en) | Information sending method and electronic equipment | |
| WO2023016463A1 (en) | Display control method and apparatus, and electronic device and medium | |
| WO2024139477A1 (en) | Interaction method and apparatus, electronic device, and storage medium | |
| CN115407909A (en) | Content sharing method, device, terminal and storage medium | |
| WO2023045927A1 (en) | Object moving method and electronic device | |
| CN111782113B (en) | Display method, display device and computer-readable storage medium | |
| CN117193914A (en) | Display method, device and electronic device | |
| CN111782381B (en) | Task management method, device, mobile terminal and storage medium |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | Granted publication date:20201222 | |
| CF01 | Termination of patent right due to non-payment of annual fee |