Screen locking notification display method and related equipment

By providing multiple notification display styles in the lock screen state, users can select the display mode according to their needs, solving the problem of insufficient lock screen notification display method in the prior art, and improving user experience and interactivity.

CN119225871APending Publication Date: 2024-12-31HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310802755.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-30
Publication Date
2024-12-31

AI Technical Summary

Technical Problem

In the prior art, there are fewer methods for displaying lock screen notifications, and the usage scenarios are limited, making it difficult for users to effectively interact and manage notification messages in the lock screen state.

Method used

Provide a method for displaying lock screen notifications. By setting a variety of display styles, including displaying notifications, list display notifications, hidden notification content and non-display notifications, users can choose display modes according to their needs to improve interactive scenarios and user experience.

Benefits of technology

It enriches the display scenarios of lock screen notifications, improves the interactive experience between users and electronic devices, reduces the risk of users missing notification information, and provides scenes without notifications, improving the cleanliness and privacy of the interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225871A_ABST
    Figure CN119225871A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a screen locking notification display method and related equipment. The method comprises the steps that the electronic equipment displays a first interface, and the first interface comprises a first control, a second control, a third control and a fourth control; when a selection operation for any one of the first control and the second control is received, the electronic equipment sets a field corresponding to any one of the controls as a value corresponding to any one of the controls; wherein a corresponding relation between the control and the value exists in the electronic equipment; when the electronic equipment receives the notification message in the screen locking state, the electronic equipment displays a screen locking notification interface, and the screen locking notification interface is related to the value of the field corresponding to any control and the value of the field corresponding to the fourth control. Thus, various display styles of the lock screen notification can be provided, the interaction scene of the user and the electronic equipment under the lock screen notification is enriched, and the use experience of the user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a method for displaying lock screen notifications and related equipment. Background Art

[0002] Electronic devices can be installed with applications, which can push notification messages to users regularly or irregularly.

[0003] In some lock screen scenarios, after receiving a notification message from an application, the electronic device may not display the notification message, or, in some lock screen scenarios, the electronic device may display the specific content of the notification message, or, in some lock screen scenarios, the electronic device may display the notification message but not the specific content of the notification message.

[0004] In possible implementations, there are relatively few ways to display lock screen notifications, and the usage scenarios are relatively limited. Summary of the invention

[0005] The embodiments of the present application provide a method for displaying a lock screen notification and related devices, which are applied to the field of terminal technology and can provide a variety of display styles for lock screen notifications, enrich the interaction scenarios between users and electronic devices under lock screen notifications, and enhance the user experience.

[0006] In the first aspect, the embodiment of the present application proposes a method for displaying a lock screen notification. The method includes: an electronic device displays a first interface, the first interface includes a first control, a second control, a third control and a fourth control; wherein the first control is used to set a lock screen notification of a first mode, the second control is used to set a lock screen notification of a second mode, the third control is used to set a lock screen notification of a third mode, and the fourth control is used to set whether to hide the notification content of the lock screen notification; wherein, when the first control or the second control is selected, the fourth control is displayed, and the fourth control can be set; when the third control is selected, the fourth control is not displayed; when a selection operation is received for any one of the first control or the second control, the electronic device sets the field corresponding to any one of the controls to the value corresponding to any one of the controls; wherein there is a corresponding relationship between controls and values ​​in the electronic device; when the electronic device receives a notification message in the lock screen state, the electronic device displays a lock screen notification interface, wherein the lock screen notification interface is related to the value of the field corresponding to any one of the controls and the value of the field corresponding to the fourth control. In this way, the electronic device can display a variety of display modes of lock screen notifications, enrich the interaction scenarios between the electronic device and the user under the lock screen notification, and improve the user experience.

[0007] Among them, the first interface may correspond to Figure 4In the interface shown in c, the first control may correspond to the setting control 404 for displaying the number of lock screen notifications, the second control may correspond to the setting control 405 for displaying the lock screen notifications in a list, the third control may correspond to the setting control 406 for not displaying the lock screen notifications, and the fourth control may correspond to the setting control 407 for hiding the content of the lock screen notifications.

[0008] In a possible implementation, the electronic device includes a control module, a system manager, and a settings database, wherein the control module is used to monitor a click event corresponding to a selection operation; when a selection operation is received for any one of the first control or the second control, the electronic device sets a field corresponding to any one of the controls to a value corresponding to any one of the controls, including: when a selection operation is received for the first control, the control module monitors a click event corresponding to the first control; the control module reports the click event corresponding to the first control to the system manager; the system manager instructs the settings database to set the first field to a first value; the first value of the first field is used to represent that the display mode of the lock screen notification is set to the first mode; or, when a selection operation is received for the second control, the control module monitors a click event corresponding to the second control; the control module reports the click event corresponding to the second control to the system manager; the system manager instructs the settings database to set the first field to a second value; the second value of the first field is used to represent that the display mode of the lock screen notification is set to the second mode. In this way, the electronic device can set the display style of the lock screen notification according to the value of the field corresponding to the control triggered by the user, thereby improving the user experience.

[0009] In a possible implementation, the electronic device further includes a system user interface systemUI, and before the electronic device displays the lock screen notification interface, it includes: when the first control is selected, the systemUI reads the first value of the first field in the settings database; the electronic device displays the lock screen notification interface, including: the systemUI draws and displays the lock screen notification interface of the first mode according to the first value of the first field; or, when the second control is selected, the systemUI reads the second value of the first field in the settings database; the electronic device displays the lock screen notification interface, including: the systemUI draws and displays the lock screen notification interface of the second mode according to the second value of the first field. In this way, the electronic device can provide a lock screen notification interface that displays the lock screen notification in a list or displays the number of lock screen notifications, enriching the interaction scenarios between the electronic device and the user under the lock screen notification; further, displaying the lock screen notification in a list can reduce the scenarios where the user misses the lock screen notification information, and displaying the number of lock screen notifications can provide a simple and beautiful lock screen notification interface, thereby improving the user experience.

[0010] In a possible implementation, it also includes: when receiving a selection operation for the third control, the electronic device sets the field corresponding to the third control to the value corresponding to the third control; wherein the electronic device has a corresponding relationship between the control and the value; when the electronic device receives a notification message in the lock screen state, the electronic device displays the lock screen notification interface, wherein the lock screen notification interface is related to the value of the field corresponding to the third control. In this way, the electronic device can set the lock screen notification not to be displayed, which can provide a scenario for the user to avoid being disturbed by notifications, thereby improving the user's experience.

[0011] In a possible implementation, when a selection operation is received for a third control, the electronic device sets the field corresponding to the third control to the value corresponding to the third control; including: when a selection operation is received for the third control, the control module monitors the click event corresponding to the third control; the control module reports the click event corresponding to the third control to the system manager; the system manager instructs the settings database to set the first field to the third value; the third value of the first field is used to indicate that the display mode of the lock screen notification is set to the third mode. In this way, the electronic device can set the display style of the lock screen notification according to the value of the field corresponding to the control triggered by the user, thereby improving the user experience.

[0012] In a possible implementation, before the electronic device displays the lock screen notification interface, the steps include: systemUI reads the third value of the first field in the settings database; the electronic device displays the lock screen notification interface, including: systemUI draws and displays the lock screen notification interface of the third mode according to the third value of the first field. In this way, after the third mode is turned on, a scenario free of notification disturbances can be provided to the user, thereby improving the user experience.

[0013] In a possible implementation, the method further includes: when the third control is selected, the system manager sets the fourth control to be invisible. In this way, the electronic device can reduce the display of invalid controls and improve the neatness of the interface.

[0014] In a possible implementation, before the electronic device receives a notification message in the lock screen state, it also includes: when receiving a selection operation for the fourth control, the electronic device sets the field corresponding to the fourth control to a fourth value; or when receiving a non-selection operation for the fourth control, the electronic device sets the field corresponding to the fourth control to a fifth value. In this way, the electronic device can display or hide the specific content of the lock screen notification according to the user's selection, thereby improving the privacy and security of the lock screen notification.

[0015] In a possible implementation, in the lock screen state, the lock screen notification of the first mode is displayed as a notification reminder text, which is used to prompt the number of applications that push notification messages; the lock screen notification of the second mode is displayed as a notification box of one or more notification messages in the form of a list, wherein a notification box includes one or more notification messages pushed by an application; the lock screen notification of the third mode is displayed as not displaying the notification message after receiving the notification message. In this way, the electronic device can display a variety of display modes of the lock screen notification, enriching the interaction scenarios between the electronic device and the user under the lock screen notification and improving the user experience.

[0016] In a possible implementation, the first interface also includes a schematic diagram corresponding to the first control, a schematic diagram corresponding to the second control, and a schematic diagram corresponding to the third control; the schematic diagram corresponding to the first control is used to represent the number of applications that push notification messages displayed by the electronic device at the bottom of the lock screen interface in the first mode; the schematic diagram corresponding to the second control is used to represent the notification box that displays multiple notification messages on the lock screen interface in the second mode; the schematic diagram corresponding to the third control is used to represent that in the third mode, the electronic device does not display any notification message on the lock screen interface. In this way, when setting the lock screen notification display style, the user can more intuitively and clearly understand the display mode corresponding to each control, thereby improving the user experience.

[0017] In a possible implementation, it also includes: at a first moment, when the first control is selected, when the electronic device receives a first notification of the first application in a lock screen state, the electronic device displays a second interface; wherein the second interface includes a notification box of the first notification; at a second moment, when the electronic device receives a second notification of the second application in a lock screen state, the electronic device displays a third interface; wherein the third interface includes a notification box of the second notification, and the third interface does not include a notification box of the first notification, and the third interface also includes a first notification prompt text; the first notification reminder text is used to prompt that there are N-1 notifications; N-1 corresponds to the number of applications other than the second application; the first moment is earlier than the second moment, and the time difference between the first moment and the second moment is less than a preset time; at the third moment, the electronic device displays a fourth interface, the fourth interface does not include a notification box of the second notification, and the fourth interface includes a second notification reminder text, and the second notification reminder text is used to prompt that there are N notifications; the second moment is earlier than the third moment, and the time difference between the second moment and the third moment is greater than or equal to the preset time; at the fourth moment, the electronic device receives a trigger operation for the second notification prompt text, and the electronic device displays a fifth interface, and the fifth interface includes N notification boxes. In this way, the electronic device can provide a simple and beautiful lock screen notification interface, thereby improving the user experience.

[0018] Among them, the second interface can correspond to Figure 7In the interface shown in b, the notification box of the first notification corresponds to the notification box 704 of the SMS application. The third interface may correspond to Figure 7 In the interface shown in c, the notification box of the second notification corresponds to the notification box 705 of the weather application, and the first notification reminder text corresponds to the notification reminder text 706; or, the third interface may correspond to Figure 8 In the interface shown in b, the notification box of the second notification corresponds to the notification box 804 of the weather application, and the first notification reminder text corresponds to the notification reminder text 805. The fourth interface may correspond to Figure 7 In the interface shown in d, the second notification reminder text may correspond to the notification reminder text 707; or the fourth interface may correspond to Figure 8 In the interface shown in c in the figure, the notification box of the weather application is not displayed in the fourth interface. The second notification reminder text may correspond to the notification reminder text 806. The fifth interface corresponds to Figure 7 The interface shown in e in the figure, or the fifth interface corresponds to Figure 8 The interface shown in d.

[0019] In a possible implementation, it also includes: when the electronic device receives a selection operation for the third control on the first interface, the electronic device displays the sixth interface; the sixth interface includes prompt text, the fifth control and the sixth control, the prompt text is used to prompt that after the third mode is selected, the electronic device does not display any notification message on the lock screen interface; the fifth control is used to cancel the selection of the third mode; the sixth control is used to confirm the selection of the third mode; when the electronic device receives a trigger operation for the sixth control, the electronic device displays the seventh interface, the seventh interface includes the first control, the second control and the third control, and does not include the fourth control, wherein the third control is selected. In this way, the third mode can be reduced from being accidentally turned on, and the scenario where the user cannot receive the lock screen notification after accidentally turning on the mode that does not display the lock screen notification is avoided.

[0020] Among them, the sixth interface corresponds to Fig. 9 In the interface shown in b, the prompt text corresponds to the prompt text in the prompt pop-up window 903, the fifth control corresponds to the cancel control 904, and the sixth control corresponds to the do not display notification control 905. The seventh interface corresponds to Fig. 9 The interface shown in c.

[0021] In a second aspect, an embodiment of the present application provides an electronic device, which may also be referred to as a terminal device, a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc.

[0022] The electronic device comprises: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the electronic device executes the method as in the first aspect.

[0023] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect is implemented.

[0024] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect.

[0025] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method of the first aspect.

[0026] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of an interface for setting the lock screen notification display style in a possible implementation;

[0028] Figure 2 A schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application;

[0029] Figure 3 A software structure block diagram of the electronic device 100 provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram of an interface for setting a lock screen notification display style provided in an embodiment of the present application;

[0031] Figure 5 A schematic diagram of an interface for displaying a lock screen notification provided in an embodiment of the present application;

[0032] Figure 6 A schematic diagram of another interface for displaying lock screen notifications provided in an embodiment of the present application;

[0033] Figure 7 A schematic diagram of another interface for displaying lock screen notifications provided in an embodiment of the present application;

[0034] Figure 8 A schematic diagram of another interface for displaying lock screen notifications provided in an embodiment of the present application;

[0035] Fig. 9 A schematic diagram of an interface that does not display a lock screen notification provided in an embodiment of the present application;

[0036] Fig.10 A schematic diagram of a process for setting a lock screen notification display style provided in an embodiment of the present application;

[0037] Fig.11 A schematic diagram of a process for displaying a lock screen notification provided in an embodiment of the present application;

[0038] Fig.12 A schematic diagram of internal interaction of an electronic device provided in an embodiment of the present application;

[0039] Fig.13 A flowchart of a method for displaying a lock screen notification provided in an embodiment of the present application;

[0040] Fig.14 A schematic diagram of the structure of a lock screen notification display device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0042] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0043] It should be noted that the "at..." in the embodiment of the present application can be the instant when a certain situation occurs, or a period of time after a certain situation occurs, and the embodiment of the present application does not specifically limit this. In addition, the display interface provided in the embodiment of the present application is only an example, and the display interface can also include more or less content.

[0044] Electronic devices can be installed with applications, which can push notification messages to users regularly or irregularly.

[0045] In some lock screen scenarios, after receiving a notification message from an application, the electronic device may not display the notification message, or, in some lock screen scenarios, the electronic device may display the specific content of the notification message, or, in some lock screen scenarios, the electronic device may display the notification message but not the specific content of the notification message.

[0046] In possible implementations, there are relatively few ways to display lock screen notifications, and the usage scenarios are relatively limited.

[0047] For example, Figure 1 FIG. 1 shows a schematic diagram of an interface for setting a lock screen notification display style in a possible implementation. Figure 1 As shown:

[0048] In a possible implementation, the user can set the lock screen notification display style through the settings app. Figure 1In the interface shown in a of FIG. 1 , a setting application is running in the foreground of the electronic device, and the electronic device can display controls for multiple function setting items, such as a notification control. When the electronic device receives a trigger operation for the notification control, the electronic device enters Figure 1 The interface shown in b. Figure 1 In the interface shown in b, the electronic device displays a desktop icon corner control, a lock screen notification control, and more notification setting controls; when the electronic device receives a trigger operation for the lock screen notification control, the electronic device can enter the following Figure 1 The interface shown in c.

[0049] exist Figure 1 In the interface shown in c, the electronic device displays a pop-up window for setting lock screen notifications, which includes options for displaying notifications, hiding notification content, and not displaying notifications. In a possible implementation, the lock screen notification display style is set through the three-level page of the pop-up window. The lock screen notification display styles include: displaying notifications, hiding notification content, and not displaying notifications. There are relatively few ways to display lock screen notifications, and the usage scenarios are relatively limited.

[0050] In addition, the above method of setting the display style may have some problems. For example, when a user selects a lock screen notification display style, he or she may not understand the function corresponding to the selected display style only through text. For example, the user may not understand the difference between hiding the notification content and not displaying the notification.

[0051] In view of this, an embodiment of the present application provides a method for displaying lock screen notifications. The electronic device is set with multiple display styles. The lock screen notification display styles include: displaying the number of notifications and displaying the notification content, displaying the number of notifications and hiding the notification content, displaying the notifications in a list and displaying the notification content, displaying the notifications in a list and hiding the notification content, and not displaying the notification, etc. Compared with the three display styles in the possible implementation, the present application further enriches the display scenarios of the lock screen notifications and enhances the user experience.

[0052] In the embodiments of the present application, the electronic device may also be referred to as a terminal device, a terminal, a user equipment (UE), a mobile station (MS), a mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with a wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.

[0053] Among them, wearable devices can also be called wearable smart devices, which are a general term for the intelligent design and development of wearable devices for daily wear using wearable technology, such as glasses, gloves, watches, clothing and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also realize powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include full-featured, large-sized, and independent of smartphones to achieve complete or partial functions, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0054] In addition, in the embodiments of the present application, the electronic device may also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection. The embodiments of the present application do not limit the specific technology and specific device form used by the electronic device.

[0055] In an embodiment of the present application, the electronic device may include a hardware layer, an operating system layer running on the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and a memory (also called main memory). The operating system may be any one or more computer operating systems that implement business processing through processes, such as a Linux operating system, a Unix operating system, an Android operating system, an iOS operating system, or a Windows operating system. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.

[0056] In order to better understand the embodiments of the present application, the structure of the electronic device in the embodiments of the present application is introduced below:

[0057] Figure 2 1 shows a schematic diagram of the structure of the electronic device 100. The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195.

[0058] Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0059] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0060] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0061] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0062] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0063] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0064] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0065] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0066] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0067] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0068] In the embodiment of the present application, the electronic device can receive notifications pushed by the application through the mobile communication module 150 and / or the wireless communication module 160.

[0069] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

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

[0071] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0072] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121, and / or instructions stored in a memory provided in the processor.

[0073] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0074] Exemplarily, the electronic device 100 may further include one or more of a button 190 , a motor 191 , an indicator 192 , a SIM card interface 195 (eSIM card), and the like.

[0075] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture, etc. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100. Figure 3 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0076] The layered architecture divides the software into several layers, each with clear roles and division of labor. The 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 library, and the kernel layer.

[0077] The application layer can include a series of application packages.

[0078] like Figure 3 As shown, the application package can include applications such as camera, calendar, phone, map, settings, mailbox, video, music, SystemUI, etc.

[0079] SystemUI is a system-level application installation package. SystemUI is used to display status bar information, such as battery, wifi signal, 3G / 4G signal, etc. icons; display notification panels, such as system messages and third-party application messages; display recent task bar display panels, such as long pressing the recent task shortcut key to display recently used applications; provide screenshot services; and provide wallpaper services, etc. In the embodiment of the present application, SystemUI can be used to control the lock screen notification display style.

[0080] The setting application may include: a control module and a system manager.

[0081] The control module can be used to manage controls corresponding to multiple setting items in the notification application. For example, the control can be Figure 1 In the embodiment of the present application, the control may include a control corresponding to a setting item of the lock screen notification display style.

[0082] The system manager supports the UI capability of notification and user interaction, and the system manager may include some functions in the setting application. For example, in an embodiment of the present application, after the user selects any display style in the lock screen notification setting interface, the electronic device can obtain the setting item selected by the user based on the system manager.

[0083] The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0084] like Figure 3As shown, the application framework layer may include a window manager, a content provider, a resource manager, a view system, an activity manager, a notification manager, and a settings database, etc.

[0085] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, touch the screen, drag the screen, capture the screen, etc.

[0086] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0087] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0088] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0089] The activity manager is responsible for managing the startup, status, life cycle and other activities of the application. Among them, activity is an application component that can provide an interface for users to interact with the terminal device through the interface to complete a task.

[0090] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt tone is emitted, the terminal device vibrates, the indicator light flashes, etc. In the embodiment of the present application, the notification manager can also be used to manage lock screen notifications.

[0091] The settings database can be used to set the fields of the lock screen notification display style so that SystemUI draws the corresponding lock screen notification display style according to the fields.

[0092] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

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

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

[0095] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0096] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0097] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.

[0098] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0099] A 2D graphics engine is a drawing engine for 2D drawings.

[0100] The kernel layer is the layer between hardware and software. The kernel layer can contain display drivers, camera drivers, audio drivers, sensor drivers, etc.

[0101] Let's combine Figure 4 The scenario of setting the lock screen notification display style in the embodiment of the present application is described. Figure 4 A schematic diagram of an interface for setting a lock screen notification display style provided in an embodiment of the present application is shown, such as Figure 4 As shown:

[0102] For example, the user can set the lock screen notification display style through the settings application. The electronic device has a settings application running in the foreground, such as Figure 4 As shown in the a interface of the electronic device, the electronic device can display controls of multiple function setting items, for example, notification control 401. When the electronic device receives a trigger operation for notification control 401, the electronic device can enter Figure 4 The interface shown in b.

[0103] Figure 4The interface shown in b in the figure may be a notification setting interface, which may include a lock screen notification control 402, wherein the lock screen notification control 402 may be used to set the lock screen notification display style. When the electronic device receives a trigger operation for the lock screen notification control 402, the electronic device may enter Figure 4 The interface shown in c.

[0104] Figure 4 The interface shown in c in FIG. 4 may be a lock screen notification setting interface, and the lock screen notification setting interface may include a lock screen notification setting pop-up window 403. The lock screen notification setting pop-up window 403 displays the setting control of the lock screen notification display style and the corresponding schematic diagram; for example, the setting items of the lock screen notification display style may include: a setting control 404 for displaying the number of lock screen notifications, a setting control 405 for displaying lock screen notifications in a list, a setting control 406 for not displaying lock screen notifications, and a setting control 407 for hiding the content of lock screen notifications. The schematic diagrams of the display style include: schematic diagrams 408, 409, and 410. Among them, the setting control 404 for displaying the number of lock screen notifications corresponds to the display position of schematic diagram 408, the setting control 405 for displaying lock screen notifications in a list corresponds to the display position of schematic diagram 409, and the setting control 406 for not displaying lock screen notifications corresponds to the display position of schematic diagram 410.

[0105] Schematic diagrams of lock screen notification display styles may be shown in schematic diagram 408 , schematic diagram 409 , and schematic diagram 410 .

[0106] It can be understood that schematic diagram 408 can be represented as: the display style is set to display the number of lock screen notifications, the electronic device is in the lock screen interface, and when a notification message pushed by an application is received, the number of lock screen notifications is displayed at the bottom of the screen of the electronic device; the black box in schematic diagram 408 can represent a notification box that pops up on the electronic device when a notification is received.

[0107] Schematic diagram 409 can be represented as: the display style is set to display lock screen notifications as a list, the electronic device is in the lock screen interface, and when multiple notification messages pushed by the application are received, the screen of the electronic device displays multiple notification boxes in sequence; the black box in schematic diagram 408 can represent the notification box that pops up on the electronic device when a notification is received.

[0108] Schematic diagram 410 can be represented as: the display style is set to not display lock screen notifications, the electronic device is in the lock screen interface, and when receiving one or more notification messages pushed by an application, the screen of the electronic device does not display a notification box.

[0109] In the embodiment of the present application, the setting items of the lock screen notification display style may include a selected state and an unselected state. For example, the setting control 404 that displays the number of lock screen notifications is in a selected state, and the setting control 405 that displays the lock screen notifications in a list is in an unselected state. For another example, the setting control 407 that hides the lock screen notification content is in an unselected state. The embodiment of the present application does not limit the styles of the setting controls in the selected and unselected states.

[0110] In the lock screen notification display method provided in the embodiment of the present application, the electronic device can display a schematic diagram corresponding to the lock screen notification display style. The user can clearly and intuitively understand the display effect of the lock screen notification corresponding to the display style after selecting the display style, thereby improving the user's experience.

[0111] Combine the following Figure 5-Figure 9 The lock screen notification display style provided in the embodiment of the present application is described.

[0112] In an embodiment of the present application, the lock screen notification display styles may include: displaying notifications in a list and displaying notification content, displaying notifications in a list and hiding notification content, displaying the number of notifications and displaying notification content, displaying the number of notifications and hiding notification content, and not displaying notifications.

[0113] Scenario 1: The lock screen notification display style can display notifications in a list and display notification content. Figure 5 A schematic diagram of a lock screen notification interface provided by an embodiment of the present application is shown, such as Figure 5 As shown:

[0114] The electronic device can display a lock screen notification setting interface, such as Figure 5 As shown in the a interface in FIG, a lock screen notification setting pop-up window 501 is displayed in the lock screen notification setting interface, and the lock screen notification setting pop-up window 501 includes a setting control 502 for displaying a list of lock screen notifications and a setting control 503 for hiding the lock screen notification content. Among them, the setting control 502 for displaying a list of lock screen notifications is in a selected state, and the setting control 503 for hiding the lock screen notification content is in an unselected state. Subsequently, the electronic device exits the setting application and displays the lock screen interface.

[0115] When an electronic device receives multiple notification messages on the lock screen interface, the electronic device may display the following Figure 5 The interface shown in b; Figure 5 In the interface shown in b, the notification boxes of multiple notification messages are displayed in a list. For example, Figure 5 The interface shown in b includes three notification boxes, such as notification box 504, notification box 505 and notification box 506; wherein any notification box displays the name of the application and the specific content of the notification message pushed by the application.

[0116] It can be seen that Figure 5 The interface shown in b is the same as Figure 4 Therefore, when setting the lock screen application display style, the user can intuitively understand the effect of displaying lock screen notifications in a list through schematic diagram 409.

[0117] Scenario 2: The lock screen notification display style can be a list display of notifications and hide the notification content. Figure 6 A schematic diagram of a lock screen notification interface provided by an embodiment of the present application is shown, such as Figure 6 As shown:

[0118] The electronic device can display a lock screen notification setting interface, such as Figure 6 As shown in the a interface in FIG, a lock screen notification setting pop-up window 601 is displayed in the lock screen notification setting interface, and the lock screen notification setting pop-up window 601 includes a setting control 602 for displaying a list of lock screen notifications and a setting control 603 for hiding the lock screen notification content. Among them, the setting control 602 for displaying a list of lock screen notifications is in a selected state, and the setting control 603 for hiding the lock screen notification content is also in a selected state. Subsequently, the electronic device exits the setting application and displays the lock screen interface.

[0119] When an electronic device receives multiple notification messages on the lock screen interface, the electronic device may display the following Figure 6 The interface shown in b; Figure 6 In the interface shown in b, the notification boxes of multiple notification messages are displayed in a list. For example, Figure 6 The interface shown in b includes three notification boxes, such as notification box 604, notification box 605 and notification box 606; wherein, any notification box displays the name of the application, and any notification box does not display the specific content of the notification message pushed by the application.

[0120] In this way, the scenarios where users miss notification messages can be reduced and the user's requirements for privacy can also be met.

[0121] Scenario 3: The lock screen notification display style can display the number of notifications and the content of the notification. Figure 7 A schematic diagram of a lock screen notification interface provided by an embodiment of the present application is shown, such as Figure 7 As shown:

[0122] The electronic device can display a lock screen notification setting interface, such as Figure 7As shown in the a interface in FIG, a lock screen notification setting pop-up window 701 is displayed in the lock screen notification setting interface, and the lock screen notification setting pop-up window 701 includes a setting control 702 for displaying the number of lock screen notifications and a setting control 703 for hiding the content of lock screen notifications. Among them, the setting control 702 for displaying the number of lock screen notifications is in a selected state, and the setting control 703 for hiding the content of lock screen notifications is in an unselected state. Subsequently, the electronic device exits the setting application and displays the lock screen interface.

[0123] When an electronic device receives a new notification message on the lock screen interface, the electronic device can display Figure 7 The interface shown in b. Figure 7 In the interface shown in b, the electronic device may briefly display a notification box 704 of a newly received notification message.

[0124] The time threshold for the electronic device to display the notification box 704 can be customized. When the time for displaying the notification box 704 does not reach the time threshold, the electronic device may receive a new push notification message, such as Figure 7 When the time for displaying the notification box reaches the time threshold, the electronic device can cancel the display of the notification box, such as Figure 7 As shown in the d interface.

[0125] Next, we will first introduce the electronic equipment Figure 7 Enter the interface shown in b Figure 7 The process of the interface shown in c is explained.

[0126] exist Figure 7 In the interface shown in b, the notification box 704 may include a notification message pushed by a text message application. During the process of the electronic device displaying the notification box 704 of the text message application, the electronic device receives a notification message pushed by a weather application, and the electronic device enters Figure 7 The interface shown in c. Figure 7 In the interface shown in c, the notification box 705 of the weather application replaces the notification box 704 of the SMS application, and after the notification box 704 of the SMS application is canceled, the electronic device displays notification reminder text 706. The notification reminder text 706 can be used to remind the number of currently folded notification messages (or applications that push notification messages); the notification reminder text 706 can be "1 notification".

[0127] In some embodiments, when displaying or canceling the notification box 704 or the notification box 706, the electronic device may set an animation of the notification box. For example, the animation may be a method of pushing from the top to the bottom.

[0128] The following describes a scenario in which an electronic device cancels display of a notification box.

[0129] exist Figure 7In the interface shown in c, the electronic device may display a notification box 705 for a period of time. When the time for displaying the notification box 705 reaches a time threshold, the electronic device enters Figure 7 The interface shown in d. Figure 7 In the interface shown in d in FIG. 1 , the electronic device cancels the display of the notification box 705, and the electronic device displays the notification reminder text 707 indicating the number of notification messages. The number of notifications in the notification reminder text 707 increases by 1, for example, the content of the notification reminder text 706 is "1 notification", and the content of the notification reminder text 707 is "2 notifications".

[0130] It is understandable that when the electronic device does not display the notification box, the notification box is also folded, so the number of notifications in the notification reminder text increases.

[0131] It should be noted that the area where the notification reminder text of the notification message number is located may correspond to a control, and when the notification reminder text is triggered, the electronic device can expand and display the notification message. For example, when the electronic device receives a trigger operation for the notification reminder text 707, the electronic device enters Figure 7 The interface shown in e. Figure 7 In the interface shown in e, the electronic device can list notification boxes of notification messages, wherein the number of notification boxes is the same as the notification reminder text. For example, the notification reminder text 707 shows that there are 2 notifications. Figure 7 In the interface shown in e, notification box 708 and notification box 709 are displayed.

[0132] It can be seen that Figure 7 The interface shown in d is the same as Figure 4 Therefore, when setting the lock screen application display style, the user can intuitively understand the effect of displaying the number of lock screen notifications through schematic diagram 408; further, the electronic device folds multiple notification messages and displays the number of notification messages in the lock screen interface, without displaying multiple notification boxes. In this way, the lock screen notification interface is more concise and beautiful, thereby improving the user experience.

[0133] Scenario 4: The lock screen notification display style can display the number of notifications and hide the notification content. Figure 8 A schematic diagram of a lock screen notification interface provided by an embodiment of the present application is shown, such as Figure 8 As shown:

[0134] The electronic device can display a lock screen notification setting interface, such as Figure 8As shown in the a interface in FIG, a lock screen notification setting pop-up window 801 is displayed in the lock screen notification setting interface, and the lock screen notification setting pop-up window 801 includes a setting control 802 for displaying the number of lock screen notifications and a setting control 803 for hiding the content of lock screen notifications. Among them, the setting control 802 for displaying the number of lock screen notifications is in a selected state, and the setting control 803 for hiding the content of lock screen notifications is also in a selected state. Subsequently, the electronic device exits the setting application and displays the lock screen interface.

[0135] When an electronic device receives a new notification message on the lock screen interface, the electronic device can display Figure 8 The interface shown in b. Figure 8 In the interface shown in b, the electronic device may briefly display a notification box 804 of a newly received notification message, and the electronic device may display notification reminder text 805 indicating the number of notification messages. For example, the notification reminder text 805 may be: 1 notification.

[0136] When the time for which the electronic device displays the notification box 804 reaches a time threshold, the electronic device enters the state of Figure 8 The interface shown in c. Figure 8 In the interface shown in c, the electronic device cancels display of the notification box, and the electronic device displays notification reminder text 806 indicating the number of notification messages; wherein the number of notifications in the notification reminder text 806 increases by 1, for example, the content of the notification reminder text 805 is "1 notification", and the content of the notification reminder text 806 is "2 notifications".

[0137] When the electronic device receives a trigger operation for the notification reminder text 806, the electronic device enters Figure 8 The interface shown in d. Figure 8 In the interface shown in d, the electronic device can list the notification boxes of the notification messages, and the notification boxes do not display the specific content of the notification messages, wherein the number of notification boxes is the same as the notification reminder text, for example, the notification reminder text 806 shows that there are 2 notifications, Figure 8 In the interface shown in d, notification box 807 and notification box 808 are displayed.

[0138] It should be noted that, in the embodiment of the present application, the number of notifications in the notification reminder text can be understood as the number of applications that push notifications to the electronic device. For example, the two notifications in the notification reminder text 806 can correspond to: a notification box 807 of a weather application and a notification box 808 of a text message application. The number of notifications in the notification box can be understood as the number of notifications pushed by the application to the electronic device. For example, the electronic device receives two notifications pushed by the text message application, and the notification box 808 of the text message application displays two notifications.

[0139] In the embodiment of the present application, the number of notifications corresponding to the notification reminder text may also correspond to the total number of notifications pushed by multiple applications, for example, Figure 8 There are a total of 3 notifications in the interface shown in d, and the notification reminder text can also be displayed as "3 notifications". This embodiment of the present application does not limit this.

[0140] Scene 5: Lock screen notification display style can be set to not display lock screen notifications. Fig. 9 A schematic diagram of a lock screen notification interface provided by an embodiment of the present application is shown, such as Fig. 9 As shown:

[0141] The electronic device can display a lock screen notification setting interface, such as Fig. 9 As shown in interface a of FIG. 1 , a lock screen notification setting pop-up window 901 is displayed in the lock screen notification setting interface, and the lock screen notification setting pop-up window 901 includes a setting control 902 for not displaying lock screen notifications. When the electronic device receives a trigger operation for setting control 902 for not displaying lock screen notifications, the electronic device enters Fig. 9 The interface shown in b.

[0142] exist Fig. 9 In the interface shown in b in FIG. 1 , the electronic device displays a prompt pop-up window 903, which includes prompt text. The prompt text can be used to prompt the user that after turning on not displaying lock screen notifications, the electronic device cannot display lock screen notifications. The prompt pop-up window 903 includes a cancel control 904 and a do not display notification control 905. The cancel control 904 can be used to instruct the electronic device not to set the lock screen notification display style to not display lock screen notifications, and the do not display notification control 905 can be used to instruct the electronic device to set the lock screen notification display style to not display lock screen notifications.

[0143] The user can choose whether to not display the lock screen notification according to their own needs. When the electronic device receives a trigger operation for not displaying the notification control 905, the electronic device can enter Fig. 9 In this interface, the electronic device sets the state of the setting control 906 for not displaying the lock screen notification to a selected state, and does not display the setting control for hiding the lock screen notification content. Subsequently, the electronic device can exit the setting application.

[0144] It is understandable that when the user chooses not to display lock screen notifications, the electronic device will not display any notifications on the lock screen. When the user mistakenly operates this item, it may cause great confusion. Therefore, when this option is selected, a prompt box will be displayed to prevent the user from making mistakes and explain to the user the impact of selecting this item.

[0145] When the electronic device receives a notification message pushed by an application, the electronic device may display a lock screen interface, such as Fig. 9 As shown in the d interface in. In this interface, the electronic device does not display notification messages.

[0146] It should be noted that the embodiment of the present application reminds the user in the form of a prompt pop-up box 903. The embodiment of the present application may also remind the user in other ways, and the embodiment of the present application is not limited to this.

[0147] In an embodiment of the present application, before the electronic device sets the lock screen notification display style to not display the lock screen notification, the electronic device may prompt the user that the electronic device cannot display the notification message after the modification, thereby reducing user errors.

[0148] The above embodiments illustrate the scenario of displaying lock screen notifications provided by the embodiments of the present application. Fig.10 A method for displaying a lock screen notification provided in an embodiment of the present application is described.

[0149] Fig.10 FIG. 1 is a flow chart showing a method for displaying a lock screen notification provided by an embodiment of the present application. Fig.10 As shown:

[0150] The electronic device may include an application layer and an application framework layer, wherein the application layer may include a control module, a system manager and a SystemUI, and the application framework layer may include a settings database. The control may correspond to, for example, Figure 4 In the interface shown in c, there is a setting control 404 for displaying the number of lock screen notifications, a setting control 405 for displaying the lock screen notifications in a list, a setting control 406 for not displaying the lock screen notifications, and a setting control 407 for hiding the lock screen notification content.

[0151] The process of setting the lock screen notification display style of the electronic device may be as shown in steps S1001-S1004:

[0152] S1001: When the electronic device receives a click operation on a target control by a user, the control module monitors the target click event.

[0153] The target controls include a first control, a second control, a third control, and a fourth control. The first control corresponds to a setting control for displaying the number of lock screen notifications, the second control corresponds to a setting control for displaying lock screen notifications in a list, the third control corresponds to a setting control for not displaying lock screen notifications, and the fourth control corresponds to a setting control for hiding the content of lock screen notifications.

[0154] When the user intends to set the lock screen notification display style, the user can make the electronic device display the lock screen notification setting interface. For example, the electronic device can display Figure 4 In the interface shown in c, Figure 4The interface shown in c in FIG. 8 shows target controls, including: a setting control 404 for displaying the number of lock screen notifications, a setting control 405 for displaying the lock screen notifications in a list, a setting control 406 for not displaying the lock screen notifications, and a setting control 407 for hiding the lock screen notification content.

[0155] After the user clicks any of the above target controls, the electronic device may receive a click operation on the target control, and the control module may monitor the click operation to obtain a corresponding target click event.

[0156] The click event may include a first click event, a second click event, a third click event, a fourth click event, and a fifth click event; wherein the first click event may correspond to a click operation on the first control, the second click event may correspond to a click operation on the second control, and the third click event may correspond to a click operation on the third control. It is understandable that the first control, the second control, and the third control may be controls with mutually exclusive functions, for example, when the user clicks the first control, the second control and the third control are both in an unselected state.

[0157] The fourth click event and the fifth click event may correspond to click operations on the fourth control, wherein the fourth click event may be setting the fourth control to a selected state, and the fifth click event may be setting the fourth control to an unselected state.

[0158] It is understandable that when the user selects the lock screen notification display style, the user can click on any of the three controls: setting control 404 for displaying the number of lock screen notifications, setting control 405 for displaying the lock screen notifications in a list, and setting control 406 for not displaying the lock screen notifications; and / or, can click on setting control 407 for hiding the lock screen notification content.

[0159] Therefore, in the embodiment of the present application, the target click event can be a single click event or multiple click events. For example, the click operation can be triggered once, the user clicks the first control, and accordingly, the target click event includes the first click event. Target click event; for another example, the click operation can be two clicks, for example, the user clicks the first control and then clicks the fourth control, and accordingly, the target click event includes the first click event and the fourth click event.

[0160] S1002: The control module reports the target click event to the system manager.

[0161] After the control module monitors the target click event, the control module may report the target click event to the system manager so that the system manager can manage the target click event.

[0162] S1003: The system manager instructs the settings database to set the first field and the second field to values ​​that match the target click event, respectively.

[0163] The first field can be used to indicate the display type of the lock screen notification display style displayed by SystemUI, and the display types include displaying the number of lock screen notifications, displaying lock screen notifications in a list, and not displaying lock screen notifications; the first field can be a display type field, for example, the display type field is lock_screen_show_notifications.

[0164] The value of the first field may include a first value, a second value, and a third value. For example, the first value may be 2, the second value may be 1, and the third value may be 0. The present application does not limit the specific form of the value of the first field. The first value of the first field may be used to instruct SystemUI to display the lock screen notification display style as displaying the number of lock screen notifications, the second value of the first field may be used to instruct SystemUI to display the lock screen notification display style as displaying the lock screen notification in a list; the third value of the first field may be used to instruct SystemUI to display the lock screen notification display style as not displaying the lock screen notification.

[0165] The second field is used to indicate whether SystemUI hides the lock screen notification content. The second field may be a whether to hide notification field, for example, whether to hide notification field is lock_screen_allow_private_notifications. The value of the second field may include a fourth value and a fifth value, for example, the fourth value may be 1, and the fifth value may be 0. The fourth value of the second field may be used to indicate that SystemUI hides the lock screen notification content, and the fifth value of the second field may be used to indicate that SystemUI displays the lock screen notification content.

[0166] The system manager instructs the settings database to set the first field and the second field to values ​​that match the target click event, including:

[0167] a) When the target click event includes a first click event, the system manager instructs the settings database to set the first field to a first value.

[0168] Or, b) when the target click event includes a second click event, the system manager instructs the settings database to set the first field to the second value.

[0169] Or, c) when the target click event includes a third click event, the system manager instructs the settings database to set the first field to a third value.

[0170] And / or, d) when the target click event includes a fourth click event, the system manager instructs the settings database to set the second field to a fourth value.

[0171] And / or, e) when the target click event includes a fifth click event, the system manager instructs the settings database to set the second field to a fifth value.

[0172] Specifically, the target click event can be one click event or two click events; when the target click event includes two click events, the electronic device can modify the values ​​of the first field and the second field by combining the setting items in (a)-(c) with the setting items in (d)-(f).

[0173] It should be noted that when the target click event includes a click event, the settings database can modify the field corresponding to the click event to a value that matches the click event according to the instructions of the system manager; for example, the electronic device receives a click operation for the first control, and does not receive a click operation for the fourth control; the settings database can set the first field to the first value. However, for the fourth control, the electronic device does not listen to the fourth click event or the fifth click event. At this time, the settings database can read the default value of the second field from the system manager. The default value can be the original value corresponding to the field in the electronic device, or it can be the field value set when the last click operation for the setting control was received. The embodiment of the present application does not limit this. For example, the default value of the first field can be the second value, and the second value is 1; the default value of the second field can be the fourth value, and the fourth value is 1.

[0174] The embodiment of the present application provides a method for displaying a lock screen notification, wherein when the electronic device receives a user's click operation on a target control, the control module monitors the target click event; the control module reports the target click event to the system manager; the system manager instructs the settings database to set the first field and the second field to values ​​that match the target click event. In this way, the user can select the lock screen notification display style, and the electronic device can subsequently display the user's desired display style according to the setting item selected by the user, thereby improving the user's experience.

[0175] In a possible implementation, when the electronic device sets the first control or the second control to a selected state, the system manager can set the property of the fourth control to be visible. When the electronic device sets the third control to a selected state, the system manager can set the property of the fourth control to be invisible, thereby achieving the following Fig. 9 The interface shown in c.

[0176] The above embodiment describes the process of setting the lock screen notification display style. Fig.11 A method for displaying a lock screen notification provided in an embodiment of the present application is described.

[0177] S1101. SystemUI reads the value of the first field and the value of the second field in the settings database.

[0178] In one possible implementation, the electronic device may reload the value of the first field and the value of the second field in the settings database when it is turned on, the SystemUI is initialized, or when it detects that the value of the first field and the second field in the settings database has changed, so that subsequent electronic devices can accurately display the corresponding lock screen notification interface.

[0179] S1102: When the electronic device is in a locked screen state, the electronic device receives a notification message.

[0180] When the electronic device is in the locked screen state, it can receive notification messages pushed by the application. The electronic device can report the notification message to the SystemUI through the notification manager.

[0181] S1103. SystemUI draws a lock screen notification interface according to the value of the first field and the value of the second field.

[0182] The lock screen notification interface can be Figure 5 The interface shown in b, Figure 6 The interface shown in b, Figure 7 The interface shown in d, Figure 8 The interface shown in c and Fig. 9 The interface shown in d.

[0183] Specifically, 1) when the value of the first field is the first value and the value of the second field is the fourth value, the electronic device displays the following Figure 8 When the electronic device receives a trigger operation for the notification reminder text 806, the following is displayed: Figure 8 The interface shown in d.

[0184] 2) When the value of the first field is the first value and the value of the second field is the fifth value, the electronic device displays the following Figure 7 When the electronic device receives a trigger operation for the notification reminder text 707, the following is displayed: Figure 7 The interface shown in e.

[0185] 3) When the value of the first field is the second value and the value of the second field is the fourth value, the electronic device displays the following Figure 6 The interface shown in b.

[0186] 4) When the value of the first field is the second value and the value of the second field is the fifth value, the electronic device displays the following Figure 5 The interface shown in b.

[0187] 5) When the value of the first field is the third value, the electronic device displays Fig. 9 The interface shown in d.

[0188] In one possible implementation, the electronic device may set the display method of the lock screen notification provided by the embodiment of the present application in the electronic device by updating the system version.

[0189] Specifically, during the electronic device cloning or version upgrade process, the electronic device may download a patch package, which may include the first value of the first field. The second value and the third value of the first field and the fourth value and the fifth value of the second field may be inherited from the settings database before the update. In this way, the updated settings database may include the first value, the second value and the third value of the first field and the fourth value and the fifth value of the second field.

[0190] It should be noted that when the updated electronic device enters the lock screen notification setting interface for the first time, the first control is in an unselected state; or, the updated electronic device has not set the lock screen notification display style, then when the electronic device receives the lock screen notification, the electronic device displays the following Figure 5 In the b interface, Figure 6 b interface or Fig. 9 As shown in the d interface.

[0191] This is because the electronic device before the update does not include the first value of the first field, and the electronic device after the update inherits the value of the first field and the value of the second field of the electronic device before the update. For example, if the first field of the electronic device before the update is the second value and the second field is the fourth value, then the first field of the electronic device after the update is also the second value and the second field is also the fourth value. Therefore, the initial lock screen notification display style of the electronic device after the update will not appear, for example Figure 7 d interface and Figure 8 In the c interface.

[0192] Fig.12 FIG. 1 shows an internal interaction diagram of each software module in an electronic device provided by an embodiment of the present application. Fig.12 As shown:

[0193] The electronic device includes an application layer and an application framework layer, wherein the application layer includes a control module, a system manager and a SystemUI, and the application framework layer includes a settings database.

[0194] Fig.12 In the figure, the left side of the dotted line is the setting process of the lock screen notification display style, and the right side of the dotted line is the display process of the lock screen notification.

[0195] During the setting process, the electronic device may display a lock screen notification setting interface. When the electronic device receives a click operation on a target control in the lock screen notification setting interface, the control module may monitor the target click event. The control module reports the target click event to the system manager, and the system manager instructs the settings database to set the value of the first field and the value of the second field to values ​​that match the target click event.

[0196] During the display process, the system UI of the electronic device can read the value of the first field and the value of the second field from the settings database, and when a notification message arrives, it draws the corresponding lock screen notification interface according to the value of the first field and the value of the second field and displays it.

[0197] Based on the above embodiments, the present application provides a method for displaying a lock screen notification. For example, Fig.13 A flowchart of a method for displaying a lock screen notification provided in an embodiment of the present application.

[0198] like Fig.13 As shown, the method for displaying the lock screen notification may include the following steps:

[0199] S1301. The electronic device displays a first interface.

[0200] The first interface includes a first control, a second control, a third control and a fourth control; wherein the first control is used to set the lock screen notification of the first mode, the second control is used to set the lock screen notification of the second mode, the third control is used to set the lock screen notification of the third mode, and the fourth control is used to set whether to hide the notification content of the lock screen notification; wherein, when the first control or the second control is selected, the fourth control is displayed and the fourth control can be set; when the third control is selected, the fourth control is not displayed.

[0201] The first interface may correspond to Figure 4 In the interface shown in c in FIG. 1 , the first control may correspond to the setting control 404 for displaying the number of lock screen notifications, the second control may correspond to the setting control 405 for displaying the lock screen notifications in a list, the third control may correspond to the setting control 406 for not displaying the lock screen notifications, and the fourth control may correspond to the setting control 407 for hiding the content of the lock screen notifications. The first mode may be a mode corresponding to displaying the number of lock screen notifications, the second mode may be a mode corresponding to displaying the lock screen notifications in a list, and the third mode may be a mode corresponding to not displaying the lock screen notifications.

[0202] It is understandable that when the first control or the second control is selected, the electronic device may display a fourth control, for example, Figure 5In the interface shown in a of FIG. 1 , the list shows that the setting control 502 for lock screen notification is selected, and the electronic device can display the setting control 503 for hiding the lock screen notification content. However, when the third control is selected, the electronic device does not display the fourth control. For example, in Fig. 9 In the interface shown in c, the setting control 406 for not displaying lock screen notifications is in a selected state, and the electronic device does not display the setting control for hiding the lock screen notification content.

[0203] S1302: When receiving a selection operation for either the first control or the second control, the electronic device sets a field corresponding to either control to a value corresponding to either control.

[0204] Among them, there is a corresponding relationship between controls and values ​​in electronic devices. For example:

[0205] The first control corresponds to the first field, and the value of the first field is a first value, which may be 2.

[0206] The second control corresponds to the first field, and the value of the first field is the second value, which may be 1.

[0207] The third control corresponds to the first field, and the value of the first field is the third value, which may be 0.

[0208] The fourth control corresponds to the second field. When the fourth control is selected, the second field is a fourth value, which may be 1; when the fourth control is not selected, the second field is a fifth value, which may be 0.

[0209] For step S1302, reference may be made to the relevant descriptions in steps S1001-S1003, which will not be repeated here.

[0210] S1303: When the electronic device receives a notification message in the locked screen state, the electronic device displays a locked screen notification interface.

[0211] Among them, the lock screen notification interface is related to the value of the field corresponding to any one of the controls and the value of the field corresponding to the fourth control.

[0212] The lock screen notification interface can correspond to Figure 5 The interface shown in b, Figure 6 The interface shown in b, Figure 7 The interface shown in d and Figure 8 The interface shown in c.

[0213] For step S1303, reference may be made to the relevant descriptions in steps S1101-S1103, which will not be repeated here.

[0214] A method for displaying a lock screen notification provided by an embodiment of the present application includes: an electronic device displays a first interface; when a selection operation is received for any one of the first control or the second control, the electronic device sets a field corresponding to any one of the controls to a value corresponding to any one of the controls; when the electronic device receives a notification message in a lock screen state, the electronic device displays a lock screen notification interface. In this way, the electronic device can display a variety of lock screen notification display modes, enriching the interaction scenarios between the electronic device and the user under the lock screen notification and improving the user experience.

[0215] Optionally, the electronic device includes a control module, a system manager, and a settings database, wherein the control module is used to monitor a click event corresponding to a selection operation; when a selection operation is received for either the first control or the second control, the electronic device sets a field corresponding to either control to a value corresponding to either control, including:

[0216] When a selection operation is received for the first control, the control module listens to the click event corresponding to the first control; the control module reports the click event corresponding to the first control to the system manager; the system manager instructs the settings database to set the first field to the first value; the first value of the first field is used to represent that the display mode of the lock screen notification is set to the first mode.

[0217] Alternatively, when a selection operation is received for the second control, the control module monitors the click event corresponding to the second control and reports the click event corresponding to the second control to the system manager; the system manager instructs the settings database to set the first field to the second value; the second value of the first field is used to represent that the display mode of the lock screen notification is set to the second mode.

[0218] The click event corresponding to the first control may be a first click event, and the click event corresponding to the second control may be a second click event. The process may refer to the relevant descriptions in steps S1001-S1003, which will not be described in detail.

[0219] Optionally, the electronic device further includes a systemUI, which includes:

[0220] When the first control is selected, the systemUI reads the first value of the first field in the settings database; the electronic device displays a lock screen notification interface, including: the systemUI draws and displays a lock screen notification interface of a first mode according to the first value of the first field.

[0221] Alternatively, when the second control is selected, the systemUI reads the second value of the first field in the settings database; the electronic device displays a lock screen notification interface, including: the systemUI draws and displays a lock screen notification interface of the second mode according to the second value of the first field.

[0222] Among them, the lock screen notification interface of the first mode may correspond to Figure 7 The interface shown in d or Figure 8 The second mode of the lock screen notification interface may correspond to Figure 5 The interface shown in b and Figure 6 The process can refer to the relevant descriptions of steps S1101-S1103, which will not be repeated here.

[0223] Optionally, the method further includes:

[0224] When a selection operation is received for a third control, the electronic device sets the field corresponding to the third control to the value corresponding to the third control; wherein, there is a corresponding relationship between controls and values ​​in the electronic device; when the electronic device receives a notification message in the lock screen state, the electronic device displays a lock screen notification interface, wherein the lock screen notification interface is related to the value of the field corresponding to the third control.

[0225] Among them, the lock screen notification interface can correspond to Fig. 9 The interface is shown in d; the value of the field corresponding to the third control is the third value of the first field.

[0226] It should be noted that the lock screen notification interface is related to the third value of the first field and has nothing to do with the second field (the field corresponding to the fourth control).

[0227] Optionally, when a selection operation is received for a third control, the electronic device sets the field corresponding to the third control to the value corresponding to the third control; including: when a selection operation is received for the third control, the control module monitors a click event corresponding to the third control; the control module reports the click event corresponding to the third control to the system manager; the system manager instructs the settings database to set the first field to a third value; the third value of the first field is used to represent that the display mode of the lock screen notification is set to the third mode.

[0228] The process may refer to the relevant description in steps S1001-S1003, which will not be repeated here.

[0229] Optionally, before the electronic device displays the lock screen notification interface, it includes:

[0230] The systemUI reads the third value of the first field in the settings database; the electronic device displays a lock screen notification interface, including: the systemUI draws and displays a lock screen notification interface of a third mode according to the third value of the first field.

[0231] Among them, the lock screen notification interface of the third mode can correspond to Fig. 9 The interface shown in d.

[0232] The process can refer to the relevant description in steps S1101-S1103, which will not be repeated here.

[0233] Optionally, the method further includes:

[0234] When the third control is selected, the system manager sets the fourth control to be invisible.

[0235] The fourth control is set to invisible to correspond to Fig. 9 In the interface shown in c, the electronic device does not display a setting button for hiding the lock screen notification content.

[0236] Optionally, before the electronic device receives the notification message in the locked screen state, the method further includes:

[0237] When receiving a selection operation for the fourth control, the electronic device sets the field corresponding to the fourth control to a fourth value; or, when receiving a non-selection operation for the fourth control, the electronic device sets the field corresponding to the fourth control to a fifth value.

[0238] Among them, the field corresponding to the fourth control may be the second field.

[0239] Optionally, in the lock screen state, the lock screen notification of the first mode is displayed as notification reminder text, and the notification reminder text is used to prompt the number of applications that have pushed notification messages; the lock screen notification of the second mode is displayed as a notification box of one or more notification messages in the form of a list, wherein a notification box includes one or more notification messages pushed by an application; the lock screen notification of the third mode is displayed as not displaying the notification message after receiving the notification message.

[0240] Notification reminder text can correspond to Figure 7 The notification reminder text 707 in the interface shown in d, or corresponding to Figure 8 The notification reminder text 806 in the interface shown in c in FIG. The notification box may correspond to Figure 5 The notification box 504 of the weather application, the notification box 505 of the SMS application, and the notification box 506 of the WeChat application in the interface shown in b in FIG. Figure 6 In the interface shown in b, there is a notification box 604 of the weather application, a notification box 605 of the SMS application, and a notification box 606 of the WeChat application.

[0241] Optionally, the first interface also includes a schematic diagram corresponding to the first control, a schematic diagram corresponding to the second control, and a schematic diagram corresponding to the third control; the schematic diagram corresponding to the first control is used to represent that in the first mode, the electronic device displays the number of applications that push notification messages at the bottom of the lock screen interface; the schematic diagram corresponding to the second control is used to represent that in the second mode, the electronic device displays a notification box for multiple notification messages on the lock screen interface; the schematic diagram corresponding to the third control is used to represent that in the third mode, the electronic device does not display any notification message on the lock screen interface.

[0242] in, Figure 4 The interface shown in c also includes: schematic diagram 408, schematic diagram 409 and schematic diagram 410, which respectively correspond to: displaying the number of lock screen notifications, displaying the lock screen notifications in a list, and not displaying the lock screen notifications.

[0243] Optionally, the method further includes:

[0244] 1) At a first moment, when a first control is selected and the electronic device receives a first notification of a first application in a locked screen state, the electronic device displays a second interface; wherein the second interface includes a notification box of the first notification.

[0245] Among them, the second interface can correspond to Figure 7 In the interface shown in b, the first application corresponds to the SMS application, the first notification corresponds to the notification message of the SMS application, and the notification box of the first notification corresponds to the notification box 704 of the SMS application.

[0246] 2) At a second moment, when the electronic device receives a second notification from the second application in a locked screen state, the electronic device displays a third interface; wherein the third interface includes a notification box for the second notification, and the third interface does not include a notification box for the first notification, and the third interface also includes a first notification prompt text; the first notification reminder text is used to prompt that there are N-1 notifications; N-1 corresponds to the number of applications other than the second application; the first moment is earlier than the second moment, and the time difference between the first moment and the second moment is less than a preset time.

[0247] The preset time may be a time threshold, the second application may correspond to a weather application, the second notification may be a notification message of the weather application, and the third interface may correspond to Figure 7 In the interface shown in c in the figure, the third interface displays the notification box 705 of the weather application, and does not display the notification box of the text message application. The third interface also includes a first notification reminder text, which corresponds to the notification reminder text 706. The notification reminder text 706 is used to remind the user that in addition to the currently displayed weather application, another application has pushed a notification to the electronic device.

[0248] Alternatively, the third interface may correspond to Figure 8In the interface shown in b, the third interface displays a notification box 804 of the weather application and notification reminder text 805.

[0249] 3) At the third moment, the electronic device displays a fourth interface, the fourth interface does not include a notification box for the second notification, and the fourth interface includes a second notification reminder text, the second notification reminder text is used to prompt that there are N notifications; the second moment is earlier than the third moment, and the time difference between the second moment and the third moment is greater than or equal to the preset time.

[0250] Among them, the fourth interface may correspond to Figure 7 In the interface shown in d in FIG. 1 , the notification box of the weather application is not displayed in the fourth interface. The second notification reminder text may correspond to the notification reminder text 707.

[0251] Alternatively, the fourth interface may correspond to Figure 8 In the interface shown in c in FIG. 8 , the notification box of the weather application is not displayed in the fourth interface. The second notification reminder text may correspond to the notification reminder text 806.

[0252] 4) At the fourth moment, the electronic device receives a trigger operation for the second notification prompt text, and the electronic device displays a fifth interface including N notification boxes.

[0253] Among them, the fifth interface corresponds to Figure 7 The interface shown in e in the figure, or the fifth interface corresponds to Figure 8 The interface shown in d.

[0254] Optionally, also include:

[0255] 1) When the electronic device receives a selection operation for the third control on the first interface, the electronic device displays the sixth interface; the sixth interface includes prompt text, the fifth control and the sixth control, the prompt text is used to prompt that after the third mode is selected, the electronic device does not display any notification message on the lock screen interface; the fifth control is used to cancel the selection of the third mode; the sixth control is used to confirm the selection of the third mode.

[0256] Among them, the sixth interface corresponds to Fig. 9 In the interface shown in b, the prompt text corresponds to the prompt text in the prompt pop-up window 903, the fifth control corresponds to the cancel control 904, and the sixth control corresponds to the do not display notification control 905.

[0257] 2) When the electronic device receives a trigger operation for the sixth control, the electronic device displays a seventh interface, which includes the first control, the second control, and the third control, but does not include the fourth control, wherein the third control is selected.

[0258] Among them, the seventh interface corresponds to Fig. 9In the interface shown in c, the seventh interface displays the setting control 906 for not displaying lock screen notifications in a selected state, and does not display the setting control for hiding the lock screen notification content.

[0259] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0260] The display method of the lock screen notification in the embodiment of the present application has been described above. The device for executing the display method of the lock screen notification provided in the embodiment of the present application is described below. Those skilled in the art can understand that the method and the device can be combined and referenced with each other, and the relevant device provided in the embodiment of the present application can execute the steps in the display method of the lock screen notification.

[0261] like Fig.14 As shown, the display device 1400 for lock screen notification can be used in a communication device, circuit, hardware component or chip, and the display device for lock screen notification includes: a display unit 1401 and a processing unit 1402. Among them, the display unit 1401 is used to support the display step performed by the display device 1400 for lock screen notification; the processing unit 1402 is used to support the display device 1400 for lock screen notification to perform information processing steps.

[0262] In a possible implementation, the display device 1400 of the lock screen notification may also include a communication unit 1403. Specifically, the communication unit is used to support the display device 1400 of the lock screen notification to perform the steps of sending data and receiving data. Among them, the communication unit 1403 can be an input or output interface, a pin or a circuit, etc.

[0263] In some embodiments, the display device 1400 of the lock screen notification may further include: a storage unit 1404. The processing unit 1402 and the storage unit 1404 are connected via a line. The storage unit 1404 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 1404 may exist independently and be connected to the processing unit 1402 of the display device of the lock screen notification via a communication line. The storage unit 1404 may also be integrated with the processing unit 1402.

[0264] The storage unit 1404 may store computer-executable instructions of the method in the terminal device so that the processing unit 1402 executes the method in the above embodiment. The storage unit 1404 may be a register, a cache, or a RAM, etc. The storage unit 1404 may be integrated with the processing unit 1402. The storage unit 1404 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1404 may be independent of the processing unit 1402.

[0265] The *** method provided in the embodiment of the present application can be applied to electronic devices with communication functions. The electronic devices include terminal devices, and the specific device form of the terminal devices can refer to the above related descriptions, which will not be repeated here.

[0266] An embodiment of the present application provides a terminal device, which includes: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the above method.

[0267] The embodiment of the present application provides a chip. The chip includes a processor, and the processor is used to call a computer program in a memory to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

[0268] The embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. The above method is implemented when the computer program is executed by the processor. The method described in the above embodiment can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. If implemented in software, the function can be stored as one or more instructions or codes on a computer-readable medium or transmitted on a computer-readable medium. Computer-readable media can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium that can be accessed by a computer.

[0269] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disk storage, disk storage or other magnetic storage devices, or any other medium that is intended to carry or store the required program code in the form of instructions or data structures and can be accessed by a computer. Moreover, any connection is appropriately referred to as a computer-readable medium. For example, if a coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL) or wireless technology (such as infrared, radio and microwave) is used to transmit software from a website, server or other remote source, the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disks and optical disks as used herein include optical disks, laser disks, optical disks, digital versatile disks (DVD), floppy disks and Blu-ray disks, where disks usually reproduce data magnetically, while optical disks reproduce data optically using lasers. Combinations of the above should also be included in the scope of computer-readable media.

[0270] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the above method.

[0271] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to generate a machine, so that the instructions executed by the processing unit of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0272] The above specific implementation methods further illustrate the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above are only specific implementation methods of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for displaying a lock screen notification, characterized in that: include: The electronic device displays a first interface, the first interface includes a first control, a second control, a third control and a fourth control; wherein the first control is used to set a lock screen notification of a first mode, the second control is used to set a lock screen notification of a second mode, the third control is used to set a lock screen notification of a third mode, and the fourth control is used to set whether to hide the notification content of the lock screen notification; wherein, when the first control or the second control is selected, the fourth control is displayed and the fourth control can be set; when the third control is selected, the fourth control is not displayed; When receiving a selection operation for any one of the first control or the second control, the electronic device sets the field corresponding to the any one of the controls to the value corresponding to the any one of the controls; wherein the electronic device has a correspondence between controls and values; When the electronic device receives a notification message in the lock screen state, the electronic device displays a lock screen notification interface, wherein the lock screen notification interface is related to the value of the field corresponding to any one of the controls and the value of the field corresponding to the fourth control.

2. The method according to claim 1, characterized in that The electronic device includes a control module, a system manager, and a settings database, wherein the control module is used to monitor a click event corresponding to the selection operation; when a selection operation for any one of the first control or the second control is received, the electronic device sets a field corresponding to any one of the controls to a value corresponding to the any one of the controls, including: When receiving a selection operation for the first control, the control module monitors a click event corresponding to the first control; The control module reports the click event corresponding to the first control to the system manager; The system manager instructs the settings database to set the first field to a first value; the first value of the first field is used to indicate that the display mode of the lock screen notification is set to the first mode; Alternatively, when receiving a selection operation on the second control, the control module monitors a click event corresponding to the second control; The control module reports the click event corresponding to the second control to the system manager; The system manager instructs the settings database to set the first field to a second value; the second value of the first field is used to represent that the display mode of the lock screen notification is set to the second mode.

3. The method according to claim 1 or 2, characterized in that: The electronic device further includes a system user interface systemUI, which includes: When the first control is selected, the systemUI reads a first value of a first field in a settings database; The electronic device displays a lock screen notification interface, comprising: the systemUI draws and displays the lock screen notification interface of the first mode according to the first value of the first field; Alternatively, when the second control is selected, the systemUI reads the second value of the first field in the settings database; The electronic device displays a lock screen notification interface, including: the systemUI draws and displays the lock screen notification interface of the second mode according to the second value of the first field.

4. The method according to claim 1, characterized in that: Also includes: When receiving a selection operation for the third control, the electronic device sets the field corresponding to the third control to the value corresponding to the third control; wherein the electronic device has a corresponding relationship between controls and values; When the electronic device receives a notification message in the lock screen state, the electronic device displays a lock screen notification interface, wherein the lock screen notification interface is related to the value of the field corresponding to the third control.

5. The method according to claim 4, characterized in that When receiving a selection operation for the third control, the electronic device sets the field corresponding to the third control to a value corresponding to the third control; including: When receiving a selection operation for the third control, the control module monitors a click event corresponding to the third control; The control module reports the click event corresponding to the third control to the system manager; The system manager instructs the settings database to set the first field to a third value; the third value of the first field is used to indicate that the display mode of the lock screen notification is set to the third mode.

6. The method according to claim 4 or 5, characterized in that: Before the electronic device displays the lock screen notification interface, it includes: SystemUI reads the third value of the first field in the settings database; The electronic device displays a lock screen notification interface, including: the systemUI draws and displays the lock screen notification interface of the third mode according to the third value of the first field.

7. The method according to any one of claims 4 to 6, characterized in that: Also includes: When the third control is selected, the system manager sets the fourth control to be invisible.

8. The method according to claim 1, characterized in that Before the electronic device receives a notification message in a locked screen state, the method further includes: When receiving a selection operation for the fourth control, the electronic device sets the field corresponding to the fourth control to a fourth value; Or, when a non-selection operation is received for the fourth control, the electronic device sets the field corresponding to the fourth control to a fifth value.

9. The method according to any one of claims 1 to 8, characterized in that: In the lock screen state, the lock screen notification of the first mode is displayed as notification reminder text, and the notification reminder text is used to prompt the number of applications that have pushed notification messages; the lock screen notification of the second mode is displayed as a notification box of one or more notification messages in the form of a list, wherein one notification box includes one or more notification messages pushed by one application; the lock screen notification of the third mode is displayed as not displaying the notification message after receiving the notification message.

10. The method according to any one of claims 1 to 9, characterized in that: The first interface also includes a schematic diagram corresponding to the first control, a schematic diagram corresponding to the second control, and a schematic diagram corresponding to the third control; the schematic diagram corresponding to the first control is used to represent that in the first mode, the electronic device displays the number of applications that push notification messages at the bottom of the lock screen interface; the schematic diagram corresponding to the second control is used to represent that in the second mode, the electronic device displays notification boxes of multiple notification messages on the lock screen interface; the schematic diagram corresponding to the third control is used to represent that in the third mode, the electronic device does not display any of the notification messages on the lock screen interface.

11. The method according to claim 1, characterized in that: Also includes: At a first moment, when the first control is selected and the electronic device receives a first notification of a first application in a locked screen state, the electronic device displays a second interface; wherein the second interface includes a notification box of the first notification; At the second moment, when the electronic device receives the second notification of the second application in the lock screen state, the electronic device displays the third interface; wherein the third interface includes a notification box of the second notification, and the third interface does not include a notification box of the first notification, and the third interface also includes a first notification prompt text; the first notification prompt text is used to prompt that there are N-1 notifications; the N-1 corresponds to the number of applications other than the second application; the first moment is earlier than the second moment, and the time difference between the first moment and the second moment is less than a preset time; At a third moment, the electronic device displays a fourth interface, the fourth interface does not include a notification box for the second notification, and the fourth interface includes a second notification reminder text, the second notification reminder text is used to prompt that there are N notifications; the second moment is earlier than the third moment, and the time difference between the second moment and the third moment is greater than or equal to a preset time; At a fourth moment, the electronic device receives a trigger operation for the second notification prompt text, and the electronic device displays a fifth interface including N notification boxes.

12. The method according to claim 1, characterized in that Also includes: When the electronic device receives a selection operation on the third control on the first interface, the electronic device displays a sixth interface; The sixth interface includes a prompt text, a fifth control and a sixth control, wherein the prompt text is used to prompt that after the third mode is selected, the electronic device does not display any notification message on the lock screen interface; the fifth control is used to cancel the selection of the third mode; and the sixth control is used to confirm the selection of the third mode; When the electronic device receives a trigger operation for the sixth control, the electronic device displays a seventh interface, wherein the seventh interface includes the first control, the second control, and the third control, but does not include the fourth control, wherein the third control is selected.

13. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the electronic device performs the method according to any one of claims 1 to 12.

14. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.

15. A computer program product, characterized in that The method comprises a computer program, which, when being executed, enables a computer to execute the method according to any one of claims 1 to 12.