EP-4738805-A1 - DISPLAY METHOD, TERMINAL DEVICE, AND COMPUTER-READABLE MEDIUM
Abstract
The present invention relates to the field of terminal technologies, and more specifically, to a display method, a terminal device, and a computer-readable medium. In the method, an attribute configuration of disabling an operation of pulling down a status bar but displaying a banner notification is added, and an attribute corresponding to the operation of pulling down the status bar on a terminal device such as a mobile phone is decoupled from an attribute corresponding to display of the banner notification, to balance a requirement for immersive experience of a user and requirements such as checking an important notification message in time. Even if the terminal device enters a notification disabled state, the operation of pulling down the status bar is disabled, and the banner notification can still be displayed. In this way, in different immersive scenarios, the banner notification may be displayed for a prompt according to a requirement of the user, to avoid missing an important notification message, thereby improving user experience.
Inventors
- HU, Shaozhe
Assignees
- Honor Device Co., Ltd.
Dates
- Publication Date
- 20260506
- Application Date
- 20230919
Claims (12)
- A display method, applied to a terminal device, wherein the terminal device comprises a display, the display comprises at least a first screen, a second screen, and a first camera, and the first screen and the first camera of the terminal device are respectively located on two sides of the terminal device; when the terminal device is in an unfolded state, the first screen and the second screen are on a same side of the terminal device; and when the terminal device is in a folded state, the first camera and the second screen are located on a same side of the terminal device; and the method comprises: displaying a first interface of a first application on the first screen based on the terminal device being in the folded state; receiving, at a first time point, a first notification of a second application, and displaying a banner notification of the first notification on the first screen; receiving, at a second time point, a first operation of pulling down a status bar, and displaying a notification list, wherein the notification list comprises an option of at least one notification; displaying a second interface of the second application in response to a user tapping an option of the first notification; after the user flips a mobile phone, displaying a third interface of the first application on the second screen; receiving, at a third time point, a second notification of the second application, and displaying a banner notification of the second notification on the second screen; and receiving, at a fourth time point, a second operation of pulling down the status bar, and skipping displaying the notification list.
- The method according to claim 1, wherein the first screen and the second screen are two parts of display areas of the display; and the third interface is an interface obtained after the first interface is adapted to a size of the second screen through adjustment.
- The method according to claim 1, wherein the method comprises: after the fourth time point, based on the terminal device being in the folded state, displaying the first interface of the first application on the second screen, and skipping responding to the second operation of pulling down the status bar.
- The method according to any one of claims 1 to 3, wherein an attribute parameter of the status bar comprises a first attribute parameter and a second attribute parameter, wherein the first attribute parameter indicates whether an interface displayed on the first screen or the second screen responds to the operation of pulling down the status bar, and indicates whether a banner notification is displayed on the interface displayed on the first screen or the second screen; and the second attribute parameter indicates whether the interface displayed on the first screen or the second screen responds to the operation of pulling down the status bar, and indicates whether the banner notification is displayed on the interface displayed on the first screen or the second screen.
- The method according to claim 4, wherein types of the first attribute parameter and the second attribute parameter each comprise a flag attribute; and the first attribute parameter comprises an attribute parameter "DISABLE_EXPAND_EXCEPT_HEADSUP", and the second attribute parameter comprises an attribute parameter "DISABLE_EXPAND".
- The method according to claim 5, wherein the method comprises: based on a value of the second attribute parameter being set to 0 and a value of the first attribute parameter being set to 0, receiving, at the first time point, the first notification of the second application, and displaying the banner notification of the first notification on the first screen; and based on the value of the second attribute parameter being set to 0 and the value of the first attribute parameter being set to 0, receiving, at the second time point, the first operation of pulling down the status bar, and displaying the notification list.
- The method according to claim 5, wherein the method comprises: based on a value of the second attribute parameter being set to 0 and a value of the first attribute parameter being set to 1, receiving, at the third time point, the second notification of the second application, and displaying the banner notification of the second notification on the second screen; and based on the value of the second attribute parameter being set to 0 and the value of the first attribute parameter being set to 1, receiving, at the fourth time point, the second operation of pulling down the status bar, and skipping displaying the notification list.
- The method according to claim 5, wherein the method further comprises: based on a value of the second attribute parameter being set to 1, receiving, at a fifth time point, a third notification of the second application, and skipping displaying a banner notification of the third notification on the first screen or the second screen; and based on the value of the second attribute parameter being set to 1, receiving, at a sixth time point, a third operation of pulling down the status bar, and skipping displaying the notification list.
- The method according to claim 8, wherein setting the value of the second attribute parameter to 1 comprises: receiving a value set by the first application for the second attribute parameter, and setting the value of the second attribute parameter to 1; or receiving an operation of setting the second attribute parameter in a setting interface by the user, and setting the value of the second attribute parameter to 1.
- The method according to any one of claims 1 to 9, wherein the operation of pulling down the status bar comprises: a fourth operation of sliding downward by the user in a touch area that is displayed on a screen top of the first screen or the second screen and that is close to a first side edge, wherein the fourth operation enables the terminal device to display the notification list; or a fifth operation of sliding downward by the user in a touch area that is displayed on a screen top of the first screen or the second screen and that is close to a second side edge, wherein the fifth operation enables the terminal device to display a control center; wherein the first side edge and the second side edge are different side edges of the screen top of the first screen or the second screen.
- A terminal device, comprising one or more processors and one or more memories, wherein the one or more memories store one or more programs, and when the one or more programs are executed by the one or more processors, the terminal device is enabled to execute the display method according to any one of claims 1 to 10.
- A computer-readable medium, wherein the readable medium stores instructions, and when the instructions are executed on a computer, the computer is enabled to execute the display method according to any one of claims 1 to 10.
Description
TECHNICAL FIELD The present invention relates to the field of terminal technologies, and more specifically, to a display method, a terminal device, and a computer-readable medium. BACKGROUND A notification message may be displayed in a status bar of a terminal device, to forward a notification obtained during running of a system or an installed application (application, APP). In a use state of the terminal device after a screen is unlocked, the notification message in a banner form may be displayed in the status bar, and the message may be automatically retracted to a notification queue in the top status bar after a short stay. A user may view the retracted notification message through an operation of pulling down the top status bar. In addition, in a state in which the terminal device locks the screen, the terminal device can also display the notification message. In this way, the user can be prompted in time to process the message, to avoid ignoring some important notification messages and causing inconvenience to the user. In some display scenarios or some display modes of the terminal device, for example, when the terminal device is a foldable-screen device, the user is using a subordinate screen to perform an immersive operation such as taking a selfie. In this case, the terminal device enters a notification disabled state that is also referred to as an immersive state. In this state, the terminal device disables the operation of pulling down the status bar by the user. However, a notification message in a form of a banner notification or the like cannot be displayed in the status bar of the terminal device at the same time. Therefore, the user may miss an important notification message, causing poor user experience. SUMMARY Embodiments of this application provide a display method, a terminal device, and a computer-readable medium, so that the terminal device can set disabling of pull-down of a status bar and display a banner notification even if the terminal device enters a notification disabled state. In this way, in different immersive scenarios, the terminal device may display the banner notification for a prompt according to a requirement of a user, to avoid missing an important notification message, thereby improving user experience. According to a first aspect, this application provides a display method, applied to a terminal device. The terminal device includes a display. The display includes at least a first screen, a second screen, and a first camera. The first screen and the first camera of the terminal device are respectively located on two sides of the terminal device. When the terminal device is in an unfolded state, the first screen and the second screen are on a same side of the terminal device. When the terminal device is in a folded state, the first camera and the second screen are located on a same side of the terminal device. The method includes: displaying a first interface of a first application on the first screen based on the terminal device being in the folded state;receiving, at a first time point, a first notification of a second application, and displaying a banner notification of the first notification on the first screen;receiving, at a second time point, a first operation of pulling down a status bar, and displaying a notification list, where the notification list includes an option of at least one notification;displaying a second interface of the second application in response to a user tapping an option of the first notification;after the user flips a mobile phone, displaying a third interface of the first application on the second screen;receiving, at a third time point, a second notification of the second application, and displaying a banner notification of the second notification on the second screen; andreceiving, at a fourth time point, a second operation of pulling down the status bar, and skipping displaying the notification list. For example, the terminal device may be a foldable-screen device, such as a foldable-screen mobile phone. The first screen may be a main screen of the mobile phone, and the second screen may be a subordinate screen of the mobile phone. The first camera may be a rear-facing camera of the mobile phone. The first application may be a camera application, and the second application may be another application such as Phone or WeChat™. Correspondingly, the first interface of the first application displayed on the first screen may be a shooting interface of the camera application. At the first time point, the mobile phone may prompt, by using a banner notification, the user with a notification message sent by an application such as Phone or WeChat™, that is, the first notification. At the second time point, the mobile phone may respond to the operation of pulling down the status bar by the user, for example, the first operation, and display the notification list. In some other embodiments, the mobile phone may alternatively respond to the opera