A control center panel call-out method and a terminal device
By detecting and judging user operations when the status bar of the terminal device is hidden, the control center panel is directly displayed, which solves the problem of cumbersome operation when the status bar is hidden and achieves the effect of simplifying operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-15
- Publication Date
- 2026-03-17
AI Technical Summary
When the status bar of the terminal device is hidden, users need to perform two operations to bring up the control center panel, which is cumbersome.
When the status bar is hidden, detect preset operation events, determine whether the user operation meets preset conditions, and stop sending subsequent operation events to the target application when the conditions are met, and directly display the control center panel.
The control center panel can be accessed with a single user action, simplifying the operation process while ensuring the normal response of the target application.
Smart Images

Figure CN115421620B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of terminal technology, specifically to a method for accessing a control center panel and a terminal device. Background Technology
[0002] Generally, the control center panel of a terminal device is brought up by the status bar. Specifically, when the status bar receives a touch event, it identifies whether the user has swiped and whether the swipe distance meets the preset conditions. If the user has swiped and the swipe distance meets the preset conditions, the control center panel is brought up and presented to the user.
[0003] In some scenarios, such as when playing a full-screen video, the device may hide the status bar. When the status bar is hidden, if a user wants to access the control center panel, they must first interact with the device to bring up the status bar, and then interact with the status bar again to access the control center panel. As mentioned above, accessing the control center panel requires two steps when the status bar is hidden, which is cumbersome. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method and terminal device for bringing up a control center panel, which simplifies the user's operation when bringing up the control center panel in scenarios where the status bar is hidden.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] In a first aspect, embodiments of the present invention provide a method for accessing a control center panel, comprising:
[0007] Detect preset operation events when the status bar of the terminal device is hidden;
[0008] When the preset operation event is detected, the preset operation event is distributed to the target application, and it is determined whether the user operation corresponding to the preset operation event meets the preset conditions; the target application is the application to which the currently displayed interface of the terminal device belongs;
[0009] If the user operation corresponding to the preset operation event meets the preset condition, then the distribution of subsequent operation events generated by the user operation to the target application is stopped, and the control center panel of the terminal device is displayed according to the user operation.
[0010] As an optional implementation of this invention, the method further includes:
[0011] If the user operation corresponding to the preset operation event does not meet the preset condition, the system continues to distribute the subsequent operation events generated by the user operation to the target application, and controls the target application to respond to the user operation after the user operation input is completed.
[0012] As an optional implementation of this invention, the preset operation event is a touch event.
[0013] As an optional implementation of this invention, determining whether the user operation corresponding to the preset operation event meets the preset conditions includes:
[0014] Determine whether the touch position corresponding to the touch event is located within a preset area of the display screen of the terminal device;
[0015] If so, then it is determined that the user operation corresponding to the touch event satisfies the preset condition;
[0016] If not, then it is determined that the user operation corresponding to the touch event does not meet the preset conditions.
[0017] As an optional implementation of this invention, determining whether the user operation corresponding to the preset operation event meets the preset conditions includes:
[0018] Determine whether the user operation corresponding to the touch event is a touch swipe operation;
[0019] If not, then it is determined that the user operation corresponding to the touch event does not meet the preset conditions;
[0020] If so, determine whether the starting position of the touch swipe operation is located within a preset area of the terminal device's display screen;
[0021] If the starting position of the touch swipe operation is located within a preset area of the terminal device's display screen, then the user operation corresponding to the touch event is determined to meet the preset condition;
[0022] If the starting position of the touch swipe operation is outside the preset area of the terminal device's display screen, then it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0023] As an optional implementation of this invention, determining whether the user operation corresponding to the preset operation event meets the preset conditions includes:
[0024] Determine whether the user operation corresponding to the touch event is a touch swipe operation;
[0025] If not, then it is determined that the user operation corresponding to the touch event does not meet the preset conditions;
[0026] If so, determine whether the starting position of the touch swipe operation is located within a preset area of the terminal device's display screen;
[0027] If the starting position of the touch swipe operation is outside the preset area of the terminal device's display screen, then it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0028] If the starting position of the touch sliding operation is located within a preset area of the display screen of the terminal device, then it is determined whether the sliding direction of the touch sliding operation points to the geometric center of the display screen of the terminal device.
[0029] If it is determined that the sliding direction of the touch swipe operation points to the geometric center of the display screen of the terminal device, then it is determined that the user operation corresponding to the touch event satisfies the preset condition;
[0030] If it is determined that the sliding direction of the touch swipe operation does not point to the geometric center of the display screen of the terminal device, then it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0031] As an optional implementation of this invention, determining whether the user operation corresponding to the preset operation event meets the preset conditions includes:
[0032] Determine whether the user operation corresponding to the touch event is a touch swipe operation;
[0033] If not, then it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0034] If so, determine whether the starting position of the touch swipe operation is located within a preset area of the terminal device's display screen;
[0035] If the starting position of the touch swipe operation is outside the preset area of the terminal device's display screen, then it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0036] If the starting position of the touch sliding operation is located within a preset area of the display screen of the terminal device, then it is determined whether the sliding direction of the touch sliding operation points to the geometric center of the display screen of the terminal device.
[0037] If it is determined that the sliding direction of the touch swipe operation does not point to the geometric center of the display screen of the terminal device, then it is determined that the user operation corresponding to the touch event does not meet the preset condition;
[0038] If it is determined that the sliding direction of the touch sliding operation points to the geometric center of the display screen of the terminal device, then it is determined whether the sliding distance of the touch sliding operation within a preset time period is greater than or equal to a threshold distance.
[0039] If the sliding distance of the touch swipe operation within a preset time period is greater than or equal to the threshold distance, then it is determined that the user operation corresponding to the touch event meets the preset condition;
[0040] If the sliding distance of the touch swipe operation within a preset time period is less than the threshold distance, then it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0041] As an optional implementation of this invention, displaying the control center panel of the terminal device according to the user operation includes:
[0042] Obtain the sliding distance of the user's operation;
[0043] The control center panel of the terminal device is displayed according to the sliding distance of the user's operation.
[0044] Secondly, embodiments of the present invention provide a terminal device, including:
[0045] The detection unit is used to detect preset operation events when the status bar of the terminal device is hidden.
[0046] A distribution unit is configured to distribute the preset operation event to a target application when the preset operation event is detected; the target application is the application to which the currently displayed interface of the terminal device belongs.
[0047] The processing unit is used to determine whether the user operation corresponding to the preset operation event meets the preset conditions when the preset operation event is detected.
[0048] The distribution unit is further configured to stop distributing subsequent operation events generated by the user operation to the target application when the user operation corresponding to the preset operation event meets the preset condition;
[0049] The display unit is used to display the control center panel of the terminal device according to the user operation when the user operation corresponding to the preset operation event meets the preset conditions.
[0050] As an optional implementation of the present invention, the distribution unit is further configured to continue distributing subsequent operation events generated by the user operation to the target application when the user operation corresponding to the preset operation event does not meet the preset conditions, and to control the target application to respond to the user operation after the user operation input is completed.
[0051] As an optional implementation of this invention, the preset operation event is a touch event.
[0052] As an optional implementation of this invention, the determining unit is specifically used to determine whether the touch position corresponding to the touch event is located within a preset area of the display screen of the terminal device; if yes, then it is determined that the user operation corresponding to the touch event satisfies the preset condition; if no, then it is determined that the user operation corresponding to the touch event does not satisfy the preset condition.
[0053] As an optional implementation of this invention, the determining unit is specifically used to determine whether the user operation corresponding to the touch event is a touch swipe operation; if not, it is determined that the user operation corresponding to the touch event does not meet the preset condition; if yes, it is determined whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device; if the starting position of the touch swipe operation is located within the preset area of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event meets the preset condition; if the starting position of the touch swipe operation is located outside the preset area of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0054] As an optional implementation of this invention, the determining unit is specifically used to determine whether the user operation corresponding to the touch event is a touch swipe operation; if not, it is determined that the user operation corresponding to the touch event does not meet the preset condition; if yes, it is determined whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device; if the starting position of the touch swipe operation is located outside the preset area of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not meet the preset condition; if the starting position of the touch swipe operation is located within the preset area of the display screen of the terminal device, it is determined whether the swiping direction of the touch swipe operation points to the geometric center of the display screen of the terminal device; if it is determined that the swiping direction of the touch swipe operation points to the geometric center of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event meets the preset condition; if it is determined that the swiping direction of the touch swipe operation does not point to the geometric center of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0055] In an optional implementation of this invention, the determining unit is specifically configured to determine whether the user operation corresponding to the touch event is a touch swipe operation; if not, then determine that the user operation corresponding to the touch event does not meet the preset condition; if yes, then determine whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device; if the starting position of the touch swipe operation is located outside the preset area of the display screen of the terminal device, then determine that the user operation corresponding to the touch event does not meet the preset condition; if the starting position of the touch swipe operation is located within the preset area of the display screen of the terminal device, then determine whether the swiping direction of the touch swipe operation points towards the display screen of the terminal device. The geometric center is determined as follows: If the sliding direction of the touch swipe operation does not point to the geometric center of the terminal device's display screen, then the user operation corresponding to the touch event is determined not to meet the preset condition; if the sliding direction of the touch swipe operation points to the geometric center of the terminal device's display screen, then it is determined whether the sliding distance of the touch swipe operation within a preset time period is greater than or equal to a threshold distance; if the sliding distance of the touch swipe operation within a preset time period is greater than or equal to the threshold distance, then the user operation corresponding to the touch event is determined to meet the preset condition; if the sliding distance of the touch swipe operation within a preset time period is less than the threshold distance, then the user operation corresponding to the touch event is determined not to meet the preset condition.
[0056] As an optional implementation of this invention, the display unit is specifically used to acquire the sliding distance of the user operation; and to display the control center panel of the terminal device according to the sliding distance of the user operation.
[0057] Thirdly, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to, when executing the computer program, cause the electronic device to implement the control center panel retrieval method described in any of the above embodiments.
[0058] Fourthly, embodiments of the present invention provide a vehicle, the vehicle including the terminal device described in the second aspect or the electronic device described in the third aspect.
[0059] Fifthly, embodiments of the present invention provide a computer-readable storage medium that, when executed by a computer device, causes the computer device to implement the control center panel retrieval method described in any of the above embodiments.
[0060] Sixthly, embodiments of the present invention provide a computer program product that, when run on a computer, enables the computer to implement the control center panel retrieval method described in any of the above embodiments.
[0061] The control center panel retrieval method provided in this embodiment of the invention detects preset operation events when the status bar of the terminal device is hidden. When the preset operation event is detected, the preset operation event is distributed to the application to which the currently displayed interface of the terminal device belongs. The method also determines whether the user operation corresponding to the preset operation event meets the preset conditions. If the user operation corresponding to the preset operation event meets the preset conditions, the method stops distributing subsequent operation events generated by the user operation to the target application and displays the control center panel of the terminal according to the user operation. Because the control center panel retrieval method provided in this embodiment of the invention detects preset operation events when the status bar of the terminal device is hidden, and simultaneously distributes the preset operation event to the application to which the currently displayed interface of the terminal device belongs, and determines whether the user operation corresponding to the preset operation event is a user operation to retrieve the control center panel, this embodiment of the invention can retrieve the control center panel of the terminal device with a single user operation when the user operation corresponding to the preset operation event is a user operation to retrieve the control center panel, and ensure the normal response of the target application when the user operation corresponding to the preset operation event is not a user operation to retrieve the control center panel. Therefore, this embodiment of the invention can simplify the operation of the user to retrieve the control center panel in scenarios where the status bar is hidden. Attached Figure Description
[0062] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0063] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings that need to be called in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0064] Figure 1 A schematic diagram of the status bar of a terminal device provided in an embodiment of the present invention;
[0065] Figure 2 A schematic diagram of the control center panel of a terminal device provided in an embodiment of the present invention;
[0066] Figure 3This is one of the flowcharts of the method for bringing up the control center panel provided in an embodiment of the present invention;
[0067] Figure 4 This is the second flowchart of the method for accessing the control center panel provided in this embodiment of the invention.
[0068] Figure 5 This is a schematic diagram illustrating the positional relationship between the display screen and the preset area of a terminal device provided in an embodiment of the present invention.
[0069] Figure 6 The third step of the method for bringing up the control center panel provided in this embodiment of the invention;
[0070] Figure 7 The fourth step of the flowchart for the method of bringing up the control center panel provided in the embodiment of the present invention;
[0071] Figure 8 The fifth step of the flowchart for the method of bringing up the control center panel provided in the embodiment of the present invention;
[0072] Figure 9 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention;
[0073] Figure 10 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation
[0074] To better understand the above-mentioned objectives, features, and advantages of the present invention, the solutions of the present invention will be further described below. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.
[0075] Many specific details are set forth in the following description in order to provide a full understanding of the invention, but the invention may also be practiced in other ways different from those described herein; obviously, the embodiments in the specification are only some embodiments of the invention, and not all embodiments.
[0076] In embodiments of the present invention, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design described as "exemplary" or "for example" in embodiments of the present invention should not be construed as being more preferred or advantageous than other embodiments or designs. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. Furthermore, in the description of embodiments of the present invention, unless otherwise stated, "a plurality of" means two or more.
[0077] The relevant terms in the embodiments of the present invention will be explained below.
[0078] The status bar of a terminal device: The status bar of a terminal device refers to the display area on the terminal device's screen used to display various status information such as time, network status, WiFi connection status, Bluetooth status, battery level, and notification information. For example, refer to... Figure 1 As shown, Figure 1 Taking a mobile phone as an example, with the status bar 100 of the terminal device located at the top of the terminal device screen, the status bar 100 of the terminal device displays the mobile network accessed by the terminal device, the Bluetooth status of the terminal device being enabled, the WiFi status being connected, the mobile network signal being good, and the terminal device battery level being 35%.
[0079] Control center panel of terminal equipment: The control center panel of a terminal equipment refers to the display interface of the terminal equipment, which includes controls for adjusting screen brightness, enabling / disabling mobile data, enabling / disabling mute, enabling / disabling flashlight, enabling / disabling split-mode, enabling / disabling automatic screen brightness adjustment, enabling / disabling orientation lock, media playback control, etc. (See reference) Figure 2 As shown, Figure 2 Taking a mobile phone as an example, the control center panel 200 of the terminal device includes controls for adjusting screen brightness, turning mobile data on / off, turning mute on / off, turning flashlight on / off, turning split mode on / off, turning automatic screen brightness adjustment on / off, turning orientation lock on / off, media playback control, etc., and the user can operate any of the controls to perform corresponding control.
[0080] The terminal device in this embodiment of the invention can be a mobile terminal or a non-mobile terminal. A mobile terminal can be a mobile phone, tablet computer, laptop computer, wearable device, PDA, vehicle terminal, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc.; a non-mobile terminal can be a personal computer (PC), television (TV), vehicle-mounted device, ATM, or self-service machine, etc. This embodiment of the invention is not specifically limited, but is based on the ability to implement the control center panel access method provided in this embodiment.
[0081] Based on the above, this invention provides a method for accessing a control center panel, referring to... Figure 3 As shown, the method for accessing the control center panel includes the following steps:
[0082] S101. When the status bar of the terminal device is hidden, detect the preset operation event.
[0083] Specifically, in some scenarios, terminal devices will hide the status bar to achieve full-screen display. For example, in video playback scenarios, terminal devices often hide the status bar to achieve full-screen video playback. As another example, in scenarios where game applications are running, terminal devices may hide the status bar to achieve full-screen display of the game interface. This embodiment of the invention does not limit the application scenarios of the provided control center panel retrieval method, but only applies when the status bar is hidden.
[0084] Furthermore, the detection of preset operation events can be based on user operations that bring up the control center panel of the terminal device when the status bar is hidden. For example, if the user operation that brings up the control center panel of the terminal device is a voice operation when the status bar is hidden, the ambient sound can be collected by the terminal device's sound acquisition device to detect the preset operation event. As another example, if the user operation that brings up the control center panel of the terminal device is a touch operation when the status bar is hidden, the touch operation can be detected by the touch sensor to detect the preset operation event.
[0085] S102. When the preset operation event is detected, the preset operation event is distributed to the target application. It is then determined whether the user operation corresponding to the preset operation event meets preset conditions.
[0086] The target application is the application whose currently displayed interface belongs to the terminal device.
[0087] That is, when the control center panel retrieval method provided in this embodiment detects a preset operation event, it will simultaneously perform two operations: one is to distribute the preset operation event to the target application, and the other is to determine whether the user operation corresponding to the preset operation event meets the preset conditions.
[0088] In some embodiments, the terminal device can be divided into an event listening module, an event distribution module, and an operation recognition module to implement the above step S102. Specifically, the implementation process includes: the event listening module detecting a preset operation event when the terminal device's status bar is hidden, and sending the preset operation event to the event distribution module upon detection. The event distribution module simultaneously distributes the preset operation event to the application to which the terminal device's currently displayed interface belongs and the operation recognition module. The operation recognition module judges the user operation corresponding to the preset operation event to determine whether the user operation corresponding to the preset operation event meets preset conditions.
[0089] In step S102 above, if it is determined that the user operation corresponding to the preset operation event meets the preset conditions, then the following steps S103 and S104 are executed.
[0090] S103. Stop distributing subsequent operation events generated by the user operation to the target application.
[0091] For example, the above embodiment will be described below using the user operation corresponding to the preset operation event as a touch swipe operation.
[0092] In a scenario where the user operation corresponding to the preset operation event is a touch swipe operation, a touch start event is triggered when the finger first touches the touchscreen of the terminal device. As the finger moves across the touchscreen, multiple touch move events are triggered consecutively. When the finger leaves the touchscreen, a touch end event is triggered. Therefore, the preset operation event can be set as a touch move event. When a touch move event is detected, it is simultaneously distributed to the target application, and it is determined whether the touch swipe operation corresponding to the touch move event meets preset conditions. If it does, the distribution of subsequent touch move events and touch end events generated by the touch swipe operation to the target application is stopped. Furthermore, because the distribution of subsequent operation events generated by the user operation to the target application is stopped, the target application fails to fully receive the operation events generated by the touch swipe operation, and therefore, the target application will not respond to the touch swipe operation.
[0093] S104. Display the control center panel of the terminal device according to the user's operation.
[0094] When the user operation is a touch swipe operation, the previous step S104 (displaying the control center panel of the terminal device according to the user operation) includes the following steps a and b:
[0095] Step a: Obtain the sliding distance of the user operation.
[0096] For example, the distance between the start and end points of a touch swipe operation can be obtained as the swipe distance of the user operation.
[0097] Step b: Display the control center panel of the terminal device according to the sliding distance of the user operation.
[0098] In some embodiments, displaying the control center panel of the terminal device based on the sliding distance of the user operation includes:
[0099] During the user's operation, the control center panel of the corresponding width is displayed in real time according to the sliding distance of the user's operation, and it is detected whether the sliding distance of the user's operation is greater than the threshold distance. If the sliding distance of the user's operation is greater than the threshold distance, the control center panel will be fully displayed.
[0100] In step S102 above, if it is determined that the user operation corresponding to the preset operation event does not meet the preset conditions, then the following steps S105 and S106 are executed.
[0101] S105. Continue to distribute the operation events generated by the user operation to the target application.
[0102] S106. After the user input is completed, control the target application to respond to the user operation.
[0103] For example, in a scenario where the current display interface is a video playback interface, controlling the target application to respond to the user operation can be to pause or fast forward the currently playing video. In a scenario where the current display interface is a game interface, controlling the target application to respond to the user operation can be to control the game character to perform corresponding game actions.
[0104] The control center panel retrieval method provided in this embodiment of the invention detects preset operation events when the status bar of the terminal device is hidden. When the preset operation event is detected, the preset operation event is distributed to the application to which the currently displayed interface of the terminal device belongs. The method also determines whether the user operation corresponding to the preset operation event meets the preset conditions. If the user operation corresponding to the preset operation event meets the preset conditions, the method stops distributing subsequent operation events generated by the user operation to the target application and displays the control center panel of the terminal according to the user operation. Because the control center panel retrieval method provided in this embodiment of the invention detects preset operation events when the status bar of the terminal device is hidden, and simultaneously distributes the preset operation event to the application to which the currently displayed interface of the terminal device belongs, and determines whether the user operation corresponding to the preset operation event is a user operation to retrieve the control center panel, this embodiment of the invention can retrieve the control center panel of the terminal device with a single user operation when the user operation corresponding to the preset operation event is a user operation to retrieve the control center panel, and ensure the normal response of the target application when the user operation corresponding to the preset operation event is not a user operation to retrieve the control center panel. Therefore, this embodiment of the invention can simplify the operation of the user to retrieve the control center panel in scenarios where the status bar is hidden.
[0105] As an extension and refinement of the above embodiments, this embodiment of the invention provides another method for accessing the control center panel, see below. Figure 4 As shown, the method for accessing the control center panel includes the following steps:
[0106] S401. When the status bar of the terminal device is hidden, detect touch events.
[0107] S402. When the preset operation event is detected, the preset operation event is distributed to the target application.
[0108] The target application is the application whose currently displayed interface belongs to the terminal device.
[0109] S403. Determine whether the touch position corresponding to the touch event is located within a preset area of the display screen of the terminal device.
[0110] For example, refer to Figure 5 As shown, the preset area can be a region of 500 consisting of points whose distance from the top of the terminal device screen is less than a threshold distance.
[0111] In step S403 above, if the touch position corresponding to the touch event is located within the preset area, then steps S404 to S406 are executed.
[0112] S404. Determine that the user operation corresponding to the touch event meets the preset conditions.
[0113] S405. Stop distributing subsequent operation events generated by the user operation to the target application.
[0114] S406. Display the control center panel of the terminal device according to the user's operation.
[0115] In step S403 above, if the touch position corresponding to the touch event is outside the preset area, then the following steps S407 to S109 are executed.
[0116] S407. Determine that the user operation corresponding to the touch event does not meet the preset conditions.
[0117] S408. Continue to distribute the operation events subsequently generated by the user operation to the target application.
[0118] S409. After the user input is completed, control the target application to respond to the user operation.
[0119] As an extension and refinement of the above embodiments, this embodiment of the invention provides another method for accessing the control center panel, see below. Figure 6As shown, the method for accessing the control center panel includes the following steps:
[0120] S601. When the status bar of the terminal device is hidden, detect touch events.
[0121] S602. When the preset operation event is detected, the preset operation event is distributed to the target application.
[0122] The target application is the application whose currently displayed interface belongs to the terminal device.
[0123] S603. Determine whether the user operation corresponding to the touch event is a touch swipe operation.
[0124] For example, it can be determined whether the user operation corresponding to the touch event is a touch swipe operation by whether a touch movement event is detected.
[0125] In step S603 above, if the user operation is not a touch swipe operation, then steps S604 to S606 are executed; if the user operation is a touch swipe operation, then step S607 is executed.
[0126] S604. Determine that the user operation corresponding to the touch event does not meet the preset conditions.
[0127] S405. Continue to distribute the operation events generated by the user operation to the target application.
[0128] S606. After the user input is completed, control the target application to respond to the user operation.
[0129] S607. Determine whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device.
[0130] In step S607 above, if the touch position corresponding to the touch event is outside the preset area, then return to execute steps S604 to S606 above; if the touch position corresponding to the touch event is within the preset area, then execute steps S608 to S610 below.
[0131] S608. Determine that the user operation corresponding to the touch event meets the preset conditions.
[0132] S609. Stop distributing subsequent operation events generated by the user operation to the target application.
[0133] S610. Display the control center panel of the terminal device according to the user's operation.
[0134] As an extension and refinement of the above embodiments, this embodiment of the invention provides another method for accessing the control center panel, see below. Figure 7 As shown, the method for accessing the control center panel includes the following steps:
[0135] S701. When the status bar of the terminal device is hidden, detect touch events.
[0136] S702. When the preset operation event is detected, the preset operation event is distributed to the target application.
[0137] The target application is the application whose currently displayed interface belongs to the terminal device.
[0138] S703. Determine whether the user operation corresponding to the touch event is a touch swipe operation.
[0139] Similarly, it can be determined whether the user operation corresponding to the touch event is a touch swipe operation by whether a touch movement event is detected.
[0140] In step S703 above, if the user operation is not a touch swipe operation, then steps S704 to S706 are executed; if the user operation is a touch swipe operation, then step S707 is executed.
[0141] S704. Determine that the user operation corresponding to the touch event does not meet the preset conditions.
[0142] S705. Continue to distribute the operation events generated by the user operation to the target application.
[0143] S706. After the user input is completed, control the target application to respond to the user operation.
[0144] S707. Determine whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device.
[0145] In step S707 above, if the touch position corresponding to the touch event is outside the preset area, then return to execute steps S704 to S706 above; if the touch position corresponding to the touch event is within the preset area, then execute step S708 below.
[0146] S708. Determine whether the sliding direction of the touch sliding operation points to the geometric center of the display screen of the terminal device.
[0147] That is, it determines whether the swipe operation is from the edge of the screen to the center of the screen.
[0148] In step S708 above, if the sliding direction of the touch sliding operation does not point to the geometric center of the display screen of the terminal device, then return to execute steps S704 to S706 above; if the sliding direction of the touch sliding operation points to the geometric center of the display screen of the terminal device, then execute steps S709 to S711 below.
[0149] S709. Determine that the user operation corresponding to the touch event meets the preset conditions.
[0150] S710, Stop distributing subsequent operation events generated by the user operation to the target application.
[0151] S711. Display the control center panel of the terminal device according to the user's operation.
[0152] As an extension and refinement of the above embodiments, this embodiment of the invention provides another method for accessing the control center panel, see below. Figure 8 As shown, the method for accessing the control center panel includes the following steps:
[0153] S801. When the status bar of the terminal device is hidden, detect touch events.
[0154] S802. When the preset operation event is detected, the preset operation event is distributed to the target application.
[0155] The target application is the application whose currently displayed interface belongs to the terminal device.
[0156] S803. Determine whether the user operation corresponding to the touch event is a touch swipe operation.
[0157] Similarly, it can be determined whether the user operation corresponding to the touch event is a touch swipe operation by whether a touch movement event is detected.
[0158] In step S803 above, if the user operation is not a touch swipe operation, then steps S804 to S806 are executed; if the user operation is a touch swipe operation, then step S807 is executed.
[0159] S804. Determine that the user operation corresponding to the touch event does not meet the preset conditions.
[0160] S805. Continue to distribute the operation events generated by the user operation to the target application.
[0161] S806. After the user input is completed, control the target application to respond to the user operation.
[0162] S807. Determine whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device.
[0163] In step S807 above, if the touch position corresponding to the touch event is outside the preset area, then return to execute steps S804 to S806 above; if the touch position corresponding to the touch event is within the preset area, then execute step S808 below.
[0164] S808. Determine whether the sliding direction of the touch sliding operation points to the geometric center of the display screen of the terminal device.
[0165] That is, it determines whether the swipe operation involves sliding from the edge of the screen towards the center of the screen.
[0166] In step S808 above, if the sliding direction of the touch sliding operation does not point to the geometric center of the display screen of the terminal device, then return to execute steps S804 to S806 above; if the sliding direction of the touch sliding operation points to the geometric center of the display screen of the terminal device, then execute step S809 below.
[0167] S809. Determine whether the sliding distance of the touch sliding operation within a preset time period is greater than or equal to the threshold distance.
[0168] This invention does not limit the preset duration and threshold distance; in actual use, these can be set according to the screen size of the terminal device. For example, if the resolution of the terminal device's display is 828*1792, the preset duration can be set to 400ms and the threshold distance to 100px.
[0169] In step S809 above, if the sliding distance of the touch sliding operation within a preset time period is less than the threshold distance, then return to execute steps S804 to S806 above. If the sliding distance of the touch sliding operation within a preset time period is greater than or equal to the threshold distance, then execute steps S810 to S812 below.
[0170] S810. Determine that the user operation corresponding to the touch event meets the preset conditions.
[0171] S811. Stop distributing subsequent operation events generated by the user operation to the target application.
[0172] S812. Display the control center panel of the terminal device according to the user's operation.
[0173] Based on the same inventive concept, as an implementation of the above method, this embodiment of the invention also provides a terminal device, which corresponds to the aforementioned method embodiment. For ease of reading, this embodiment will not repeat the details of the aforementioned method embodiment one by one, but it should be clear that the terminal device in this embodiment can implement all the contents of the aforementioned method embodiment.
[0174] This invention provides a terminal device. Figure 9 This is a schematic diagram of the image processing device, as shown below. Figure 9 As shown, the terminal device 900 includes:
[0175] The detection unit 901 is used to detect preset operation events when the status bar of the terminal device is hidden.
[0176] The distribution unit 902 is configured to distribute the preset operation event to a target application upon detecting the preset operation event; the target application is the application to which the currently displayed interface of the terminal device belongs.
[0177] The processing unit 903 is used to determine whether the user operation corresponding to the preset operation event meets the preset conditions when the preset operation event is detected.
[0178] The distribution unit 902 is further configured to stop distributing subsequent operation events generated by the user operation to the target application when the user operation corresponding to the preset operation event meets the preset condition;
[0179] Display unit 904 is used to display the control center panel of the terminal device according to the user operation when the user operation of the preset operation event meets the preset conditions.
[0180] As an optional implementation of the present invention, the distribution unit 902 is further configured to continue distributing the subsequent operation events generated by the user operation to the target application when the user operation corresponding to the preset operation event does not meet the preset conditions, and to control the target application to respond to the user operation after the user operation input is completed.
[0181] As an optional implementation of this invention, the preset operation event is a touch event.
[0182] As an optional implementation of this invention, the processing unit 903 is specifically used to determine whether the touch position corresponding to the touch event is located within a preset area of the display screen of the terminal device; if yes, then determine that the user operation corresponding to the touch event meets the preset condition; if no, then determine that the user operation corresponding to the touch event does not meet the preset condition.
[0183] As an optional implementation of this invention, the processing unit 903 is specifically configured to determine whether the user operation corresponding to the touch event is a touch swipe operation; if not, it is determined that the user operation corresponding to the touch event does not meet the preset condition; if yes, it is determined whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device; if the starting position of the touch swipe operation is located within the preset area of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event meets the preset condition; if the starting position of the touch swipe operation is located outside the preset area of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0184] As an optional implementation of this invention, the processing unit 903 is specifically configured to determine whether the user operation corresponding to the touch event is a touch swipe operation; if not, then determine that the user operation corresponding to the touch event does not meet the preset condition; if yes, then determine whether the starting position of the touch swipe operation is located within a preset area of the display screen of the terminal device; if the starting position of the touch swipe operation is located outside the preset area of the display screen of the terminal device, then determine that the user operation corresponding to the touch event does not meet the preset condition; if the starting position of the touch swipe operation is located within the preset area of the display screen of the terminal device, then determine whether the swiping direction of the touch swipe operation points to the geometric center of the display screen of the terminal device; if it is determined that the swiping direction of the touch swipe operation points to the geometric center of the display screen of the terminal device, then determine that the user operation corresponding to the touch event meets the preset condition; if it is determined that the swiping direction of the touch swipe operation does not point to the geometric center of the display screen of the terminal device, then determine that the user operation corresponding to the touch event does not meet the preset condition.
[0185] In an optional implementation of this invention, the processing unit 903 is specifically configured to determine whether the user operation corresponding to the touch event is a touch swipe operation; if not, then determine that the user operation corresponding to the touch event does not meet the preset condition; if yes, then determine whether the starting position of the touch swipe operation is within a preset area of the display screen of the terminal device; if the starting position of the touch swipe operation is outside the preset area of the display screen of the terminal device, then determine that the user operation corresponding to the touch event does not meet the preset condition; if the starting position of the touch swipe operation is within the preset area of the display screen of the terminal device, then determine whether the swiping direction of the touch swipe operation points to the display of the terminal device. The geometric center of the screen; if it is determined that the sliding direction of the touch swipe operation does not point to the geometric center of the display screen of the terminal device, then it is determined that the user operation corresponding to the touch event does not meet the preset condition; if it is determined that the sliding direction of the touch swipe operation points to the geometric center of the display screen of the terminal device, then it is determined whether the sliding distance of the touch swipe operation within a preset time period is greater than or equal to a threshold distance; if the sliding distance of the touch swipe operation within a preset time period is greater than or equal to the threshold distance, then it is determined that the user operation corresponding to the touch event meets the preset condition; if the sliding distance of the touch swipe operation within a preset time period is less than the threshold distance, then it is determined that the user operation corresponding to the touch event does not meet the preset condition.
[0186] As an optional implementation of this invention, the display unit 904 is specifically used to acquire the sliding distance of the user operation; and to display the control center panel of the terminal device according to the sliding distance of the user operation.
[0187] The terminal device provided in this embodiment can execute the control center panel calling method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described again here.
[0188] Based on the same inventive concept, embodiments of the present invention also provide an electronic device. Figure 10 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention, such as... Figure 10 As shown, the electronic device provided in this embodiment includes a memory 101 and a processor 102. The memory 101 is used to store computer programs; the processor 102 is used to execute the control center panel calling method provided in the above embodiment when executing the computer program.
[0189] Based on the same inventive concept, embodiments of the present invention also provide a vehicle equipped with the terminal device or electronic device provided by the present invention.
[0190] Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the computing device to implement the control center panel invocation method provided in the above embodiments.
[0191] Based on the same inventive concept, this embodiment of the invention also provides a computer program product that, when the computer program product is run on a computer, enables the computing device to implement the control center panel method provided in the above embodiment.
[0192] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products. Therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program code.
[0193] The processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0194] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0195] Computer-readable media include both permanent and non-permanent, removable and non-removable storage media. Storage media can store information using any method or technology; the information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0196] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A control center panel rollout method, characterized by, The method comprises the following steps: detecting a preset operation event when a status bar of a terminal device is in a hidden state; distributing the preset operation event to a target application program and determining whether a user operation corresponding to the preset operation event meets a preset condition when the preset operation event is detected; the target application program is an application program to which a current display interface of the terminal device belongs; wherein the distribution of the preset operation event to the target application program and the determination of whether the user operation corresponding to the preset operation event meets the preset condition are performed simultaneously; if the user operation corresponding to the preset operation event meets the preset condition, the distribution of an operation event generated subsequently to the user operation to the target application program is stopped, and a control center panel of the terminal device is displayed according to the user operation.
2. The method of claim 1, wherein, The method further comprises the following steps: if the user operation corresponding to the preset operation event does not meet the preset condition, the distribution of the operation event generated subsequently to the user operation to the target application program is continued, and the target application program is controlled to respond to the user operation after the input of the user operation is completed.
3. The method of claim 1, wherein, The preset operation event is a touch event.
4. The method of claim 3, wherein, The determination of whether the user operation corresponding to the preset operation event meets the preset condition comprises the following steps: determining whether a touch position corresponding to the touch event is located in a preset region of a display screen of the terminal device; if yes, it is determined that the user operation corresponding to the touch event meets the preset condition; if no, it is determined that the user operation corresponding to the touch event does not meet the preset condition.
5. The method of claim 3, wherein, The determination of whether the user operation corresponding to the preset operation event meets the preset condition comprises the following steps: determining whether the user operation corresponding to the touch event is a touch sliding operation; if no, it is determined that the user operation corresponding to the touch event does not meet the preset condition; if yes, it is determined whether a starting position of the touch sliding operation is located in the preset region of the display screen of the terminal device; if the starting position of the touch sliding operation is located in the preset region of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event meets the preset condition; if the starting position of the touch sliding operation is located outside the preset region of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not meet the preset condition.
6. The method of claim 3, wherein, The determination of whether the user operation corresponding to the preset operation event meets the preset condition comprises the following steps: determining whether the user operation corresponding to the touch event is a touch sliding operation; if no, it is determined that the user operation corresponding to the touch event does not meet the preset condition; if yes, it is determined whether a starting position of the touch sliding operation is located in the preset region of the display screen of the terminal device; if the starting position of the touch sliding operation is located outside the preset region of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not meet the preset condition; if the starting position of the touch sliding operation is located in the preset region of the display screen of the terminal device, it is determined whether a sliding direction of the touch sliding operation is directed to a geometric center of the display screen of the terminal device; If it is determined that the sliding direction of the touch sliding operation is directed to the geometric center of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event satisfies the preset condition. If it is determined that the sliding direction of the touch sliding operation is not directed to the geometric center of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not satisfy the preset condition.
7. The method of claim 3, wherein, The determining whether the user operation corresponding to the preset operation event satisfies the preset condition comprises: determining whether the user operation corresponding to the touch event is a touch sliding operation; if not, it is determined that the user operation corresponding to the touch event does not satisfy the preset condition; if yes, determining whether the starting position of the touch sliding operation is located in a preset area of the display screen of the terminal device; if the starting position of the touch sliding operation is located outside the preset area of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not satisfy the preset condition; if the starting position of the touch sliding operation is located in the preset area of the display screen of the terminal device, determining whether the sliding direction of the touch sliding operation is directed to the geometric center of the display screen of the terminal device; if it is determined that the sliding direction of the touch sliding operation is not directed to the geometric center of the display screen of the terminal device, it is determined that the user operation corresponding to the touch event does not satisfy the preset condition; if it is determined that the sliding direction of the touch sliding operation is directed to the geometric center of the display screen of the terminal device, determining whether the sliding distance of the touch sliding operation within a preset time length is greater than or equal to a threshold distance; if the sliding distance of the touch sliding operation within the preset time length is greater than or equal to the threshold distance, it is determined that the user operation corresponding to the touch event satisfies the preset condition; if the sliding distance of the touch sliding operation within the preset time length is less than the threshold distance, it is determined that the user operation corresponding to the touch event does not satisfy the preset condition.
8. A terminal device, comprising: comprise: a detecting unit configured to detect a preset operation event when a status bar of a terminal device is in a hidden state; a distributing unit configured to distribute the preset operation event to a target application program when the preset operation event is detected; the target application program is an application program to which a current display interface of the terminal device belongs; a processing unit configured to determine whether a user operation corresponding to the preset operation event satisfies a preset condition when the preset operation event is detected; the distributing unit is further configured to stop distributing operation events generated subsequently by the user operation to the target application program when the user operation corresponding to the preset operation event satisfies the preset condition; a display unit configured to display a control center panel of the terminal device according to the user operation when the user operation corresponding to the preset operation event satisfies the preset condition; wherein the distribution of the preset operation event to the target application program and the determination of whether the user operation corresponding to the preset operation event satisfies the preset condition are performed simultaneously.
9. An electronic device, comprising: comprise: A memory and a processor, the memory is used to store a computer program; the processor is used to make the electronic device realize the display method of the control center panel according to any one of claims 1-7 when executing the computer program.
10. A computer-readable storage medium, characterized in that, The computer readable storage medium has a computer program stored thereon, and the computer program makes the computing device realize the display method of the control center panel according to any one of claims 1-7 when the computer program is executed by the computing device.
Citation Information
Patent Citations
Information processing method and electronic equipment
CN105607853A
Function switching entrance determination method and electronic equipment
CN114168235A