WO2023016193A1 - 设备控制方法、装置、电子设备以及存储介质 - Google Patents

设备控制方法、装置、电子设备以及存储介质 Download PDF

Info

Publication number
WO2023016193A1
WO2023016193A1 PCT/CN2022/106249 CN2022106249W WO2023016193A1 WO 2023016193 A1 WO2023016193 A1 WO 2023016193A1 CN 2022106249 W CN2022106249 W CN 2022106249W WO 2023016193 A1 WO2023016193 A1 WO 2023016193A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch screen
edge
sliding operation
fingers
electronic device
Prior art date
Application number
PCT/CN2022/106249
Other languages
English (en)
French (fr)
Inventor
孔凡秀
黎瀚
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2023016193A1 publication Critical patent/WO2023016193A1/zh

Links

Images

Classifications

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

Definitions

  • the present application relates to the technical field of electronic devices, and more specifically, to a device control method, device, electronic device, and storage medium.
  • the present application proposes a device control method, device, electronic device and storage medium to solve the above problems.
  • an embodiment of the present application provides a device control method, which is applied to an electronic device.
  • the electronic device includes a touch screen, and the touch screen includes a display area.
  • the method includes: responding to a sliding operation acting on the touch screen, and obtaining the starting position corresponding to the sliding operation , and acquire the number of fingers corresponding to the sliding operation; when the distance between the starting position and the first edge of the touch screen is less than a first preset distance, control the display area according to the number of fingers.
  • the embodiment of the present application provides a device control device, which is applied to an electronic device.
  • the electronic device includes a touch screen, and the touch screen includes a display area.
  • the starting position corresponding to the sliding operation, and obtaining the number of fingers corresponding to the sliding operation; the device control module is used to control the display area according to the number of fingers when the distance between the starting position and the first edge of the touch screen is less than the first preset distance .
  • an embodiment of the present application provides an electronic device, including a touch screen, a memory, and a processor.
  • the touch screen and the memory are coupled to the processor, and the memory stores instructions.
  • the processor executes the above method.
  • the embodiment of the present application provides a computer-readable storage medium, in which a program code is stored, and the program code can be invoked by a processor to execute the above method.
  • FIG. 1 shows a schematic flowchart of a device control method provided by an embodiment of the present application
  • FIG. 2 shows a schematic flowchart of a device control method provided in another embodiment of the present application
  • FIG. 3 shows a schematic flowchart of a device control method provided in another embodiment of the present application.
  • FIG. 4 shows a schematic flowchart of a device control method provided in another embodiment of the present application.
  • Fig. 5 shows a schematic diagram of the first sliding operation provided by the embodiment of the present application
  • FIG. 6 shows a schematic diagram of the first interface of the electronic device provided by the embodiment of the present application.
  • Fig. 7 shows a schematic diagram of the second sliding operation provided by the embodiment of the present application.
  • FIG. 8 shows a schematic diagram of a second interface of the electronic device provided by the embodiment of the present application.
  • FIG. 9 shows a schematic diagram of the third sliding operation provided by the embodiment of the present application.
  • Fig. 10 shows a schematic diagram of the fourth sliding operation provided by the embodiment of the present application.
  • FIG. 11 shows a schematic diagram of a third interface of an electronic device provided by an embodiment of the present application.
  • Fig. 12 shows a schematic flowchart of a device control method provided in still another embodiment of the present application.
  • FIG. 13 shows a schematic flowchart of step S550 of the device control method shown in FIG. 12 of the present application
  • Fig. 14 shows a schematic diagram of the fifth sliding operation provided by the embodiment of the present application.
  • Fig. 15 shows a schematic diagram of a fourth interface of an electronic device provided by an embodiment of the present application.
  • FIG. 16 shows a block diagram of a device control device provided by an embodiment of the present application.
  • FIG. 17 shows a block diagram of an electronic device used to execute a device control method according to an embodiment of the present application in an embodiment of the present application;
  • Fig. 18 shows a storage unit for storing or carrying program codes for implementing the device control method according to the embodiment of the present application according to the embodiment of the present application.
  • electronic devices generally start to support quick triggering of control functions.
  • electronic devices generally start to support quick triggering of control functions according to a user's sliding operation on a touch screen of the electronic device.
  • the electronic device is provided with multiple shortcut control functions, it is difficult to accurately identify the control function that the user wants to trigger quickly through the sliding operation triggered by the user, so that misoperations are likely to occur.
  • the inventor found through research that in order to solve the problem of easy misoperation, the electronic device can be set with different sliding positions corresponding to different shortcut control functions.
  • due to the volume limitation of the electronic device it is difficult to accurately identify the shortcut through the sliding position Triggered control functions are also prone to misoperation.
  • the inventor found after long-term research and proposed the device control method, device, electronic device and storage medium provided by the embodiment of the present application, by controlling the display area according to the starting position and the number of fingers corresponding to the sliding operation , to increase the trigger success rate of the corresponding control.
  • the specific device control method will be described in detail in the subsequent embodiments.
  • FIG. 1 shows a schematic flowchart of a device control method provided by an embodiment of the present application.
  • the device control method is used to control the display area according to the starting position and the number of fingers corresponding to the sliding operation, so as to improve the triggering success rate of the corresponding control.
  • the device control method is applied to the device control device 200 shown in FIG. 16 and the electronic device 100 ( FIG. 17 ) configured with the device control device 200 .
  • the following will take an electronic device as an example to illustrate the specific process of this embodiment.
  • the electronic device applied in this embodiment may be a smart phone, a tablet computer, a wearable electronic device, etc., which is not limited here.
  • the process shown in FIG. 1 will be described in detail below.
  • the electronic device includes a touch screen, and the touch screen includes a display area.
  • the device control method may specifically include the following steps:
  • Step S110 Responding to the sliding operation on the touch screen, obtain the starting position corresponding to the sliding operation, and obtain the number of fingers corresponding to the sliding operation.
  • the touch operation acting on the touch screen may be detected, and the touch operation may include single-finger click operation, multi-finger click operation, single-finger press operation, multi-finger press operation, single-finger slide operation, Multi-finger slide operation, single-finger long press operation, multi-finger long press operation, etc. are not limited here.
  • the starting position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation may be acquired in response to the sliding operation acting on the touch screen.
  • the touch screen of the device is in the unlocked state
  • the interface currently displayed on the touch screen of the electronic device can be detected, wherein, when it is detected that the interface currently displayed by the electronic device is a desktop or an application interface, the touch screen on the touch screen can be detected.
  • the starting position corresponding to the sliding operation can be obtained in response to the sliding operation on the touch screen, and the number of fingers corresponding to the sliding operation can be obtained.
  • a touch sensor may be provided on a touch screen of an electronic device.
  • the touch operation acting on the touch screen can be detected through the touch sensor.
  • the sliding operation acting on the touch screen is detected through the touch sensor, the starting position corresponding to the sliding operation can be detected through the touch sensor, and the sliding operation can be detected through the touch sensor.
  • the number of fingers corresponding to the operation can be detected.
  • a coordinate system can be established with a certain position on the touch screen of the electronic device as the coordinate origin, the touch sensor detects the initial touch position of the sliding operation, and obtains the coordinates of the initial touch position in the coordinate system as The start position corresponding to the swipe operation.
  • the number of touch trajectories of the sliding operation can be detected by the touch sensor, and the number of fingers corresponding to the sliding operation can be obtained based on the number of touch trajectories, wherein the number of touch trajectories is consistent with the number of fingers, for example, when the number of fingers is When there is one finger, the number of touch tracks is one; when there are two fingers, the number of touch tracks is two.
  • a pressure sensor may be provided on the touch screen of the electronic device.
  • the touch operation acting on the touch screen can be detected by the pressure sensor.
  • the starting position corresponding to the sliding operation can be detected by the pressure sensor, and the sliding operation can be detected by the pressure sensor.
  • a coordinate system can be established with a certain position on the touch screen of the electronic device as the coordinate origin, the initial pressing position of the sliding operation can be detected by the pressure sensor, and the coordinates of the initial pressing position in the coordinate system can be obtained as The start position corresponding to the swipe operation.
  • the pressure sensor can be used to detect the number of pressing trajectories of the sliding operation, and the number of fingers corresponding to the sliding operation can be obtained based on the number of pressing trajectories, wherein the number of pressing trajectories is consistent with the number of fingers, for example, when the number of fingers is When there is one finger, the number of pressing tracks is one, and when the number of fingers is two, then the number of pressing tracks is two.
  • a pressure sensor and a touch sensor may be provided on the touch screen of the electronic device.
  • the electronic device may also jointly detect the start position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation through the touch sensor and the pressure sensor, which will not be repeated here.
  • the position corresponding to the midpoint of the touch of one finger can be used as the starting position, and the position corresponding to the touch vertex of one finger can be used as the starting point
  • the position may also be a position corresponding to the bottom point touched by a finger as the starting position, which is not limited here.
  • the position corresponding to the midpoint of the touch of multiple fingers can be used as the starting position (choose one of the multiple fingers
  • the respective touch midpoints of each finger, and the touch midpoints of multiple fingers are obtained based on the respective touch midpoints of each finger)
  • the positions corresponding to the touch vertices of multiple fingers can be used as the starting position (select the touch points among multiple fingers
  • the position corresponding to the touch point closer to the first edge is used as the starting position)
  • the position corresponding to the touch bottom point of multiple fingers can be used as the starting position, which is not limited here (choose the touch point of multiple fingers farther away from the first edge
  • the position corresponding to the touch point on an edge is used as the starting position).
  • Step S120 When the distance between the starting point and the first edge of the touch screen is less than a first preset distance, control the display area according to the number of fingers.
  • a touch screen of an electronic device includes a first edge.
  • the first edge may be the top edge of the electronic device, the bottom edge of the electronic device, the left edge of the electronic device, or the right edge of the electronic device. It is not limited here.
  • the electronic device may preset and store a first preset distance, which is used as a basis for judging the distance between the starting point and the first edge of the touch screen. Therefore, in this embodiment, after obtaining the starting point position corresponding to the sliding operation, the distance between the starting point position and the first edge of the touch screen can be calculated, and the distance between the starting point position and the first edge of the touch screen can be compared with the first preset distance. comparison to determine whether the distance between the starting point and the first edge of the touch screen is smaller than the first preset distance.
  • the distance between the starting point and the first edge of the touch screen is less than the first preset distance, it can be determined that the starting point meets one of the conditions for triggering the shortcut control, and then the judgment of other conditions for the shortcut control can be continued. If the distance between the starting point and the first edge of the touch screen is not less than the first preset distance, it can be determined that the starting point does not meet the conditions for triggering conditional control, and the shortcut control may not be triggered.
  • the distances between multiple edges (four edges) of the touch screen and the starting point can be obtained, multiple distances can be obtained, and the minimum distance can be determined from the multiple distances as the target distance, obtain the edge corresponding to the target distance as the first edge.
  • the minimum distance among the plurality of distances is more than one (being two)
  • the target edge that is the first edge can be obtained most recently, and when the target edge is one of the two edges, then the This target edge serves as the first edge.
  • the display area when it is determined that the distance between the starting point and the first edge of the touch screen is less than the first preset distance, the display area may be controlled according to the number of fingers corresponding to the sliding operation, so as to meet the requirements at the starting point.
  • the display area is controlled according to the number of fingers to improve the trigger success rate of the corresponding control.
  • the first control can be performed on the display area; when the number of fingers for the sliding operation is two or more, the second control can be performed on the display area. Wherein, the first control and the second control are different.
  • the first control can be performed on the display area; when the number of fingers in the sliding operation is two, the second control can be performed on the display area; When the number of fingers in the sliding operation is three, the third control can be performed on the display area; when the number of fingers in the sliding operation is four, the fourth control can be performed on the display area; when the number of fingers in the sliding operation When the number is five, the fifth control can be performed on the display area.
  • the first control, the second control, the third control, the fourth control and the fifth control are different.
  • the device control method provided by an embodiment of the present application responds to a sliding operation on the touch screen, obtains the starting position corresponding to the sliding operation, and obtains the number of fingers corresponding to the sliding operation, when the distance between the starting position and the first edge of the touch screen is smaller than the first edge of the touch screen At a preset distance, the display area is controlled according to the number of fingers, so that the display area is controlled according to the starting position and the number of fingers corresponding to the sliding operation, so as to improve the trigger success rate of the corresponding control.
  • FIG. 2 shows a schematic flowchart of a device control method provided in another embodiment of the present application. The method is applied to the above-mentioned electronic device.
  • the electronic device includes a touch screen, and the touch screen includes a display area.
  • the process shown in FIG. 2 will be described in detail below, and the device control method may specifically include the following steps:
  • Step S210 Responding to the sliding operation on the touch screen, acquire the starting position corresponding to the sliding operation, and acquire the number of fingers corresponding to the sliding operation.
  • step S210 for the specific description of step S210, please refer to step S110, which will not be repeated here.
  • Step S220 When the distance between the starting point and the first edge of the touch screen is less than the first preset distance and the number of fingers is one, control the display content of the display area.
  • the display content of the display area of the touch screen can be directly controlled.
  • the number of fingers is determined to be one
  • the corresponding control method when sliding controls the display content of the display area.
  • Step S230 When the distance between the starting point and the first edge of the touch screen is less than the first preset distance and the number of fingers is at least two, control the display content of the display area according to the starting point.
  • the display content of the display area of the touch screen may be adjusted according to the starting position. control.
  • the preset at least two fingers slide at the starting position corresponding to The control mode of the at least two fingers controls the display content of the display area based on the corresponding control mode when the at least two fingers slide at the starting point.
  • the preset first control mode corresponding to at least two fingers sliding at the first starting point can be searched, and based on the at least two fingers sliding at the first starting point The corresponding first control mode when sliding performs first control on the display content of the display area.
  • the preset second control method corresponding to at least two fingers sliding at the second starting point can be searched, and based on the at least two fingers sliding at the first starting point
  • the corresponding second control manner performs a second control on the display content of the display area.
  • the first control mode is different from the second control mode.
  • the at least two fingers may include: two fingers, three fingers, four fingers, five fingers, etc., which are not limited herein.
  • the device control method in response to a sliding operation acting on the touch screen, obtain the starting point position corresponding to the sliding operation, and obtain the number of fingers corresponding to the sliding operation, when the distance between the starting point position and the first edge of the touch screen is When the distance is less than the first preset distance and the number of fingers is one, control the display content of the display area; when the distance between the starting point and the first edge of the touch screen is less than the first preset distance and the number of fingers is at least two, according to The starting position controls the displayed content of the display area.
  • this embodiment also directly controls the display content of the display area when the number of fingers is one, and controls the content of the display area according to the starting position when the number of fingers is at least two.
  • the display content is controlled, so as to distinguish different control functions according to the number of fingers and the starting position, so as to control the display content of the display area differently, and improve the success rate of control triggering of the display content.
  • FIG. 3 shows a schematic flowchart of a device control method provided in another embodiment of the present application. The method is applied to the above-mentioned electronic device.
  • the electronic device includes a touch screen, and the touch screen includes a display area.
  • the process shown in FIG. 3 will be described in detail below, and the device control method may specifically include the following steps:
  • Step S310 Responding to the sliding operation on the touch screen, acquire the starting position corresponding to the sliding operation, and acquire the number of fingers corresponding to the sliding operation.
  • step S310 for the specific description of step S310, please refer to step S110, which will not be repeated here.
  • Step S320 When the distance between the starting point and the first edge of the touch screen is less than the first preset distance and the number of fingers is one, display the first page in the display area.
  • the first page may be directly displayed in the display area. For example, when it is determined that the distance between the starting position and the first edge of the touch screen is less than the first preset distance, and the number of fingers is determined to be one, the corresponding first page is searched for when a preset finger slides, and the The display area displays the first page.
  • the method of displaying the first page in the display area may include: displaying the first page in the display area in a floating manner and the current page is completely covered by the first page; The page partially covers the current page, or the current page is displayed in place of the first page in the display area.
  • Step S330 When the distance between the starting position and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and the distance between the starting position and the second edge of the touch screen or the third edge of the touch screen is less than the second preset distance distance, the second page is displayed in the display area, wherein the second edge is set opposite to the third edge, and the first edge is perpendicular to the second edge and the third edge.
  • the starting position after obtaining the starting position corresponding to the sliding operation and the number of fingers corresponding to the sliding operation, it may be judged whether the first distance between the starting position and the touch screen is less than the first preset distance, and whether the number of fingers is At least two are judged, and whether the starting point satisfies the first preset condition is judged.
  • the starting position can be Make sure to display the second page in the display area.
  • the preset at least two fingers slide at the starting position corresponding to and display the second page in the display area.
  • the method of displaying the second page in the display area may include: displaying the second page in the display area in a floating manner and completely covering the current page by the second page; The page partially covers the current page, or the current page is replaced and displayed in the display area by a second page.
  • the touch screen of the electronic device includes a first edge, a second edge and a third edge, wherein the second edge is disposed opposite to the third edge, and the first edge is perpendicular to the second edge and the third edge.
  • the first edge may be the top edge of the electronic device, then the second edge may be the left edge of the electronic device, and the third edge may be the right edge of the electronic device; or, the first edge One edge can be the top edge of the electronic device, the second edge can be the right edge of the electronic device, and the third edge can be the left edge of the electronic device.
  • the electronic device may preset and store a second preset distance, which is used as a basis for judging the distance between the starting point and the second edge and the third edge of the touch screen. Therefore, in this embodiment, after obtaining the starting point position corresponding to the sliding operation, the distance between the starting point position and the second edge and the distance between the starting point position and the third edge can be calculated, and the starting point position and the second edge can be calculated. The distance between the two edges is compared with the second preset distance to determine whether the distance between the starting point and the second edge of the touch screen is smaller than the second preset distance, and the distance between the starting point and the third edge is compared with the second preset distance.
  • the distances are compared to determine whether the distance between the starting point and the third edge of the touch screen is smaller than a second preset distance. Wherein, when the judgment result indicates that the distance between the starting point and the second edge of the touch screen or the third edge of the touch screen is less than the second preset distance, it can be determined that the starting point satisfies the first preset condition, and the second edge can be displayed in the display area. page.
  • the device control method provided by another embodiment of the present application responds to the sliding operation on the touch screen, obtains the starting point position corresponding to the sliding operation, and obtains the number of fingers corresponding to the sliding operation, when the distance between the starting point position and the first edge of the touch screen When it is less than the first preset distance and the number of fingers is one, the first page is displayed in the display area; when the distance between the starting point and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and the starting point and the first edge of the touch screen When the distance between the second edge of the touch screen or the third edge of the touch screen is less than a second preset distance, the second page is displayed in the display area.
  • this embodiment also directly displays the first surface in the display area when the number of fingers is one, and when the number of fingers is at least two and the starting point is close to both sides of the electronic device , to display the second page in the display area, so as to distinguish different control functions according to the number of fingers and the starting position, so as to display different pages in the display area and improve the success rate of triggering the shortcut page.
  • FIG. 4 shows a schematic flowchart of a device control method provided in another embodiment of the present application.
  • the method is applied to the above-mentioned electronic device.
  • the electronic device includes a touch screen, and the touch screen includes a display area.
  • the process shown in FIG. 4 will be described in detail below, and the device control method may specifically include the following steps:
  • Step S410 Responding to the sliding operation on the touch screen, acquire the starting position corresponding to the sliding operation, and acquire the number of fingers corresponding to the sliding operation.
  • step S410 for the specific description of step S410, please refer to step S110, which will not be repeated here.
  • Step S420 When the distance between the starting point and the first edge of the touch screen is less than the first preset distance and the number of fingers is one, display the page corresponding to the notification center in the display area, wherein the page corresponding to the notification center is used to display the electronic device installation Notification messages for multiple applications.
  • the page corresponding to the notification center may be directly displayed in the display area.
  • the notification center is used to provide notification messages of multiple application programs installed on the electronic device
  • the page corresponding to the notification center is used to display the notification messages of multiple application programs installed on the electronic device. Manage the notification messages of the electronic device's system and each application.
  • FIG. 5 shows a schematic diagram of the first sliding operation provided by the embodiment of the present application
  • FIG. 6 shows a schematic diagram of the first interface of the electronic device provided by the embodiment of the present application.
  • the page corresponding to the notification center can be displayed in the display area A, as shown in Figure 6. It can be understood that at this time, the starting point may be located at any position between the second edge and the third edge.
  • Step S430 When the distance between the starting position and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and the distance between the starting position and the second edge of the touch screen or the third edge of the touch screen is less than the second preset distance
  • the distance is high, a page corresponding to the control center is displayed in the display area, wherein the page corresponding to the control center is used to display multiple target function controls of the electronic device.
  • the first distance between the starting position and the touch screen is less than the first preset distance, and whether the number of fingers is At least two are judged, and whether the distance between the starting point and the second edge of the touch screen and the third edge of the touch screen is less than a second preset distance is judged.
  • the page corresponding to the control center may be displayed in the display area.
  • the control center is used to store commonly used functions and switches of electronic equipment, and the corresponding page of the control center is used to display multiple target function controls (commonly used functions and switches) of the electronic equipment. Manage individual target functions of electronic devices.
  • FIG. 7 shows a schematic diagram of a second type of sliding operation provided by an embodiment of the present application
  • FIG. 8 shows a schematic diagram of a second type of interface of an electronic device provided by an embodiment of this application.
  • the page 132 corresponding to the control center may be displayed in the display area, as shown in FIG. 8 .
  • FIG. 9 shows a schematic diagram of a third sliding operation provided by the embodiment of the present application.
  • the page B corresponding to the control center can be displayed in the display area, as shown in FIG. 8 .
  • Step S440 When the distance between the starting point and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and the distances between the starting point and the second edge and the third edge are greater than or equal to the second preset distance , the display area is divided into a first split-screen area and a second split-screen area, wherein one of the first split-screen area and the second split-screen area is used to display a multitasking interface, and the second edge and The third edge is oppositely arranged, and the first edge is perpendicular to the second edge and the third edge.
  • the display area can be divided into It is the first split screen area and the second split screen area.
  • the electronic device may preset and store a second preset distance, which is used as a basis for judging the distance between the starting point and the second edge and the third edge of the touch screen. Therefore, in this embodiment, after obtaining the starting point position corresponding to the sliding operation, the distance between the starting point position and the second edge and the distance between the starting point position and the third edge can be calculated, and the starting point position and the second edge can be calculated. The distance between the two edges is compared with the second preset distance to determine whether the distance between the starting point and the second edge of the touch screen is smaller than the second preset distance, and the distance between the starting point and the third edge is compared with the second preset distance.
  • the distances are compared to determine whether the distance between the starting point and the third edge of the touch screen is smaller than a second preset distance. Wherein, when the judgment result indicates that the distance between the starting point position and the second edge of the touch screen and the third edge of the touch screen is greater than or equal to the second preset distance, it can be determined that the starting point position satisfies the second preset condition, and the display area Divided into the first split screen area and the second split screen area.
  • the shape of the first split-screen area and the shape of the second split-screen area may be the same or different.
  • the size of the first split-screen area and the size of the second split-screen area may be the same or different.
  • the boundary line of the first split screen area may be a regular line (such as a straight line) or an irregular line (such as a bent line).
  • the position of the first split screen area can be located above the position of the second split screen area, can be located below the position of the second split screen area, can be located to the left of the position of the second split screen area, or can be located The right side of the position of the screen area, etc., are not limited here.
  • one of the first split-screen area and the second split-screen area obtained by dividing the display area is used to display a multitasking interface, where the multitasking interface can be used to display at least one application The window corresponding to the program.
  • the first split-screen area may be used to display the application interface corresponding to the application program
  • the second split-screen area may be used to display the multi-tasking interface
  • the first split-screen area may be used to display the multi-task interface
  • the second split-screen area can be used to display the application interface corresponding to the application program.
  • the first split screen area can be used to display the multitasking interface, and the first split screen area can be used to display a blank interface, or the first split screen area can be used to display a blank interface, and the second split screen area can be used to display a blank interface, and the second split screen area can be used to display a blank interface
  • the screen area can be used to display a multitasking interface.
  • the first split screen area can be used to display the application interface corresponding to the application program
  • the second split screen area can be used to display the multitasking interface and application icons, or the first split screen area can be used to display the multitasking interface.
  • the task interface and the application icon, and the second split screen area can be used to display the application interface corresponding to the application program.
  • the first split-screen area may be used to display a multitasking interface and application icons, and the first split-screen area may be used to display a blank interface, or the first split-screen area may be used to display a blank interface, and The second split-screen area can be used to display a multitasking interface and application icons.
  • FIG. 10 shows a schematic diagram of a fourth sliding operation provided by an embodiment of the present application
  • FIG. 11 shows a schematic diagram of a third interface of an electronic device provided by an embodiment of this application.
  • the display area can be divided into the first split screen area C and the second split screen area D, as shown in Figure 11 shown.
  • the device control method responds to the sliding operation on the touch screen, obtains the starting point position corresponding to the sliding operation, and obtains the number of fingers corresponding to the sliding operation, when the distance between the starting point position and the first edge of the touch screen is less than When the first preset distance and the number of fingers is one, the page corresponding to the notification center is displayed in the display area; when the distance between the starting point and the first edge of the touch screen is less than the preset distance, and the number of fingers is at least two primary starting positions and When the distance between the second edge of the touch screen or the third edge of the touch screen is less than the second preset distance, the page corresponding to the control center is displayed in the display area; when the distance between the starting position and the first edge of the touch screen is less than the first preset distance, and When the number of fingers is at least two and the distances between the starting position and the second edge and the third edge are greater than or equal to the second preset distance, the display area is divided into a first split screen area and a second
  • the page corresponding to the notification center is displayed;
  • FIG. 12 shows a schematic flowchart of a device control method provided in still another embodiment of the present application. The method is applied to the above-mentioned electronic device, and the electronic device includes a touch screen, and the touch screen includes a display area.
  • the process shown in FIG. 12 will be described in detail below, and the device control method may specifically include the following steps:
  • Step S510 Responding to the sliding operation on the touch screen, acquire the starting position corresponding to the sliding operation, and acquire the number of fingers corresponding to the sliding operation.
  • step S510 for the specific description of step S510, please refer to step S110, which will not be repeated here.
  • Step S520 When the distance between the starting point and the first edge of the touch screen is less than the first preset distance and the number of fingers is one, display the page corresponding to the notification center in the display area, wherein the page corresponding to the notification center is used to display the electronic device installation Notification messages for multiple applications.
  • Step S530 When the distance between the starting position and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and the distance between the starting position and the second edge of the touch screen or the third edge of the touch screen is less than the second preset distance
  • the distance is high, a page corresponding to the control center is displayed in the display area, wherein the page corresponding to the control center is used to display multiple target function controls of the electronic device.
  • step S520-step S530 please refer to step S410-step S420, which will not be repeated here.
  • Step S540 When the distance between the starting point and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and the distances between the starting point and the second edge and the third edge are greater than or equal to the second preset distance , get the end position corresponding to the sliding operation.
  • the distance between the starting point of the sliding operation and the first edge of the touch screen is less than the first preset distance
  • the distance between the second edge of the touch screen is greater than or equal to the second preset distance
  • the distance between the first edge of the touch screen is greater than or equal to the second preset distance.
  • a touch sensor may be provided on a touch screen of an electronic device.
  • the end position corresponding to the sliding operation may be detected by a touch sensor.
  • a coordinate system can be established with a certain position on the touch screen of the electronic device as the coordinate origin, the touch sensor can detect the end touch position of the sliding operation, and obtain the coordinates of the end touch position in the coordinate system as the sliding operation corresponding end position.
  • a pressure sensor may be provided on the touch screen of the electronic device.
  • the end position corresponding to the sliding operation can be detected by a pressure sensor.
  • a coordinate system can be established with a certain position on the touch screen of the electronic device as the coordinate origin, the pressure sensor can detect the end pressing position of the sliding operation, and obtain the coordinates of the end pressing position in the coordinate system as the sliding operation corresponding end position.
  • a pressure sensor and a touch sensor may be provided on the touch screen of the electronic device.
  • the electronic device can also jointly detect the end position corresponding to the sliding operation through the touch sensor and the pressure sensor, which will not be repeated here.
  • Step S550 Obtain the sliding direction corresponding to the sliding operation based on the starting point position and the ending point position.
  • the sliding direction corresponding to the sliding operation may be obtained based on the starting position and the end position.
  • connection direction of the start position and the end position may be obtained, and the sliding direction corresponding to the sliding operation may be obtained based on the connection direction.
  • the connection direction of the start position and the end position can be obtained, and the angle correction process is performed on the connection direction to obtain the target connection direction, based on the target connection direction Get the swipe direction corresponding to the swipe operation.
  • the target connection direction is parallel to the vertical axis direction of the electronic device or parallel to the horizontal axis direction of the electronic device.
  • FIG. 13 shows a schematic flowchart of step S550 of the device control method shown in FIG. 12 of the present application.
  • the process shown in Figure 13 will be described in detail below, and the method may specifically include the following steps:
  • Step S551 When the distance between the end position and the fourth edge of the touch screen is less than the third preset distance, it is determined that the sliding operation satisfies the split-screen triggering condition, wherein the first edge is set opposite to the fourth edge.
  • the touch screen of the electronic device includes a first edge, a second edge, a third edge and a fourth edge, wherein the second edge is arranged opposite to the third edge, the first edge is arranged opposite to the fourth edge, and the second edge is arranged opposite to the fourth edge.
  • the first edge and the fourth edge are perpendicular to the second edge and the third edge.
  • the first edge can be the top edge of the electronic device
  • the second edge can be the left edge of the electronic device
  • the third edge can be the right edge of the electronic device
  • the fourth edge can be is the bottom edge of the electronic device
  • the first edge can be the top edge of the electronic device
  • the second edge can be the right edge of the electronic device
  • the third edge can be the left edge of the electronic device
  • the fourth edge can be is the bottom edge of the electronic device
  • the first edge can be the bottom edge of the electronic device
  • the second edge can be the right edge of the electronic device
  • the third edge can be the left edge of the electronic device
  • the fourth edge can be It is the top edge of the electronic device, etc., which is not limited here.
  • the electronic device may preset and store a third preset distance, which is used as a basis for judging the distance between the end position and the fourth edge of the touch screen. Therefore, in this embodiment, after obtaining the end position corresponding to the sliding operation, the distance between the end position and the fourth edge can be calculated, and the distance between the end position and the fourth edge can be compared with the third preset distance. comparison to determine whether the distance between the end position and the fourth edge of the touch screen is less than a third preset distance. Wherein, when the distance between the end position and the fourth edge of the touch screen is less than the third preset distance, it is determined that the sliding operation satisfies the split-screen triggering condition.
  • Step S552 Obtain the sliding direction corresponding to the sliding operation based on the starting point position and the ending point position.
  • Step S560 Divide the display area into a first split-screen area and a second split-screen area based on the sliding direction, wherein one of the first split-screen area and the second split-screen area is used to display the multitasking interface .
  • the display area of the touch screen may be divided into a first split screen area and a second split screen area according to the sliding direction.
  • the display area of the touch screen 130 can be divided into left and right screens, that is, the display area is divided into a first split screen area C and a second split screen area C.
  • Screen area D (as shown in Figure 11).
  • FIG. 14 shows a schematic diagram of a fifth sliding operation provided by an embodiment of the present application
  • FIG. 15 shows a schematic diagram of a fourth interface of an electronic device provided by an embodiment of the present application.
  • the display area of the touch screen 130 can be split up and down, that is, the display area is divided into the first split screen area C and the second split screen area C.
  • Two-split screen area D (as shown in FIG. 15 ).
  • one of the first split-screen area and the second split-screen area obtained by dividing the display area is used to display a multitasking interface, where the multitasking interface can be used to display at least one application The window corresponding to the program.
  • the screen splitting direction may be determined according to the sliding direction.
  • the electronic device can preset the mapping relationship between multiple sliding directions and multiple split-screen directions, and store the mapping relationship between multiple sliding directions and multiple split-screen directions in the mapping relationship table.
  • the sliding direction corresponding to the sliding operation can be obtained from the multiple sliding directions in the mapping relationship table as the target sliding direction, and then based on the mapping relationship between multiple sliding directions and multiple split-screen directions, from Among the multiple split-screen directions, the split-screen direction that has a mapping relationship with the target sliding direction is determined as the target split-screen direction, then the target split-screen direction may be determined as the split-screen direction corresponding to the sliding direction corresponding to the sliding operation.
  • the screen splitting direction when it is determined that the sliding direction corresponding to the sliding operation is parallel to the longitudinal axis of the electronic device, the screen splitting direction may be determined to be parallel to the longitudinal axis of the electronic device, that is, the display on the touch screen of the electronic device
  • the area is divided into left and right screens; when it is determined that the sliding direction corresponding to the sliding operation is parallel to the horizontal axis direction of the electronic device, the screen splitting direction can be determined to be parallel to the horizontal axis direction of the electronic device, that is, the display of the touch screen of the electronic device
  • the area is divided into upper and lower screens; when it is determined that the sliding direction corresponding to the sliding operation is parallel to the diagonal direction of the electronic device, the split screen direction can be determined to be parallel to the diagonal direction of the electronic device, that is, the touch screen of the electronic device Divide the display area at an oblique angle.
  • the electronic device may preset and store a specified direction, and set the specified direction as the vertical axis direction or the horizontal axis direction of the electronic device. Then, when the sliding direction is parallel to the vertical axis direction of the electronic device, the vertical axis direction of the electronic device is determined as the split screen direction, and based on the split screen direction, the display area of the touch screen can be divided into left and right screens.
  • the horizontal axis direction of the device is parallel, the horizontal axis direction of the electronic device is determined as the screen splitting direction, and the display area of the touch screen can be divided up and down based on the screen splitting direction.
  • the display area of the touch screen can be divided into left and right screens.
  • the display area of the touch screen can be Split the screen up and down.
  • the device control method provided by yet another embodiment of the present application responds to a sliding operation on the touch screen, obtains the starting position corresponding to the sliding operation, and obtains the number of fingers corresponding to the sliding operation, when the distance between the starting position and the first edge of the touch screen When the distance is less than the first preset distance and the number of fingers is one, the page corresponding to the notification center is displayed in the display area; when the distance between the starting point and the first edge of the touch screen is less than the first preset distance, and the number of fingers is at least two and the starting point When the distance between the position and the second edge of the touch screen or the third edge of the touch screen is less than the second preset distance, the page corresponding to the control center is displayed in the display area; when the distance between the starting position and the first edge of the touch screen is less than the first preset distance , and the number of fingers is at least two first-level starting positions, and when the distances from the second edge and the third edge are greater than or equal to the second preset distance, the end position corresponding to
  • the page corresponding to the notification center is displayed;
  • the control function can be used to control the display area differently, improve the success rate of control triggering, and improve the accuracy of split screen.
  • FIG. 16 shows a block diagram of a device control device provided by an embodiment of the present application.
  • the device control device 200 is applied to the above-mentioned electronic device.
  • the electronic device includes a touch screen, and the touch screen includes a display area.
  • the following will describe the block diagram shown in FIG. 16 .
  • the device control device 200 includes: a parameter acquisition module 210 and a device control module 220 ,in:
  • the parameter acquisition module 210 is configured to respond to the sliding operation on the touch screen, obtain the starting position corresponding to the sliding operation, and obtain the number of fingers corresponding to the sliding operation.
  • the device control module 220 is configured to control the display area according to the number of fingers when the distance between the starting point and the first edge of the touch screen is less than a first preset distance.
  • the device control module 220 includes: a first device control submodule and a second device control submodule, wherein:
  • the first device control submodule is used to control the display content in the display area when the number of fingers is one.
  • the first device control submodule includes: a first page display unit, wherein:
  • the first page display unit is configured to display the first page in the display area when the number of fingers is one.
  • the first page display unit includes: a notification center page display subunit, wherein:
  • the notification center page display subunit is configured to display a page corresponding to the notification center in the display area when the number of fingers is one, wherein the page corresponding to the notification center is used to display notification messages of multiple application programs installed on the electronic device.
  • the second device control submodule is used to control the display content of the display area according to the starting position when the number of fingers is at least two.
  • the second device control submodule includes: a second page display unit, wherein:
  • the second page display unit is used to display the second page in the display area when the number of fingers is at least two and the distance between the starting position and the second edge of the touch screen or the third edge of the touch screen is less than a second preset distance, wherein, The second edge is opposite to the third edge, and the first edge is perpendicular to the second edge and the third edge.
  • the second page display unit includes: a control center page display subunit, wherein:
  • the control center page display subunit is used to display the page corresponding to the control center in the display area when the number of fingers is at least two and the distance between the starting position and the second edge of the touch screen or the third edge of the touch screen is less than the second preset distance , wherein the page corresponding to the control center is used to display multiple target function controls of the electronic device.
  • the device control module 220 also includes: a third device control submodule, wherein:
  • the third device control submodule is used to divide the display area into the first split-screen area when the number of fingers is at least two and the distances between the starting position and the second edge and the third edge are greater than or equal to the second preset distance and a second split-screen area, wherein one of the first split-screen area and the second split-screen area is used to display a multitasking interface.
  • the third device control submodule includes: a split-screen unit, wherein:
  • the split screen unit is configured to divide the display area into a first split screen area and a second split screen area based on the sliding direction.
  • the device control module 220 also includes: an end position acquisition submodule and a sliding direction acquisition submodule, wherein:
  • the end position acquisition sub-module is used to acquire the end position corresponding to the sliding operation.
  • the slide direction obtaining sub-module is used to obtain the slide direction corresponding to the slide operation based on the start position and the end position;
  • the sliding direction obtaining submodule includes: a split-screen trigger determination unit and a sliding direction obtaining unit, wherein:
  • the split-screen trigger determination unit is configured to determine that the sliding operation satisfies the split-screen trigger condition when the distance between the end position and the fourth edge of the touch screen is less than a third preset distance, wherein the first edge is set opposite to the fourth edge.
  • the sliding direction obtaining unit is configured to obtain a sliding direction corresponding to the sliding operation based on the start position and the end position.
  • the coupling between the modules may be electrical, mechanical or other forms of coupling.
  • each functional module in each embodiment of the present application may be integrated into one processing module, 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.
  • FIG. 17 shows a structural block diagram of an electronic device 100 provided by an embodiment of the present application.
  • the electronic device 100 may be an electronic device capable of running application programs, such as a smart phone, a tablet computer, and an e-book.
  • the electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, a touch screen 130, and one or more application programs, wherein one or more application programs may be stored in the memory 120 and configured To be executed by one or more processors 110, one or more programs are configured to execute the methods described in the foregoing method embodiments.
  • the processor 110 may include one or more processing cores.
  • the processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes or executes instructions, programs, code sets or instruction sets stored in the memory 120, and calls data stored in the memory 120 to execute Various functions of the electronic device 100 and processing data.
  • the processor 110 may adopt at least one of Digital Signal Processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in the form of hardware.
  • DSP Digital Signal Processing
  • FPGA Field-Programmable Gate Array
  • PLA Programmable Logic Array
  • the processor 110 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like.
  • CPU Central Processing Unit
  • GPU Graphics Processing Unit
  • the CPU mainly handles the operating system, user interface and application programs, etc.
  • the GPU is used to render and draw the content to be displayed
  • the modem is used to handle wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 110, but may be realized by a communication chip alone.
  • the memory 120 may include random access memory (Random Access Memory, RAM), and may also include read-only memory (Read-Only Memory).
  • the memory 120 may be used to store instructions, programs, codes, sets of codes, or sets of instructions.
  • the memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system and instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.) , instructions for implementing the following method embodiments, and the like.
  • the storage data area can also store data created during use of the electronic device 100 (such as phonebook, audio and video data, chat record data) and the like.
  • the touch screen 130 is used to display information input by the user, information provided to the user, and various graphical user interfaces of the electronic device 100. These graphical user interfaces can be composed of graphics, text, icons, numbers, videos, and any combination thereof.
  • the touch screen 130 may be a liquid crystal display (Liquid Crystal Display, LCD), or an organic light-emitting diode (Organic Light-Emitting Diode, OLED), which is not limited here.
  • FIG. 18 shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application.
  • Program codes are stored in the computer-readable medium 300, and the program codes can be invoked by a processor to execute the methods described in the foregoing method embodiments.
  • the computer readable storage medium 300 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM.
  • the computer-readable storage medium 300 includes a non-transitory computer-readable storage medium (non-transitory computer-readable storage medium).
  • the computer-readable storage medium 300 has a storage space for program code 310 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products.
  • Program code 310 may, for example, be compressed in a suitable form.
  • the device control method, device, electronic device, and storage medium provided by the embodiments of the present application respond to the sliding operation on the touch screen, obtain the starting position corresponding to the sliding operation, and obtain the number of fingers corresponding to the sliding operation.
  • the display area is controlled according to the number of fingers, so that the display area is controlled according to the starting position and the number of fingers corresponding to the sliding operation to improve the corresponding The trigger success rate of the control.

Landscapes

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

Abstract

本申请公开了一种设备控制方法、装置、电子设备以及存储介质,涉及电子设备技术领域。该方法应用于电子设备,该电子设备包括触摸屏,该触摸屏包括显示区域,该方法包括:响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量,当起点位置与触摸屏的第一边缘的距离小于第一预设距离时,根据手指数量,对显示区域进行控制。本申请通过根据滑动操作对应的起点位置和手指数量,对显示区域进行控制,以提升相应控制的触发成功率。

Description

设备控制方法、装置、电子设备以及存储介质
相关申请的交叉引用
本申请要求于2021年08月10日提交的申请号为CN202110915268.8的中国申请的优先权,其在此出于所有目的通过引用将其全部内容并入本文。
技术领域
本申请涉及电子设备技术领域,更具体地,涉及一种设备控制方法、装置、电子设备以及存储介质。
背景技术
随着科学技术的发展,电子设备的使用越来越广泛,功能越来越多,已经成为人们日常生活中的必备之一。其中,电子设备普遍开始支持控制功能的快捷触发。
发明内容
鉴于上述问题,本申请提出了一种设备控制方法、装置、电子设备以及存储介质,以解决上述问题。
第一方面,本申请实施例提供了一种设备控制方法,应用于电子设备,电子设备包括触摸屏,触摸屏包括显示区域,方法包括:响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量;当起点位置与触摸屏的第一边缘的距离小于第一预设距离时,根据手指数量,对显示区域进行控制。
第二方面,本申请实施例提供了一种设备控制装置,应用于电子设备,电子设备包括触摸屏,触摸屏包括显示区域,装置包括:参数获取模块,用于响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量;设备控制模块,用于当起点位置与触摸屏的第一边缘的距离小于第一预设距离时,根据手指数量,对显示区域进行控制。
第三方面,本申请实施例提供了一种电子设备,包括触摸屏、存储器和处理器,触摸屏和存储器耦接到处理器,存储器存储指令,当指令由处理器执行时处理器执行上述方法。
第四方面,本申请实施例提供了一种计算机可读取存储介质,计算机可读取存储介质中存储有程序代码,程序代码可被处理器调用执行上述方法。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。
图1示出了本申请一个实施例提供的设备控制方法的流程示意图;
图2示出了本申请又一个实施例提供的设备控制方法的流程示意图;
图3示出了本申请再一个实施例提供的设备控制方法的流程示意图;
图4示出了本申请另一个实施例提供的设备控制方法的流程示意图;
图5示出了本申请实施例提供的第一种滑动操作的示意图;
图6示出了本申请实施例提供的电子设备的第一种界面示意图;
图7示出了本申请实施例提供的第二种滑动操作的示意图;
图8示出了本申请实施例提供的电子设备的第二种界面示意图;
图9示出了本申请实施例提供的第三种滑动操作的示意图;
图10示出了本申请实施例提供的第四种滑动操作的示意图;
图11示出了本申请实施例提供的电子设备的第三种界面示意图;
图12示出了本申请又再一个实施例提供的设备控制方法的流程示意图;
图13示出了本申请的图12所示的设备控制方法的步骤S550的流程示意图;
图14示出了本申请实施例提供的第五种滑动操作的示意图;
图15示出了本申请实施例提供的电子设备第四种界面示意图;
图16示出了本申请实施例提供的设备控制装置的模块框图;
图17示出了本申请实施例用于执行根据本申请实施例的设备控制方法的电子设备的框图;
图18示出了本申请实施例的用于保存或者携带实现根据本申请实施例的设备控制方法的程序代码的存储单元。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。
目前,电子设备普遍开始支持控制功能的快捷触发,例如,电子设备普遍开始支持根据用户作用于电子设备的触摸屏上的滑动操作来实现控制功能的快捷触发。但是,电子设备在设置有多个快捷控制功能时,难以通过用户触发的滑动操作准确识别出用户想要快捷触发的控制功能,从而很容易产生误操作。其中,发明人经过研究发现,为了解决容易产生误操作的问题,电子设备可以设置不同的滑动位置对应不同的快捷控制功能,但是,由于电子设备的体积限制,很难通过滑动位置准确识别出快捷触发的控制功能,同样很容易产生误操作。
针对上述问题,发明人经过长期的研究发现,并提出了本申请实施例提供的设备控制方法、装置、电子设备以及存储介质,通过根据滑动操作对应的起点位置和手指数量,对显示区域进行控制,以提升相应控制的触发成功率。其中,具体的设备控制方法在后续的实施例中进行详细的说明。
请参阅图1,图1示出了本申请一个实施例提供的设备控制方法的流程示意图。该设备控制方法用于通过根据滑动操作对应的起点位置和手指数量,对显示区域进行控制,以提升相应控制的触发成功率。在具体的实施例中,设备控制方法应用于如图16所示的设备控制装置200以及配置有设备控制装置200的电子设备100(图17)。下面将以电子设备为例,说明本实施例的具体流程,当然,可以理解的,本实施例所应用的电子设备可以为智能手机、平板电脑、穿戴式电子设备等,在此不做限定。下面将针对图1所示的流程进行详细的阐述,在本实施例中,该电子设备包括触摸屏,该触摸屏包括显示区域,设备控制方法具体可以包括以下步骤:
步骤S110:响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
在本实施例中,可以对作用于触摸屏上的触控操作进行检测,该触控操作可以包括单指点击操作、多指点击操作、单指按压操作、多指按压操作、单指滑动操作、多指滑动操作、单指长按操作、多指长按操作等,在此不做限定。其中,当检测到作用于触摸屏上的滑动操作时,则可以响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
在一些实施方式中,可以对电子设备的触摸屏是否处于点亮状态进行检测,当检测到电子设备的触摸屏处于点亮状态时,则可以对作用于触摸屏上的触控操作进行检测,当检测到作用于触摸屏上的滑动操作时,则可以响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
在一些实施方式中,可以对电子设备的触摸屏是否处于点亮状态进行检测,当检测到电子设备的触摸屏处于点亮状态时,可以对电子设备的触摸屏是否处于解锁状态进行检测,当检测到电子设备的触摸屏处于解锁状态时,则可以对作用于触摸屏上的触控操作进行检测,当检测到作用于触摸屏上的滑动操作时,则可以响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
在一些实施方式中,可以对电子设备的触摸屏是否处于点亮状态进行检测,当检测到电子设备的触摸屏处于点亮状态时,可以对电子设备的触摸屏是否处于解锁状态进行检测,当检测到电子设备的触摸屏处于解锁状态时,可以对电子设备的触摸屏当前所显示的界面进行检测,其中,当检测到电子设备当前所显示的界面为桌面或者应用界面时,则可以对作用于触摸屏上的触控操作进行检测,当检测到作用于触摸屏上的滑动操作时,则可以响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
作为一种方式,电子设备的触摸屏上可以设置有触摸传感器。可以通过触摸传感器对作用于触摸屏上的触控操作进行检测,当通过触摸传感器检测到作用于触摸屏上的滑动操作时,则可以通过触摸传感器检测滑动操作对应的起点位置,并通过触摸传感器检测滑动操作对应的手指数量。在一些实施方式中,可以以电子设备的触摸屏的某个位置作为坐标原点建立坐标系,通过触摸传感器检测滑动操作的起始触摸位置,并获取该起始触摸位置在该坐标系中的坐标作为滑动操作对应的起点位置。在一些实施方式中,可以通过触摸传感器检测滑动操作的触摸轨迹的数量,基于该触摸轨迹的数量获取滑动操作对应的手指数量,其中,触摸轨迹的数量与手指数量一致,例如,当手指数量为一个时,则触摸轨迹的数量为一个,当手指数量为两个时,则触摸轨迹的数量为两个。
作为又一种方式,电子设备的触摸屏上可以设置有压力传感器。可以通过压力传感器对作用于触摸屏上的触控操作进行检测,当通过压力传感器检测到作用于触摸屏上的滑动操作时,则可以通过压力传感器检测滑动操作对应的起点位置,并通过压力传感器检测滑动操作对应的手指数量。在一些实施方式中,可以以电子设备的触摸屏的某个位置作为坐标原点建立坐标系,通过压力传感器检测滑动操作的起始按压位置,并获取该起始按压位置在该坐标系中的坐标作为滑动操作对应的起点位置。在一些实施方式中,可以通过压力传感器检测滑动操作的按压轨迹的数量,基于该按压轨迹的数量获取滑动操作对应的手指数量,其中,按压轨迹的数量与手指数量一致,例如,当手指数量为一个时,则按压轨迹的数量为一个,当手指数量为两个时,则按压轨迹的数量为两个。
作为再一种方式,电子设备的触摸屏上可以设置有压力传感器和触摸传感器。电子设备还可以通过触摸传感器和压力传感器共同检测滑动操作对应的起点位置和滑动操作对应的手指数量,在此不再赘述。
在一些实施方式中,在确定滑动操作对应的起点位置时,如果手指数量为一个,则可以以一个手指的触摸中点对应的位置作为起点位置,可以以一个手指的触摸顶点对应的位置作为起点位置,也可以以一个手指的触摸底点对应的位置作为起点位置,在此不做限定。
在一些实施方式中,在确定滑动操作对应的起点位置时,如果手指数量为多个(如两个),则可以以多个手指的触摸中点对应的位置作为起点位置(选取多个手指中的每个手指各自的触摸中点,基于每个手指各自的触摸中点获得多个手指的触摸中点),可以以多个手指的触摸顶点对应的位置作为起点位置(选取多个手指中触摸点更接近第一边缘的触摸点对应的位置作为起点位置),也可以以多个手指的触摸底点对应的位置作为起点位置,在此不做限定(选取多个手指中触摸点更远离第一边缘的触摸点对应的位置作为起点位置)。
步骤S120:当起点位置与触摸屏的第一边缘的距离小于第一预设距离时,根据手指数量对显示区域进行控制。
在一些实施方式中,电子设备的触摸屏包括第一边缘。其中,以电子设备竖屏显示为例,该第一边缘可以为电子设备的顶部边缘、可以为电子设备的底部边缘、可以为电子设备的左侧边缘、也可以为电子设备的右侧边缘,在此不做限定。
在一些实施方式中,电子设备可以预先设置并存储有第一预设距离,该第一预设距离用于作为起点位置与触摸屏的第一边缘的距离的判断依据。因此,在本实施例中,在获得滑动操作对应的起点位置后,可以计算起点位置和触摸屏的第一边缘的距离,并将起点位置和触摸屏的第一边缘的距离与第一预设距离进行比较,以判断起点位置和触摸屏的第一边缘的距离是否小于第一预设距离。若确定起点位置和触摸屏的第一边缘的距离小于第一预设距离,则可以确定起点位置满足触发快捷控制的其中一个条件,则可以继续进行快捷控制的其他条件的判断。若起点位置和触摸屏的第一边缘的距离不小于第一预设距离,则可以确定起点位置不满足触发条件控制的条件,则可以不触发快捷控制。
作为一种方式,在获取滑动操作的起点位置后,可以获取触摸屏的多个边缘(四个边缘)分别与起点位置的距离,获得多个距离,并从多个距离中确定最小的距离作为目标距离,获取该目标距离对应的边缘作为第一边缘。其中,当多个距离中最小的距离不止一个(为两个)时,则可以获取最近一次作为第一边缘的目标边缘,当该目标边缘为该两个边缘中的其中一个时,则可以将该目标边缘作为第一边缘。
在本实施例中,当确定该起点位置与触摸屏的第一边缘的距离小于第一预设距离时,则可以根据该滑动操作对应的手指数量,对显示区域进行控制,从而实现在起点位置满足触发条件时,根据手指数量对显示区域进行控制,以提升相应控制的触发成功率。
作为一种方式,当该滑动操作的手指数量为一个时,则可以对显示区域进行第一控制;当该滑动操作的手指数量为两个及以上时,则可以对显示区域进行第二控制。其中,第一控制和第二控制不同。
作为又一种方式,当该滑动操作的手指数量为一个时,则可以对显示区域进行第一控制;当该滑动操作的手指数量为两个时,则可以对显示区域进行第二控制;当该滑动操作的手指数量为三个时,则可以对显示区域进行第三控制;当该滑动操作的手指数量为四个时,则可以对显示区域进行第四控制;当该滑动操作的手指数量为五个时,则可以对显示区域进行第五控制。其中,第一控制、第二控制、第三控制、第四控制以及第五控制各不相同。
本申请一个实施例提供的设备控制方法,响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量,当起点位置与触摸屏的第一边缘的距离小于第一预设距离时,根据手指数量,对显示区域进行控制,从而通过根据滑动操作对应的起点位置和手指数量,对显示区域进行控制,以提升相应控制的触发成功率。
请参阅图2,图2示出了本申请又一个实施例提供的设备控制方法的流程示意图。该方法应用于上述电子设备,该电子设备包括触摸屏,该触摸屏包括显示区域,下面将针对图2所示的流程进行详细的阐述,设备控制方法具体可以包括以下步骤:
步骤S210:响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
其中,步骤S210的具体描述请参阅步骤S110,在此不再赘述。
步骤S220:当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,对显示区域的显示内容进行控制。
在一些实施方式中,在获取滑动操作对应的起点位置和滑动操作对应的手指数量后,可以对该起点位置与触摸屏的第一距离是否小于第一预设距离进行判断,以及对该手指数量是否为一个进行判断。其中,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为一个时,则可以直接对触摸屏的显示区域的显示内容进行控制。例如,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为一个时,查找预先设置的一个手指滑动时对应的控制方式,基于该一个手指滑动时对应的控制方式对显示区域的显示内容进行控制。
步骤S230:当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为至少两个时,根据起点位置对显示区域的显示内容进行控制。
在一些实施方式中,在获取滑动操作对应的起点位置和滑动操作对应的手指数量后,可以对该起点位置与触摸屏的第一距离是否小于第一预设距离进行判断,以及对该手指数量是否为至少两个进行判断。其中,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为至少两个时,则可以根据该起点位置对触摸屏的显示区域的显示内容进行控制。例如,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为至少两个时,查找预先设置的至少两个手指在该起点位置滑动时对应的控制方式,基于该至少两个手指在该起点位置滑动时对应的控制方式对显示区域的显示内容进行控制。
例如,当起点位置为第一起点位置时,则可以查找预先设置的至少两个手指在该第一起点位置滑动时对应的第一控制方式,并基于该至少两个手指在该第一起点位置滑动时对应的第一控制方式对显示区域的显示内容进行第一控制。当起点位置为第二起点位置时,则可以查找预先设置的至少两个手指在该第二起点位置滑动时对应的第二控制方式,并基于该至少两个手指在该第一起点位置滑动时对应的第二控制方式对显示区域的显示内容进行第二控制。其中,第一控制方式和第二控制方式不同。
其中,至少两个手指可以包括:两个手指、三个手指、四个手指、五个手指等,在此不做限定。
本申请又一个实施例提供的设备控制方法,响应作用于触摸屏上的滑动操作,获取该滑动操作对应的起点位置,并获取该滑动操作对应的手指数量,当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,对显示区域的显示内容进行控制,当起点位置与触摸屏的第一边沿的距离小于第一预设距离且手指数量为至少两个时,根据起点位置对显示区域的显示内容进行控制。相较于图1所示的设备控制方法,本实施例还在手指数量为一个时,直接对显示区域的显示内容进行控制,以及在手指数量为至少两个时,根据起点位置对显示区域的显示内容进行控制,从而根据手指数量和起点位置区分不一样的控制功能,以对显示区域的显示内容进行不同的控制,提升显示内容的控制触发成功率。
请参阅图3,图3示出了本申请再一个实施例提供的设备控制方法的流程示意图。该方法应用于上述电子设备,该电子设备包括触摸屏,该触摸屏包括显示区域,下面将针对图3所示的流程进行详细的阐述,设备控制方法具体可以包括以下步骤:
步骤S310:响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
其中,步骤S310的具体描述请参阅步骤S110,在此不再赘述。
步骤S320:当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,在显示区域显示第一页面。
在一些实施方式中,在获取滑动操作对应的起点位置和滑动操作对应的手指数量后,可以对该起点位置与触摸屏的第一距离是否小于第一预设距离进行判断,以及对该手指数量是否为一个进行判断。其中,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为一个时,则可以直接在显示区域显示第一页面。例如,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为一个时,查找预先设置的一个手指滑动时对应的第一页面,并在该显示区域显示该第一页面。
作为一种方式,在显示区域显示该第一页面的方式可以包括:在显示区域悬浮显示该第一页面且由第一页面完全覆盖当前页面、在显示区域悬浮显示该第一页面且由第一页面部分覆盖当前页面、或者在显示区域由第一页面替换显示该当前页面。
步骤S330:当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示第二页面,其中,第二边缘与第三边缘相对设置,第一边缘垂直于第二边缘和第三边缘。
在一些实施方式中,在获取滑动操作对应的起点位置和滑动操作对应的手指数量后,可以对该起点位置与触摸屏的第一距离是否小于第一预设距离进行判断,对该手指数量是否为至少两个进行判断,以及对该起点位置是否满足第一预设条件进行判断。其中,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为至少两个以及起点位置满足第一预设条件时,则可以根据该起点位 置确定在显示区域显示第二页面。例如,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为至少两个时,查找预先设置的至少两个手指在该起点位置滑动时对应的第二页面,并在该显示区域显示该第二页面。
作为一种方式,在显示区域显示该第二页面的方式可以包括:在显示区域悬浮显示该第二页面且由第二页面完全覆盖当前页面、在显示区域悬浮显示该第二页面且由第二页面部分覆盖当前页面、或者在显示区域由第二页面替换显示该当前页面。
在一些实施方式中,电子设备的触摸屏包括第一边缘、第二边缘以及第三边缘,其中,第二边缘与第三边缘相对设置,第一边缘垂直于第二边缘和第三边缘。以电子设备竖屏显示为例,该第一边缘可以为电子设备的顶部边缘,则第二边缘可以为电子设备的左侧边缘,第三边缘可以为电子设备的右侧边缘;或者,该第一边缘可以为电子设备的顶部边缘,则第二边缘可以为电子设备的右侧边缘,第三边缘可以为电子设备的左侧边缘。
在一些实施方式中,电子设备可以预先设置并存储有第二预设距离,该第二预设距离用于作为起点位置与触摸屏的第二边缘和第三边缘的距离的判断依据。因此,在本实施例中,在获得滑动操作对应的起点位置后,可以计算该起点位置与该第二边缘的距离以及该起点位置与该第三边缘的距离,并将该起点位置与该第二边缘的距离与第二预设距离进行比较,以判断该起点位置与触摸屏的第二边缘的距离是否小于第二预设距离,以及将该起点位置与该第三边缘的距离与第二预设距离进行比较,以判断该起点位置与触摸屏的第三边缘的距离是否小于第二预设距离。其中,当判断结果表征起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,则可以确定该起点位置满足第一预设条件,可以在显示区域显示第二页面。
本申请又一种实施例提供的设备控制方法,响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量,当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,在显示区域显示第一页面,当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示第二页面。相较于图1所示的设备控制方法,本实施例还在手指数量为一个时,直接在显示区域显示第一面,以及在手指数量为至少两个且起点位置靠近电子设备的两侧时,在显示区域显示第二页面,从而根据手指数量和起点位置区分不一样的控制功能,以在显示区域显示不同的页面,提升快捷页面的触发成功率。
请参阅图4,图4示出了本申请另一个实施例提供的设备控制方法的流程示意图。该方法应用于上述电子设备,该电子设备包括触摸屏,该触摸屏包括显示区域,下面将针对图4所示的流程进行详细的阐述,设备控制方法具体可以包括以下步骤:
步骤S410:响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
其中,步骤S410的具体描述请参阅步骤S110,在此不再赘述。
步骤S420:当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,在显示区域显示通知中心对应的页面,其中,通知中心对应的页面用于显示电子设备安装的多个应用程序的通知消息。
在一些实施方式中,在获取滑动操作对应的起点位置和滑动操作对应的手指数量后,可以对该起点位置与触摸屏的第一距离是否小于第一预设距离进行判断,以及对该手指数量是否为一个进行判断。其中,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为一个时,则可以直接在显示区域显示通知中心对应的页面。其中,通知中心用于提供电子设备安装的多个应用程序的通知消息,通知中心对应的页面用于显示电子设备安装的多个应用程序的通知消息,用户可以在通知中心对应的页面中查看和管理电子设备的系统及各个应用程序的通知消息。
请参阅图5和图6,图5示出了本申请实施例提供的第一种滑动操作的示意图,图6示出了本申请实施例提供的电子设备的第一种界面示意图。如图5所示,当滑动操作对应的起点位置与触摸屏130第一边缘(顶部边缘)的距离小于第一预设距离,且手指数量为一个时,则可以在显示区域显示通知中心对应的页面A,即如图6所示。可以理解的,此时,起点位置可以位于第二边缘和第三边缘之间的任意位置。
步骤S430:当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示控制中心对应的页面,其中,控制中心对应的页面用于显示电子设备的多个目标功能控件。
在一些实施方式中,在获取滑动操作对应的起点位置和滑动操作对应的手指数量后,可以对该起点位置与触摸屏的第一距离是否小于第一预设距离进行判断,对该手指数量是否为至少两个进行判断,以及对该起点位置是否与触摸屏的第二边缘和触摸屏的第三边缘的距离小于第二预设距离进行判断。其中,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为至少两个以及起点 位置与触摸屏的第二边缘和触摸屏的第三边缘的距离小于第二预设距离时,则可以在显示区域显示控制中心对应的页面。其中,控制中心用于收纳电子设备常用的功能和开关,控制中心对应的页面用于显示电子设备的多个目标功能控件(常用的功能和开关),用户可以在控制中心对应的页面中查看和管理电子设备的各个目标功能。
请参阅图7和图8,图7示出了本申请实施例提供的第二种滑动操作的示意图,图8示出了本申请实施例提供的电子设备的第二种界面示意图。如图7所示,当滑动操作对应的起点位置与触摸屏130第一边缘(顶部边缘)的距离小于第一预设距离,且手指数量为两个,以及起点位置与触摸屏的第二边缘(右侧边缘)的距离小于第二预设距离时,则可以在显示区域显示控制中心对应的页面132,即如图8所示。
请参阅图9,图9示出了本申请实施例提供的第三种滑动操作的示意图。如图9所示,当滑动操作对应的起点位置与触摸屏130第一边缘(顶部边缘)的距离小于第一预设距离,且手指数量为两个,以及起点位置与触摸屏的第三边缘(左侧边缘)的距离小于第二预设距离时,则可以在显示区域显示控制中心对应的页面B,即如图8所示。
步骤S440:当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与第二边缘和第三边缘的距离均大于或等于第二预设距离时,将显示区域划分为第一分屏区域和第二分屏区域,其中,第一分屏区域和第二分屏区域中的其中一个分屏区域用于显示多任务界面,第二边缘与第三边缘相对设置,第一边缘垂直于第二边缘和第三边缘。
在一些实施方式中,在获取滑动操作对应的起点位置和滑动操作对应的手指数量后,可以对该起点位置与触摸屏的第一距离是否小于第一预设距离进行判断,对该手指数量是否为至少两个进行判断,以及对该起点位置是否满足第二预设条件进行判断。其中,当确定该起点位置与触摸屏的第一边缘之间的距离小于第一预设距离,且确定该手指数量为至少两个以及起点位置满足第二预设条件时,则可以将显示区域划分为第一分屏区域和第二分屏区域。
在一些实施方式中,电子设备可以预先设置并存储有第二预设距离,该第二预设距离用于作为起点位置与触摸屏的第二边缘和第三边缘的距离的判断依据。因此,在本实施例中,在获得滑动操作对应的起点位置后,可以计算该起点位置与该第二边缘的距离以及该起点位置与该第三边缘的距离,并将该起点位置与该第二边缘的距离与第二预设距离进行比较,以判断该起点位置与触摸屏的第二边缘的距离是否小于第二预设距离,以及将该起点位置与该第三边缘的距离与第二预设距离进行比较,以判断该起点位置与触摸屏的第三边缘的距离是否小于第二预设距离。其中,当判断结果表征起点位置与触摸屏的第二边缘和触摸屏的第三边缘的距离均大于或等于第二预设距离时,则可以确定该起点位置满足第二预设条件,可以将显示区域划分为第一分屏区域和第二分屏区域。
其中,第一分屏区域的形状和第二分屏区域的形状可以相同,也可以不相同。第一分屏区域的大小和第二分屏区域的大小可以相同,也可以不相同。第一分屏区域的分界线可以为规则的线条(如直线),也可以为不规则的线条(如弯折线)。第一分屏区域的位置可以位于第二分屏区域的位置的上方、可以位于第二分屏区域的位置的下方、可以位于第二分屏区域的位置的左方、也可以位于第二分屏区域的位置的右方等,在此不做限定。
在一些实施方式中,对显示区域划分获得的第一分屏区域和第二分屏区域中的其中一个分屏区域用于显示多任务界面,其中,该多任务界面可以用于显示至少一个应用程序对应的视窗。
作为第一种方式,第一分屏区域可以用于显示应用程序对应的应用界面,且第二分屏区域可用于显示多任务界面,或,第一分屏区域可以用于显示多任务界面,且第二分屏区域可用于显示应用程序对应的应用界面。
作为第二种方式,第一分屏区域可以用于显示多任务界面,且第一分屏区域可以用于显示空白界面,或,第一分屏区域可以用于显示空白界面,且第二分屏区域可以用于显示多任务界面。
作为第三种方式,第一分屏区域可以用于显示应用程序对应的应用界面,且第二分屏区域可用于显示多任务界面和应用图标,或,第一分屏区域可以用于显示多任务界面和应用图标,且第二分屏区域可用于显示应用程序对应的应用界面。
作为第四种方式,第一分屏区域可以用于显示多任务界面和应用图标,且第一分屏区域可以用于显示空白界面,或,第一分屏区域可以用于显示空白界面,且第二分屏区域可以用于显示多任务界面和应用图标。
请参阅图10和图11,图10示出了本申请实施例提供的第四种滑动操作的示意图,图11示出了本申请实施例提供的电子设备的第三种界面示意图。如图10所示,当滑动操作对应的起点位置与触摸屏130第一边缘(顶部边缘)的距离小于第一预设距离,且手指数量为两个,以及起点位置与触摸屏的第二边缘(右侧边缘)和第三边缘(左侧边缘)的距离均大于或等于第二预设距离时,则可以将显示区域划分为第一分屏区域C和第二分屏区域D,即如图11所示。
本申请另一个实施例提供的设备控制方法,响应作用于触摸屏上的滑动操作,获取滑动操作对 应的起点位置,并获取滑动操作对应的手指数量,当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,在显示区域显示通知中心对应的页面,当起点位置与触摸屏的第一边缘的距离小于预设距离,且手指数量为至少两个一级起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示控制中心对应的页面,当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与第二边缘和第三边缘的距离均大于或等于第二预设距离时,将显示区域划分为第一分屏区域和第二分屏区域。相较于图1所示的设备控制方法,本实施例还在手指数量为一个时,显示通知中心对应的页面,在手指数量为至少两个且起点位置靠近电子设备的两侧边缘时,显示控制中心对应的页面,以及在手指数量为至少两个且起点位置远离电子设备的两侧边缘时,将显示区域进行分屏处理,从而根据手指数量和起点位置区分不一样的控制功能,以对显示区域进行不同的控制,提升控制触发成功率。
请参阅图12,图12示出了本申请又再一个实施例提供的设备控制方法的流程示意图。该方法应用于上述电子设备,该电子设备包括触摸屏,该触摸屏包括显示区域,下面将针对图12所示的流程进行详细的阐述,设备控制方法具体可以包括以下步骤:
步骤S510:响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
其中,步骤S510的具体描述请参阅步骤S110,在此不再赘述。
步骤S520:当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,在显示区域显示通知中心对应的页面,其中,通知中心对应的页面用于显示电子设备安装的多个应用程序的通知消息。
步骤S530:当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示控制中心对应的页面,其中,控制中心对应的页面用于显示电子设备的多个目标功能控件。
其中,步骤S520-步骤S530的具体描述请参阅步骤S410-步骤S420,在此不再赘述。
步骤S540:当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与第二边缘和第三边缘的距离均大于或等于第二预设距离时,获取滑动操作对应的终点位置。
在本实施例中,在确定该滑动操作的起点位置与触摸屏的第一边缘的距离小于第一预设距离,与触摸屏的第二边缘的距离大于或等于第二预设距离,与触摸屏的第三边缘的距离大于或等于第二预设距离,以及滑动操作的手指数量为至少两个时,则可以获取滑动操作对应的终点位置。
作为一种方式,电子设备的触摸屏上可以设置有触摸传感器。可以通过触摸传感器检测滑动操作对应的终点位置。在一些实施方式中,可以以电子设备的触摸屏的某个位置作为坐标原点建立坐标系,通过触摸传感器检测滑动操作的结束触摸位置,并获取该结束触摸位置在该坐标系中的坐标作为滑动操作对应的终点位置。
作为又一种方式,电子设备的触摸屏上可以设置有压力传感器。可以通过压力传感器检测滑动操作对应的终点位置。在一些实施方式中,可以以电子设备的触摸屏的某个位置作为坐标原点建立坐标系,通过压力传感器检测滑动操作的结束按压位置,并获取该结束按压位置在该坐标系中的坐标作为滑动操作对应的终点位置。
作为再一种方式,电子设备的触摸屏上可以设置有压力传感器和触摸传感器。电子设备还可以通过触摸传感器和压力传感器共同检测滑动操作对应的终点位置,在此不再赘述。
步骤S550:基于起点位置和终点位置,获得滑动操作对应的滑动方向。
在本实施例中,在获得滑动操作对应的起点位置和终点位置后,可以基于起点位置和终点位置,获取滑动操作对应的滑动方向。
在一些实施方式中,在获取滑动操作对应的起点位置和终点位置后,可以获取起点位置和终点位置的连线方向,基于连线方向获取滑动操作对应的滑动方向。
在一些实施方式中,在获取滑动操作对应的起点位置和终点位置后,可以获取起点位置和终点位置的连线方向,对连线方向进行角度修正处理获得目标连线方向,基于目标连线方向获取滑动操作对应的滑动方向。其中,目标连线方向与电子设备的纵轴方向平行或与电子设备的横轴方向平行。
请参阅图13,图13示出了本申请的图12所示的设备控制方法的步骤S550的流程示意图。下面将针对图13所示的流程进行详细的阐述,方法具体可以包括以下步骤:
步骤S551:当终点位置与触摸屏的第四边缘的距离小于第三预设距离时,确定滑动操作满足分屏触发条件,其中,第一边缘与第四边缘相对设置。
在一些实施方式中,电子设备的触摸屏包括第一边缘、第二边缘、第三边缘以及第四边缘,其中,第二边缘与第三边缘相对设置,第一边缘与第四边缘相对设置,第一边缘和第四边缘垂直于第二边缘和第三边缘。以电子设备竖屏显示为例,该第一边缘可以为电子设备的顶部边缘,则第二边缘可以为电子设备的 左侧边缘,第三边缘可以为电子设备的右侧边缘,第四边缘可以为电子设备的底部边缘;或者,该第一边缘可以为电子设备的顶部边缘,则第二边缘可以为电子设备的右侧边缘,第三边缘可以为电子设备的左侧边缘,第四边缘可以为电子设备的底部边缘;或者,该第一边缘可以为电子设备的底部边缘,则第二边缘可以为电子设备的右侧边缘,第三边缘可以为电子设备的左侧边缘,第四边缘可以为电子设备的顶部边缘等,在此不做限定。
在一些实施方式中,电子设备可以预先设置并存储有第三预设距离,该第三预设距离用于作为终点位置与触摸屏的第四边缘的距离的判断依据。因此,在本实施例中,在获得滑动操作对应的终点位置后,可以计算该终点位置与该第四边缘的距离,并将该终点位置与该第四边缘的距离与第三预设距离进行比较,以判断该终点位置与触摸屏的第四边缘的距离是否小于第三预设距离。其中,当终点位置与触摸屏的第四边缘的距离小于第三预设距离时,确定滑动操作满足分屏触发条件。
步骤S552:基于起点位置和终点位置,获得滑动操作对应的滑动方向。
步骤S560:基于滑动方向,将显示区域划分为第一分屏区域和第二分屏区域,其中,第一分屏区域和第二分屏区域中的其中一个分屏区域用于显示多任务界面。
在本实施例中,在获取滑动操作对应的滑动方向后,可以根据滑动方向将触摸屏的显示区域划分为第一分屏区域和第二分屏区域。
请再参阅图10和图11。如图10所示,当滑动操作的从触摸屏130的顶部下滑向触摸屏的底部时,则可以将触摸屏130的显示区域进行左右分屏,即将显示区域划分为第一分屏区域C和第二分屏区域D(如图11所示)。
请参阅图14和图15,图14示出了本申请实施例提供的第五种滑动操作的示意图,图15示出了本申请实施例提供的电子设备第四种界面示意图。如图14所示,当滑动操作从触摸屏130的右侧左滑至触摸屏的左侧时,则可以将触摸屏130的显示区域进行上下分屏,即将显示区域划分为第一分屏区域C和第二分屏区域D(如图15所示)。
在一些实施方式中,对显示区域划分获得的第一分屏区域和第二分屏区域中的其中一个分屏区域用于显示多任务界面,其中,该多任务界面可以用于显示至少一个应用程序对应的视窗。
在一些实施方式中,在获得滑动操作对应的滑动方向后,可以根据该滑动方向确定分屏方向。作为一种方式,电子设备可以预先设置多个滑动方向和多个分屏方向的映射关系,并将多个滑动方向和多个分屏方向的映射关系存储入映射关系表,基于此,在获得滑动操作对应的滑动方向后,可以从映射关系表中的多个滑动方向中获取与滑动操作对应的滑动方向作为目标滑动方向,再基于多个滑动方向和多个分屏方向的映射关系,从多个分屏方向中确定与目标滑动方向存在映射关系的分屏方向作为目标分屏方向,则该目标分屏方向可以确定为滑动操作对应的滑动方向对应的分屏方向。
在一些实施方式中,当确定滑动操作对应的滑动方向与电子设备的纵轴方向平行时,则可以将分屏方向确定为与电子设备的纵轴方向平行,即,将电子设备的触摸屏的显示区域进行左右分屏;当确定滑动操作对应的滑动方向与电子设备的横轴方向平行时,则可以将分屏方向确定为与电子设备的横轴方向平行,即,将电子设备的触摸屏的显示区域进行上下分屏;当确定滑动操作对应的滑动方向与电子设备的对角线方向平行时,则可以将分屏方向确定为与电子设备的对角线方向平行,即,将电子设备的触摸屏的显示区域进行斜角分屏。
在一些实施方式中,电子设备可以预先设置并存储有指定方向,且设置该指定方向为电子设备的纵轴方向或横轴方向。那么,当滑动方向与电子设备的纵轴方向平行时,则将电子设备的纵轴方向确定为分屏方向,基于该分屏方向可以将触摸屏的显示区域进行左右分屏,当滑动方向与电子设备的横轴方向平行时,则将电子设备的横轴方向确定为分屏方向,基于该分屏方向可以将触摸屏的显示区域进行上下分屏。
以分屏方向为电子设备的纵轴方向为例,当双指从触摸屏的顶部下滑至底部或者从触摸屏的顶部上滑至顶部时,可以将触摸屏的显示区域进行左右分屏。以分屏方向为电子设备的横轴方向为例,当双指从触摸屏的左侧边缘右滑至右侧边缘或者从触摸屏的右侧边缘左滑至左侧边缘时,可以将触摸屏的显示区域进行上下分屏。
本申请又再一个实施例提供的设备控制方法,响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量,当起点位置与触摸屏的第一边缘的距离小于第一预设距离且手指数量为一个时,在显示区域显示通知中心对应的页面,当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个以及起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示控制中心对应的页面,当起点位置与触摸屏的第一边缘的距离小于第一预设距离,且手指数量为至少两个一级起点位置与第二边缘和第三边缘的距离均大于或等于第二预设距离时,获取滑动操作对应的终点位置,基于起点位置和终点位置,获得滑动操作对应的滑动方向,基于滑动方向,将显示区域划分为第一分屏区域和第二分屏区域。相较于图1所示的设备控制方法,本实施例还在手指数量为一个时,显示通知中心对应的页面,在手指数量为至少两个且起点位置靠近电子设备 的两侧边缘时,显示控制中心对应的页面,以及在手指数量为至少两个且起点位置远离电子设备的两侧边缘时,根据起点位置和终点位置将显示区域进行分屏处理,从而根据手指数量和起点位置区分不一样的控制功能,以对显示区域进行不同的控制,提升控制触发成功率,以及提升分屏的准确性。
请参阅图16,图16示出了本申请实施例提供的设备控制装置的模块框图。该设备控制装置200应用于上述电子设备,该电子设备包括触摸屏,该触摸屏包括显示区域,下面将针对图16所示的框图进行阐述,设备控制装置200包括:参数获取模块210和设备控制模块220,其中:
参数获取模块210,用于响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量。
设备控制模块220,用于当起点位置与触摸屏的第一边缘的距离小于第一预设距离时,根据手指数量,对显示区域进行控制。
进一步地,设备控制模块220包括:第一设备控制子模块和第二设备控制子模块,其中:
第一设备控制子模块,用于当手指数量为一个时,对显示区域的显示内容进行控制。
进一步地,第一设备控制子模块包括:第一页面显示单元,其中:
第一页面显示单元,用于当手指数量为一个时,在显示区域显示第一页面。
进一步地,第一页面显示单元包括:通知中心页面显示子单元,其中:
通知中心页面显示子单元,用于当手指数量为一个时,在显示区域显示通知中心对应的页面,其中,通知中心对应的页面用于显示电子设备安装的多个应用程序的通知消息。
第二设备控制子模块,用于当手指数量为至少两个时,根据起点位置对显示区域的显示内容进行控制。
进一步地,第二设备控制子模块包括:第二页面显示单元,其中:
第二页面显示单元,用于当手指数量为至少两个且起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示第二页面,其中,第二边缘与第三边缘相对设置,第一边缘垂直于第二边缘和第三边缘。
进一步地,第二页面显示单元包括:控制中心页面显示子单元,其中:
控制中心页面显示子单元,用于当手指数量为至少两个且起点位置与触摸屏的第二边缘或触摸屏的第三边缘的距离小于第二预设距离时,在显示区域显示控制中心对应的页面,其中,控制中心对应的页面用于显示电子设备的多个目标功能控件。
进一步地,设备控制模块220还包括:第三设备控制子模块,其中:
第三设备控制子模块,用于当手指数量为至少两个且起点位置与第二边缘和第三边缘的距离均大于或等于第二预设距离时,将显示区域划分为第一分屏区域和第二分屏区域,其中,第一分屏区域和第二分屏区域中的其中一个分屏区域用于显示多任务界面。
进一步地,第三设备控制子模块包括:分屏单元,其中:
分屏单元,用于基于滑动方向,将显示区域划分为第一分屏区域和第二分屏区域。
进一步地,设备控制模块220还包括:终点位置获取子模块和滑动方向获得子模块,其中:
终点位置获取子模块,用于获取滑动操作对应的终点位置。
滑动方向获得子模块,用于基于起点位置和终点位置,获得滑动操作对应的滑动方向;
进一步地,滑动方向获得子模块包括:分屏触发确定单元和滑动方向获得单元,其中:
分屏触发确定单元,用于当终点位置与触摸屏的第四边缘的距离小于第三预设距离时,确定滑动操作满足分屏触发条件,其中,第一边缘与第四边缘相对设置。
滑动方向获得单元,用于基于起点位置和终点位置,获得滑动操作对应的滑动方向。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,模块相互之间的耦合可以是电性,机械或其它形式的耦合。
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。
请参阅图17,其示出了本申请实施例提供的一种电子设备100的结构框图。该电子设备100可以是智能手机、平板电脑、电子书等能够运行应用程序的电子设备。本申请中的电子设备100可以包括一个或多个如下部件:处理器110、存储器120、触摸屏130以及一个或多个应用程序,其中一个或多个应用程序可以被存储在存储器120中并被配置为由一个或多个处理器110执行,一个或多个程序配置用于执行如前述方法实施例所描述的方法。
其中,处理器110可以包括一个或者多个处理核。处理器110利用各种接口和线路连接整个电子设备100内的各个部分,通过运行或执行存储在存储器120内的指令、程序、代码集或指令集, 以及调用存储在存储器120内的数据,执行电子设备100的各种功能和处理数据。可选地,处理器110可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器110可集成中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责待显示内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器110中,单独通过一块通信芯片进行实现。
存储器120可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory)。存储器120可用于存储指令、程序、代码、代码集或指令集。存储器120可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现下述各个方法实施例的指令等。存储数据区还可以存储电子设备100在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。
触摸屏130用于显示由用户输入的信息、提供给用户的信息以及电子设备100的各种图形用户接口,这些图形用户接口可以由图形、文本、图标、数字、视频和其任意组合来构成,在一个实例中,该触摸屏130可以为液晶显示器(Liquid Crystal Display,LCD),也可以为有机发光二极管(Organic Light-Emitting Diode,OLED),在此不做限定。
请参阅图18,其示出了本申请实施例提供的一种计算机可读存储介质的结构框图。该计算机可读介质300中存储有程序代码,程序代码可被处理器调用执行上述方法实施例中所描述的方法。
计算机可读存储介质300可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。可选地,计算机可读存储介质300包括非易失性计算机可读介质(non-transitory computer-readable storage medium)。计算机可读存储介质300具有执行上述方法中的任何方法步骤的程序代码310的存储空间。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。程序代码310可以例如以适当形式进行压缩。
综上所述,本申请实施例提供的设备控制方法、装置、电子设备以及存储介质,响应作用于触摸屏上的滑动操作,获取滑动操作对应的起点位置,并获取滑动操作对应的手指数量,当起点位置与触摸屏的第一边缘的距离小于第一预设距离时,根据手指数量,对显示区域进行控制,从而通过根据滑动操作对应的起点位置和手指数量,对显示区域进行控制,以提升相应控制的触发成功率。
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不驱使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。

Claims (20)

  1. 一种设备控制方法,其特征在于,应用于电子设备,所述电子设备包括触摸屏,所述触摸屏包括显示区域,所述方法包括:
    响应作用于所述触摸屏上的滑动操作,获取所述滑动操作对应的起点位置,并获取所述滑动操作对应的手指数量;
    当所述起点位置与所述触摸屏的第一边缘的距离小于第一预设距离时,根据所述手指数量,对所述显示区域进行控制。
  2. 根据权利要求1所述的方法,其特征在于,所述根据所述手指数量,对所述显示区域进行控制,包括:
    当所述手指数量为一个时,对所述显示区域的显示内容进行控制,或者
    当所述手指数量为至少两个时,根据所述起点位置对所述显示区域的显示内容进行控制。
  3. 根据权利要求2所述的方法,其特征在于,所述当所述手指数量为一个时,对所述显示区域的显示内容进行控制,包括:
    当所述手指数量为一个时,在所述显示区域显示第一页面。
  4. 根据权利要求3所述的方法,其特征在于,所述当所述手指数量为一个时,在所述显示区域显示第一页面,包括:
    当所述手指数量为一个时,在所述显示区域显示通知中心对应的页面,其中,所述通知中心对应的页面用于显示所述电子设备安装的多个应用程序的通知消息。
  5. 根据权利要求2所述的方法,其特征在于,所述当所述手指数量为至少两个时,根据所述起点位置对所述显示区域进行控制,包括:
    当所述手指数量为至少两个且所述起点位置与所述触摸屏的第二边缘或所述触摸屏的第三边缘的距离小于第二预设距离时,在所述显示区域显示第二页面,其中,所述第二边缘与所述第三边缘相对设置,所述第一边缘垂直于所述第二边缘和所述第三边缘。
  6. 根据权利要求5所述的方法,其特征在于,所述当所述手指数量为至少两个所述起点位置与所述触摸屏的第二边缘或所述触摸屏的第三边缘的距离小于第二预设距离时,在所述显示区域显示第二页面,包括:
    当所述手指数量为至少两个且所述起点位置与所述触摸屏的第二边缘或所述触摸屏的第三边缘的距离小于第二预设距离时,在所述显示区域显示控制中心对应的页面,其中,所述控制中心对应的页面用于显示所述电子设备的多个目标功能控件。
  7. 根据权利要求5或6所述的方法,其特征在于,所述方法还包括:
    当所述手指数量为至少两个且所述起点位置与所述第二边缘和所述第三边缘的距离均大于或等于所述第二预设距离时,将所述显示区域划分为第一分屏区域和第二分屏区域,其中,所述第一分屏区域和所述第二分屏区域中的其中一个分屏区域用于显示多任务界面。
  8. 根据权利要求7所述的方法,其特征在于,在将所述显示区域划分为第一分屏区域和第二分屏区域之前,还包括:
    获取所述滑动操作对应的终点位置;
    基于所述起点位置和所述终点位置,获得所述滑动操作对应的滑动方向;
    所述将所述显示区域划分为第一分屏区域和第二分屏区域,包括
    基于所述滑动方向,将所述显示区域划分为所述第一分屏区域和所述第二分屏区域。
  9. 根据权利要求8所述的方法,其特征在于,所述基于所述起点位置和所述终点位置,获得所述滑动操作对应的滑动方向,包括:
    当所述终点位置与所述触摸屏的第四边缘的距离小于第三预设距离时,确定所述滑动操作满足分屏触发条件,其中,所述第一边缘与所述第四边缘相对设置;
    基于所述起点位置和所述终点位置,获得所述滑动操作对应的滑动方向。
  10. 根据权利要求8所述的方法,其特征在于,所述基于所述滑动方向,将所述显示区域划分为所述第一分屏区域和所述第二分屏区域,包括:
    基于所述滑动方向,确定分屏方向;
    基于所述分屏方向,将所述显示区域划分为所述第一分屏区域和所述第二分屏区域。
  11. 根据权利要求8所述的方法,其特征在于,所述基于所述起点位置和所述终点位置,获得所述滑动操作对应的滑动方向,包括:
    获取所述起点位置和所述终点位置的连线方向;
    基于所述连线方向,获得所述滑动操作对应的滑动方向。
  12. 根据权利要求11所述的方法,其特征在于,所述基于所述连线方向,获得所述滑动操作对应的滑动方向,包括:
    对所述连线方向进行角度修正处理,获得目标连线方向,其中,所述目标连线方向与所述电子设备的纵轴方向平行或与所述电子设备的横轴方向平行;
    基于所述目标连线方向,获取所述滑动操作对应的滑动方向。
  13. 根据权利要求1-12任一项所述的方法,其特征在于,所述响应作用于所述触摸屏上的滑动操作,获取所述滑动操作对应的起点位置,并获取所述滑动操作对应的手指数量,包括:
    当检测到所述电子设备处于点亮状态时,对作用于所处触摸屏上的触控操作进行检测;
    当检测到作用于所述触摸屏上的滑动操作时,响应作用于所述触摸屏上的滑动操作,获取所述滑动操作对应的起点位置,并获取所述滑动操作对应的手指数量。
  14. 根据权利要求13所述的方法,其特征在于,所述当检测到所述电子设备处于点亮状态时,对作用于所处触摸屏上的触控操作进行检测,包括:
    当检测到所述电子设备处于点亮状态时,对所述电子设备的触摸屏所处的状态进行检测;
    当检测到所述电子设备的触摸屏处于解锁状态时,对作用于所述触摸屏上的触控操作进行检测。
  15. 根据权利要求14所述的方法,其特征在于,所述当检测到所述电子设备的触摸屏处于解锁状态时,对作用于所述触摸屏上的触控操作进行检测,包括:
    当检测到所述电子设备的触摸屏处于解锁状态时,对所述电子设备的触摸屏当前所显示的界面进行检测;
    当检测到所述电子设备当前所显示的界面为桌面或者应用界面时,对作用于所述触摸屏上的触控操作进行检测。
  16. 根据权利要求1-12任一项所述的方法,其特征在于,所述电子设备包括触摸传感器,所述获取所述滑动操作对应的手指数量,包括:
    通过所述触摸传感器检测所述滑动操作的触摸轨迹的数量;
    基于所述触摸轨迹的数量获取所述滑动操作对应的手指数量,其中,所述触摸轨迹的数量与所述手指数量一致。
  17. 根据权利要求1-12任一项所述的方法,其特征在于,所述电子设备包括压力传感器,所述获取所述滑动操作对应的手指数量,包括:
    通过所述压力传感器检测所述滑动操作的按压轨迹的数量;
    基于所述按压轨迹的数量获取所述滑动操作对应的手指数量,其中,所述按压轨迹的数量与所述手指数量一致。
  18. 一种设备控制装置,其特征在于,应用于电子设备,所述电子设备包括触摸屏,所述触摸屏包括显示区域,所述装置包括:
    参数获取模块,用于响应作用于所述触摸屏上的滑动操作,获取所述滑动操作对应的起点位置,并获取所述滑动操作对应的手指数量;
    设备控制模块,用于当所述起点位置与所述触摸屏的第一边缘的距离小于第一预设距离时,根据所述手指数量,对所述显示区域进行控制。
  19. 一种电子设备,其特征在于,包括触摸屏、存储器和处理器,所述触摸屏和所述存储器耦接到所述处理器,所述存储器存储指令,当所述指令由所述处理器执行时所述处理器执行如权利要求1-17任一项所述的方法。
  20. 一种计算机可读取存储介质,其特征在于,所述计算机可读取存储介质中存储有程序代码,所述程序代码可被处理器调用执行如权利要求1-17任一项所述的方法。
PCT/CN2022/106249 2021-08-10 2022-07-18 设备控制方法、装置、电子设备以及存储介质 WO2023016193A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110915268.8 2021-08-10
CN202110915268.8A CN115705138A (zh) 2021-08-10 2021-08-10 设备控制方法、装置、电子设备以及存储介质

Publications (1)

Publication Number Publication Date
WO2023016193A1 true WO2023016193A1 (zh) 2023-02-16

Family

ID=85179661

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/106249 WO2023016193A1 (zh) 2021-08-10 2022-07-18 设备控制方法、装置、电子设备以及存储介质

Country Status (2)

Country Link
CN (1) CN115705138A (zh)
WO (1) WO2023016193A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186330A (zh) * 2011-12-27 2013-07-03 联想(北京)有限公司 一种显示界面切换方法和电子设备
CN107346206A (zh) * 2017-06-23 2017-11-14 上海斐讯数据通信技术有限公司 一种移动终端的操控方法及移动终端
CN108984064A (zh) * 2018-07-03 2018-12-11 Oppo广东移动通信有限公司 分屏显示方法、装置、存储介质和电子设备
WO2020003645A1 (ja) * 2018-06-26 2020-01-02 株式会社日立製作所 シミュレーションシステム及びその制御方法
CN111722780A (zh) * 2020-06-19 2020-09-29 佛吉亚歌乐电子(丰城)有限公司 显示快速操作栏的方法、装置、车机设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186330A (zh) * 2011-12-27 2013-07-03 联想(北京)有限公司 一种显示界面切换方法和电子设备
CN107346206A (zh) * 2017-06-23 2017-11-14 上海斐讯数据通信技术有限公司 一种移动终端的操控方法及移动终端
WO2020003645A1 (ja) * 2018-06-26 2020-01-02 株式会社日立製作所 シミュレーションシステム及びその制御方法
CN108984064A (zh) * 2018-07-03 2018-12-11 Oppo广东移动通信有限公司 分屏显示方法、装置、存储介质和电子设备
CN111722780A (zh) * 2020-06-19 2020-09-29 佛吉亚歌乐电子(丰城)有限公司 显示快速操作栏的方法、装置、车机设备及存储介质

Also Published As

Publication number Publication date
CN115705138A (zh) 2023-02-17

Similar Documents

Publication Publication Date Title
US11709560B2 (en) Device, method, and graphical user interface for navigating through a user interface using a dynamic object selection indicator
US11592980B2 (en) Techniques for image-based search using touch controls
JP6965319B2 (ja) 文字入力インターフェース提供方法及び装置
US11200072B2 (en) User interface adaptations based on inferred content occlusion and user intent
US9423933B2 (en) Item display method and apparatus that display items according to a user gesture
US10437360B2 (en) Method and apparatus for moving contents in terminal
US8427438B2 (en) Virtual input tools
WO2016165066A1 (zh) 一种手势控制方法、装置、终端设备和存储介质
US20070236468A1 (en) Gesture based device activation
US20120030624A1 (en) Device, Method, and Graphical User Interface for Displaying Menus
US20120011467A1 (en) Window Opening and Arranging Method
US10599903B2 (en) Information processing method and electronic device
WO2021164460A1 (zh) 触摸响应方法、装置、电子设备及存储介质
WO2021092768A1 (zh) 触摸事件的处理方法、装置、移动终端及存储介质
EP2613247A2 (en) Method and apparatus for displaying keypad in terminal having touch screen
WO2023016193A1 (zh) 设备控制方法、装置、电子设备以及存储介质
WO2022166516A1 (zh) 分屏方法、装置、电子设备以及存储介质
US9778822B2 (en) Touch input method and electronic apparatus thereof
US20140035876A1 (en) Command of a Computing Device
CN110568989A (zh) 业务处理方法、业务处理装置、终端及介质
WO2018132971A1 (zh) 一种交互控制方法和终端
WO2023131022A1 (zh) 显示控制方法、电子设备及可读存储介质
WO2022227922A1 (zh) 应用切换方法、装置、电子设备以及存储介质
CN116048370A (zh) 显示设备及操作切换方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22855176

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE