EP-4742644-A1 - METHOD FOR DISPLAYING NOTIFICATION AND ELECTRONIC DEVICE
Abstract
Embodiments of this application provide a notification display method and an electronic device. The method includes: in a case that a first live task process exists on a first electronic device, when a status of the first electronic device is switched to a lock screen state, displaying a first notification corresponding to the first live task process on a lock screen interface of the first electronic device, where the first notification is presented in a capsule state; in response to a first operation of a user, expanding the first notification displayed on the lock screen interface of the first electronic device into a second notification, where the second notification is presented in a card state; and in response to a second operation of the user, expanding the second notification displayed on the lock screen interface of the first electronic device into a third notification displayed in full screen. According to the method or the electronic device, a live task notification can be presented in different forms on the lock screen interface, and the live task notification can be switched between different presentation forms, so that notification display requirements of a user in different scenarios can be satisfied.
Inventors
- DING, Yaling
- CHEN, Yuhan
- LI, Minhao
- HUANG, XIN
- HUANG, JING
Assignees
- Huawei Technologies Co., Ltd.
Dates
- Publication Date
- 20260513
- Application Date
- 20241009
Claims (20)
- A notification display method, wherein the method comprises: in a case that a first live task process exists on a first electronic device, when a status of the first electronic device is switched to a lock screen state, displaying a first notification corresponding to the first live task process on a lock screen interface of the first electronic device, wherein the first notification is presented in a capsule state; in response to a first operation of a user, expanding the first notification displayed on the lock screen interface of the first electronic device into a second notification, wherein the second notification is presented in a card state; and in response to a second operation of the user, expanding the second notification displayed on the lock screen interface of the first electronic device into a third notification, wherein the third notification is displayed in full screen on the lock screen interface of the first electronic device.
- The method according to claim 1, wherein the method further comprises: in response to a third operation of the user, expanding the first notification displayed on the lock screen interface of the first electronic device into the third notification.
- The method according to claim 2, wherein the method further comprises: in response to a fourth operation performed by the user on a display page of the third notification, collapsing the third notification displayed on the lock screen interface of the first electronic device into the first notification.
- The method according to claim 1, wherein the method further comprises: in response to a fourth operation performed by the user on a display page of the second notification, collapsing the second notification displayed on the lock screen interface of the first electronic device into the first notification; or in response to the fourth operation performed by the user on a display page of the third notification, collapsing the third notification displayed on the lock screen interface of the first electronic device into the second notification.
- The method according to any one of claims 1 to 4, wherein information about the first live task process presented in the second notification is more than information about the first live task process presented in the first notification, and information about the first live task process presented in the third notification is more than the information about the first live task process presented in the second notification.
- The method according to any one of claims 1 to 5, wherein a quantity of shortcut operation options supported by the second notification is greater than a quantity of shortcut operation options supported by the first notification, and a quantity of shortcut operation options supported by the third notification is greater than the quantity of shortcut operation options supported by the second notification.
- The method according to any one of claims 1 to 6, wherein the method further comprises: in a case that a plurality of first live task processes exist on the first electronic device, when the status of the first electronic device is switched to the lock screen state, displaying a plurality of first notifications that are in one-to-one correspondence with the plurality of first live task processes on the lock screen interface of the first electronic device in a stacked manner.
- The method according to any one of claims 1 to 7, wherein the method further comprises: in a case that a plurality of first live task processes exist on the first electronic device, displaying a plurality of second notifications that are in one-to-one correspondence with the plurality of first live task processes on the lock screen interface of the first electronic device in an expanded manner in a form of a card list.
- The method according to claim 8, wherein the card list comprises a non-live notification card received by the first electronic device in the lock screen state.
- The method according to any one of claims 1 to 9, wherein the method further comprises: in a case that a plurality of first live task processes exist on the first electronic device, triggering, through a switching operation of the user, display switching between a plurality of third notifications that are in one-to-one correspondence with the plurality of first live task processes.
- The method according to claim 10, wherein the switching operation comprises an operation that the user slides left on the display page of the third notification, or an operation that the user slides right on the display page of the third notification.
- The method according to claim 10 or 11, wherein when a screen of the first electronic device displays the display page of the third notification, if the first electronic device receives a first message notification, an icon corresponding to the first message notification is displayed in a bottom region of the display page of the third notification, wherein the icon is used to remind the user that the first message is received, and is further used to provide a view entry of the first message for the user.
- The method according to any one of claims 1 to 12, wherein the method comprises: in a case that no live task process exists on the first electronic device, when the first electronic device receives a first message in the lock screen state, displaying a first message notification corresponding to the first message on the lock screen interface of the first electronic device, wherein the first message notification is presented in a capsule state.
- The method according to any one of claims 1 to 13, wherein the first operation comprises an operation that the user slides up on the lock screen interface on which the first notification is displayed, or an operation that the user taps a text region of the first notification on the lock screen interface on which the first notification is displayed.
- The method according to any one of claims 1 to 14, wherein the second operation comprises an operation that the user taps a main image region of the second notification on the lock screen interface on which the second notification is displayed, or an operation that the user touches and holds the second notification on the lock screen interface on which the second notification is displayed.
- The method according to any one of claims 1 to 15, wherein the third operation comprises an operation that the user taps a main image region of the first notification on the lock screen interface on which the first notification is displayed, or an operation that the user touches and holds the first notification on the lock screen interface on which the first notification is displayed.
- The method according to claim 3, wherein the fourth operation comprises an operation that the user slides down on the lock screen interface of the first electronic device, an operation that the user taps a blank region on the lock screen interface of the first electronic device, or an operation that the user performs side swipe back on the lock screen interface of the first electronic device.
- An electronic device, comprising: one or more processors; one or more memories; and one or more computer programs, wherein the one or more computer programs are stored in the one or more memories, the one or more computer programs comprise instructions, and when the instructions are executed by the one or more processors, the electronic device is enabled to perform the method according to any one of claims 1 to 17.
- A computer-readable storage medium, wherein the storage medium stores a program or instructions, and when the program or the instructions are run, the method according to any one of claims 1 to 17 is implemented.
- A chip, wherein the chip stores instructions, and when the instructions are run, the method according to any one of claims 1 to 17 is implemented.
Description
This application claims priority to Chinese Patent Application No. 202410045011.5, filed with the China National Intellectual Property Administration on January 10, 2024 and entitled "NOTIFICATION DISPLAY METHOD AND ELECTRONIC DEVICE", which is incorporated herein by reference in its entirety. TECHNICAL FIELD Embodiments of this application relate to the terminal display field, and more specifically, to a notification display method and an electronic device. BACKGROUND Live tasks such as a flight status running on an electronic device have extremely strong timeliness. A user has a strong need to track and view such notifications in a timely manner. After the electronic device enters a lock screen state, the electronic device usually terminates process display of a current task. If the user wants to view a progress of the live task at any time, the user needs to frequently perform unlocking to enter a home screen to view the progress. This leads to poor user experience. SUMMARY This application provides a method and an electronic device. According to the method and the electronic device, a live task notification can be presented on a lock screen interface in different forms, and the live task notification can be switched between different presentation forms, so that notification display requirements of a user in different scenarios can be met. When the notification is presented in a capsule state, a personalized effect of the lock screen interface can be fully presented. In addition, through switching between notification presentation forms, the user can obtain more detailed notification information and perform a related shortcut operation without unlocking the electronic device, so that user experience is improved. According to a first aspect, a notification display method is provided. The method includes: in a case that a first live task process exists on a first electronic device, when a status of the first electronic device is switched to a lock screen state, displaying a first notification corresponding to the first live task process on a lock screen interface of the first electronic device, where the first notification is presented in a capsule state; in response to a first operation of a user, expanding the first notification displayed on the lock screen interface of the first electronic device into a second notification, where the second notification is presented in a card state; and in response to a second operation of the user, expanding the second notification displayed on the lock screen interface of the first electronic device into a third notification, where the third notification is displayed in full screen on the lock screen interface of the first electronic device. Optionally, that the first notification is presented in the capsule state may also be described as follows: The first notification is presented in a first state. An explanation of the first state is the same as an explanation of the capsule state. Similarly, that the second notification is presented in the card state may also be described as follows: The second notification is presented in a second state. An explanation of the second state is the same as an explanation of the capsule state. That the third notification is presented in full screen may also be described as follows: The third notification is presented in a third state. An explanation of the third state is the same as an explanation of full screen presentation (or immersive-state presentation). It should be noted that the foregoing three notification states are not indispensable. In another embodiment of this application, there may be only two of the states and switching between the two states. Alternatively, there may further be a fourth notification state or more notification states, and switching is randomly performed between the plurality of states through an operation of a user. In some embodiments, the first live task process may be, for example, any one of a flight status reminder process, an exercise recording process, a navigation process, a music play process, a delivery progress reminder process, and a trip reminder process. Alternatively, the first live task process may be another live task process. This is not limited in this application. In some embodiments, the first operation may be an operation that the user slides up on the lock screen interface on which the first notification is displayed, or an operation that the user taps a text region of the first notification on the lock screen interface on which the first notification is displayed. The first operation may alternatively be another operation, for example, an operation preset by the user. This is not limited in this application. In some embodiments, the second operation may be an operation that the user taps a main image region of the second notification on the lock screen interface on which the second notification is displayed, or an operation that the user touches and holds the second notificatio