A control method and electronic device

By implementing a swipe gesture within a specific area on the touchscreen, the notification center and control center are designed to be on the same level, solving the problem of overly crowded electronic device interfaces and improving user convenience and experience.

CN115495002BActive Publication Date: 2026-07-03HUAWEI TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-06-01
Publication Date
2026-07-03

Smart Images

  • Figure CN115495002B_ABST
    Figure CN115495002B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a control method and an electronic device. The method can include: displaying a first interface on a touch screen of the electronic device; in response to the touch screen receiving a first operation, switching the first interface to a second interface; in response to the touch screen receiving a second operation after a touch object leaves the touch screen after completing the first operation, switching the second interface to a third interface; in response to the touch screen receiving a third operation after the touch object leaves the touch screen after completing the second operation, switching the third interface to the first interface; wherein the second interface and the third interface both include a display interface of a notification center or a display interface of a control center, and the second interface and the third interface are different. Thus, the user can switch the notification center and the control center on the electronic device, and can directly return to the initial interface (such as the desktop, the display interface of the application, etc.) of the electronic device from the switched interface, improving the convenience of user operation and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of terminal technology, and in particular to a control method and electronic device. Background Technology

[0002] As the screen sizes of smartphones, tablets, and other electronic devices gradually increase, notification centers and control centers are often included to facilitate user operation. The notification center serves as an entry point for managing push notifications from applications (apps) or displaying persistent status information. The control center serves as an entry point for controlling the device's status.

[0003] Currently, notification centers and control centers on electronic devices can be displayed simultaneously in a single window. For example, Figure 1 As shown, swiping down from the top of the electronic device's screen simultaneously brings up both the Control Center 11 and the Notification Center 12. The Control Center 11 is on the top, and the Notification Center 12 is on the bottom. The Control Center 11 can be collapsed by default to display the most frequently used shortcuts and can be expanded to view more information. The Notification Center 12 can be scrolled up and down like a list. However, as electronic devices can control more and more devices, if multiple devices are controlled simultaneously in the Control Center, the display interface becomes overly crowded when both the Notification Center and Control Center are shown. In other words, the Control Center on the electronic device is not suitable for displaying too much information at once. Therefore, how to make the Notification Center and Control Center on electronic devices easier for users to operate is a pressing technical problem that needs to be solved. Summary of the Invention

[0004] This application provides a control method and an electronic device that facilitates user operation of the notification center and control center on the electronic device.

[0005] In a first aspect, embodiments of this application provide a control method applied to an electronic device with a touchscreen. The method may include: displaying a first interface on the touchscreen; switching the first interface to a second interface in response to the touchscreen receiving a first operation, wherein the first operation refers to an operation where the starting position of a touch object touching the touchscreen is located within a first area of ​​the touchscreen and the object slides along a first direction on the touchscreen; after the touch object completes the first operation and leaves the touchscreen, switching the second interface to a third interface in response to the touchscreen receiving a second operation, wherein the second operation refers to an operation where the starting position of the touch object re-touches the touchscreen located within a second area of ​​the touchscreen and the object slides along a second direction on the touchscreen; and after the touch object completes the second operation and leaves the touchscreen, switching the third interface to the first interface in response to the touchscreen receiving a third operation, wherein the third operation refers to an operation where the starting position of the touch object re-touches the touchscreen located within a third area of ​​the touchscreen and the object slides along a third direction on the touchscreen; wherein the second interface is a display interface for a notification center, and the third interface is a display interface for a control center; or, the second interface is a display interface for a control center, and the third interface is a display interface for a notification center. As a result, users can switch between the notification center and the control center on their electronic devices and return directly to the initial interface of the electronic device (such as the desktop, application display interface, etc.) from the switched interface, improving the convenience of user operation and user experience.

[0006] Secondly, embodiments of this application provide a control method applied to an electronic device with a touchscreen. The method may include: displaying a first interface on the touchscreen; switching the first interface to a second interface in response to the touchscreen receiving a first operation, wherein the first operation refers to an operation where the touch body contacts the touchscreen from a starting position located within a first area of ​​the touchscreen and slides along a first direction on the touchscreen; after the touch body completes the first operation and leaves the touchscreen, switching the second interface to a third interface in response to the touchscreen receiving a second operation, wherein the second operation refers to an operation where the touch body re-contacts the touchscreen from a starting position located within a second area of ​​the touchscreen and slides along a second direction on the touchscreen; and after the touch body completes the second operation and leaves the touchscreen, switching the third interface back to the second interface in response to the touchscreen receiving the first operation again; wherein the second interface is a display interface for a notification center, and the third interface is a display interface for a control center; or, the second interface is a display interface for a control center, and the third interface is a display interface for a notification center. Thus, users can alternately switch between the notification center and the control center on the electronic device, improving user convenience and user experience.

[0007] In one possible implementation of the second aspect, after switching the third interface to the second interface, it may further include: after the touch object completes the first operation and leaves the touchscreen, in response to the touchscreen receiving a third operation, switching the second interface to the first interface. The third operation refers to the operation where the touch object re-contacts the touchscreen from its starting position within a third area of ​​the touchscreen and slides along a third direction on the touchscreen. Thus, users can directly return to the initial interface of the electronic device (such as the desktop, application display interface, etc.) after the switch, improving the convenience of user operation and user experience.

[0008] In one possible implementation of the first or second aspect, the first interface includes a desktop display interface on the electronic device, or the first interface includes a display interface of an application on the electronic device.

[0009] In one possible implementation of the first or second aspect, both the second and third interfaces are displayed within the first window. Therefore, when switching between the two interfaces, the content of one interface can replace the content of the other, eliminating the need to close one window and open another, thus improving switching efficiency.

[0010] In one possible implementation of the first or second aspect, the first window is a status bar window.

[0011] In one possible implementation of the first or second aspect, the first interface and the second interface are displayed in different windows. For example, when the first interface is the application's display interface, the first interface can be displayed in the application's display window, and the second interface can be displayed in the status bar window.

[0012] In one possible implementation of the first or second aspect, the first region is located on the first side of the top of the touchscreen, and the first direction is from the top of the touchscreen toward the bottom of the touchscreen; the second region is located on the second side of the top of the touchscreen, and the second direction is the same as the first direction; the third region is the region on the touchscreen other than the first and second regions, and the third direction is opposite to the first direction.

[0013] In one possible implementation of the first or second aspect, the notification center is an entry point on the electronic device for managing push notifications or displaying persistent status information from applications on the electronic device; the control center is an entry point on the electronic device for controlling the status of the electronic device.

[0014] In one possible implementation of the first or second aspect, before switching from the first target interface to the second target interface, the method may further include: determining that an operation of the touch body on the touchscreen meets a trigger condition, where the trigger condition is a condition for triggering interface switching; wherein the first target interface is a first interface and the second target interface is a second interface; or, the first target interface is a second interface and the second target interface is a third interface; or, the first target interface is a third interface and the second target interface is a first interface; or, the first target interface is a third interface and the second target interface is a second interface; or, the first target interface is a second interface and the second target interface is a first interface. Thus, interface switching is performed when the trigger condition is met, improving the switching effect.

[0015] In one possible implementation of the first or second aspect, the condition for triggering the interface switching may specifically include: the distance between the current position of the touch body in contact with the touch screen and the starting position is greater than or equal to a preset distance threshold.

[0016] In one possible implementation of the first or second aspect, the condition for triggering the interface switching may specifically include: the position of the touch body currently touching the touch screen reaches a preset position on the touch screen.

[0017] In one possible implementation of the first or second aspect, the conditions for triggering the interface switching may specifically include: the distance between the position of the touch object when it leaves the touch screen and the starting position is less than a preset distance threshold, and the speed at which the touch object leaves the touch screen is greater than or equal to a preset speed threshold.

[0018] In one possible implementation of the first or second aspect, the process of switching from the first target interface to the second target interface may further include: increasing the transparency of the first target interface, or decreasing the clarity of the first target interface. This allows for a smooth transition between the two interfaces, enhancing the switching effect.

[0019] In one possible implementation of the first or second aspect, switching from the first interface to the second interface may include: covering the first interface with the second interface; or switching from the first interface to the second interface may include: blurring the first interface and then covering the blurred first interface with the second interface; or switching from the second interface to the third interface may include: closing the second interface and opening the third interface; or switching from the second interface to the third interface may include: closing the second interface and opening the third interface, with the third interface covering the first interface; or switching from the third interface to the first interface may include: closing the third interface covering the first interface and presenting the first interface; or switching from the third interface to the second interface may include: closing the third interface and opening the second interface; or switching from the third interface to the second interface may include: closing the third interface and opening the second interface, with the second interface covering the first interface; or switching from the second interface to the first interface may include: closing the second interface covering the first interface and presenting the first interface.

[0020] Thirdly, embodiments of this application provide a control method applied to an electronic device with a touchscreen. The method may include: displaying a first interface on the touchscreen, the first interface including a desktop display interface on the electronic device, or the first interface including a display interface of an application on the electronic device; in response to the touchscreen receiving a first operation, covering the first interface with a second interface, the first operation referring to an operation where the touch body contacts the touchscreen from a starting position located in a first area at the top of the touchscreen and slides towards the bottom of the touchscreen, the second interface including a notification center display interface or a control center display interface; after the touch body completes the first operation and leaves the touchscreen, in response to the touchscreen receiving a second operation, closing the second interface and opening a third interface, wherein the opened third interface covers the first interface, the second operation referring to an operation where the touch body re-contacts the touchscreen from a starting position located in a second area at the top of the touchscreen and slides towards the bottom of the touchscreen, the third interface including a notification center display interface or a control center display interface, and the third interface being different from the second interface; after the touch body completes the second operation and leaves the touchscreen, in response to the touchscreen receiving a third operation, closing the third interface and displaying the first interface, the third operation referring to an operation where the touch body re-contacts the touchscreen from a starting position located in a third area outside the top of the touchscreen and slides towards the top of the touchscreen.

[0021] In one possible implementation of the third aspect, before overlaying the second interface on the first interface, the method may further include: reducing the clarity of the first interface.

[0022] In one possible implementation of the third aspect, the method may further include increasing the transparency of the second interface before closing it.

[0023] Fourthly, embodiments of this application provide an electronic device that may include: a touchscreen; one or more processors; and a memory. The memory stores one or more computer programs, each including instructions that, when executed by the electronic device, cause the electronic device to perform the methods provided in the first, second, or third aspects.

[0024] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when run on an electronic device, causes the electronic device to perform the methods provided in the first, second, or third aspects.

[0025] Sixthly, embodiments of this application provide a computer program product that, when run on an electronic device, causes the electronic device to perform the methods provided in the first, second, or third aspects. Attached Figure Description

[0026] Figure 1 This is a schematic diagram of a mobile phone display interface in related technologies;

[0027] Figure 2 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;

[0028] Figure 3 This is a schematic diagram of the coordinate axes on the screen of an electronic device provided in an embodiment of this application;

[0029] Figure 4 This is a schematic diagram of the architecture of an operating system in an electronic device provided in an embodiment of this application;

[0030] Figure 5 This is a schematic diagram illustrating an application scenario of a mobile phone operation method provided in an embodiment of this application;

[0031] Figure 6 This is a schematic diagram of the touch point, trigger threshold point, and release point when a user's finger slides on a mobile phone, provided in an embodiment of this application;

[0032] Figure 7 This is a schematic diagram of the area where the user's finger touches and the trigger threshold point are located when the user slides on the mobile phone, according to an embodiment of this application.

[0033] Figure 8 This is a schematic diagram illustrating the process of switching from the desktop to the notification center on a mobile phone, as provided in an embodiment of this application.

[0034] Figure 9 This is a schematic diagram illustrating the process of switching from the desktop to the control center on a mobile phone, provided in an embodiment of this application.

[0035] Figure 10 This is a schematic diagram illustrating the process of switching from the notification center to the control center on a mobile phone, provided in an embodiment of this application.

[0036] Figure 11 This is a schematic diagram illustrating the process of switching from the control center to the notification center on a mobile phone, provided in an embodiment of this application.

[0037] Figure 12 This is a schematic diagram illustrating the process of switching from the desktop to the notification center, then to the control center, and then back to the desktop on a mobile phone, as provided in an embodiment of this application.

[0038] Figure 13 This is a schematic diagram illustrating the process of switching from the desktop to the control center, then to the notification center, and then back to the desktop on a mobile phone, as provided in an embodiment of this application.

[0039] Figure 14 This is a schematic diagram of a mobile phone system architecture provided in an embodiment of this application;

[0040] Figure 15 This is a flowchart illustrating an outbound notification center and / or control center provided in an embodiment of this application.

[0041] Figure 16 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation

[0042] In this article, the term "and / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. The symbol " / " in this article indicates that the related objects are in an "or" relationship; for example, A / B means A or B.

[0043] The terms "first" and "second," etc., used in the specification and claims herein are used to distinguish different objects, not to describe a specific order of objects. For example, "first response message" and "second response message," etc., are used to distinguish different response messages, not to describe a specific order of response messages.

[0044] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0045] In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more, for example, multiple processing units means two or more processing units, multiple elements means two or more elements, etc.

[0046] To facilitate user operation, the notification center and control center on electronic devices can be controlled independently, displayed in separate windows. For example, swiping down from the top left of the screen brings up the notification center, while swiping down from the top right brings up the control center; or swiping down from the top of the screen brings up the notification center, while swiping up from the bottom brings up the control center, and so on. While this allows users to choose between the notification center and control center based on their needs, the system software architecture of electronic devices prioritizes different windows differently, with the notification center's display window often having a lower priority than the control center's display window. This means that when the notification center is displayed on the electronic device, the control center's display window can be brought up, with the control center appearing on top of the notification center. To return to the interface before the notification center was displayed, the control center's display window must be closed first, followed by the notification center's display window, making the return operation inconvenient. Furthermore, when the control center is displayed on the electronic device, the notification center's display window cannot be brought up due to the window priority. It is evident that this approach of separating the notification center and control center causes significant inconvenience to users and results in a poor user experience.

[0047] Furthermore, to facilitate user operation and enhance user experience, this embodiment of the application designs the notification center and control center on the electronic device at the same level. This allows the notification center and control center to switch repeatedly based on user needs, improving the convenience of user operation and user experience. In addition, when one of the notification center and control center is displayed, and the electronic device detects an operation to call the other, the electronic device can close the currently displayed one and display the other currently called by the user. This avoids overlapping and nesting issues between the notification center and control center, allowing the user to quickly return to the interface before calling the notification center or control center. For example, if the electronic device is currently displaying the control center, and the electronic device detects an operation to call the notification center, the electronic device can close the control center and display the notification center; similarly, if the electronic device is currently displaying the notification center, and the electronic device detects an operation to call the control center, the electronic device can close the notification center and display the notification control center.

[0048] It is understood that, in this solution, the electronic device can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, in-vehicle device, smart home device and / or smart city device, etc. Exemplary embodiments of the electronic device include, but are not limited to, electronic devices running iOS, Android, Windows, Harmony OS or other operating systems, and this solution does not impose any special restrictions on the specific type of the electronic device.

[0049] The following is a schematic diagram of the hardware structure of an electronic device provided in this solution.

[0050] Figure 2 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application. For example... Figure 2 As shown, the electronic device 100 may include a processor 110, a memory 120, a display screen 130, and a sensor 140. It is understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100. In other embodiments of this solution, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0051] The processor 110 can be a general-purpose processor or a special-purpose processor. For example, the processor 110 may include a central processing unit (CPU) and / or a baseband processor. The baseband processor can be used to process communication data, and the CPU can be used to implement corresponding control and processing functions, execute software programs, and process data from the software programs.

[0052] The memory 120 may store programs (or instructions or code), which can be executed by the processor 110, causing the processor 110 to perform the methods described in this solution. Optionally, the memory 120 may store instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instruction or data again, it can directly retrieve it from the memory 120, thereby avoiding repeated access, reducing the processor 110's waiting time, and improving system efficiency.

[0053] The display screen 130 is used to display images, videos, etc. The display screen 130 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 130, where N is a positive integer greater than 1.

[0054] Sensor 140 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, ambient light sensors, or bone conduction sensors, etc.

[0055] In this solution, sensor 140 may also include a touch sensor. This touch sensor can be used to detect touch operations applied to or near it. Specifically, the touch sensor can collect touch events (such as user actions using a finger, stylus, or any suitable object on the touch sensor surface) and send the collected touch information to other devices, such as processor 110.

[0056] For example, the touch sensor can be implemented using various methods such as resistive, capacitive, infrared, and surface acoustic wave. The touch sensor can be set on the display screen 130, and the touch sensor and the display screen 130 together form a touch screen, also known as a "touch screen"; or, the touch sensor and the display screen 130 can be used as two independent components to realize the input and output functions of the electronic device 100.

[0057] In some embodiments of this solution, a Cartesian coordinate system can be pre-set in the touchscreen containing the touch sensor. For example, such as Figure 3 As shown, a Cartesian coordinate system can be established with the upper left corner of touchscreen A as the origin (0,0), or with the geometric center of touchscreen A as the origin (0,0) (not shown in the figure). When a touch object slides on the touchscreen, the touch sensor in the touchscreen can continuously collect a series of touch events generated by the touch object on the touchscreen (such as the coordinates of the touch point, touch events, etc.), and report this series of touch events to the processor 110. The touch object can be a stylus, a user's finger or joint, or a touch-enabled glove, etc. This solution does not impose any restrictions on this; in subsequent embodiments, a user's finger will be used as an example for illustration.

[0058] It is understood that the software system of the aforementioned electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This solution uses the layered architecture Android system as an example to illustrate the software structure of the electronic device 100.

[0059] Figure 4 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.

[0060] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. Huawei's self-developed mobile terminal operating system can also refer to this structure.

[0061] 1. Application Layer

[0062] The application layer can include a series of application packages. For example... Figure 4 As shown, the application package may include applications (APPs) such as camera, gallery, calendar, call, map, navigation, Bluetooth, music, video, and SMS.

[0063] 2. Application Framework Layer

[0064] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0065] like Figure 4As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0066] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0067] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0068] A view system can be used to build the display interface of an application. Each display interface can consist of one or more controls. Generally, controls can include interface elements such as icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets.

[0069] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0070] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0071] The notification manager allows applications to display notifications in the notification center. It can be used to deliver informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the notification center, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0072] The Activity Manager is used to manage the lifecycle of each application. Applications typically run as activities in the operating system. The Activity Manager can schedule the application's activity processes and manage the lifecycle of each application.

[0073] 3. Android Runtime and System Libraries

[0074] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.

[0075] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0076] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0077] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0078] The Surface Manager manages the display subsystem and provides fusion of 2D and 3D layers for multiple applications. The Media Library supports playback and recording of various common audio and video formats, as well as still image files. The Media Library supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG. The 3D Graphics Processing Library implements 3D graphics drawing, image rendering, compositing, and layer processing. The 2D Graphics Engine is the drawing engine for 2D graphics.

[0079] 4. Kernel layer

[0080] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0081] In some embodiments of this solution, a user's finger can touch and slide on the touchscreen. For example, a user's finger can touch and slide on the top left side of the touchscreen, or on the top right side, or on the bottom left or right side, etc. For example, taking a user's finger touching the top left side of the touchscreen as an example... Figure 5As shown in the diagram, in the application layer, the display interface 41 where a call is running, when the user slides their finger down from the top left of the touchscreen, the touchscreen receives a series of touch point information related to this touch operation, such as the coordinates (x, y) of the touch point and the touch event. The touchscreen then reports the raw touch event generated by this user touch operation to the kernel layer. After receiving the raw touch event, the kernel layer encapsulates it into a high-level touch event, i.e., a touch event, that can be read by the application framework layer. This touch event contains the coordinates of the touch point, the time, and the type of the touch event, such as an action down event, an action move event, or an action up event. The kernel layer can then send this high-level touch event to the input manager in the application framework layer.

[0082] After obtaining the aforementioned advanced touch events, the panel manager can calculate in real time the user's finger's starting point, trajectory, distance, speed, or release speed based on the touch point coordinates, time, and touch event type. For example, when the panel manager detects an "action down" event, it indicates that the user's finger is touching the touchscreen; when it detects an "action up" event, it indicates that the user's finger is leaving the touchscreen. Therefore, the panel manager can identify the user's finger's trajectory and distance on the touchscreen based on the touch point coordinates between adjacent "action down" and "action up" events, and / or, based on the touch point coordinates and time between adjacent "action down" and "action up" events, identify the user's finger's trajectory and release speed on the touchscreen.

[0083] Next, taking an electronic device 100 as a mobile phone, and using the example of calling up the notification center and control center on the phone, the control process involved in the embodiments of this application will be described in detail based on the content described above and in conjunction with the accompanying drawings. It is understood that the notification center and control center can also be replaced with other content, which is not limited here.

[0084] In this embodiment, when a user calls up the notification center or control center on their mobile phone, their finger is on the phone. The user's actions can include: touching the phone screen with their finger, sliding their finger across the screen, and removing their finger from the screen. The touch point when the user touches the phone can be called the "start point"; the point where the notification center or control center is triggered during the finger slide can be called the "trigger threshold point"; and the point where the user's finger leaves the screen can be called the "release point". When the notification center or control center is called up, it can be in its initial position. If, after the notification center or control center is called up, the user's finger continues to slide without leaving the screen, the notification center or control center can move in the direction of the finger's slide. When the finger leaves the screen, the notification center or control center can return to its initial position. For example, after pulling down to call up the notification center, if the finger continues to slide downwards without leaving the screen, the notification center also slides downwards with the finger. After the finger leaves the screen, the notification center bounces back to its equilibrium point (i.e., returns to its initial position when it first appeared).

[0085] In one example, the starting point can be a point located within a preset area on the phone; the trigger threshold point can be a point at a preset distance from the starting point, a point within the preset area, or a combination of both (in this case, meeting either condition triggers a call to the notification center or control center). For example, as shown... Figure 6 As shown, the touch point can be located in regions z1 and / or z2 on the phone 100. When a user's finger touches region z1 on the phone 100, the touch point is located in region z1. The trigger threshold point is a point on region z3, and the release point can be a point between region z3 and the bottom of the screen of the phone 100. Region z3 can be a line. For example, the area containing the trigger threshold point can be a line or a surface, such as... Figure 7 As shown, region z4 on mobile phone 100 can be the region where the trigger threshold point is located, and region z4 is a surface.

[0086] In one example, if a user's finger leaves the phone screen before reaching the specified trigger threshold, a call to the notification center or control center can still be triggered if the speed at which the finger leaves the screen exceeds a preset speed threshold, or if the speed at which the finger slides exceeds a preset speed threshold. For instance, the speed at which the finger leaves the screen and / or the speed at which the finger slides can both be calculated using a velocity tracker.

[0087] Next, we will introduce the outbound notification center, outbound control center, and the transition between the notification center and control center. For ease of explanation, we will refer to the above steps as... Figure 7Taking the example of area z1 on mobile phone 100 and the user's finger swiping across the trigger threshold point, and the user's finger leaving the phone screen to call up the notification center, the process of calling up the notification center is described; taking the example of the user's finger being located in area z2 and the user's finger swiping across the trigger threshold point, and the user's finger leaving the phone screen to call up the control center, the process of calling up the control center is described.

[0088] (1) Call out to the notification center (at this time, the control center is not called out).

[0089] For example, when the control center is not accessed on mobile phone 100, but the notification center needs to be accessed, the screen of mobile phone 100 can be on. For instance, the screen of mobile phone 100 can be in standby mode, on the desktop display screen, or on the display screen of an application on the phone.

[0090] For example, consider the screen of mobile phone 100 displaying a desktop interface. Figure 8 As shown in (a), the user's finger can touch the top left side of the screen of the phone 100. Then, the user's finger slides down, but before reaching the trigger threshold, the desktop display gradually blurs as the user's finger slides. Figure 8 As shown in (b); in this process, the closer the user's finger is to the touch point, the less blurred the image; the closer the user's finger is to the trigger threshold point, the greater the blur. That is to say, as the user's finger slides, the desktop display gradually changes from clear to blurry until it becomes completely blurry. Complete blurriness means that the content displayed on the screen is no longer visible. When the desktop display is completely blurry, the user's finger may slide to the trigger threshold point. When the user's finger slides to the trigger threshold point, the notification center can be displayed. Figure 8 As shown in (c). After the notification center is displayed on the screen of mobile phone 100, if the user's finger leaves the screen of mobile phone 100, the following can be displayed on mobile phone 100: Figure 8 The interface shown in (d) is as follows. After the notification center is displayed on the screen of phone 100, if the user's finger does not leave the screen of phone 100 but swipes in the opposite direction, phone 100 can return to the interface before the notification center was displayed. Figure 8 As shown in (e). Continue Figure 8 In the middle (e), after the user swipes their finger upwards, the user's finger can leave the screen of the phone 100, at which point the following can be displayed: Figure 8 The interface shown in (f) is the screen that returns to the desktop of the phone 100.

[0091] Optionally, the mobile phone displays as follows: Figure 8 After the interface shown in (d), you can navigate to... Figure 10(a) is used to switch from the notification center to the control center.

[0092] (2) Call out to the control center (no call to the notification center is made at this time)

[0093] For example, when the notification center is not accessed on phone 100, but the control center needs to be accessed, the screen of phone 100 can remain on. This is exemplified by phone 100's screen being on the home screen. Figure 9 As shown in (a), the user's finger can touch the top right side of the screen of the phone 100. Then, the user's finger slides down, but before reaching the trigger threshold, the desktop display gradually blurs as the user's finger slides. Figure 9 As shown in (b). When the user's finger slides to the trigger threshold point, the control center can be displayed, i.e. Figure 9 As shown in (c). After the control center is displayed on the screen of mobile phone 100, if the user's finger leaves the screen of mobile phone 100, the following can be displayed on mobile phone 100: Figure 9 The interface shown in (d) is as follows. After the control center is displayed on the screen of phone 100, if the user's finger does not leave the screen but swipes in the opposite direction, phone 100 can return to the interface before the control center was displayed. Figure 9 As shown in (e). Continue Figure 9 In the middle (e), after the user swipes their finger upwards, the user's finger can leave the screen of the phone 100, at which point the following can be displayed: Figure 9 The interface shown in (f) is the screen that returns to the desktop of the phone 100.

[0094] Optionally, the mobile phone displays as follows: Figure 9 After the interface shown in (d), you can navigate to... Figure 11 (a) is used to switch from the control center to the notification center.

[0095] (3) Switching between the notification center and the control center

[0096] a) Switch from the notification center to the control center (the notification center has already been called).

[0097] For example, after calling the notification center, such as Figure 10 As shown in (a), the user's finger can touch the top right side of the screen of the phone 100. Then, the user's finger slides down, but before reaching the trigger threshold, the transparency of the notification center gradually increases following the user's finger's movement. Figure 10As shown in (b). During this process, the closer the user's finger is to the touch point, the lower the transparency; the closer the user's finger is to the trigger threshold point, the higher the transparency. That is, as the user's finger slides, the notification center gradually changes from clear to transparent until it becomes completely invisible. When the notification center is completely invisible, the user's finger may have slid to the trigger threshold point. Furthermore, the notification center can also be blurred during the user's finger swipe. It is understood that adjusting transparency or the aforementioned blurring or other transitional processing actions are optional during the user's finger swipe. In some embodiments, during the user's finger swipe, no transitional processing may be performed, and the content pulled down may be displayed directly, obscuring the background or notification / control center behind it. In some embodiments, blurring can be understood as adjusting the clarity of the interface to make it blurry; adjusting transparency can be understood as adjusting the transparency of the interface to make it transparent.

[0098] When the user slides their finger to the trigger threshold point, the control center can be displayed. Figure 10 As shown in (c). After the control center is displayed on the screen of mobile phone 100, if the user's finger leaves the screen of mobile phone 100, the following can be displayed on mobile phone 100: Figure 10 The interface shown in (d) is as follows. After the control center is displayed on the screen of phone 100, if the user's finger does not leave the screen but swipes in the opposite direction, phone 100 can return to the interface before the control center was displayed. Figure 10 As shown in (e). Continue Figure 10 In the middle (e), after the user swipes their finger upwards, the user's finger can leave the screen of the phone 100, at which point the following can be displayed: Figure 10 The interface shown in (f) is the return to the notification center display on the phone 100.

[0099] Optionally, the mobile phone displays as follows: Figure 10 After the interface shown in (d), you can navigate to... Figure 11 (a) is used to switch from the control center to the notification center.

[0100] b) Switch from the control center to the notification center (the control center has already been called out at this time)

[0101] For example, after calling the control center, such as Figure 11 As shown in (a), the user's finger can touch the top left side of the screen of the phone 110. Then, the user's finger slides down, but before reaching the trigger threshold, the transparency of the control center gradually increases following the user's finger movement. Figure 11 As shown in (b). In addition, the control center can also be blurred during the user's finger swipe.

[0102] When the user swipes their finger to a trigger threshold point, the notification center can be displayed. Figure 11 As shown in (c). After the notification center is displayed on the screen of mobile phone 110, if the user's finger leaves the screen of mobile phone 110, the following can be displayed on mobile phone 110: Figure 11 The interface shown in (d) is as follows. After the notification center is displayed on the screen of phone 110, if the user's finger does not leave the screen of phone 110 but swipes in the opposite direction, phone 110 can return to the interface before the notification center was displayed. Figure 11 As shown in (e). Continue Figure 11 In the middle (e), after the user swipes their finger upwards, the user's finger can leave the screen of the phone 110, at which point the following can be displayed: Figure 11 The interface shown in (f) is the display interface of the control center on the mobile phone 110.

[0103] Optionally, the mobile phone displays as follows: Figure 11 After the interface shown in (d), you can navigate to... Figure 10 (a) is used to switch from the notification center to the control center.

[0104] (4) Switching between the interface, notification center and control center when the phone is on.

[0105] When the phone 100 is powered on, the user can first access the notification center, then the control center, and then return directly from the control center to the interface displayed before accessing the notification center—the interface the phone 100 displayed when powered on. Alternatively, the user can first access the control center, then the notification center, and then return directly from the notification center to the interface displayed before accessing the control center—the interface the phone 100 displayed when powered on. The following explanation uses the phone 100's home screen as an example to illustrate these methods.

[0106] a) Desktop → Notification Center → Control Center → Desktop

[0107] For example, such as Figure 12 As shown in (a), when the screen of mobile phone 100 is on the desktop display interface, the user's finger can touch the top left side of the screen of mobile phone 100 and swipe down to call up the notification center. Figure 12 As shown in (b). Figure 12 As shown in (c), after calling up the notification center, the user can touch the top right side of the phone 100's screen with their finger, and swipe down to call up the control center. Figure 12 As shown in (d). Figure 12As shown in (e) and (f), after the control center is invoked, the user can touch the lower area of ​​the screen of the phone 100 and swipe upwards. When the user swipes upwards, their finger can leave the screen of the phone 100, at which point the screen returns to the home screen. Figure 12 The interface shown in (a) is shown in the middle.

[0108] b) Desktop → Control Center → Notification Center → Desktop

[0109] For example, such as Figure 13 As shown in (a), when the screen of mobile phone 100 is on the desktop display interface, the user's finger can touch the top right side of the screen of mobile phone 100 and swipe down to bring up the control center, i.e. Figure 13 As shown in (b). Figure 13 As shown in (c), after bringing up the control center, the user can touch the top left side of the screen of the phone 100 with their finger, and swipe down to bring up the control center. Figure 13 As shown in (d). Figure 13 As shown in (e) and (f), after the control center is invoked, the user can touch the lower area of ​​the screen of the phone 100 and swipe upwards. When the user swipes upwards, their finger can leave the screen of the phone 100, at which point the screen returns to the home screen. Figure 13 The interface shown in (a) is shown in the middle.

[0110] Understandably, in Figure 12 In and / or 13, the notification center and control center can be repeatedly pulled down alternately. However, regardless of which one is currently displayed on the phone 100, when the phone 100 receives an instruction to close the currently displayed interface (for example, when the user slides their finger up on the screen), the phone 100 will directly return to the desktop, that is, return to the interface before the pull-down.

[0111] Understandable, Figures 8 to 13 The content shown in the notification center and / or control center is merely illustrative. In other embodiments of this application, the notification center and / or control center may include more or less content than illustrated. For example, music-related content may be excluded.

[0112] It is understood that in this embodiment of the application, the notification center and the control center can be displayed in different windows or in the same window. When the notification center and control center are displayed in different windows, closing the notification center can be understood as closing the window to which the notification center belongs, closing the control center can be understood as closing the window to which the control center belongs, opening the notification center can be understood as opening the window to which the notification center belongs, and opening the control center can be understood as opening the window to which the control center belongs.

[0113] When both the Notification Center and Control Center are displayed in the same window, closing the Notification Center and opening the Control Center can be understood as replacing the Notification Center's content with the Control Center's content, and vice versa. If the Control Center was not opened before the Notification Center was invoked, opening the Notification Center can be understood as displaying the Notification Center's content in the window. For example, both the Notification Center and Control Center can be displayed in the status bar window.

[0114] The following example, which shows both the notification center and the control center displayed in the status bar window of the mobile phone, will be used to introduce the system architecture that the terminal control method can achieve.

[0115] For example, Figure 14 A schematic diagram illustrating the system architecture and processing flow of a mobile phone 100 is shown. Figure 14 As shown, the system architecture of the mobile phone 100 may include a status bar window 1401, a panel container 1402, a panel pull controller 1403, a notification center panel controller 1404, a control center panel controller 1405, a notification center panel 1406, and a control center panel 1407.

[0116] During a user's call to the notification center or control center, the status bar window 1401 can receive user operation events detected by the touchscreen on the mobile phone 100. These operation events may include the coordinates of the user's finger. After receiving the operation event, the status bar window 1401 can determine whether the user's operation event is a pull-down swipe event based on the coordinates of the user's finger at different times. Furthermore, after determining that the user's operation event is a pull-down swipe event, the status bar window 1401 can determine whether a panel (such as a notification panel or control panel) is currently open. If the status bar window 1401 determines that no panel is currently open, it sends the received operation event to the panel container 1402 for processing; if it determines that a panel is currently open, it sends the received operation event to the panel pull controller 1403 for processing.

[0117] The panel container 1402 can determine the user's finger's position coordinates from the operation event, and then use this position coordinates to determine whether the user's current operation is to open the notification center or the control center. Specifically, when the panel container 1402 determines that the user's current operation is to open the notification center, it can send the operation event to the notification center panel controller 1404. When the panel container 1402 determines that the user's current operation is to open the control center, it can send the operation event to the control center panel controller 1405.

[0118] When the panel inter-controller 1403 detects that a panel is currently expanded in the status bar window 1401, it determines, based on the position coordinates of the user's finger in the operation event, whether the user's current operation is to close the notification center and open the control center, or close the control center and open the notification center. Specifically, when the panel inter-controller 1403 determines that the user's current operation is to close the control center and open the notification center, it can send the operation event to the notification center panel controller 1404. When the panel inter-controller 1403 determines that the user's current operation is to close the notification center and open the control center, it can send the operation event to the control center panel controller 1405.

[0119] Furthermore, to enhance the appearance of the target panel, the panel pull controller 1403 can blur the interface before the target panel opens based on the operation event, or adjust the transparency of the content before the target panel opens. Specifically, when the status bar window 1401 determines that no panel is open, the panel pull controller 1403 can obtain the operation event from the target controller corresponding to the user's current operation purpose; that is, the target controller can send the operation event to the panel pull controller 1403 at this time.

[0120] The notification center controller 1404 can open the notification center panel 1406 based on an operation event. Furthermore, when the status bar window 1401 determines that no panel is open, and the notification center controller 1404 receives an operation event, the notification center controller 1404 can send the operation event to the panel pull controller 1403, so that the panel pull controller 1403 can blur the interface of the notification center panel before it opened, or adjust the transparency of the content before the notification center panel opened, based on the operation event.

[0121] The control center controller 1405 can open the control center panel 1407 based on an operation event. Furthermore, when the status bar window 1401 determines that no panel is open, and the control center controller 1404 receives an operation event, the control center controller 1404 can send the operation event to the panel pull controller 1403, so that the panel pull controller 1403 can blur the interface of the control center panel before it was opened, or adjust the transparency of the content before the control center was opened, based on the operation event.

[0122] The following is combined Figure 14 and Figure 15 Provide a detailed description of the process for calling the notification center and / or control center.

[0123] For example, Figure 15 This diagram illustrates a workflow for calling a notification center and / or control center. Figure 15 As shown, it includes the following steps:

[0124] Step 1501: The status bar window 1401 responds to the received operation event and determines that the operation event is a drop-down event.

[0125] The status bar window 1401 can receive operation events sent by the touchscreen of the mobile phone 100. These operation events can include the position coordinates of the user's finger. After receiving the operation event, the status bar window 1401 can determine whether the user's operation event is a pull-down event based on the position coordinates of the user's finger at different times in the operation event.

[0126] Step 1502: In the status bar window 1401, determine whether any panels are open.

[0127] The status bar window 1401 can determine whether a panel is currently open based on the panel record information. This panel record information can include open and / or closed records for the notification center panel and control center panel. For example, if the panel record information indicates that both the notification center and control center are closed, it can be determined that no panel is currently open; if the panel record information indicates that the notification center is closed and the control center is open, it can be determined that a panel is currently open. If the status bar window 1401 determines that no panel is open, step 1503 is executed; otherwise, step 1508 is executed.

[0128] Step 1503: The panel container 1402 responds to the operation event sent by the status bar window 1401 and determines the position of the starting point in the operation event.

[0129] The panel container 1402 can determine the area where the user's finger is positioned based on the coordinates of the finger during an operation event. Then, it can determine whether the user's current operation is to open the notification center or the control center, based on a pre-defined correspondence between the area where the finger is positioned and the notification center and control center. For example, see [link to documentation]. Figure 7 The pre-defined correspondence between the starting point's location and the notification center and control center can be as follows: when the starting point is in area z1, it corresponds to calling the notification center; when the starting point is in area z2, it corresponds to calling the control center. Therefore, when the panel container determines that the starting point is located in area z1, it can determine that the user's current operation is to open the notification center. Specifically, if the starting point's location corresponds to calling the notification center, step 1504 is executed; if the starting point's location corresponds to calling the control center, step 1506 is executed.

[0130] Step 1504: The notification center controller 1404 responds to the operation event sent by the panel container 1402, determines whether the trigger threshold point has been reached, and the panel pull controller 1403 responds to the operation event sent by the notification center controller 1404, blurring the background. If the trigger threshold point is determined to have been reached, step 1505 is executed; otherwise, the determination continues.

[0131] The notification center controller 1404 can determine whether the user's finger has reached a preset trigger threshold point based on the coordinates of the finger's movement during the operation event. For example, if the coordinates of the initial touch point are (2,1) and the user's finger is currently at (2,5), the movement distance is 4 units. If the preset trigger threshold point is 4 units away from the initial touch point, then the user's finger has reached the trigger threshold point. If the coordinates of the preset trigger threshold point are (k,5), where k≥0, then the user's finger is currently at the trigger threshold point. Furthermore, if the notification center controller 1404 determines that the user's finger has left the hand before reaching the trigger threshold point based on the coordinates of the finger's movement, it can also calculate the speed at which the finger leaves the hand based on the operation event. When the speed at the departure point is greater than a preset speed threshold, it can also be considered that the trigger threshold point has been reached.

[0132] During the decision-making process of the notification center controller 1404, the notification center controller 1404 can send information to the panel pull controller 1403 regarding whether the trigger threshold point has been reached, and can also send the operation event to the panel pull controller 1403. Upon receiving the information sent by the notification center controller 1404, if the information indicates that the trigger threshold point has not been reached, the panel pull controller 1403 can, based on the operation event, blur the background (e.g., the interface before calling up the notification center) (e.g., reduce the clarity of the currently displayed interface) to enhance the call-up effect of the notification center panel. For example, the panel pull controller 1403 can adjust the degree of background blur based on the distance between the current position coordinates of the user's finger in the operation event and the trigger threshold point; for example, when the distance between the current position coordinates of the user's finger and the trigger threshold point is large, the blur level is small, and when the distance between the current position coordinates of the user's finger and the trigger threshold point is small, the blur level is large.

[0133] Step 1505: Notification Center Controller 1404 opens Notification Center Panel 1406.

[0134] Step 1506: The control center controller 1405 responds to the operation event sent by the panel container 1402, determines whether the trigger threshold point has been reached, and the panel pull controller 1403 responds to the operation event sent by the control center controller 1405, blurring the background. If the trigger threshold point is determined to have been reached, step 1507 is executed; otherwise, the determination continues.

[0135] The control center controller 1405 can determine whether the user's finger has reached a preset trigger threshold point based on the coordinates of the finger's swipe during the operation event, the swipe speed, or the speed at which the finger leaves the screen. Simultaneously, the control center controller 1405 can send information about whether the trigger threshold point has been reached to the panel pull controller 1403, and also send the operation event to the panel pull controller 1403. Upon receiving the information from the control center controller 1405, if the information indicates that the trigger threshold point has not been reached, the panel pull controller 1403 can, based on the operation event, blur the background (e.g., the interface before the control center is invoked) (e.g., reduce the clarity of the current display interface) to enhance the invoke effect of the control center panel.

[0136] Step 1507: Open the control center panel 1407.

[0137] Step 1508: The panel pull controller 1403 responds to the operation event sent by the status bar window 1401 and determines the position of the starting point in the operation event.

[0138] If the location of the starting point corresponds to the call notification center, proceed to step 1509; if the location of the starting point corresponds to the call control center, proceed to step 1511.

[0139] Step 1509: The notification center controller 1404 responds to the operation event sent by the panel pull controller 1403, determines whether the trigger threshold point has been reached, and the panel pull controller 1403 adjusts the transparency of the control center panel 1407 based on the operation event. If the trigger threshold point is reached, step 1510 is executed; otherwise, the determination continues.

[0140] The notification center controller 1404 can determine whether the user's finger has reached a pre-set trigger threshold point based on the coordinates of the finger during the swipe, the swipe speed, or the speed at which the finger leaves the screen. Simultaneously, during the decision-making process of the notification center controller 1404, the panel pull controller 1403 can adjust the transparency of the control center panel 1407 based on the swipe event to enhance the notification center panel's activation effect. For example, the panel pull controller 1403 can adjust the transparency of the control center panel 1407 based on the distance between the user's finger's current position coordinates and the trigger threshold point; for instance, when the distance between the user's finger's current position coordinates and the trigger threshold point is large, the transparency of the control center panel 1407 is small, and when the distance is small, the transparency is large.

[0141] In addition, when the notification center controller 1404 determines that the trigger threshold point has been reached, the notification center controller 1404 can also feed back the information that the trigger threshold point has been reached to the panel pull controller 1403, so that the panel pull controller 1403 can instruct the control center controller 1405 to close the control center panel 1407 when the notification center controller 1404 determines that the trigger threshold point has been reached.

[0142] Step 1510: Notification Center Controller 1404 opens Notification Center Panel 1406.

[0143] Step 1511: The control center controller 1405 responds to the operation event sent by the panel pull controller 1403, determines whether the trigger threshold point has been reached, and the panel pull controller 1403 adjusts the transparency of the notification center panel 1406 based on the operation event. If the trigger threshold point is reached, step 1512 is executed; otherwise, the determination continues.

[0144] The control center controller 1405 can determine whether the user's finger has reached a pre-set trigger threshold point based on the coordinate position, sliding speed, or release speed of the finger during the operation event. Simultaneously, during the decision-making process of the control center controller 1405, the panel pull controller 1403 can adjust the transparency of the notification center panel 1406 based on the operation event to enhance the call-up effect of the control center panel.

[0145] In addition, when the control center controller 1405 determines that the trigger threshold point has been reached, the control center controller 1405 can also feed back the information that the trigger threshold point has been reached to the panel pull controller 1403, so that the panel pull controller 1403 can instruct the notification center controller 1404 to close the notification center panel 1406 when the control center controller 1405 determines that the trigger threshold point has been reached.

[0146] Step 1512: Control center controller 1405 opens control center panel 1407.

[0147] Based on the solutions described in the above embodiments, this application also provides a chip. Please refer to... Figure 16 , Figure 16 This is a schematic diagram of a chip structure provided in an embodiment of this application. Figure 16 As shown, chip 1600 includes one or more processors 1601 and interface circuitry 1602. Optionally, chip 1600 may also include a bus 1603. Wherein:

[0148] Processor 1601 may be an integrated circuit chip with signal processing capabilities. In implementation, the control processes involved in the above scheme can be completed through integrated logic circuits in the hardware of processor 1601 or through software instructions. Interface circuit 1602 can be used to send or receive data, instructions, or information. Processor 1601 can process the data, instructions, or other information received by interface circuit 1602 and then send the processed information out through interface circuit 1602.

[0149] Optionally, the chip also includes memory, which may include read-only memory and random access memory, providing operation instructions and data to the processor. A portion of the memory may also include non-volatile random access memory (NVRAM). Optionally, the memory stores executable software modules or data structures, and the processor can perform corresponding operations by calling operation instructions stored in the memory (which may be stored in the operating system).

[0150] Optionally, the interface circuit 1602 can be used to output the execution results of the processor 1601.

[0151] It should be noted that the functions of the processor 1601 and the interface circuit 1602 can be implemented through hardware design, software design, or a combination of both; no limitation is imposed here. For example, this chip can be applied to the aforementioned... Figure 2 The electronic device 100 shown is used to implement the method provided in the embodiments of this application.

[0152] It is understood that the processor in the embodiments of this application 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, transistor logic devices, hardware components, or any combination thereof. A general-purpose processor can be a microprocessor or any conventional processor.

[0153] The method steps in the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an ASIC.

[0154] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0155] It is understood that the various numerical designations used in the embodiments of this application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of this application.

Claims

1. A control method characterized by, Applied to an electronic device having a touchscreen, the method includes: The first interface is displayed on the touchscreen. In response to the touch screen receiving a first operation, the first interface is switched to a second interface. The first operation refers to the operation in which the starting position of the touch body in contact with the touch screen is located in a first area of ​​the touch screen and slides along a first direction on the touch screen. After the touch body completes the first operation and leaves the touch screen, in response to the touch screen receiving a second operation, the second interface is switched to the third interface. The second operation refers to the operation in which the touch body re-contacts the touch screen at a starting position located in the second area of ​​the touch screen and slides along the second direction on the touch screen. After the touch subject completes the second operation and leaves the touch screen, in response to the touch screen receiving the first operation again, the third interface is switched to the second interface; Wherein, the second interface is the display interface of the notification center, and the third interface is the display interface of the control center; or, the second interface is the display interface of the control center, and the third interface is the display interface of the notification center; the control center includes the control of multiple devices; The electronic devices include a panel pull controller (1403), a notification center panel controller (1404), and a control center panel controller (1405). The panel pull controller (1403) can determine whether the user's current operation is to close the notification center and open the control center or close the control center and open the notification center based on whether the position coordinates of the user's finger in the operation event are in the second area or the third area. When the panel pull controller (1403) determines that the user's current operation is to close the control center and open the notification center, the panel pull controller (1403) can send the operation event to the notification center panel controller (1404); when the panel pull controller (1403) determines that the user's current operation is to close the notification center and open the control center, the panel pull controller (1403) can send the operation event to the control center panel controller (1405).

2. The method according to claim 1, characterized in that, After switching the third interface to the second interface, the method further includes: After the touch subject completes the first operation and leaves the touch screen, in response to the touch screen receiving a third operation, the second interface is switched to the first interface. The third operation refers to the operation in which the touch subject re-contacts the touch screen at a starting position located in a third area of ​​the touch screen and slides along a third direction on the touch screen.

3. The method according to any one of claims 1-2, characterized in that, The first interface includes the desktop display interface on the electronic device, or the first interface includes the display interface of an application on the electronic device.

4. The method according to any one of claims 1-2, characterized in that, Both the second interface and the third interface are displayed in the first window.

5. The method according to claim 4, characterized in that, The first window is the status bar window.

6. The method according to any one of claims 1-2, characterized in that, The first interface and the second interface are displayed in different windows.

7. The method according to any one of claims 1-2, characterized in that, The first region is located on the top of the touchscreen on the first side, and the first direction is from the top of the touchscreen toward the bottom of the touchscreen; The second region is located on the second side of the top of the touchscreen, and the second direction is the same as the first direction; The third region is the area on the touchscreen other than the first region and the second region, and its direction is opposite to the first direction.

8. The method according to any one of claims 1-2, characterized in that, The notification center is the entry point on the electronic device used to manage push notifications from applications on the electronic device or to display persistent status information; The control center is the entry point on the electronic device used to control the state of the electronic device.

9. The method according to any one of claims 1-2, characterized in that, Before switching from the first target interface to the second target interface, the process also includes: The operation of the touch body on the touch screen is determined to meet the trigger condition, which is the condition that triggers the interface switching; Wherein, the first target interface is a first interface and the second target interface is a second interface; or, the first target interface is a second interface and the second target interface is a third interface; or, the first target interface is a third interface and the second target interface is a first interface; or, the first target interface is a third interface and the second target interface is a second interface; or, the first target interface is a second interface and the second target interface is a first interface.

10. The method according to claim 9, characterized in that, The conditions for triggering the interface switching specifically include: The distance between the current position of the touch object in contact with the touch screen and the starting position is greater than or equal to a preset distance threshold.

11. The method according to claim 9, characterized in that, The conditions for triggering the interface switching specifically include: The position of the touch object in contact with the touch screen at the current moment reaches the preset position on the touch screen.

12. The method according to claim 9, characterized in that, The conditions for triggering the interface switching specifically include: The distance between the position of the touch object when it leaves the touch screen and the starting position is less than a preset distance threshold, and the speed at which the touch object leaves the touch screen is greater than or equal to a preset speed threshold.

13. The method according to claim 9, characterized in that, The process of switching from the first target interface to the second target interface also includes: Increase the transparency of the first target interface, or decrease the clarity of the first target interface.

14. The method according to any one of claims 1-2, characterized in that, Switching the first interface to the second interface includes: covering the first interface with the second interface; or Switching from the first interface to the second interface includes: blurring the first interface and then overlaying the second interface onto the blurred first interface; or Switching from the second interface to the third interface includes: closing the second interface and opening the third interface; or Switching from the second interface to the third interface includes: closing the second interface and opening the third interface, wherein the third interface covers the first interface; or Switching the third interface to the first interface includes: closing the third interface covering the first interface and displaying the first interface; or Switching the third interface to the second interface includes: closing the third interface and opening the second interface; or Switching the third interface to the second interface includes: closing the third interface and opening the second interface, with the second interface covering the first interface; or Switching from the second interface to the first interface includes: closing the second interface that is overlaid on the first interface and displaying the first interface.

15. The method according to any one of claims 1-2, characterized in that, The display window of the notification center and the display window of the control center have the same priority.

16. An electronic device, characterized in that, include: touchscreen; One or more processors; Memory; The memory stores one or more computer programs, the one or more computer programs including instructions that, when executed by the one or more processors, cause the electronic device to perform the method as described in any one of claims 1-15.

17. A computer-readable storage medium storing a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-15.

18. A computer program product, characterized in that, When the computer program product is run on an electronic device, it causes the electronic device to perform the method as described in any one of claims 1-15.