WO2022218053A1 - 一种通知消息的显示方法及电子设备 - Google Patents

一种通知消息的显示方法及电子设备 Download PDF

Info

Publication number
WO2022218053A1
WO2022218053A1 PCT/CN2022/079130 CN2022079130W WO2022218053A1 WO 2022218053 A1 WO2022218053 A1 WO 2022218053A1 CN 2022079130 W CN2022079130 W CN 2022079130W WO 2022218053 A1 WO2022218053 A1 WO 2022218053A1
Authority
WO
WIPO (PCT)
Prior art keywords
component
electronic device
event
display
notification message
Prior art date
Application number
PCT/CN2022/079130
Other languages
English (en)
French (fr)
Inventor
杨诗姝
周珊如
黄丽薇
Original Assignee
荣耀终端有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 荣耀终端有限公司 filed Critical 荣耀终端有限公司
Publication of WO2022218053A1 publication Critical patent/WO2022218053A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of terminal technologies, and in particular, to a method for displaying notification messages and an electronic device.
  • a notification panel is set in electronic devices such as mobile phones to display notification messages received by an operating system or an application.
  • a mobile phone as an example, as shown in (a) of FIG. 1 , when the mobile phone displays an application such as a home screen (also referred to as a desktop), a status bar 101 can be simultaneously displayed.
  • the status bar 101 can display time, power, signal strength, Bluetooth status, and operator name.
  • the mobile phone can display the pull-down menu 102 .
  • the mobile phone can display these notification messages in the notification bar 103 of the pull-down menu 102 .
  • the mobile phone may display the received notification messages of each application in the notification bar 103 one by one in the form of notification messages.
  • the present application provides a notification message display method and electronic device, which can dynamically display the notification message on the main screen of the electronic device, promptly remind the user to view the relevant notification message, and improve the user experience.
  • the present application provides a method for displaying notification messages, including: an electronic device displays a first desktop, and a first component (such as a weather component, etc.) is displayed in a first display area of the first desktop; After the first event (the first event is associated with the first notification message), the second component corresponding to the first event can be displayed in the first display area in response to the first event (the second component is different from the first component, the first The content of the second component is associated with the content of the first notification message), and the first component is not displayed in the first display area, that is, the corresponding notification message is dynamically displayed in the first display area occupied by the first component.
  • a first component such as a weather component, etc.
  • the user can dynamically learn the relevant notification messages from the components of the current desktop (ie, the first component), and at the same time, the electronic device does not need to adjust the display layout of other controls such as application icons on the desktop when using the original components in the desktop to display the notification message , will not cause too much interference with the original display content on the desktop.
  • the second component may be located on the upper layer of the first component, that is, the electronic device may display the latest notification message in the form of a component (eg, card) on the upper layer of the original component by stacking.
  • a component eg, card
  • the method further includes: after the second component is displayed for a preset duration, the electronic device can display the second component on the first desktop.
  • the first component is displayed, and the second component is not displayed in the first display area. That is to say, after the electronic device displays the first notification message through the second component for a certain period of time, it can automatically hide the second component on the desktop and display the original first component at the same time, so that the notification message can not only be dynamically displayed on the desktop , and can also be dynamically hidden in the desktop.
  • the method further includes: if a preset deletion operation input by the user on the second component is received, the electronic device may display the second component on the first desktop the first component, and the first display area does not display the second component. That is to say, the user can also manually delete the displayed first notification message on the desktop, and simultaneously display the original first component.
  • the method further includes: acquiring the second event by the electronic device, and the second event is used to indicate that the service corresponding to the first notification message has been completed; this , in response to the second event, the electronic device may display the first component in the first desktop, and the first display area does not display the second component. That is to say, when the service corresponding to the first notification message has been completed, the electronic device can also automatically hide the second component on the desktop and display the original first component at the same time.
  • the method further includes: the electronic device acquires a third event (the third event is associated with the second notification message) Further, if the priority of the third event is higher than the priority of the first event, the electronic device displays the third component corresponding to the third event in the first display area, and the third component can be located at the upper layer of the second component at this time , the content of the third component is associated with the content of the second notification message; or, if the priority of the first event is higher than the priority of the third event, the electronic device continues to display the second component in the first display area, at this time , the third component may be located at a lower layer of the second component, and similarly, the content of the third component is associated with the content of the second notification message.
  • the electronic device can set notification message 1
  • the display order of the notification message 2 precedes the display order of the notification message 2.
  • the electronic device may display the notification message 1 in the form of a component (ie, the second component) on the upper layer of the third component including the notification message 2 .
  • the electronic device may set the display order of notification message 1 to be after the display order of notification message 2 .
  • the electronic device can display the notification message 1 in the form of a component (ie, the second component) on the lower layer of the third component including the notification message 2, and at this time, the upper third component is presented to the user on the desktop.
  • the method further includes: if a preset switching operation input by the user to the third component is received, the electronic device The second component may be displayed in the first desktop, and the third component may not be displayed in the first display area. That is, when there are multiple components containing notification messages in the first display area, the user can manually switch the corresponding components to be displayed on the desktop.
  • the method further includes: the electronic device may display a navigation point in the first display area or around the first display area, where the navigation point is used to prompt the user to receive multiple a notification message.
  • the number of navigation points may be the same as the number of current notification messages.
  • the method further includes: if it is detected that the user's finger touches the first display area, the electronic device displays a navigation point in the first display area or around the first display area , the navigation point is used to alert the user that multiple notification messages have been received. That is, the above-mentioned navigation points can be dynamically displayed or hidden in or around the component containing the notification message.
  • the fourth component may be displayed in the second display area of the first desktop, that is, the first desktop is provided with two components, the first component and the fourth component; at this time, when the electronic device is in the After displaying the second component corresponding to the first event in the first display area, the method further includes: acquiring the fourth event by the electronic device (the fourth event is associated with the third notification message, for example, the server sends an event including the third notification message); and , in response to the fourth event, the electronic device may display the fifth component corresponding to the fourth event in the second display area (the content of the fifth component is associated with the content of the third notification message), and the second display area does not display the first Four components.
  • the desktop 1 includes multiple components, the multiple components can be used to display notification messages, so that the user can learn more notification messages from the current desktop.
  • acquiring the first event by the electronic device includes: acquiring the first event when the electronic device displays the third desktop, and there are no components in the third desktop; at this time, the electronic device displays the first event in the first display area
  • the second component corresponding to the first event includes: if it is detected that the electronic device switches the third desktop to the first desktop, the electronic device displays the second component in the first display area. That is to say, if the electronic device receives a notification message when displaying a desktop without components (eg, the second desktop), the electronic device can display the corresponding A notification message, prompting the user to view the notification message in the first desktop.
  • the electronic device can also display the second component corresponding to the first event in the blank area of the third desktop, so that the user can Be able to get the latest notification messages in time from the current desktop.
  • the method further includes: in response to the operation of adding the first component by the user, the electronic device adds the first component to the first desktop, and the first component does not have a notification message when there is no notification message.
  • the first component can support stacking display of components carrying the notification message; at this time, the electronic device can display a guide pop-up window, and the guide pop-up window is used to prompt the operation method of the components in the first display area , which is convenient for users to quickly learn the function of displaying notification messages in the component.
  • the electronic device may display the guiding pop-up window when the user adds the first component for the first time, and no longer displays the guiding pop-up window when the first component is added again subsequently.
  • the above method further includes: the electronic device may display a setting interface, where the setting interface is used to set one or more of the types, numbers or contents of components displayed in the first display area.
  • the component carrying the notification message eg, the second component
  • the component carrying the notification message may include a setting button, and the user may click the setting button to enter the above-mentioned setting interface to set the specific function of the second component when displaying the notification message.
  • the above-mentioned first event may include a first notification message; for example, acquiring the first event by the electronic device specifically includes: the electronic device acquiring the first event carrying the first notification message from the server.
  • the first event may not include the first notification message.
  • the first event may be an event in which the user sets a schedule in the calendar APP, and the electronic device may automatically generate a corresponding first notification message in response to the first event, and display it according to the above method.
  • the electronic device after the electronic device acquires the first event, it further includes: the electronic device sets a parameter of the second component corresponding to the first event, where the parameter includes display sequence, exposure duration, retention duration or component type
  • the parameter includes display sequence, exposure duration, retention duration or component type
  • the present application provides an electronic device, comprising: a touch screen, where the touch screen includes a touch sensor and a display screen; one or more processors; a memory; wherein, the memory stores one or more computer programs, one or more
  • the computer program includes instructions that, when the instructions are executed by the electronic device, cause the electronic device to perform the following steps: display a first desktop, and a first component is displayed in a first display area of the first desktop; acquire a first event (the first event and the first A notification message is associated); in response to the first event, display the second component corresponding to the first event in the first display area, and the first display area does not display the first component, the second component is different from the first component, the first component The content of the second component is associated with the content of the first notification message.
  • the second component is located on an upper layer of the first component.
  • the electronic device after the electronic device displays the second component corresponding to the first event in the first display area, the electronic device is further configured to execute: after the second component is displayed for a preset duration, on the first desktop The first component is displayed in the , and the second component is not displayed in the first display area.
  • the electronic device after the electronic device displays the second component corresponding to the first event in the first display area, the electronic device is further configured to perform: if a preset deletion operation input by the user to the second component is received , the first component is displayed on the first desktop, and the second component is not displayed in the first display area.
  • the electronic device is further configured to perform: acquiring a second event, where the second event is used to indicate the second component corresponding to the first event.
  • the service corresponding to the notification message has been completed; in response to the second event, the first component is displayed on the first desktop, and the second component is not displayed in the first display area.
  • the electronic device is further configured to perform: acquiring a third event (the third event is related to the second notification message) If the priority of the third event is higher than the priority of the first event, the third component corresponding to the third event is displayed in the first display area, the third component is located on the upper layer of the second component, and the The content is associated with the content of the second notification message; or, if the priority of the first event is higher than the priority of the third event, continue to display the second component in the first display area, and the third component is located at the lower level of the second component , likewise, the content of the third component is associated with the content of the second notification message.
  • the third event is related to the second notification message
  • the electronic device after the electronic device displays the third component corresponding to the third event in the first display area, the electronic device is further configured to perform: if a preset switching operation input by the user to the third component is received , the second component is displayed in the first desktop, and the third component is not displayed in the first display area.
  • the electronic device is further configured to perform: displaying a navigation point in the first display area or around the first display area, and the navigation point is used to prompt the user to receive the Multiple notification messages.
  • the electronic device is further configured to execute: if it is detected that the user's finger touches the first display area, display the first display area or around the first display area Navigation point, which is used to prompt the user that multiple notification messages have been received.
  • the fourth component is displayed in the second display area of the first desktop; after the electronic device displays the second component corresponding to the first event in the first display area, the electronic device is further configured to execute : obtain the fourth event (the fourth event is associated with the third notification message); in response to the fourth event, display the fifth component corresponding to the fourth event in the second display area, and the second display area does not display the fourth component , the content of the fifth component is associated with the content of the third notification message.
  • acquiring the first event by the electronic device specifically includes: acquiring the first event when the electronic device displays the third desktop, and there are no components in the third desktop; wherein, the electronic device displays the first event in the first display area
  • the second component corresponding to the first event specifically includes: if it is detected that the electronic device switches the third desktop to the first desktop, the electronic device displays the second component in the first display area.
  • acquiring the first event by the electronic device specifically includes: acquiring the first event when the electronic device displays the third desktop, and there are no components in the third desktop; after the electronic device acquires the first event, the electronic device acquires the first event.
  • the device is further configured to perform: the electronic device displays the second component corresponding to the first event in the blank area of the third desktop.
  • the electronic device before the electronic device displays the first desktop, the electronic device is further configured to perform: in response to the user's operation of adding the first component, the electronic device adds the first component to the first desktop; the electronic device displays the first component
  • the guide pop-up window is used to prompt the operation method of the component in the first display area.
  • the electronic device is further configured to display a setting interface, where the setting interface is used to set one or more of the types, numbers or contents of components displayed in the first display area
  • the first event includes a first notification message; wherein, acquiring the first event by the electronic device includes: the electronic device acquiring the first event carrying the first notification message from the server.
  • the electronic device is further configured to execute: the electronic device sets parameters of the second component corresponding to the first event, where the parameters include display sequence, exposure duration, retention One or more of Duration or Component Type.
  • the present application provides an electronic device, comprising: a memory, a display screen and one or more processors; the memory, the display screen and the processor are coupled.
  • the memory is used to store computer program codes, and the computer program codes include computer instructions; when the electronic device is running, the processor is used to execute one or more computer instructions stored in the memory, so that the electronic device executes the above-mentioned first aspect.
  • the present application provides a computer storage medium, including computer instructions, which, when the computer instructions are executed on an electronic device, cause the electronic device to execute the method for displaying a notification message according to any one of the first aspects.
  • the present application provides a computer program product that, when the computer program product runs on an electronic device, causes the electronic device to execute the method for displaying a notification message according to any one of the first aspects.
  • FIG. 1 is a schematic diagram of an application scenario for displaying notification messages in the prior art
  • FIG. 2 is a schematic structural diagram 1 of an electronic device according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a software architecture in an electronic device provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram 1 of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • FIG. 5 is a schematic diagram 2 of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • FIG. 6 is a schematic diagram of an interaction flow of a method for displaying a notification message according to an embodiment of the present application
  • FIG. 7 is a schematic diagram 3 of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • FIG. 8 is a fourth schematic diagram of an application scenario of a method for displaying a notification message provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram 5 of an application scenario of a method for displaying a notification message provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram 6 of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • FIG. 11 is a seventh schematic diagram of an application scenario of a method for displaying a notification message provided by an embodiment of the present application.
  • FIG. 12 is a schematic diagram eight of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • FIG. 13 is a schematic diagram 9 of an application scenario of a method for displaying a notification message provided by an embodiment of the present application.
  • 14A is a schematic diagram ten of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • 14B is an eleventh schematic diagram of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • 15 is a schematic diagram 12 of an application scenario of a method for displaying a notification message provided by an embodiment of the present application;
  • 16 is a schematic diagram thirteen of an application scenario of a method for displaying a notification message provided by an embodiment of the present application
  • FIG. 17 is a fourteenth schematic diagram of an application scenario of a method for displaying a notification message provided by an embodiment of the present application.
  • FIG. 18 is a fifteenth schematic diagram of an application scenario of a method for displaying a notification message provided by an embodiment of the present application.
  • 19 is a sixteenth schematic diagram of an application scenario of a method for displaying a notification message provided by an embodiment of the present application.
  • FIG. 20 is a second schematic structural diagram of an electronic device according to an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • a method for displaying a notification message provided by an embodiment of the present application can be applied to a mobile phone, a vehicle-mounted device (also referred to as a vehicle-mounted device), a tablet computer, a notebook computer, and an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), handheld computers, netbooks, personal digital assistants (personal digital assistants, PDAs), wearable electronic devices, virtual reality devices and other electronic devices with display functions, which are not limited in the embodiments of the present application.
  • UMPC ultra-mobile personal computer
  • handheld computers netbooks
  • personal digital assistants personal digital assistants, PDAs
  • wearable electronic devices wearable electronic devices
  • virtual reality devices virtual reality devices with display functions
  • FIG. 2 it is a schematic structural diagram of a mobile phone.
  • the mobile phone may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, and an audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, and an audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, etc.
  • USB universal serial bus
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the mobile phone.
  • the mobile phone may include more or less components than shown, or some components may be combined, or some components may be separated, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • different processing units can be independent devices, or can be integrated in one or more processors.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the wireless communication function of the mobile phone can be realized by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in a cell phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the mobile phone.
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify 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 then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the wireless communication module 160 can provide applications on the mobile phone including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system ( global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation
  • the antenna 1 of the mobile phone is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the mobile phone realizes the display function through the GPU, the display screen 194, and the application processor.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • 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 (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the handset may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • an OLED display screen may include a plurality of OLED pixel units arranged in an array. As shown in FIG. 2 , each OLED pixel unit includes a cathode 201 , an anode 202 , and an electron transport layer 203 , a hole transport layer 204 and a light-emitting layer 205 located between the cathode 201 and the anode 202 .
  • the cathode 201 may be a metal electrode
  • the anode 202 may be an ITO (indium tin oxide, indium tin oxide) transparent electrode.
  • the driving voltage V After the driving voltage V is input to the cathode 201 and the anode 202, under the action of the driving voltage V, electrons are transferred from the cathode 201 to the electron transport layer 203, and holes are injected from the anode 202 to the hole transport layer 204, and the two are in the light-emitting layer 205. Excitons are generated after encountering, so that the light-emitting molecules in the light-emitting layer 205 are excited, and a light source is generated after irradiation.
  • the driving voltage V is different, the corresponding OLED pixel units can be excited to present different colors and brightness. In this way, each OLED pixel unit in the OLED display screen can display corresponding pictures under different driving voltages.
  • the organic materials in the electron transport layer 203 , the hole transport layer 204 and the light-emitting layer 205 will gradually age during use.
  • the phenomenon of afterimage in the OLED display screen is actually that the OLED pixel unit in a fixed position always displays the same and still image for a long time, which causes the organic material in this part of the pixel unit to be more depleted than other positions, and the luminous efficiency is attenuated. faster, leaving an afterimage on the OLED display.
  • the mobile phone can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the mobile phone may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the mobile phone selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
  • Video codecs are used to compress or decompress digital video.
  • a phone can support one or more video codecs.
  • the mobile phone can play or record videos in various encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the mobile phone.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the mobile phone by executing the instructions stored in the internal memory 121 .
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area can store data (such as audio data, phone book, etc.) created during the use of the mobile phone.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the mobile phone can implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, and an application processor. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a “speaker” is used to convert audio electrical signals into sound signals.
  • the mobile phone can listen to music through the speaker 170A, or listen to hands-free calls.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals.
  • the user can make a sound by approaching the microphone 170C through a human mouth, and input the sound signal into the microphone 170C.
  • the mobile phone may be provided with at least one microphone 170C.
  • the mobile phone may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function.
  • the mobile phone can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 180 may include a pressure sensor, a gyro 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.
  • the mobile phone may also include a charging management module, a power management module, a battery, a button, an indicator, and one or more SIM card interfaces, which are not limited in this embodiment of the present application.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiments of the present application take an Android system with a layered architecture as an example to exemplarily describe the software structure of the electronic device 100 .
  • FIG. 3 is a block diagram of the software structure of the electronic device 100 according to the embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Layers communicate with each other through software interfaces.
  • the Android system is divided into four layers, which are, from top to bottom, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer.
  • the application layer can include a series of applications.
  • the above-mentioned applications may include applications (application, APP) such as call, contact, camera, gallery, calendar, map, navigation, Bluetooth, music, video, and short message.
  • applications application, APP
  • call contact, camera, gallery, calendar, map, navigation, Bluetooth, music, video, and short message.
  • the above-mentioned application program may further include a Launcher (also referred to as a desktop application or a home screen, etc.).
  • Launcher can run in the Android system as a core application after the Android system is started.
  • Launcher can perform basic management on installed applications, such as deleting or displaying applications.
  • one or more display interfaces may be displayed as the desktop of the electronic device.
  • the display interface 401 is the first desktop of the electronic device
  • the display interface 402 is the second desktop of the electronic device.
  • the Launcher may display icons, folders, etc. of applications in the display interface 401 (or the display interface 402 ).
  • Launcher can also display components 403 such as weather, clock, etc. in the display interface 401 (or the display interface 402 ). These components may also be called widgets, widgets, components, cards, etc., which are not limited in this embodiment of the present application.
  • the Launcher may divide the display interface 401 into a plurality of grid units 404 with a certain size in advance. These grid units 404 can form a complete display interface 401 after being aligned.
  • the display interface 401 includes 4*8 grid cells 404 .
  • the Launcher is generally laid out and displayed in the display interface 401 with a grid unit 404 as the smallest unit.
  • the size of the weather component 403 in the display interface 401 is 2*4, that is, the weather component 403 occupies a size of 8 grid units 404 and is displayed on the display interface 401 .
  • the above application may further include a notification center APP (also referred to as a notification APP, etc.).
  • the notification center APP can receive notification messages from other applications, and display the received notification messages in the notification bar (also known as the notification panel).
  • the notification bar can be located in a drop-down menu, a negative one-screen interface, or a lock-screen interface.
  • the above notification message may be a notification message from an application (for example, a push message of a music APP), a notification message from an operating system (for example, a version upgrade message), or a notification message from an FA (Feature Ability, FA) or a notification message of a PA (Particle Ability), this embodiment of the present application does not impose any restrictions on this.
  • an application for example, a push message of a music APP
  • a notification message from an operating system for example, a version upgrade message
  • a notification message from an FA (Feature Ability, FA) or a notification message of a PA (Particle Ability) this embodiment of the present application does not impose any restrictions on this.
  • the Launcher can also receive notification messages sent by other applications.
  • the flight application can carry parameters such as the flight number, check-in time, and landing time in the flight message in notification message 1 and send it to Launcher.
  • the Launcher can display the notification message 1 on the current desktop (eg, the above-mentioned display interface 401 or display interface 402 ).
  • the display interface 401 is being displayed when Launcher receives the above notification message 1
  • the Launcher can display the component corresponding to the notification message 1 in the display area occupied by the weather component 403, while hiding the weather component 403 ( That is, the weather component 403) is not displayed.
  • the components corresponding to the notification message 1 may be presented to the user in the form of a card 501 , and in the subsequent embodiments, the card is used as an example for the component of the corresponding notification message.
  • the card 501 may include the above-mentioned parameters such as flight number, boarding time, and landing time. That is to say, Launcher can use the components in the current desktop to display the received notification message, so that the user can know the specific content of the notification message from the desktop in time.
  • the Launcher can also dynamically hide the above-mentioned card 501 .
  • the card 501 is displayed for a preset time
  • Launcher can automatically hide the card 501 and display the original weather component 403 .
  • the Launcher can automatically hide the card 501 and overlay the card corresponding to the notification message 2 on the card 501 .
  • the Launcher can also automatically hide the card 501 , which will be described in detail in the subsequent embodiments, so it will not be repeated here.
  • Launcher can not only dynamically display notification messages by using components in the current desktop, so that users can know the latest notification messages in time, Launcher can also dynamically hide the displayed notification messages. to ensure the timeliness of notification messages displayed on the desktop and improve the user experience. Moreover, when Launcher uses the original components on the desktop to display notification messages, it does not need to adjust the display layout of other controls such as application icons on the desktop, and will not cause too much interference to the original display content on the desktop.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer may include an activity manager, a window manager, a content provider, a view system, a resource manager, an input method manager, and the like.
  • the activity manager can be used to manage the life cycle of each application.
  • Applications usually run in the operating system as an activity.
  • the activity manager can schedule the application's activity process to manage the life cycle of each application.
  • a window manager is used to manage window programs. The window manager can get the size of the display screen, determine whether there is a status bar, lock the screen, take screenshots, etc.
  • Content providers are used to store and retrieve data and make these data accessible to applications.
  • the data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying pictures, and so on. View systems can be used to build applications.
  • a display interface can consist of one or more views.
  • the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
  • the resource manager provides various resources for the application, such as localization strings, icons, pictures, layout files, video files, etc.
  • the Android runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one is the function functions that the java language needs to call, and the other is the core library of Android.
  • the application layer and the application framework layer run in virtual machines.
  • 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 lifecycle management, stack management, thread management, safety and exception management, and garbage collection.
  • a system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), 3D graphics processing library (eg: OpenGL ES), 2D graphics engine (eg: SGL), etc.
  • surface manager surface manager
  • media library Media Libraries
  • 3D graphics processing library eg: OpenGL ES
  • 2D graphics engine eg: SGL
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer at least includes a display driver, a camera driver, an audio driver, a sensor driver, and the like, which are not limited in this embodiment of the present application.
  • each application installed in the mobile phone may send a corresponding notification message to the Launcher, so as to request the Launcher to display the notification message.
  • a calendar app can record one or more schedules entered by the user. In each schedule, the user can set the reminder time of the schedule. When the reminder time of a certain schedule is reached, the calendar APP can send a corresponding notification message to the Launcher.
  • a user can use a travel APP to purchase ticket orders such as air tickets and train tickets. Ticket orders generally include one or more pieces of information such as flight number, departure time, boarding time, boarding gate, ticket gate or driving time. Ticket orders purchased by each user may be maintained in the server of the travel APP (for example, server A).
  • the server A can send a corresponding notification message to the mobile phone based on various pieces of information in the ticket order. For example, when server A detects that there are still two hours before the boarding time in a certain ticket order, it can send a corresponding notification message to the travel APP in the mobile phone. Further, the travel APP can send the notification message to the Launcher.
  • the notification message obtained by Launcher can be a notification message generated locally by the mobile phone in response to an event (for example, a notification message generated by the above-mentioned calendar APP according to the schedule set by the user), or a notification generated by a server of a third-party application.
  • message for example, the notification message sent by the above-mentioned server A
  • the embodiment of the present application can be uniformly expressed as: the Launcher obtains the corresponding notification message in response to a certain event (eg, the first event).
  • the server of the third-party application may also obtain the corresponding ticket order from the server of other systems (or applications), so as to generate a notification message of the ticket order.
  • the travel APP can obtain the ticket order purchased by the user from the 12306 system of China Railway, and then generate the corresponding notification message according to the obtained ticket order, and send the notification message to the travel APP of the mobile phone.
  • the Launcher of the mobile phone may include a display module 601 and a management module 602 .
  • the management module 602 may be used to manage various notification messages sent by other applications. For example, sort notification messages, set notification message priority, display duration, display position and size, etc.
  • the management module 602 may send the notification message to be displayed to the display module 601 for display.
  • the content in the notification message 1 can be instantiated as a corresponding Notification object 1 (that is, the notification object, which can also be called a structure).
  • the notification object 1 may contain parameters such as the identity of the travel APP, the notification title, and notification content (such as flight number, boarding time, arrival time, airport information), and one or more of these parameters can be used as a follow-up notification What needs to be displayed in message 1.
  • the travel APP can call the relevant interface to send the created notification object 1 to the management module 602 in the Launcher, that is, send the notification message 1 to the Launcher.
  • the management module 602 of the Launcher is used to maintain and manage notification objects (ie, notification messages) sent from various applications in a preset database. For example, if the management module 602 of the Launcher has not received the notification object sent by other applications before receiving the notification object 1, as shown in Table 1, the management module 602 can display the notification object 1 in the preset database The order is set to bit 1. Also, as shown in Table 1, the management module 602 may further set the exposure duration and retention duration of the notification object 1 .
  • the exposure duration refers to the duration when the notification object 1 is displayed, and the retention duration refers to the duration that the notification object 1 is kept on the desktop.
  • the notification object 1 may or may not be displayed when it remains on the desktop.
  • the retention duration of the notification object is generally greater than or equal to its exposure duration. For example, when the exposure time of notification object 1 is 2 minutes and the retention time is 5 minutes, when Launcher detects that notification message 1 has been displayed for 2 minutes, it can hide notification message 1 in the Launcher and display other notification messages. At this point, notification message 1 remains in the Launcher although it is not displayed in the Launcher. For example, the notification message 1 can be hidden in the lower layer of other notification messages, and the user can manually call up the notification message 1 to be displayed in the Launcher. Subsequently, when the Launcher detects that the notification message 1 has been kept in the Launcher for 5 minutes, the Launcher can delete the notification object 1 corresponding to the notification message 1. At this point, the user cannot call out notification message 1 in Launcher. Or, when the exposure time and retention time of notification object 1 are both 2 minutes, when Launcher detects that notification message 1 has been displayed for 2 minutes, it can directly delete notification object 1, so that Launcher can no longer display the corresponding notification message. 1.
  • the management module 602 may further set the card type of the notification object 1, such as travel card, emergency notification card, push card and so on.
  • the management module 602 may also set parameters such as the size and position of the card used when displaying the notification object 1, which is not limited in this embodiment of the present application.
  • the management module 602 of the Launcher can send a notification message 1 to the display module 601 for informing the display module 601 to display the corresponding notification message according to the database shown in Table 1.
  • the display module 601 may display the card corresponding to the notification object 1 in the display area in which the component is set in the current desktop, and hide the originally displayed component.
  • the first desktop 701 is being displayed.
  • the first desktop 701 is provided with a weather component 702 .
  • the weather component 702 is located in the display area 1, and the size of the weather component 702 is 2*4 grid cells.
  • the display module of the Launcher 601 can cover the card 703 corresponding to the above notification object 1 on the upper layer of the weather component 702, that is, the card 703 and the weather component 702 are stacked and displayed in the display area 1, the size of the card 703 and the weather component 702 are the same, and the card 703 is located in the weather component. 702 , so that the weather component 702 is hidden in the first desktop 701 .
  • the card 703 may specifically include relevant parameters carried in the notification object 1, such as the travel APP logo 703a, flight number 703b, departure time 703c, arrival time 703d, boarding gate 703e, and the like.
  • the components in the current desktop can be used to display the specific content of the notification message, so that the user can learn the latest notification message from the current desktop in time and avoid the user missing the notification. messages to improve the user experience.
  • using the existing components to display the notification message does not occupy additional display space on the current desktop, and does not need to adjust the overall display layout of the current desktop, so that the mobile phone can display as much content as possible with minimal space adjustment cost.
  • the management module 602 of the Launcher can continue to manage the card 703 according to the database shown in Table 1. For example, when the exposure time of the notification object 1 is set to be 2 minutes in Table 1, the management module 602 of the Launcher can monitor the display time of the above-mentioned card 703 . For example, the management module 602 of the Launcher can also update the remaining exposure time of the card 703 in real time. When the display time of the card 703 in the first desktop 701 reaches 2 minutes, as shown in (a) of FIG. 8 , the management module 602 may instruct the display module 601 to hide the card 703 in the first desktop 701 . At this time, the weather component 702 located in the lower layer of the card 703 is displayed in the first desktop 701 .
  • the display module 601 can keep the card 703 in the first desktop 701 because the retention time of the card 703 in the first desktop 701 does not exceed 5 minutes.
  • the display module 601 may display the card 703 in the lower layer of the weather component 702 . If the user needs to display the card 703 in the first desktop 701 again, as shown in (b) of FIG. 8 , the user can input a sliding operation to the weather component 702 located on the upper layer. Furthermore, the display module 601 can display the card 703 on the upper layer of the weather component 702 in response to the sliding operation, and recall the card 703 .
  • the management module 602 can delete the notification object 1 in Table 1 and the parameters such as the display order and exposure duration corresponding to the notification object 1. Meanwhile, the management module 602 may instruct the display module 601 to delete the card 703 in the first desktop 701 .
  • the first desktop 701 can restore the interface shown in (a) of FIG. 7 , that is, the weather component 702 located in the lower layer of the card 703 is displayed.
  • the travel APP may receive an event indicating that the service corresponding to the notification message 1 has been completed.
  • the event may be an event in which the server sends a check-in success message or a boarding success message (ie, a service completion message) to the travel APP.
  • the travel APP can send the service completion message to the management module 602 of Launcher, and the management module 602 can respond to the service completion message and delete the notification object 1 in Table 1 and the display sequence, exposure duration and other parameters corresponding to the notification object 1 .
  • the management module 602 may instruct the display module 601 to delete the card 703 in the first desktop 701 .
  • the event indicating that the service corresponding to the notification message 1 has been completed may also be generated locally by the mobile phone.
  • the calendar APP in the mobile phone can generate a corresponding service completion message and send it to the Launcher after completing a certain schedule.
  • the event indicating that the service corresponding to the notification message 1 has been completed may also be input by the user. For example, after the Launcher detects that the user has set the to-do item 1 in the mobile phone as completed, the corresponding notification object and the corresponding display order, exposure duration and other parameters can be deleted, which is not limited in this embodiment of the present application. .
  • the Launcher when the Launcher displays the card 703 on the first desktop 701, it can also delete the card 703 in response to a delete operation input by the user. For example, as shown in FIG. 9, when Launcher displays the card 703 in the first desktop 701, if it detects that the user inputs a sliding operation (such as a left sliding operation or a right sliding operation) on the card 703, the management module 602 of the Launcher can respond The sliding operation should be performed to delete the notification object 1 in Table 1 and the parameters such as the display order and exposure duration corresponding to the notification object 1. Meanwhile, the management module 602 may instruct the display module 601 to delete the card 703 in the first desktop 701 . Exemplarily, as shown in FIG.
  • the display module 601 removes the card 703 from the first desktop 701
  • the card 703 can be gradually removed from the first desktop 701 following the sliding operation input by the user, while gradually displaying the card 703.
  • the weather component 702 located on the lower level of the card 703 is displayed.
  • the display module 601 of the Launcher may set the background of the weather component 702 to be transparent or non-transparent when displaying the weather component 702, which is not limited in this embodiment of the present application.
  • the background of the weather component 702 may be transparent.
  • the Launcher can set the background of the weather component 702 to be opaque.
  • the Launcher can restore the displayed background of the weather component 702 to a transparent display effect again to remind the user that there is no other notification message at the location where the weather component 702 is located.
  • Launcher when Launcher uses a current component to display the corresponding notification message, it can trigger Launcher to delete the notification message through the retention time set by Launcher for the notification message, or receive the service completion message corresponding to the notification message. Triggering the Launcher to delete the notification message can also trigger the Launcher to delete the notification message in response to the user's delete operation on the notification message, so that the notification message can not only be dynamically displayed on the current desktop, but also dynamically disappear from the current desktop.
  • the delete operation may be not only the above sliding operation, but also an operation such as clicking the delete button (or ignore button).
  • the Launcher displays the card 703 on the first desktop 701
  • the Launcher can display the management window 1001 of the card 703, and manage the In window 1001 a delete option 1002 can be set. If it is detected that the user selects the delete option 1002, the Launcher can delete the card 703 as described above.
  • the Launcher can delete the card 703 as described above. For another example, as shown in (b) of FIG.
  • a delete button 1003 may also be set in the card 703 . If it is detected that the user selects the delete button 1003, the Launcher can delete the card 703 according to the above method.
  • the Launcher uses the weather component 702 in the current desktop to display a notification message as an example.
  • the Launcher can also receive different notification messages from different applications according to the above method, and then use the received A plurality of notification messages are displayed stacked with the weather component 702 in the form of a deck of cards.
  • the management module 602 of the Launcher can also receive notification objects sent by other applications.
  • the calendar APP detects that the current time has reached the reminder time set by the user in schedule 1, it can instantiate parameters such as the calendar APP's identifier, notification title, and notification content (such as reminder time, schedule content) as the corresponding notification object 2, and then send the notification object 2 to the management module 602 in the Launcher, that is, send the notification message 2 to the Launcher.
  • the management module 602 of the Launcher can record the notification object 2 in a preset database. Moreover, similar to the above notification object 1, the management module 602 of the Launcher can also set parameters such as the display order, exposure duration, retention duration, and card type of the notification object 2. The difference is that when there are multiple notification objects in the database, the management module 602 can update the display order among the notification objects by comparing the multiple notification objects. For example, the priority of the notification object of the travel class may be preset to be higher than the priority of the notification object of the notification class. At this time, the management module 602 can set the display order of the notification object 1 to the first position, and set the display order of the notification object 2 to the second position. For another example, the management module 602 may separately extract notification content in each notification object, and then determine the display order of the notification objects according to the specific notification content, which is not limited in this embodiment of the present application.
  • notification object display order exposure time retention time card type notification object 1 1st place 2 minutes 5 minutes Travel class notification object 2 2nd 1 minute 3 minutes Notification class
  • the management module 602 of the Launcher After the management module 602 of the Launcher finishes updating the above-mentioned database, it can send a notification message 2 to the display module 601 for notifying the display module 601 to display a plurality of current notification messages according to the database shown in Table 2.
  • the display module 601 of the Launcher can still overlay the weather component 702 of the first desktop 701 currently being displayed with the above-mentioned
  • the notification object 1 corresponds to the card 703 .
  • the card 1101 corresponding to the above notification object 1 is located in the lower layer of the card 703, and the card 1101 and the card 703 form the card group 1 of the notification message.
  • the weather component 702 can be hidden in the first desktop 701 at the lower level of the deck 1 .
  • Launcher plays a preset animation when displaying the above-mentioned card group according to the database shown in Table 2, such as an animation of vibrating the card border, etc., to remind the user that there are hidden cards under the card 703. Newly received card 1101.
  • the mobile phone may also prompt the user to receive a new notification message by vibrating or playing a prompt tone, etc., which is not limited in this embodiment of the present application.
  • the display module 601 of the Launcher can also display navigation points 1102 around the deck 1 .
  • the number of navigation points 1102 may be the same as the number of notification messages in the current deck 1 . In this way, the user can also be prompted to receive a new notification message through the navigation point 1102 .
  • the above-mentioned navigation point 1102 can be dynamically displayed or hidden around the deck 1 .
  • the Launcher can briefly flash the navigation point 1102 when a new notification message is received.
  • the Launcher may briefly flash the navigation point 1102 when the number of notification messages in the above deck 1 changes.
  • the Launcher may briefly flash the navigation point 1102 when the user switches from another display interface to the above-mentioned first desktop 701 , which is not limited in this embodiment of the present application.
  • the display module 601 of the Launcher may further prompt the user the number of received notification messages by setting a corner mark. For example, as shown in FIG. 12 , after the display module 601 of the Launcher stacks and displays the card group 1 composed of the card 1101 and the card 703 on the upper layer of the weather component 702, it can be displayed in the upper right corner of the card group 1 (or any corner of the card group 1) A subscript 1201 is displayed, and the number in the subscript 1201 is the number of notification messages in the current deck 1. In addition, the subscript 1201 can also be dynamically displayed or hidden according to the above method, which is not limited in this embodiment of the present application.
  • the Launcher can also receive notification messages sent by other applications.
  • travel apps can also locate users.
  • the travel APP can locate the user through GPS, base station or Wi-Fi signal, etc., and obtain the user's positioning result.
  • the travel APP can instantiate parameters such as the name of the subway station and the boarding code into the corresponding notification object 3, and then send the notification object 3 to The management module 602 of the Launcher.
  • the management module 602 of the Launcher can record the notification object 3 in the preset database. Furthermore, the management module 602 of the Launcher can set parameters such as the display order, exposure duration, retention duration, and card type of the notification object 3 . Exemplarily, if the priority of the bus code is preset to be higher than the priority of the flight information, as shown in Table 3, the management module 602 can set the display order of the notification object 3 to The display order of 2 is set to the second position, and the display order of notification object 2 is set to the third position to obtain the updated database.
  • notification object display order exposure time retention time card type notification object 3 1st place 2 minutes 5 minutes Travel class notification object 1 2nd 2 minutes 5 minutes Travel class notification object 2 3rd 1 minute 3 minutes Notification class
  • the management module 602 of the Launcher After the management module 602 of the Launcher finishes updating the above-mentioned database, it can send a notification message 3 to the display module 601 for notifying the display module 601 to display a plurality of current notification messages according to the database shown in Table 3.
  • the display module 601 can cover the deck 1 on the weather component 702 of the first desktop 701 that is currently being displayed.
  • the top layer in the deck 1 is The card 1301 corresponding to the notification object 3, the card 1101 corresponding to the notification object 2 (not shown in FIG. 13 ) is at the bottom in the card group 1, and the card corresponding to the notification object 1 is between the card 1101 and the card 1301 703 (not shown in Figure 13).
  • the Launcher can display the newly received notification message in the form of a card at the top of the deck.
  • the upper layer enables users to know the content of the notification message with the highest priority in time.
  • the user can also manually switch the notification message located at the top layer of the card group 1 .
  • the Launcher displays the card 1301 as the topmost notification message on the first desktop 701 , the user can switch the card 1301 by inputting a switching operation (such as a slide-up operation or a slide-down operation) The notification message at the top of deck 1.
  • a switching operation such as a slide-up operation or a slide-down operation
  • the notification message at the top of deck 1 Exemplarily, if it is detected that the user inputs a swipe-up operation on the card 1301, the Launcher can update the database shown in Table 3, and adjust the display order of each notification object.
  • Launcher can set the display order of notification object 3 to the third position, the display order of notification object 1 to the first position, and the display order of notification object 2 to the second position through the management module 602 bit. Furthermore, the Launcher can display a plurality of current notification messages according to the database shown in Table 4 through the display module 601 . At this time, as shown in (b) of FIG. 13 , the display module 601 can cover the card group 1 on the weather component 702 of the first desktop 701 . The difference is that at this time, the top layer in the card group 1 is the same as the notification The card 703 corresponding to object 1, so as to realize the switching of notification messages in card group 1.
  • notification object display order exposure time retention time card type notification object 1 1st place 2 minutes 5 minutes Travel class notification object 2 2nd 1 minute 3 minutes Notification class notification object 3 3rd 2 minutes 5 minutes Travel class
  • the Launcher can also automatically update the database corresponding to the deck 1, and refresh the deck 1 in the first desktop 701 according to the updated database.
  • the Launcher can set each card in the card group 1 to be displayed in sequence for 10s and then switch to the next card to display, which is not limited in this embodiment of the present application.
  • the above-mentioned deck 1 may also include the above-mentioned weather component 702 .
  • card set 1 may include the above-mentioned card 703 , card 1101 , card 1301 , and weather component 702 . If the weather component 702 is the lower layer of the card 1301 , after the Launcher receives the switching operation input by the user on the card 1301 , the Launcher can display the weather component 702 located at the lower layer of the card 1301 .
  • the management module 602 is set in the Launcher as an example. It is understood that the above management module 602 may also be set in other applications, engines or services in the application layer. Alternatively, the above-mentioned management module 602 may also be provided in the application framework layer. Alternatively, the above-mentioned management module 602 may also be set in a server on the network side, and the mobile phone may implement the above-mentioned method by interacting with the management module 602 in the server, which is not limited in this embodiment of the present application.
  • the Launcher occupies the display area of the weather component 702 to display cards or card groups.
  • the desktop being displayed by the mobile phone may be provided with multiple components.
  • a weather component 702 and a calendar component 1402 may be set in the second desktop 1401 being displayed on the mobile phone.
  • the Launcher can display the notification messages in the display area where any one of the weather component 702 and the calendar component 1402 is located according to the above method.
  • the Launcher may be set to use the display area where the weather component 702 is located to display notification messages by default.
  • the Launcher may be set to use the display area where the weather component 702 is located to display notification messages by default.
  • the Launcher can set the size of the card 1403 (or card group) corresponding to the received notification message to the size of the weather component 702 , and then the card 1403 is displayed on the weather component 702 the upper layer.
  • the Launcher can select the display area where the corresponding component is located to display according to the size of the card 1403 . For example, if the size of the card 1403 is the same as the size of the weather component 702, Launcher can display the card 1403 on the upper layer of the weather component 702, and at this time, the display of the calendar component 1402 is not affected. Of course, if the size of the card 1403 is the same as the size of the calendar component 1402, Launcher can display the card 1403 on the upper layer of the calendar component 1402, and at this time, the display of the weather component 702 is not affected.
  • the Launcher may display the notification message sent by the travel APP received first, in the form of a card 1403 on the upper layer of the weather component 702 . Subsequently, if the Launcher receives a notification message sent by the calendar APP again, the Launcher can display the corresponding card 1404 on the upper layer of the calendar component 1402 .
  • the Launcher may display the notification messages in the first and second positions in the display order on the upper layers of the weather component 702 and the calendar component 1402, respectively.
  • the Launcher can also display more notification messages according to the above method, so that the user can learn more notification messages from the current desktop.
  • the Launcher when Launcher receives one or more notification messages sent by other applications, there may also be no setting components in the desktop being displayed by the mobile phone.
  • the Launcher can receive one or more notification messages sent by other applications. For example, after the Launcher receives the notification message sent by the travel APP, it can still update the preset database (for example, the database shown in Table 1) according to the method provided in the foregoing embodiment. The difference is that the Launcher may temporarily not notify the display module 601 to display according to the updated database.
  • the Launcher when the Launcher switches from the third desktop 1501 to the first desktop 701, for example, when detecting that the user input a sliding operation to switch the third desktop 1501 to the first desktop 701, the Launcher can notify the display module 601 to follow the updated The database is displayed. At this time, as shown in (b) of FIG. 15 , the Launcher can display the corresponding card 703 on the upper layer of the weather component 702 in the first desktop 701 .
  • the Launcher when the Launcher switches from the third desktop 1501 to the first desktop 701, the Launcher can also play a preset animation on the card 703, or display a navigation point or corner mark, or vibrate or play a prompt sound. Notification message in the first desktop 701.
  • the mobile phone can also install the above method to display the first desktop 701 for the first time according to the updated
  • the database of the present application does not make any limitation on this.
  • the desktop being displayed on the mobile phone is still taken as an example of the third desktop 1501 without any set components.
  • the Launcher can also display the third desktop on the third desktop.
  • the blank area in 1501 displays the card (or deck of cards) corresponding to the notification message.
  • the blank area refers to the area without application icons, components, folders and other controls, and the blank area can include wallpapers and other content.
  • Launcher when the mobile phone displays the third desktop 1501, if Launcher receives a notification message sent by the travel APP, Launcher can update the preset database (for example, Table 1) according to the method provided in the above-mentioned embodiment. database shown). Furthermore, the Launcher can notify the display module 601 to display in the third desktop 1501 according to the updated database. For example, the size of the card 703 corresponding to the notification message sent by the travel APP is 2*4, as shown in (b) of FIG. The display area displays cards 703 . For another example, the Launcher may first set the size of the card 703 according to the size of the blank area in the third desktop 1501. Generally, the size of the card 703 is smaller than or equal to the size of the blank area. Furthermore, the Launcher can display the card 703 in the blank area of the third desktop 1501 .
  • the preset database for example, Table 1
  • the Launcher can notify the display module 601 to display in the third desktop 1501 according to the updated database.
  • users can trigger Launcher to display notification messages in the above-mentioned method by adding components to the desktop.
  • the mobile phone may receive a preset operation of adding a component input by the user in the third desktop 1501.
  • the preset operation may be a two-finger pinch operation.
  • the Launcher can display a tool menu 1701 of the desktop in response to the above-mentioned preset operation, wherein an option 1702 for adding components can be set in the tool menu 1701 . If it is detected that the user selects option 1702, as shown in (b) of FIG. 17, Launcher can display preview options of various components.
  • the preview options can include a UU card 1703 for intelligently displaying notification messages.
  • UU card 1703 may be similar to existing weather component 702 .
  • the display content of the UU card 1703 and the weather component 702 may be the same, but the background colors of the two may be different, so as to prompt the user that the UU card 1703 displays the weather component 702 by default when there is no notification message.
  • the UU card 1703 may be similar to the existing calendar and other components, so as to prompt the user that the UU card 1703 displays the corresponding calendar and other components by default when there is no notification message.
  • the Launcher can display the UU card 1703 on the third desktop 1501 . Since the Launcher has not received notification messages from other applications at this time, the display form of the UU card 1703 can be the same as that of the weather component 702 . If the Launcher subsequently receives a notification message from another application, the Launcher can display the corresponding card or card group in the display position of the UU card 1703 according to the method in the above-mentioned embodiment, so as to dynamically display the received notification message to the user. .
  • the Launcher when the Launcher displays the UU card 1703 added by the user for the first time in the third desktop 1501, as shown in FIG. 18, the Launcher can display The guide pop-up window 1801, the content in the guide pop-up window 1801 is used to prompt the user about the specific function and operation method of the UU card 1703.
  • the guide pop-up window 1801 may include multiple pages of pop-up window contents, which are respectively used to prompt the user about the specific function of the UU card 1703, the operation method of switching cards, and the operation method of deleting cards.
  • the user can view the content of each page of the pop-up window by sliding the guide pop-up window 1801 .
  • the Launcher when Launcher displays the UU card 1703 added by the user for the first time in the third desktop 1501, the above-mentioned guiding pop-up window 1801 may not be displayed.
  • the Launcher may display the above-mentioned guiding pop-up window 1801 when receiving a notification message sent by another application for the first time. , to guide the user to know the specific functions and operation methods of the UU card 1703 .
  • the Launcher can also display a corresponding notification message through the UU card 1703 while displaying the above-mentioned guiding pop-up window 1801, which is not limited in this embodiment of the present application.
  • the user can also manually set the type, number or content of notification messages that are allowed to be displayed by the UU card 1703.
  • the Launcher can display the card 703 on the upper layer of the weather component 702 according to the method in the above-mentioned embodiment.
  • the Launcher can display the management window 1001 of the card 703, and the setting option 1901 can be set in the management window 1001.
  • the Launcher can jump to the setting interface 1902 .
  • the user can manually set one or more options such as the type, number or content of the notification message displayed on the UU card 1703. Subsequently, the Launcher may display a user-customized notification message in the UU card 1703 according to the user's selection in the setting interface 1902, thereby improving the user's use experience.
  • the Launcher can also provide the user with options for setting the size, color, and the like of the UU card 1703 , which are not limited in this embodiment of the present application.
  • the mobile phone displays notification messages on the desktop as an example. It can be understood that the above method for displaying notification messages can also be applied to electronic devices such as in-vehicle devices, tablet computers, and watches. Any device can be used to implement the method for displaying notification messages described in the foregoing embodiments, which is not limited in this embodiment of the present application.
  • an embodiment of the present application discloses an electronic device, and the electronic device may be the above-mentioned mobile phone.
  • the electronic device may specifically include: a touch screen 2001 including a touch sensor 2006 and a display screen 2007; one or more processors 2002; a memory 2003; one or more application programs (not shown); and one or more A computer program 2004, the various devices described above may be connected through one or more communication buses 2005.
  • the above-mentioned one or more computer programs 2004 are stored in the above-mentioned memory 2003 and configured to be executed by the one or more processors 2002, and the one or more computer programs 2004 include instructions, which can be used to execute the above-mentioned Relevant steps in the examples.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种通知消息的显示方法及电子设备,涉及终端技术领域,可在电子设备的主屏幕中动态的显示通知消息,及时提醒用户查看相关通知消息,提高用户的使用体验。该方法包括:电子设备显示第一桌面,第一桌面的第一显示区域中显示有第一组件;当电子设备获取到第一事件后,可响应该第一事件,在第一显示区域显示与第一事件对应的第二组件(第二组件与第一组件不同,第二组件包括第一通知消息),且在第一显示区域不显示第一组件,即使用第一组件占用的第一显示区域动态显示相应的通知消息。

Description

一种通知消息的显示方法及电子设备
本申请要求于2021年04月14日提交国家知识产权局、申请号为202110400637.X、发明名称为“一种通知消息的显示方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及终端技术领域,尤其涉及一种通知消息的显示方法及电子设备。
背景技术
目前,手机等电子设备中均会设置通知栏(notification panel),用于展示操作系统或应用接收到的通知消息。以手机为例,如图1中的(a)所示,手机在显示主屏幕(也可称为桌面)等应用时可同时显示状态栏(status bar)101。状态栏101中可显示时间、电量、信号强度、蓝牙状态以及运营商名称等。
如果检测到用户对状态栏101执行下拉操作,如图1中的(b)所示,手机可显示下拉菜单102。当手机中存在应用的通知消息时,手机可将这些通知消息显示在下拉菜单102的通知栏103中。其中,手机可以以通知消息的形式在通知栏103中逐条显示接收到的各个应用的通知消息。
但是,当通知消息的数目较多时,用户需要在通知栏103中上下滑动才能定位到相应的通知消息,甚至会因为通知消息过多而错过一些重要的通知消息,使得用户浏览和查询通知消息时的使用体验不高。
发明内容
本申请提供一种通知消息的显示方法及电子设备,可在电子设备的主屏幕中动态的显示通知消息,及时提醒用户查看相关通知消息,提高用户的使用体验。
为达到上述目的,本申请采用如下技术方案:
第一方面,本申请提供一种通知消息的显示方法,包括:电子设备显示第一桌面,第一桌面的第一显示区域中显示有第一组件(例如天气组件等);当电子设备获取到第一事件(第一事件与第一通知消息相关联)后,可响应该第一事件,在第一显示区域显示与第一事件对应的第二组件(第二组件与第一组件不同,第二组件的内容与第一通知消息的内容相关联),且在第一显示区域不显示第一组件,即使用第一组件占用的第一显示区域动态显示相应的通知消息。这样,用户从当前桌面的组件(即第一组件)中可以动态获知相关的通知消息,同时,电子设备利用桌面中原有的组件显示通知消息时不需要调整桌面中应用图标等其他控件的显示布局,不会对桌面中原本的显示内容造成过多干扰。
在一种可能的实现方式中,上述第二组件可位于第一组件的上层,即电子设备可通过堆叠的方式将最新的通知消息以组件(例如卡片)的形式显示在原有组件的上层。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第一事件对应的第 二组件之后,还包括:当第二组件显示预设时长后,电子设备可在第一桌面中显示第一组件,且第一显示区域不显示第二组件。也就是说,电子设备通过第二组件将第一通知消息显示一定时间后,可自动在桌面中隐藏第二组件,同时显示出原本的第一组件,使得通知消息不仅可以动态的在桌面中显示,还可以在桌面中动态的隐藏。
或者,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,还包括:若接收到用户对第二组件输入预设的删除操作,则电子设备可在第一桌面中显示第一组件,且第一显示区域不显示第二组件。也就是说,用户也可以手动的在桌面中删除显示出的第一通知消息,同时显示出原本的第一组件。
或者,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,还包括:电子设备获取第二事件,第二事件用于指示与第一通知消息对应的业务已完成;此时,响应于第二事件,电子设备可在第一桌面中显示第一组件,且第一显示区域不显示第二组件。也就是说,当第一通知消息对应的业务已完成时,电子设备也可自动在桌面中隐藏第二组件,同时显示出原本的第一组件。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,还包括:电子设备获取第三事件(第三事件与第二通知消息相关联);进而,若第三事件的优先级高于第一事件的优先级,则电子设备在第一显示区域显示与第三事件对应的第三组件,第三组件此时可位于第二组件的上层,第三组件的内容与第二通知消息的内容相关联;或者,若第一事件的优先级高于第三事件的优先级,则电子设备继续在第一显示区域显示第二组件,此时,第三组件可位于第二组件的下层,同样,第三组件的内容与第二通知消息的内容相关联。
以第一事件为APP 1发来通知消息1,第三事件为APP 2发来通知消息2举例,当通知消息1的优先级高于通知消息2的优先级时,电子设备可设置通知消息1的显示顺序位于通知消息2的显示顺序之前。进而,电子设备可将通知消息1以组件的形式(即第二组件)显示在包含通知消息2的第三组件的上层。相应的,当通知消息1的优先级低于通知消息2的优先级时,电子设备可设置通知消息1的显示顺序位于通知消息2的显示顺序之后。进而,电子设备可将通知消息1以组件的形式(即第二组件)显示在包含通知消息2的第三组件的下层,此时,桌面中为用户呈现的为上层的第三组件。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第三事件对应的第三组件之后,还包括:若接收到用户对第三组件输入预设的切换操作,则电子设备可在第一桌面中显示第二组件,且第一显示区域不显示第三组件。也就是说,当第一显示区域中存在多个包含通知消息的组件时,用户可以手动将相应组件切换至桌面中显示。
在一种可能的实现方式中,在电子设备获取第三事件之后,还包括:电子设备可在第一显示区域或第一显示区域的周围显示导航点,导航点用于向提示用户接收到多个通知消息。例如,导航点的个数可与当前通知消息的数目相同。
在一种可能的实现方式中,在电子设备获取第三事件之后,还包括:若检测到用户手指触摸第一显示区域,则电子设备在第一显示区域或第一显示区域的周围显示导航点,导航点用于向提示用户接收到多个通知消息。也就是说,上述导航点可以在包 含通知消息的组件或周围动态的显示或隐藏。
在一种可能的实现方式中,第一桌面的第二显示区域中可以显示有第四组件,即第一桌面中设置有第一组件和第四组件两个组件;此时,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,还包括:电子设备获取第四事件(第四事件与第三通知消息相关联,例如服务器发送包含第三通知消息的事件);进而,响应于第四事件,电子设备可在第二显示区域显示与第四事件对应的第五组件(第五组件的内容与第三通知消息的内容相关联),且第二显示区域不显示第四组件。这样,如果当桌面1中包括多个组件时,多个组件均可用于展示通知消息,方便用户能够从当前桌面中获知更多的通知消息。
在一种可能的实现方式中,电子设备获取第一事件,包括:电子设备在显示第三桌面时获取到第一事件,第三桌面中没有组件;此时,电子设备在第一显示区域显示与第一事件对应的第二组件,包括:若检测到电子设备将第三桌面切换至第一桌面,则电子设备在第一显示区域显示第二组件。也就是说,电子设备在显示没有组件的桌面(例如第二桌面)时如果接收到通知消息,则电子设备可在首次显示设置有组件的桌面(例如第一桌面)时按照上述方法显示对应的通知消息,提示用户查看第一桌面中的通知消息。
或者,如果电子设备在显示第三桌面(第三桌面中没有组件)时获取到第一事件,则电子设备也可在第三桌面的空白区域显示与第一事件对应的第二组件,使用户能够从当前桌面及时获知最新的通知消息。
在一种可能的实现方式中,在电子设备显示第一桌面之前,还包括:响应于用户添加第一组件的操作,电子设备在第一桌面中添加第一组件,第一组件在没有通知消息时可正常显示,在有通知消息时第一组件可支持堆叠显示携带有通知消息的组件;此时,电子设备可显示引导弹窗,引导弹窗用于提示第一显示区域中组件的操作方法,方便用户快速学习组件中展示通知消息的功能。当然,电子设备可在用户第一次添加第一组件时显示引导弹窗,后续再次添加第一组件时不再显示引导弹窗。
在一种可能的实现方式中,上述方法还包括:电子设备可显示设置界面,设置界面用于设置在第一显示区域显示的组件的类型、数目或内容中的一项或多项。例如,携带有通知消息的组件(例如第二组件)中可以包含设置按钮,用户可以通过点击设置按钮进入上述设置界面设置第二组件显示通知消息时的具体功能。
在一种可能的实现方式中,上述第一事件中可以包括第一通知消息;例如,电子设备获取第一事件,具体包括:电子设备从服务器中获取携带第一通知消息的第一事件。或者,上述第一事件中也可以不包括第一通知消息,例如,第一事件可以是用户在日历APP中设置日程的事件,电子设备可响应该第一事件自动生成对应的第一通知消息,并按照上述方法进行显示。
在一种可能的实现方式中,在电子设备获取第一事件之后,还包括:电子设备设置与第一事件对应的第二组件的参数,该参数包括显示顺序、曝光时长、保留时长或组件类型中的一项或多项,本申请对此不做任何限制。
第二方面,本申请提供一种电子设备,包括:触摸屏,触摸屏包括触摸传感器和显示屏;一个或多个处理器;存储器;其中,存储器中存储有一个或多个计算机程 序,一个或多个计算机程序包括指令,当指令被电子设备执行时,使得电子设备执行以下步骤:显示第一桌面,第一桌面的第一显示区域中显示有第一组件;获取第一事件(第一事件与第一通知消息相关联);响应于第一事件,在第一显示区域显示与第一事件对应的第二组件,且第一显示区域不显示第一组件,第二组件与第一组件不同,第二组件的内容与第一通知消息的内容相关联。
在一种可能的实现方式中,第二组件位于第一组件的上层。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,电子设备还用于执行:当第二组件显示预设时长后,在第一桌面中显示第一组件,且第一显示区域不显示第二组件。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,电子设备还用于执行:若接收到用户对第二组件输入预设的删除操作,则在第一桌面中显示第一组件,且第一显示区域不显示第二组件。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,电子设备还用于执行:获取第二事件,第二事件用于指示与第一通知消息对应的业务已完成;响应于第二事件,在第一桌面中显示第一组件,且第一显示区域不显示第二组件。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第一事件对应的第二组件之后,电子设备还用于执行:获取第三事件(第三事件与第二通知消息相关联);若第三事件的优先级高于第一事件的优先级,则在第一显示区域显示与第三事件对应的第三组件,第三组件位于第二组件的上层,第三组件的内容与第二通知消息的内容相关联;或者,若第一事件的优先级高于第三事件的优先级,则继续在第一显示区域显示第二组件,第三组件位于第二组件的下层,同样,第三组件的内容与第二通知消息的内容相关联。
在一种可能的实现方式中,在电子设备在第一显示区域显示与第三事件对应的第三组件之后,电子设备还用于执行:若接收到用户对第三组件输入预设的切换操作,则在第一桌面中显示第二组件,且第一显示区域不显示第三组件。
在一种可能的实现方式中,在电子设备获取第三事件之后,电子设备还用于执行:在第一显示区域或第一显示区域的周围显示导航点,导航点用于向提示用户接收到多个通知消息。
在一种可能的实现方式中,在电子设备获取第三事件之后,电子设备还用于执行:若检测到用户手指触摸第一显示区域,则在第一显示区域或第一显示区域的周围显示导航点,导航点用于向提示用户接收到多个通知消息。
在一种可能的实现方式中,第一桌面的第二显示区域中显示有第四组件;在电子设备在第一显示区域显示与第一事件对应的第二组件之后,电子设备还用于执行:获取第四事件(第四事件与第三通知消息相关联);响应于第四事件,在第二显示区域显示与第四事件对应的第五组件,且第二显示区域不显示第四组件,第五组件的内容与第三通知消息的内容相关联。
在一种可能的实现方式中,电子设备获取第一事件,具体包括:电子设备在显示第三桌面时获取到第一事件,第三桌面中没有组件;其中,电子设备在第一显示区域 显示与第一事件对应的第二组件,具体包括:若检测到电子设备将第三桌面切换至第一桌面,则电子设备在第一显示区域显示第二组件。
在一种可能的实现方式中,电子设备获取第一事件,具体包括:电子设备在显示第三桌面时获取到第一事件,第三桌面中没有组件;在电子设备获取第一事件之后,电子设备还用于执行:电子设备在第三桌面的空白区域显示与第一事件对应的第二组件。
在一种可能的实现方式中,在电子设备显示第一桌面之前,电子设备还用于执行:响应于用户添加第一组件的操作,电子设备在第一桌面中添加第一组件;电子设备显示引导弹窗,引导弹窗用于提示第一显示区域中组件的操作方法。
在一种可能的实现方式中,电子设备还用于显示设置界面,设置界面用于设置在第一显示区域显示的组件的类型、数目或内容中的一项或多项
在一种可能的实现方式中,第一事件中包括第一通知消息;其中,电子设备获取第一事件,包括:电子设备从服务器中获取携带第一通知消息的第一事件。
在一种可能的实现方式中,在电子设备获取第一事件之后,电子设备还用于执行:电子设备设置与第一事件对应的第二组件的参数,该参数包括显示顺序、曝光时长、保留时长或组件类型中的一项或多项。
第三方面,本申请提供一种电子设备,包括:存储器、显示屏和一个或多个处理器;存储器、显示屏与处理器耦合。其中,存储器用于存储计算机程序代码,计算机程序代码包括计算机指令;当电子设备运行时,该处理器用于执行该存储器存储的一个或多个计算机指令,以使电子设备执行如上述第一方面中任一项所述的通知消息的显示方法。
第四方面,本申请提供一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面中任一项所述的通知消息的显示方法。
第五方面,本申请提供一种计算机程序产品,当计算机程序产品在电子设备上运行时,使得电子设备执行如第一方面中任一项所述的通知消息的显示方法。
可以理解地,上述提供的第二方面和第三方面所述的电子设备、第四方面所述的计算机存储介质,以及第五方面所述的计算机程序产品均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
附图说明
图1为现有技术中显示通知消息的应用场景示意图;
图2为本申请实施例提供的一种电子设备的结构示意图一;
图3为本申请实施例提供的一种电子设备中软件架构的架构示意图;
图4为本申请实施例提供的一种通知消息的显示方法的应用场景示意图一;
图5为本申请实施例提供的一种通知消息的显示方法的应用场景示意图二;
图6为本申请实施例提供的一种通知消息的显示方法的交互流程示意图;
图7为本申请实施例提供的一种通知消息的显示方法的应用场景示意图三;
图8为本申请实施例提供的一种通知消息的显示方法的应用场景示意图四;
图9为本申请实施例提供的一种通知消息的显示方法的应用场景示意图五;
图10为本申请实施例提供的一种通知消息的显示方法的应用场景示意图六;
图11为本申请实施例提供的一种通知消息的显示方法的应用场景示意图七;
图12为本申请实施例提供的一种通知消息的显示方法的应用场景示意图八;
图13为本申请实施例提供的一种通知消息的显示方法的应用场景示意图九;
图14A为本申请实施例提供的一种通知消息的显示方法的应用场景示意图十;
图14B为本申请实施例提供的一种通知消息的显示方法的应用场景示意图十一;
图15为本申请实施例提供的一种通知消息的显示方法的应用场景示意图十二;
图16为本申请实施例提供的一种通知消息的显示方法的应用场景示意图十三;
图17为本申请实施例提供的一种通知消息的显示方法的应用场景示意图十四;
图18为本申请实施例提供的一种通知消息的显示方法的应用场景示意图十五;
图19为本申请实施例提供的一种通知消息的显示方法的应用场景示意图十六;
图20为本申请实施例提供的一种电子设备的结构示意图二。
具体实施方式
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
下面将结合附图对本实施例的实施方式进行详细描述。
示例性的,本申请实施例提供的一种通知消息的显示方法可应用于手机、车载设备(也可称为车机)、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、手持计算机、上网本、个人数字助理(personal digital assistant,PDA)、可穿戴电子设备、虚拟现实设备等具有显示功能的电子设备,本申请实施例对此不做任何限制。
以手机为上述电子设备举例,如图2所示,为手机的一种结构示意图。
其中,手机可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180等。
可以理解的是,本发明实施例示意的结构并不构成对手机的具体限定。在本申请另一些实施例中,手机可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是 独立的器件,也可以集成在一个或多个处理器中。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
手机的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。手机中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在手机上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
无线通信模块160可以提供应用在手机上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,手机的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得手机可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division  multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
手机通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,手机可以包括1个或N个显示屏194,N为大于1的正整数。
以OLED显示屏举例,一块OLED显示屏中可以包含阵列排布的多个OLED像素单元。如图2所示,每个OLED像素单元中包含阴极201,阳极202,以及位于阴极201和阳极202之间的电子传输层203、空穴传输层204以及发光层205。其中,阴极201可以为金属电极,阳极202可以为ITO(indium tin oxide,氧化铟锡)透明电极。
向阴极201和阳极202输入驱动电压V后,在驱动电压V的作用下,电子从阴极201传输到电子传输层203,空穴从阳极202注入到空穴传输层204,二者在发光层205相遇后产生激子,使得发光层205中的发光分子激发,经过辐射后产生光源。当驱动电压V不同时,可激发对应的OLED像素单元呈现不同的颜色和亮度。这样,OLED显示屏中的各个OLED像素单元可在不同的驱动电压下显示出对应的画面。
其中,电子传输层203、空穴传输层204以及发光层205中的有机材料在使用过程中会逐渐老化。而OLED显示屏中出现的残影现象,其实就是某个固定位置的OLED像素单元长时间总显示相同且静止的图像,导致这部分像素单元中的有机材料比其他位置更加耗损,发光效率衰减得更快,从而在OLED显示屏上留下了残影。
手机可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP 可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,手机可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当手机在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。手机可以支持一种或多种视频编解码器。这样,手机可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行手机的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
手机可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。手机可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当手机接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。手机可以设置至少一个麦克风170C。在另一些实施例中,手机可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实 施例中,手机还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
传感器模块180中可以包括压力传感器,陀螺仪传感器,气压传感器,磁传感器,加速度传感器,距离传感器,接近光传感器,指纹传感器,温度传感器,触摸传感器,环境光传感器,骨传导传感器等。
当然,手机还可以包括充电管理模块、电源管理模块、电池、按键、指示器以及1个或多个SIM卡接口等,本申请实施例对此不做任何限制。
上述电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图3是本申请实施例的电子设备100的软件结构框图。
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。
1、应用程序层
应用程序层可以包括一系列应用程序。
如图3所示,上述应用程序可以包括通话,联系人,相机,图库,日历,地图,导航,蓝牙,音乐,视频,短信息等应用(application,APP)。
在一些实施例中,上述应用程序还可以包括Launcher(也可称为桌面应用或主屏幕等)。一般,Android系统启动后Launcher可作为核心应用常驻在Android系统中运行。Launcher作为Android系统的启动器,可对安装的应用程序进行基础的管理,比如删除或者展示应用程序等。
示例性的,Launcher运行时可显示一个或多个显示界面作为电子设备的桌面。例如,如图4中的(a)所示,显示界面401为电子设备的第一桌面,如图4中的(b)所示,显示界面402为电子设备的第二桌面。Launcher可在显示界面401(或显示界面402)中显示应用程程序的图标、文件夹等。在一些实施例中,Launcher还可以在显示界面401(或显示界面402)中显示天气、时钟等组件403。这些组件也可称为widget、微件、部件、卡片等,本申请实施例对此不做任何限制。
仍如图4中的(a)所示,Launcher可预先将显示界面401划分为大小一定的多个网格单元404。这些网格单元404对齐后可形成完整的显示界面401。例如,显示界面401中包括4*8个网格单元404。Launcher一般以一个网格单元404为最小单位在显示界面401中进行布局和显示。例如,天气组件403在显示界面401中的大小为2*4,即天气组件403占用了8个网格单元404的大小显示在显示界面401中。
在另一些实施例中,上述应用程序还可以包括通知中心APP(也可称为通知APP等)。通知中心APP可接收到其他应用发来的通知消息,并将接收到的通知消 息显示在通知栏(也可称为通知面板)中。该通知栏可位于下拉菜单、负一屏界面或锁屏界面等。
其中,上述通知消息可以是来自某一应用的通知消息(例如音乐APP的推送消息),也可以是来自操作系统的通知消息(例如版本升级消息),还可以是来自FA(Feature Ability,FA)或PA(Particle Ability)的通知消息,本申请实施例对此不做任何限制。
在本申请实施例中,Launcher也可接收其他应用发来的通知消息。例如,航班应用接收到服务器发送的用户购买的航班消息后,可将该航班消息中的航班号、登记时间以及落地时间等参数携带在通知消息1中发送给Launcher。进而,Launcher可将通知消息1显示在当前桌面(例如上述显示界面401或显示界面402)中。例如,如图5所示,如果Launcher接收到上述通知消息1时正在显示显示界面401,则Launcher可将与通知消息1对应的组件显示在天气组件403占用的显示区域,同时隐藏天气组件403(即不显示天气组件403)。示例性的,仍如图5所示,与通知消息1对应的组件可以卡片501的形式呈现给用户,后续实施例中均以卡片为相应通知消息的组件进行举例说明。例如,卡片501中可以包括上述航班号、登机时间以及落地时间等参数。也就是说,Launcher可利用当前桌面中的组件显示接收到的通知消息,使用户能够从桌面上及时获知通知消息的具体内容。
后续,Launcher还可以动态的隐藏上述卡片501。例如,当卡片501显示预设时间后,Launcher可自动隐藏卡片501,显示出原本的天气组件403。又例如,当Launcher接收到优先级更高的通知消息2时,Launcher可自动隐藏卡片501,并在卡片501上覆盖与通知消息2对应的卡片。又例如,当Launcher接收到用户登机成功的消息后,Launcher也可自动隐藏卡片501,后续实施例中将对此进行详细阐述,故此处不予赘述。
也就是说,在本申请实施例提供的通知消息的显示方法中,Launcher不仅可以利用当前桌面中的组件动态的显示通知消息,方便用户及时获知最新的通知消息,Launcher还可以动态的隐藏已显示的通知消息,保证通知消息在桌面中显示的时效性,提高用户的使用体验。并且,Launcher利用桌面中原有的组件显示通知消息时不需要调整桌面中应用图标等其他控件的显示布局,不会对桌面中原本的显示内容造成过多干扰。
2、应用程序框架层
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
示例性的,应用程序框架层中可以包括活动管理器,窗口管理器,内容提供器,视图系统,资源管理器,输入法管理器等。
其中,活动管理器可用于管理每个应用的生命周期。应用通常以activity的形式运行在操作系统中。活动管理器可以调度应用的activity进程管理每个应用的生命周期。窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以 被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等。
3、Android runtime和系统库
Android runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
其中,表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。2D图形引擎是2D绘图的绘图引擎。
4、内核层
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动等,本申请实施例对此不做任何限制。
以下仍以手机为例,结合附图详细阐述本申请实施例提供的一种通知消息的显示方法。
示例性的,手机中安装的各个应用可向Launcher发送相应的通知消息,以请求Launcher显示该通知消息。
例如,日历APP可记录用户输入的一项或多项日程。每项日程中用户可以设置日程的提醒时间。当到达某一日程的提醒时间时,日历APP可向Launcher发送对应的通知消息。又例如,用户可以使用出行APP购买机票、火车票等票务订单。票务订单中一般包括航班号、起飞时间、登机时间、登机口、检票口或开车时间等一项或多项信息。出行APP的服务器(例如服务器A)中可以维护各个用户购买的票务订单。并且,服务器A可基于票务订单中的各项信息向手机发送对应的通知消息。例如,当服务器A检测到距离某一票务订单中的登机时间还有两小时时,可向手机中的出行APP发送对应的通知消息。进而,出行APP可将该通知消息发送至Launcher。
可以看出,Launcher获取到的通知消息可以是手机本地响应于某一事件生成的通 知消息(例如上述日历APP根据用户设置的日程生成的通知消息),也可以是第三方应用的服务器生成的通知消息(例如上述服务器A发送的通知消息),即响应于服务器发送通知消息这一事件获取到对应的通知消息。也就是说,无论通知消息是手机本地生成的,还是从服务器获取到的,本申请实施例中可统一表述为:Launcher响应于某一事件(例如第一事件),得到对应的通知消息。
当然,第三方应用的服务器也可以从其他系统(或应用)的服务器中获取对应的票务订单,以生成该票务订单的通知消息。例如,出行APP可以从中国铁路的12306系统中获取用户购买的票务订单,进而根据获取到的票务订单生成对应的通知消息,并将通知消息发送至手机的出行APP。
示例性的,如图6所示,手机的Launcher中可包括显示模块601和管理模块602。其中,管理模块602可用于管理其他应用发来的各个通知消息。例如,对通知消息进行排序、设置通知消息的优先级、显示时长、显示位置和大小等。管理模块602可将需要显示的通知消息发送给显示模块601进行显示。
仍如图6所示,以出行APP向Launcher发送票务订单1的通知消息1举例,出行APP接收到服务器A发送的通知消息1后,可将该通知消息1中的内容实例化为一个对应的通知对象1(即notification对象,也可称为结构体)。例如,该notification对象1中可包含出行APP的标识、通知标题以及通知内容(例如航班号、登机时间、到达时间、机场信息)等参数,这些参数中的一项或多项可作为后续通知消息1中需要显示的内容。进而,出行APP可调用相关接口将创建好的notification对象1发送给Launcher中的管理模块602,即将通知消息1发送给Launcher。
仍如图6所示,Launcher的管理模块602用于在预设的数据库中维护和管理来自各个应用发送的notification对象(即通知消息)。例如,如果Launcher的管理模块602在接收到上述notification对象1之前还没有接收到其他应用发送的notification对象,则如表1所示,管理模块602可在预设的数据库中将notification对象1的显示顺序设置为第1位。并且,仍如表1所示,管理模块602还可以设置notification对象1的曝光时长以及保留时长。其中,曝光时长是指显示notification对象1时的时长,保留时长是指将notification对象1保留在桌面的时长,notification对象1保留在桌面时可以显示也可以不显示。notification对象的保留时长一般大于或等于其曝光时长。例如,当notification对象1的曝光时长为2分钟,保留时长为5分钟时,当Launcher检测到通知消息1已显示满2分钟后,可将通知消息1隐藏在Launcher中并显示其他通知消息。此时,通知消息1虽然不在Launcher中显示,但仍保留在Launcher。例如,通知消息1可隐藏在其他通知消息的下层,用户可以手动将通知消息1唤出至Launcher中显示。后续,当Launcher检测到通知消息1已在Launcher中保留了5分钟时,Launcher可将与通知消息1对应的notification对象1删除。此时,用户无法在Launcher中唤出通知消息1。或者,当notification对象1的曝光时长和保留时长均为2分钟时,当Launcher检测到通知消息1已显示满2分钟后,可直接将notification对象1删除,使得Launcher无法再显示出对应的通知消息1。
在一些实施例中,管理模块602还可以设置notification对象1的卡片类型,例 如出行类卡片、紧急通知类卡片、推送类卡片等。当然,管理模块602还可以设置显示notification对象1时使用的卡片大小和位置等参数,本申请实施例对此不做任何限制。
表1
notification对象 显示顺序 曝光时长 保留时长 卡片类型
notification对象1 第1位 2分钟 5分钟 出行类
进而,仍如图6所示,Launcher的管理模块602可向显示模块601发送通知消息1,用于通知显示模块601按照表1所示的数据库显示对应的通知消息。响应于通知消息1,显示模块601可在当前桌面内设置有组件的显示区域中显示与notification对象1对应的卡片,并隐藏原本显示的组件。
示例性的,如图7中的(a)所示,Launcher接收到来自出行APP的上述通知消息1时,正在显示第一桌面701。第一桌面701中设置有天气组件702。天气组件702位于显示区域1,天气组件702的大小为2*4个网格单元。当Launcher的显示模块601接收到上述通知消息1后,由于表1中记录的位于第1位显示顺序的notification对象为notification对象1,则如图7中的(b)所示,Launcher的显示模块601可将与上述notification对象1对应的卡片703覆盖在天气组件702的上层,即卡片703和天气组件702堆叠显示在显示区域1中,卡片703和天气组件702的大小相同,卡片703位于天气组件702的上层,使得天气组件702被隐藏在第一桌面701中。其中,卡片703具体可包括notification对象1中携带的相关参数,例如出行APP的标识703a、航班号703b、起飞时间703c、到达时间703d、登机口703e等。
这样,通过手机中的Launcher通过接收其他应用的通知消息,可利用当前桌面中的组件显示该通知消息中的具体内容,使用户可以及时从当前桌面中获知最新的通知消息,避免用户错过该通知消息,提高用户的使用体验。同时,利用现有的组件显示通知消息时不会占用当前桌面上额外的显示空间、不需要调整当前桌面的整体显示布局,使得手机可以在极小的空间调整成本下显示尽可能多的内容。
仍以上述卡片703举例,Launcher的显示模块601通过卡片703显示出出行APP的通知消息1后,Launcher的管理模块602可继续按照表1所示的数据库管理卡片703。例如,当表1中设置了notification对象1的曝光时长为2分钟时,Launcher的管理模块602可监测上述卡片703的显示时间。例如,Launcher的管理模块602还可以实时更新卡片703的剩余曝光时间。当卡片703在第一桌面701中的显示时间达到2分钟后,如图8中的(a)所示,管理模块602可指示显示模块601在第一桌面701中隐藏卡片703。此时,位于卡片703下层的天气组件702显示在第一桌面701中。
此时,显示模块601虽然隐藏了卡片703,但由于卡片703在第一桌面701中的保留时长未超过5分钟,因此,显示模块601可将卡片703保留在第一桌面701中。例如,显示模块601可将卡片703显示在天气组件702的下层。如果用户需要重新在第一桌面701中显示卡片703,如图8中的(b)所示,用户可以对位于上层的天气组件702输入滑动操作。进而,显示模块601可响应该滑动操作将卡片703显示在天气组件702的上层,重新唤出卡片703。
后续,当管理模块602检测到卡片703在第一桌面701中的保留时长到达5分钟 时,管理模块602可删除表1中的notification对象1以及notification对象1对应的显示顺序、曝光时长等参数。同时,管理模块602可指示显示模块601在第一桌面701中删除卡片703。此时,第一桌面701可恢复图7中的(a)所示的界面,即显示出位于卡片703下层的天气组件702。
或者,在卡片703显示或保留在第一桌面701中的这段时间内,出行APP可接收用于指示与通知消息1对应的业务已完成的事件。例如,该事件可以是服务器向出行APP发送值机成功消息或登机成功消息(即业务完成消息)的事件。此时,出行APP可将该业务完成消息发送给Launcher的管理模块602,管理模块602可响应该业务完成消息,删除表1中的notification对象1以及notification对象1对应的显示顺序、曝光时长等参数。同时,管理模块602可指示显示模块601在第一桌面701中删除卡片703。在一些实施例中,指示与通知消息1对应的业务已完成的事件也可以是手机本地生成的。例如,手机中的日历APP可在完成某一日程后生成相应的业务完成消息发送给Launcher。在一些实施例中,指示与通知消息1对应的业务已完成的事件也可以是用户输入的。例如,Launcher检测到用户将手机中的待办事项1设置为已完成这一事件后,可删除对应的notification对象以及对应的显示顺序、曝光时长等参数,本申请实施例对此不做任何限制。
又或者,Launcher在在第一桌面701中显示卡片703时,还可以响应用户输入的删除操作删除卡片703。例如,如图9所示,Launcher在在第一桌面701中显示卡片703时,如果检测到用户对卡片703输入滑动操作(例如左滑操作或右滑操作),则Launcher的管理模块602可响应该滑动操作,删除表1中的notification对象1以及notification对象1对应的显示顺序、曝光时长等参数。同时,管理模块602可指示显示模块601在第一桌面701中删除卡片703。示例性的,仍如图9所示,显示模块601将卡片703从第一桌面701中移除时,可跟随用户输入的滑动操作将卡片703逐渐从第一桌面701中移除,同时逐渐显示出位于卡片703下层的天气组件702。
其中,Launcher的显示模块601在显示天气组件702时可将天气组件702的背景设置为透明的或者非透明的,本申请实施例对此不做任何限制。例如,仍如图7中的(a)所示,Launcher在天气组件702的上层显示卡片703之前,天气组件702的背景可以为透明的。当天气组件702的上层覆盖了卡片703后,Launcher可将天气组件702的背景设置为不透明的。相应的,当Launcher删除位于天气组件702上层的卡片703后,Launcher可将显示出的天气组件702的背景再次恢复为透明的显示效果,以提示用户天气组件702所在的位置已经不存在其他通知消息。
也就是说,当Launcher利用当前的某一组件显示出对应的通知消息后,可通过Launcher为该通知消息设置的保留时长触发Launcher删除该通知消息,也可以通过接收与通知消息对应的业务完成消息触发Launcher删除该通知消息,还可以响应用户对通知消息的删除操作触发Launcher删除该通知消息,使得通知消息不仅可以动态的在当前桌面中展现,也可以动态的从当前桌面中消失。
需要说明的是,用户通过输入删除操作手动将卡片703移除第一桌面701时,该删除操作除了可以是上述滑动操作外,还可以是点击删除按钮(或称为忽略按钮)等操作。例如,如图10中的(a)所示,Launcher在在第一桌面701中显示卡片703 时,如果检测到用户对卡片703输入长按操作,则Launcher可显示卡片703的管理窗口1001,管理窗口1001中可以设置删除选项1002。如果检测到用户选择删除选项1002,则Launcher可按照上述方法删除卡片703。又例如,如图10中的(b)所示,Launcher在在第一桌面701中显示卡片703时,还可以在卡片703中设置删除按钮1003。如果检测到用户选择删除按钮1003,则Launcher可按照上述方法删除卡片703。
上述实施例是以Launcher利用当前桌面中的天气组件702显示一个通知消息举例说明的,在另一些实施例中,Launcher还可以按照上述方法接收不同应用发来的不同通知消息,进而将接收到的多个通知消息以卡片组的形式与天气组件702堆叠显示。
示例性的,当Launcher的管理模块602接收到出行APP发送的上述notification对象1后,还可以接收其他应用发送的notification对象。例如,当日历APP检测到当前时间到达用户在日程1中设置的提醒时间后,可将日历APP的标识、通知标题以及通知内容(例如提醒时间、日程内容)等参数实例化为对应的notification对象2,进而将notification对象2发送给Launcher中的管理模块602,即将通知消息2发送给Launcher。
此时,如表2所示,Launcher的管理模块602可将notification对象2记录在预设的数据库中。并且,与上述notification对象1类似的,Launcher的管理模块602还可以设置notification对象2的显示顺序、曝光时长、保留时长以及卡片类型等参数。不同的是,当数据库中有多个notification对象时,管理模块602可通过对比多个notification对象更新各个notification对象之间的显示顺序。例如,可预先设置出行类的notification对象的优先级高于通知类的notification对象的优先级。此时,管理模块602可设置notification对象1的显示顺序为第1位,并设置notification对象2的显示顺序为第2位。又例如,管理模块602可分别提取每个notification对象中的通知内容,进而根据具体的通知内容确定notification对象之间的显示顺序,本申请实施例对此不做任何限制。
表2
notification对象 显示顺序 曝光时长 保留时长 卡片类型
notification对象1 第1位 2分钟 5分钟 出行类
notification对象2 第2位 1分钟 3分钟 通知类
当Launcher的管理模块602更新完上述数据库后,可向显示模块601发送通知消息2,用于通知显示模块601按照表2所示的数据库显示当前的多个通知消息。此时,如果notification对象2的显示顺序位于notification对象1的显示顺序之后,则如图11所示,Launcher的显示模块601仍然可在当前正在显示的第一桌面701的天气组件702上覆盖与上述notification对象1对应卡片703。此时,与上述notification对象1对应的卡片1101位于卡片703的下层,卡片1101与卡片703形成通知消息的卡片组1。天气组件702可位于卡片组1的下层隐藏在第一桌面701中。
另外,为了提示用户接收到的新的通知消息,Launcher在按照表2所示的数据库显示上述卡片组时播放预设的动画,例如振动卡片边框的动画等,以提示用户在卡片 703下隐藏有新接收到的卡片1101。当然,手机还可以通过震动或播放提示音等方式提示用户接收到新的通知消息,本申请实施例对此不做任何限制。
在一些实施例中,仍如图11所示,Launcher的显示模块601还可以在卡片组1的周围显示导航点1102。例如,导航点1102的数目可与当前卡片组1内的通知消息的数目相同。这样,通过导航点1102也可以提示用户接收到新的通知消息。
示例性的,上述导航点1102可以在卡片组1的周围动态的显示或隐藏。例如,Launcher可在接收到新的通知消息时短暂闪现导航点1102。又例如,Launcher可在上述卡片组1中通知消息的数目发生变化时短暂闪现导航点1102。又例如,Launcher可在用户从其他显示界面切换至上述第一桌面701时短暂闪现导航点1102,本申请实施例对此不做任何限制。
在另一些实施例中,Launcher的显示模块601还可以通过设置角标的形式提示用户接收到的通知消息的数目。例如,如图12所示,Launcher的显示模块601将卡片1101和卡片703组成的卡片组1堆叠显示在天气组件702上层后,可在卡片组1的右上角(或卡片组1的任意一角)显示角标1201,角标1201中的数字为当前卡片组1中通知消息的数目。并且,角标1201也可以按照上述方法动态的被显示或隐藏,本申请实施例对此不做任何限制。
示例性的,Launcher利用第一桌面701中的天气组件702显示出上述卡片组1后,还可以接收其他应用发送的通知消息。例如,出行APP还可以对用户进行定位。例如,出行APP可通过GPS、基站或Wi-Fi信号等方式对用户进行定位,得到用户的定位结果。当最新的定位结果指示用户在某一地铁站内(或地铁站附近)时,出行APP可将地铁站的名称、乘车码等参数实例化为对应的notification对象3,进而将notification对象3发送给Launcher的管理模块602。
此时,与上述实施例类似的,如表3所示,Launcher的管理模块602可将notification对象3记录在预设的数据库中。并且,Launcher的管理模块602可以设置notification对象3的显示顺序、曝光时长、保留时长以及卡片类型等参数。示例性的,如果预先设置了乘车码的优先级高于航班信息的优先级,则如表3所示,管理模块602可将notification对象3的显示顺序设置为第1位,将notification对象1的显示顺序设置为第2位,并将notification对象2的显示顺序设置为第3位,得到更新后的数据库。
表3
notification对象 显示顺序 曝光时长 保留时长 卡片类型
notification对象3 第1位 2分钟 5分钟 出行类
notification对象1 第2位 2分钟 5分钟 出行类
notification对象2 第3位 1分钟 3分钟 通知类
当Launcher的管理模块602更新完上述数据库后,可向显示模块601发送通知消息3,用于通知显示模块601按照表3所示的数据库显示当前的多个通知消息。此时,如图13中的(a)所示,显示模块601可在当前正在显示的第一桌面701的天气组件702上覆盖卡片组1,不同的是,卡片组1中位于最上层的是与notification对象3对应的卡片1301,卡片组1中位于最下层的是与notification对象2对应的卡片 1101(图13中未示出),卡片1101与卡片1301之间是与notification对象1对应的卡片703(图13中未示出)。也就是说,如果最新接收到的通知消息的优先级高于当前位于卡片组最上层的卡片(例如卡片703),则Launcher可将最新接收到的通知消息以卡片的形式显示在卡片组的最上层,使用户能够及时获知优先级最高的通知消息的内容。
另外,当上述卡片组1中包括多个通知消息时,用户还可以手动切换位于卡片组1最上层的通知消息。仍如图13中的(a)所示,Launcher将卡片1301作为最上层的通知消息显示在第一桌面701后,用户可通过在卡片1301上输入切换操作(例如上滑操作或下滑操作)切换位于卡片组1最上层的通知消息。示例性的,如果检测到用户在卡片1301上输入上滑操作,Launcher可更新表3所示的数据库,调整各个notification对象的显示顺序。如表4所示,Launcher可通过管理模块602将notification对象3的显示顺序设置为第3位,将notification对象1的显示顺序设置为第1位,并将notification对象2的显示顺序设置为第2位。进而,Launcher可通过显示模块601按照表4所示的数据库显示当前的多个通知消息。此时,如图13中的(b)所示,显示模块601可在第一桌面701的天气组件702上覆盖卡片组1,不同的是,此时卡片组1中位于最上层的是与notification对象1对应的卡片703,从而实现卡片组1内通知消息的切换。
表4
notification对象 显示顺序 曝光时长 保留时长 卡片类型
notification对象1 第1位 2分钟 5分钟 出行类
notification对象2 第2位 1分钟 3分钟 通知类
notification对象3 第3位 2分钟 5分钟 出行类
当然,Launcher也可以自动更新与卡片组1对应的数据库,并按照更新后的数据库在第一桌面701中刷新卡片组1。例如,Launcher可以设置卡片组1中的每张卡片依次显示10s后切换至下一张卡片显示,本申请实施例对此不做任何限制。
在一些实施例中,上述卡片组1也可以包括上述天气组件702。例如,卡片组1中可以包括上述卡片703、卡片1101、卡片1301以及天气组件702。如果天气组件702为卡片1301的下层,则当Launcher接收到用户对卡片1301输入的切换操作后,Launcher可显示位于卡片1301下层的天气组件702。
需要说明的是,上述实施例中是以管理模块602设置在Launcher进行举例说明的,可以理解的是,上述管理模块602也可以设置在应用程序层的其他应用、引擎或服务中。或者,上述管理模块602也可以设置在应用程序框架层中。又或者,上述管理模块602也可以设置在网络侧的服务器中,手机可通过与服务器中的管理模块602交互实现上述方法,本申请实施例对此不做任何限制。
上述实施例中是以Launcher占用天气组件702的显示区域显示卡片或卡片组举例说明的,在一些实施例中,手机正在显示的桌面中可能设置有多个组件。
例如,如图14A中的(a)所示,手机正在显示的第二桌面1401中可以设置天气组件702和日历组件1402。此时,如果Launcher接收到其他应用发送的一个或多个通知消息,则Launcher可按照上述方法在天气组件702和日历组件1402中任一个 组件所在的显示区域显示通知消息。例如,Launcher可设置默认使用天气组件702所在的显示区域显示通知消息。此时,如图14A中的(b)所示,Launcher可将与接收到的通知消息对应的卡片1403(或卡片组)的大小设置为天气组件702的大小,进而卡片1403显示在天气组件702的上层。或者,Launcher可根据卡片1403的大小选择相应组件所在的显示区域进行显示。例如,如果卡片1403的大小与天气组件702的大小相同,则Launcher可将卡片1403显示在天气组件702的上层,此时,日历组件1402的显示不受影响。当然,如果卡片1403的大小与日历组件1402的大小相同,则Launcher可将卡片1403显示在日历组件1402的上层,此时,天气组件702的显示不受影响
或者,如图14B中的(a)所示,仍以第二桌面1401中包括天气组件702和日历组件1402举例,Launcher接收到其他应用发送的一个或多个通知消息后,还可以将上述两个组件均用于展示通知消息。例如,如图14B中的(b)所示,Launcher可将先接收到的出行APP发送的通知消息,以卡片1403的形式显示在天气组件702的上层。后续,如果Launcher又接收到日历APP发送的通知消息,则Launcher可将对应的卡片1404显示在日历组件1402的上层。又例如,当Launcher接收到多个通知消息时,Launcher可将显示顺序位于第1位和第2位的通知消息分别显示在天气组件702和日历组件1402的上层。当然,如果第二桌面1401中还包括更多的组件时,Launcher还可以按照上述方法显示出更多的通知消息,方便用户能够从当前桌面中获知更多的通知消息。
在另一些实施例中,当Launcher接收其他应用发送的一个或多个通知消息时,手机正在显示的桌面中也可能没有设置组件。示例性的,如图15中的(a)所示,手机在显示第三桌面1501(第三桌面1501中没有组件)时,Launcher可以接收其他应用发送的一个或多个通知消息。例如,Launcher接收到出行APP发送的通知消息后,仍然可按照上述实施例提供的方法更新预设的数据库(例如表1所示的数据库)。不同的是,Launcher可以暂时不通知显示模块601按照更新后的数据库进行显示。相应的,当Launcher从第三桌面1501切换至第一桌面701时,例如,当检测到用户输入滑动操作将第三桌面1501切换为第一桌面701时,Launcher可以通知显示模块601按照更新后的数据库进行显示,此时,如图15中的(b)所示,Launcher可在第一桌面701中将对应的卡片703覆盖在天气组件702的上层显示。
另外,当Launcher从第三桌面1501切换至第一桌面701时,Launcher还可以通过对卡片703播放预设的动画,或者通过显示导航点或角标,或者通过震动或播放提示音等方式用户查看第一桌面701中的通知消息。
类似的,如果手机在锁屏(也可称为息屏或黑屏)时接收到各个应用发送的一个或多个通知消息,则手机也可安装上述方法在首次显示第一桌面701时按照更新后的数据库进行显示,本申请实施例对此不做任何限制。
在另一些实施例中,仍以手机正在显示的桌面为没有设置组件的第三桌面1501举例,此时,Launcher接收到其他应用发送的一个或多个通知消息后,Launcher还可以在第三桌面1501中的空白区域显示与通知消息对应的卡片(或卡片组)。其中,空白区域是指没有应用图标、组件以及文件夹等控件的区域,空白区域中可以包括壁 纸等内容。
如图16中的(a)所示,手机在显示第三桌面1501时,Launcher如果接收到出行APP发送的通知消息,则Launcher可按照上述实施例提供的方法更新预设的数据库(例如表1所示的数据库)。进而,Launcher可以通知显示模块601在第三桌面1501中按照更新后的数据库进行显示。例如,与出行APP发送的通知消息对应的卡片703的大小为2*4,如图16中的(b)所示,Launcher可以在第三桌面1501的空白区域中选择一块大小为2*4的显示区域显示卡片703。又例如,Launcher可以先根据第三桌面1501中空白区域的大小设置卡片703的大小,一般,卡片703的大小小于或等于空白区域的大小。进而,Launcher可将卡片703显示在第三桌面1501的空白区域。
另外,用户可以通过在桌面中添加组件的方式触发Launcher按照上述方法显示通知消息。示例性的,手机在显示上述第三桌面1501时,可接收用户在第三桌面1501中输入的添加组件的预设操作。例如,该预设操作可以为两指捏合的操作。进而,如图17中的(a)所示,Launcher可响应上述预设操作显示桌面的工具菜单1701,其中,工具菜单1701中可设置用于添加组件的选项1702。如果检测到用户选择选项1702,则如图17中的(b)所示,Launcher可展示各类组件的预览选项,例如,预览选项中可以包括用于智能显示通知消息的UU卡片1703,可以理解的是,本申请实施例对卡片1703的名称不做限制。UU卡片1703可与现有的天气组件702类似。例如,UU卡片1703与天气组件702中的显示内容可以相同,但二者的背景颜色可以不同,从而提示用户UU卡片1703在没有通知消息时默认显示天气组件702。或者,UU卡片1703可与现有的日历等组件类似,以提示用户在没有通知消息时UU卡片1703默认显示对应的日历等组件。后续,如果检测到用户选择上述UU卡片1703,则如图17中的(c)所示,Launcher可在第三桌面1501中显示UU卡片1703。由于此时Launcher尚未接收到其他应用发来的通知消息,因此UU卡片1703的显示形态可与天气组件702相同。如果后续Launcher接收到其他应用发来的通知消息,则Launcher可按照上述实施例中的方法利用UU卡片1703所在的显示位置显示对应的卡片或卡片组,从而动态的向用户展示接收到的通知消息。
在一些实施例中,为了较好的引导用户使用上述UU卡片1703获知应用的通知消息,当Launcher在第三桌面1501中首次显示用户添加的UU卡片1703时,如图18所示,Launcher可以显示引导弹窗1801,引导弹窗1801中的内容用于向用户提示UU卡片1703的具体功能和操作方法等。例如,引导弹窗1801中可以包括多页弹窗内容,分别用于向用户提示UU卡片1703的具体功能、切换卡片的操作方法以及删除卡片的操作方法等。用户可以通过滑动引导弹窗1801查看每一页弹窗内容。
或者,Launcher在第三桌面1501中首次显示用户添加的UU卡片1703时可以不显示上述引导弹窗1801,相应的,Launcher可以在首次接收到其他应用发送的通知消息时,显示上述引导弹窗1801,引导用户获知UU卡片1703的具体功能和操作方法。在这种场景下,Launcher在显示上述引导弹窗1801的同时,还可以通过UU卡片1703显示相应的通知消息,本申请实施例对此不做任何限制。
在另一些实施例中,用户还可以手动设置允许上述UU卡片1703显示的通知消 息的类型、数目或内容等。例如,如图19中的(a)所示,Launcher可按照上述实施例中的方法在天气组件702的上层显示出卡片703。此时,如果检测到用户对卡片703输入长按操作,则Launcher可显示卡片703的管理窗口1001,管理窗口1001中可以设置设置选项1901。如果检测到用户选择设置选项1901,如图19中的(b)所示,Launcher可跳转至设置界面1902。在设置界面1902中,用户可以手动设置UU卡片1703显示的通知消息的类型、数目或内容等一项或多项选项。后续,Launcher可根据用户在设置界面1902中的选择,在UU卡片1703中显示用户定制化的通知消息,从而提高用户的使用体验。当然,Launcher还可以向用户提供设置UU卡片1703的大小、颜色等选项,本申请实施例对此不做任何限制。
需要说明的是,上述实施例中是以手机在桌面中显示通知消息举例说明的,可以理解的是,上述通知消息的显示方法还可以应用于车载设备、平板电脑、手表等电子设备中,这些设备均可用于实现上述实施例中所述的通知消息的显示方法,本申请实施例对此不做任何限制。
如图20所示,本申请实施例公开了一种电子设备,该电子设备可以为上述手机。该电子设备具体可以包括:触摸屏2001,所述触摸屏2001包括触摸传感器2006和显示屏2007;一个或多个处理器2002;存储器2003;一个或多个应用程序(未示出);以及一个或多个计算机程序2004,上述各器件可以通过一个或多个通信总线2005连接。其中,上述一个或多个计算机程序2004被存储在上述存储器2003中并被配置为被该一个或多个处理器2002执行,该一个或多个计算机程序2004包括指令,该指令可以用于执行上述实施例中的相关步骤。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请实施例的具体实施方式,但本申请实施例的保护范围并不局限于此,任何在本申请实施例揭露的技术范围内的变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应以所述权利要求的保护范 围为准。

Claims (18)

  1. 一种通知消息的显示方法,其特征在于,包括:
    电子设备显示第一桌面,所述第一桌面的第一显示区域中显示有第一组件;
    所述电子设备获取第一事件;
    响应于所述第一事件,所述电子设备在所述第一显示区域显示与所述第一事件对应的第二组件,且所述第一显示区域不显示所述第一组件,所述第二组件与第一组件不同,所述第二组件的内容与第一通知消息的内容相关联;
    其中,所述第一事件是与所述第一通知消息相关联的事件。
  2. 根据权利要求1所述的方法,其特征在于,所述第二组件位于所述第一组件的上层。
  3. 根据权利要求1所述的方法,其特征在于,在所述电子设备在所述第一显示区域显示与所述第一事件对应的第二组件之后,还包括:
    当所述第二组件显示预设时长后,所述电子设备在所述第一桌面中显示所述第一组件,且所述第一显示区域不显示所述第二组件。
  4. 根据权利要求1所述的方法,其特征在于,在所述电子设备在所述第一显示区域显示与所述第一事件对应的第二组件之后,还包括:
    若接收到用户对所述第二组件输入预设的删除操作,则所述电子设备在所述第一桌面中显示所述第一组件,且所述第一显示区域不显示所述第二组件。
  5. 根据权利要求1所述的方法,其特征在于,在所述电子设备在所述第一显示区域显示与所述第一事件对应的第二组件之后,还包括:
    所述电子设备获取第二事件,所述第二事件用于指示与所述第一通知消息对应的业务已完成;
    响应于所述第二事件,所述电子设备在所述第一桌面中显示所述第一组件,且所述第一显示区域不显示所述第二组件。
  6. 根据权利要求1所述的方法,其特征在于,在所述电子设备在所述第一显示区域显示与所述第一事件对应的第二组件之后,还包括:
    所述电子设备获取第三事件;
    若所述第三事件的优先级高于所述第一事件的优先级,则所述电子设备在所述第一显示区域显示与所述第三事件对应的第三组件,所述第三组件位于所述第二组件的上层,所述第三组件的内容与第二通知消息的内容相关联;或者,
    若所述第一事件的优先级高于所述第三事件的优先级,则所述电子设备继续在所述第一显示区域显示所述第二组件,与所述第三事件对应的第三组件位于所述第二组件的下层,所述第三组件的内容与第二通知消息的内容相关联;
    其中,所述第三事件是与所述第二通知消息相关联的事件。
  7. 根据权利要求6所述的方法,其特征在于,在所述电子设备在所述第一显示区域显示与所述第三事件对应的第三组件之后,还包括:
    若接收到用户对所述第三组件输入预设的切换操作,则所述电子设备在所述第一桌面中显示所述第二组件,且所述第一显示区域不显示所述第三组件。
  8. 根据权利要求6所述的方法,其特征在于,在所述电子设备获取第三事件之 后,还包括:
    所述电子设备在所述第一显示区域或所述第一显示区域的周围显示导航点,所述导航点用于向提示用户接收到多个通知消息。
  9. 根据权利要求6所述的方法,其特征在于,在所述电子设备获取第三事件之后,还包括:
    若检测到用户手指触摸所述第一显示区域,则所述电子设备在所述第一显示区域或所述第一显示区域的周围显示导航点,所述导航点用于向提示用户接收到多个通知消息。
  10. 根据权利要求1所述的方法,其特征在于,所述第一桌面的第二显示区域中显示有第四组件;
    在所述电子设备在所述第一显示区域显示与所述第一事件对应的第二组件之后,还包括:
    所述电子设备获取第四事件;
    响应于所述第四事件,所述电子设备在所述第二显示区域显示与所述第四事件对应的第五组件,且所述第二显示区域不显示所述第四组件,所述第五组件的内容与第三通知消息的内容相关联;
    其中,所述第四事件是与所述第三通知消息相关联的事件。
  11. 根据权利要求1所述的方法,其特征在于,所述电子设备获取第一事件,包括:
    所述电子设备在显示第三桌面时获取到第一事件,所述第三桌面中没有组件;
    其中,所述电子设备在所述第一显示区域显示与所述第一事件对应的第二组件,包括:
    若检测到所述电子设备将所述第三桌面切换至所述第一桌面,则所述电子设备在所述第一显示区域显示所述第二组件。
  12. 根据权利要求1所述的方法,其特征在于,所述电子设备获取第一事件,包括:
    所述电子设备在显示第三桌面时获取到第一事件,所述第三桌面中没有组件;
    在所述电子设备获取第一事件之后,还包括:
    所述电子设备在所述第三桌面的空白区域显示与所述第一事件对应的第二组件。
  13. 根据权利要求1所述的方法,其特征在于,在电子设备显示第一桌面之前,还包括:
    响应于用户添加第一组件的操作,所述电子设备在所述第一桌面中添加所述第一组件;
    所述电子设备显示引导弹窗,所述引导弹窗用于提示所述第一显示区域中组件的操作方法。
  14. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    所述电子设备显示设置界面,所述设置界面用于设置在所述第一显示区域显示的组件的类型、数目或内容中的一项或多项。
  15. 根据权利要求1所述的方法,其特征在于,所述第一事件中包括所述第一通 知消息;其中,所述电子设备获取第一事件,包括:
    所述电子设备从服务器中获取携带所述第一通知消息的第一事件。
  16. 根据权利要求1-15中任一项所述的方法,其特征在于,在所述电子设备获取第一事件之后,还包括:
    所述电子设备设置与所述第一事件对应的第二组件的参数,所述参数包括显示顺序、曝光时长、保留时长或组件类型中的一项或多项。
  17. 一种电子设备,其特征在于,包括:
    触摸屏,所述触摸屏包括触摸传感器和显示屏;
    一个或多个处理器;
    存储器;
    其中,所述存储器中存储有一个或多个计算机程序,所述一个或多个计算机程序包括指令,当所述指令被所述电子设备执行时,使得所述电子设备执行如权利要求1-16中任一项所述的一种通知消息的显示方法。
  18. 一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,其特征在于,当所述指令在电子设备上运行时,使得所述电子设备执行如权利要求1-16中任一项所述的一种通知消息的显示方法。
PCT/CN2022/079130 2021-04-14 2022-03-03 一种通知消息的显示方法及电子设备 WO2022218053A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110400637.XA CN113722027A (zh) 2021-04-14 2021-04-14 一种通知消息的显示方法及电子设备
CN202110400637.X 2021-04-14

Publications (1)

Publication Number Publication Date
WO2022218053A1 true WO2022218053A1 (zh) 2022-10-20

Family

ID=78672639

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/079130 WO2022218053A1 (zh) 2021-04-14 2022-03-03 一种通知消息的显示方法及电子设备

Country Status (2)

Country Link
CN (1) CN113722027A (zh)
WO (1) WO2022218053A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431049A (zh) * 2023-06-13 2023-07-14 中航信移动科技有限公司 一种卡片展示方法、电子设备及存储介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722027A (zh) * 2021-04-14 2021-11-30 荣耀终端有限公司 一种通知消息的显示方法及电子设备
CN115421932B (zh) * 2021-08-12 2023-08-22 荣耀终端有限公司 通知消息的展示方法及电子设备
CN115562534B (zh) * 2022-01-10 2023-10-20 荣耀终端有限公司 一种信息显示方法和电子设备
CN116450259A (zh) * 2022-01-10 2023-07-18 荣耀终端有限公司 服务异常提醒方法、电子设备及存储介质
CN114489449B (zh) * 2022-01-21 2022-10-14 荣耀终端有限公司 显示方法及电子设备
CN116088715B (zh) * 2022-05-27 2023-10-20 荣耀终端有限公司 消息提醒方法及电子设备
WO2023246386A1 (zh) * 2022-06-20 2023-12-28 荣耀终端有限公司 界面显示方法和装置
CN116048830B (zh) * 2022-07-22 2023-10-24 荣耀终端有限公司 提醒软件版本升级的方法、电子设备及可读存储介质
CN117453087A (zh) * 2022-07-26 2024-01-26 荣耀终端有限公司 卡片显示方法、终端设备
CN117742627A (zh) * 2022-09-13 2024-03-22 荣耀终端有限公司 一种信息显示方法、电子设备和存储介质
CN117492608A (zh) * 2023-12-28 2024-02-02 荣耀终端有限公司 消息处理方法、电子设备、服务器及通信系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170075737A1 (en) * 2015-09-16 2017-03-16 Samsung Electronics Co., Ltd. Method of displaying notifications and electronic device adapted thereto
CN108021420A (zh) * 2016-12-23 2018-05-11 北京车和家信息技术有限责任公司 消息展示的方法、装置、中控显示系统及车辆
CN110275748A (zh) * 2019-06-18 2019-09-24 广州小鹏汽车科技有限公司 车载应用的弹窗显示方法、装置及智能汽车
CN112099703A (zh) * 2020-09-02 2020-12-18 维沃移动通信有限公司 桌面挂件显示方法、装置及电子设备
CN113722027A (zh) * 2021-04-14 2021-11-30 荣耀终端有限公司 一种通知消息的显示方法及电子设备

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104133687A (zh) * 2014-08-05 2014-11-05 天津三星通信技术研究有限公司 未处理通知事件处理方法及便携式终端
WO2018112928A1 (zh) * 2016-12-23 2018-06-28 北京金山安全软件有限公司 一种信息展示方法、装置及终端设备
CN110837327B (zh) * 2019-10-28 2021-06-25 维沃移动通信有限公司 一种消息查看方法及终端
CN111580906B (zh) * 2020-04-28 2024-05-14 深圳传音控股股份有限公司 一种界面显示方法、相关设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170075737A1 (en) * 2015-09-16 2017-03-16 Samsung Electronics Co., Ltd. Method of displaying notifications and electronic device adapted thereto
CN108021420A (zh) * 2016-12-23 2018-05-11 北京车和家信息技术有限责任公司 消息展示的方法、装置、中控显示系统及车辆
CN110275748A (zh) * 2019-06-18 2019-09-24 广州小鹏汽车科技有限公司 车载应用的弹窗显示方法、装置及智能汽车
CN112099703A (zh) * 2020-09-02 2020-12-18 维沃移动通信有限公司 桌面挂件显示方法、装置及电子设备
CN113722027A (zh) * 2021-04-14 2021-11-30 荣耀终端有限公司 一种通知消息的显示方法及电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116431049A (zh) * 2023-06-13 2023-07-14 中航信移动科技有限公司 一种卡片展示方法、电子设备及存储介质
CN116431049B (zh) * 2023-06-13 2023-08-15 中航信移动科技有限公司 一种卡片展示方法、电子设备及存储介质

Also Published As

Publication number Publication date
CN113722027A (zh) 2021-11-30

Similar Documents

Publication Publication Date Title
WO2022218053A1 (zh) 一种通知消息的显示方法及电子设备
WO2020238774A1 (zh) 一种通知消息的预览方法及电子设备
CN110471639B (zh) 显示方法及相关装置
US20220035995A1 (en) Comment Addition Method and Electronic Device
WO2021103981A1 (zh) 分屏显示的处理方法、装置及电子设备
US20220172717A1 (en) Voice Interaction Method and Electronic Device
WO2021115194A1 (zh) 一种应用图标的显示方法及电子设备
CN114554005B (zh) 一种通知消息的管理方法及电子设备
US20230359424A1 (en) Multi-Screen Collaboration Method and System, and Electronic Device
WO2022179405A1 (zh) 一种投屏显示方法及电子设备
CN111447323B (zh) 一种应用显示接续方法及装置
WO2022078295A1 (zh) 一种设备推荐方法及电子设备
CN113391743B (zh) 一种显示方法及电子设备
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
WO2021042881A1 (zh) 消息通知方法及电子设备
WO2023005711A1 (zh) 一种服务的推荐方法及电子设备
EP4365722A1 (en) Method for displaying dock bar in launcher and electronic device
WO2021197242A1 (zh) 复制粘贴的方法、电子设备及系统
US20230367464A1 (en) Multi-Application Interaction Method
WO2022188632A1 (zh) 主题展示方法、装置、终端及计算机存储介质
WO2022267786A1 (zh) 一种快捷图标展示方法与终端设备
CN117724640A (zh) 分屏显示方法、电子设备及存储介质
CN118055283A (zh) 一种多窗口场景下的窗口获焦方法、设备及系统
CN117631939A (zh) 一种触控输入的方法、系统、电子设备及存储介质
CN116301541A (zh) 共享文件的方法、电子设备及计算机可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22787283

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22787283

Country of ref document: EP

Kind code of ref document: A1