CN117880412A - Method for displaying banner notification message and electronic equipment - Google Patents

Method for displaying banner notification message and electronic equipment Download PDF

Info

Publication number
CN117880412A
CN117880412A CN202211232886.3A CN202211232886A CN117880412A CN 117880412 A CN117880412 A CN 117880412A CN 202211232886 A CN202211232886 A CN 202211232886A CN 117880412 A CN117880412 A CN 117880412A
Authority
CN
China
Prior art keywords
window
message
application
electronic device
notification message
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202211232886.3A
Other languages
Chinese (zh)
Inventor
蔡世宗
何书杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co Ltd
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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN202211232886.3A priority Critical patent/CN117880412A/en
Priority to PCT/CN2023/120891 priority patent/WO2024078306A1/en
Publication of CN117880412A publication Critical patent/CN117880412A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72436User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The application provides a method and a device for displaying banner notification messages. The method for displaying the banner notification message comprises the following steps: after the first electronic device obtains the banner notification message including the message content and the message package name, if the window of the application corresponding to the message package name is in a display state, the message content is displayed in a display area of the window of the application corresponding to the message package name. According to the method for displaying the banner notification message, the banner notification message can be displayed in the window of the application generating the banner notification message, so that a user can immediately know the banner notification message even when a system interface window of the first electronic device is not displayed on the cooperative device in a cooperative working state with the first electronic device, and the user can accurately know the source of the banner notification message even when the first electronic device is in a multi-window working state, and user experience is improved.

Description

Method for displaying banner notification message and electronic equipment
Technical Field
The present disclosure relates to the field of terminal technologies, and in particular, to a method for displaying a banner notification message and an electronic device.
Background
With the development of intelligent electronic devices such as mobile phones, the functions of the electronic devices are becoming stronger. Currently, when an electronic device detects a notification message generated by an Application (APP), the electronic device may display the notification message in a banner notification manner, so that a user can learn the notification message in time.
Currently, one way for an electronic device to display notification messages for an application by way of banner notifications is as follows: the electronic device displays the notification message on a system interface. For example, referring to fig. 1, when the electronic device 100 receives a WeChat message, the electronic device 100 may display a banner notification message on a system interface so that the user may obtain the WeChat message in a timely manner.
However, the method for displaying the banner notification message has the following technical problems: when the electronic equipment and other equipment are in multi-window collaborative work, if a system interface window of the electronic equipment is not displayed on the collaborative equipment, the collaborative equipment cannot display the banner notification message, so that a user is influenced to know the banner notification message in time; when the electronic equipment is in a multi-window working state, a user cannot accurately know the application to which the banner notification message belongs.
For example, in a multi-screen collaboration scenario, as shown in fig. 2, when the electronic device 200 drops a current user interface to the electronic device 300, in addition to displaying the current user interface, other application windows may be supported in the electronic device 300, such as a micro-letter window may be supported in the electronic device 300 in fig. 2. At this time, if the WeChat application receives a notification message, the banner notification message is displayed on the user interface. However, if the user puts the electronic device 200 aside and minimizes the window of the user interface to which the electronic device 300 belongs, the user cannot instantly perceive the banner notification message.
For another example, as shown in fig. 3, in a scenario where the electronic device 400 can simultaneously support the windowed application of at least one floating window, if a notification is received by a certain application program in the terminal device at this time, the electronic device 400 may display a banner notification message on the system interface, but there is a problem that the user cannot immediately perceive which application program the banner notification message specifically originates from, which causes poor experience.
Therefore, a new method for displaying banner notification messages is needed, so that even in the above scenario, the user can be immediately aware, thereby improving the user experience.
Disclosure of Invention
The application provides a display method of a banner notification message and an electronic device, so that the banner notification message can be displayed in a window of an application generating the banner notification message, a user can immediately know the banner notification message even when a system interface window of a first electronic device is not displayed on a cooperative device, and the user can accurately know the source of the banner notification message even when the first electronic device is in a multi-window working state, thereby improving user experience.
In a first aspect, the present application provides a method for displaying a banner notification message, which is applied to a first electronic device, and includes: acquiring a banner notification message, wherein the banner notification message comprises message content and a message packet name; and when the window of the application corresponding to the message packet name is in a display state, displaying the message content in a display area of the window.
In the method for displaying the banner notification message provided in the embodiment, when the first electronic device obtains the banner notification message, firstly, an application from which the banner notification message comes is determined based on a message packet name included in the banner notification message, and then when a window of the application is in a display state, message content in the banner notification message is displayed in the window of the application in a banner notification manner. The window of the application being in the display state may be understood as a window that can be seen by a user, and in this embodiment, the window of the application being in the display state is also referred to as the window of the application being in the foreground.
That is, in this embodiment, the banner notification message is not displayed at a fixed position in the system interface attached to the first electronic device, but depends on a specific application window to be displayed along with the application window, so that even when the system interface window of the first electronic device is not displayed on the cooperative device, the user can immediately acquire the banner notification message, and even when the first electronic device is in a multi-window working state, the user can accurately acquire the source of the banner notification message, thereby improving user experience.
With reference to the first aspect, in a possible implementation manner, the method further includes: when the window of the application corresponding to the message packet name is in a closed state or a hidden state, the message content is displayed at a preset position in the interface currently displayed by the first electronic equipment.
Wherein the window of the application is in a closed state may be considered to refer to a state in which the window of the application is not open and thus cannot be perceived by a user. The window of the application being in a hidden state may be considered to refer to a state in which the window of the application has been opened but cannot be perceived by the user due to minimization or the like.
In the implementation manner, when the first electronic device determines that the window of the application corresponding to the message packet name is in the closed state or the hidden state, the first electronic device still displays the message content at a preset position in the interface currently displayed by the first electronic device in a banner notification manner, so that the notification message can be notified to the user.
With reference to the first aspect, in one possible implementation manner, displaying the message content in the display area of the window includes: adding a first control in a window component of an application corresponding to the message package name, wherein the first control contains message content; the window of the application is displayed based on the window component of the application.
In this implementation, since the first control is added to the window component, it is possible to implement the combination of the message content of the banner notification display and the window component of the application into one layer, thereby implementing the display of the message content in the banner notification message in the window of the application.
With reference to the first aspect, in one possible implementation manner, a window of an application corresponding to a message packet name is displayed in the second electronic device, and the method further includes: and sending the window component of the application to the second electronic device, wherein the second electronic device and the first electronic device are in a state of multi-window cooperative work.
The first electronic device and the second electronic device are in a multi-window cooperative state, for example, the first electronic device and the second electronic device are in a multi-screen cooperative state.
In the implementation manner, the first electronic device sends the window component of the application with the first space added to the second electronic device, so that the second electronic device can display the message content in the banner notification message in the window of the application.
With reference to the first aspect, in one possible implementation manner, the window of the application corresponding to the message packet name is different from the window of the interface currently displayed by the first electronic device in the second electronic device.
In this implementation manner, since the window of the application corresponding to the message package name is different from the window of the interface currently displayed by the first electronic device in the second electronic device, the user can instantly perceive the message content in the banner notification message regardless of the state of the window of the interface currently displayed by the first electronic device in the second electronic device (for example, whether the window is closed, minimized, or displayed).
With reference to the first aspect, in one possible implementation manner, displaying the message content in the display area of the window includes: calculating a display area of an application window corresponding to the message packet name in a screen to which the window belongs; creating a second control, wherein the second control contains message content; and displaying the display area based on the second control.
In the implementation manner, when the first electronic device obtains an application corresponding to the message package name and when the window of the application is in a display state, the first electronic device calculates the display area of the window of the application and then displays the message content of the banner notification message in the window of the application in a manner of creating a second message control.
In a second aspect, the present application provides an apparatus for a banner notification message, applied to a first electronic device, including: the acquisition module is used for acquiring a banner notification message, wherein the banner notification message comprises message content and a message packet name; and the display module is used for displaying the message content in a display area of the window when the window of the application corresponding to the message packet name is in a display state.
With reference to the second aspect, in one possible implementation manner, the display module is further configured to: and when the window of the application corresponding to the message packet name is in a closed state or a hidden state, displaying the message content at a preset position in the interface currently displayed by the electronic equipment.
With reference to the second aspect, in one possible implementation manner, the display module is specifically configured to: adding a first control in a window component of an application corresponding to the message package name, wherein the first control contains the message content; the window of the application is displayed based on the window component of the application.
With reference to the second aspect, in one possible implementation manner, the window of the application corresponding to the message packet name is displayed in the second electronic device, and the display module is further configured to: and sending the window component of the application to the second electronic equipment, wherein the second electronic equipment and the first electronic equipment are in a state of multi-window cooperative work.
With reference to the second aspect, in one possible implementation manner, the window of the application corresponding to the message packet name is different from the window of the interface currently displayed by the first electronic device in the second electronic device.
With reference to the second aspect, in one possible implementation manner, the display module is specifically configured to: calculating a display area of an application window corresponding to the message packet name in a screen to which the window belongs; creating a second control, wherein the second control comprises the message content; and displaying the second control in a display area.
In a third aspect, the present application provides an electronic device, comprising: a memory, a processor and a computer program stored in the memory and executable on the processor, when executing the computer program, causing the electronic device to perform the method as described in the first aspect or any one of the possible implementations thereof.
In a fourth aspect, the present application provides a computer readable medium storing program code for computer execution, the program code comprising instructions for performing the method of the first aspect or any one of the possible implementations thereof.
In a fifth aspect, the present application provides a computer program product comprising computer program code which, when run on a computer, causes the computer to implement the method as described in the first aspect or any one of the possible implementations.
Drawings
FIG. 1 is a schematic diagram of a conventional banner notification message provided herein;
FIG. 2 is a schematic diagram of a display of another conventional banner notification message provided herein;
FIG. 3 is a schematic illustration of a display of yet another prior banner notification message provided herein;
FIG. 4 is a schematic diagram of a conventional banner notification message provided herein;
FIG. 5 is a schematic diagram of a software implementation of the present application when displaying a banner notification message;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
Fig. 7 is a schematic software architecture diagram of an electronic device according to an embodiment of the present application;
FIG. 8 is a schematic flow chart of a method for displaying a banner notification message according to one embodiment of the present application;
FIG. 9 is a schematic diagram of a banner notification message provided herein;
FIG. 10 is a schematic illustration of a display of another banner notification message provided herein;
FIG. 11 is a schematic illustration of a display of yet another banner notification message provided herein;
FIG. 12 is a diagram illustrating a relationship between a banner notification message instance and an application instance provided in one embodiment of the present application;
FIG. 13 is a schematic diagram of a window component of an application according to one embodiment of the present application;
FIG. 14 is a schematic representation of an implementation on corresponding software when displaying a banner notification message on an application window as provided in one embodiment of the present application;
FIG. 15 is a schematic diagram of a window for displaying banner notification messages to an application provided in another embodiment of the present application;
FIG. 16 is a schematic flow chart diagram of a method for displaying banner notifications in a screen projection scenario provided herein;
FIG. 17 is a schematic flow chart diagram of another method for displaying banner notifications in a screen projection scenario provided herein;
FIG. 18 is a schematic diagram of a display device for banner notification messages according to one embodiment of the present application;
fig. 19 is a schematic structural diagram of a display device for banner notification messages according to an embodiment of the present application.
Detailed Description
In order to better understand the technical solutions of the embodiments of the present application, some concepts used in the embodiments of the present application are described below.
1. Multi-screen collaboration
Multi-screen collaboration is a cross-screen collaboration technology between multiple devices, and generally refers to task collaboration between different device attributes in a wireless state, such as between a mobile phone, a tablet computer, and a notebook computer. The maximum difference of the multi-screen collaboration is mainly wireless and cross-system, for example, NFC technology can be used to enable two independent devices to be quickly paired, and a mobile phone and a notebook computer are connected through wireless network technology, so that the content of the mobile phone screen can be displayed on the notebook computer screen in real time, the mobile phone terminal can be directly operated through touch control or a keyboard mouse, the content of the mobile phone terminal and the content of the computer terminal screen are completely synchronous in real time, and the mobile phone can be normally operated under the multi-screen collaboration state. The multi-screen cooperation can enable files of the mobile phone and the PC to be transmitted seamlessly, data are transmitted between the two devices through a network instead of Bluetooth, and transmission efficiency is higher. Since the operations between the mobile phone and the device are completely synchronized, different operations cannot be performed on the mobile phone and the PC at the same time.
2. System interface
A System interface (System UI) including a Notification center message (Notification), a status Bar above the interface, a Navigation Bar below the interface, a lock screen interface (Keyguard), a Power interface (Power UI), a Recent Task interface (Recent Task), and the like. The System UI is directly perceived by the user.
3. Banner notification
Banner notifications, also known as reminder notifications, are adapted for notifications that the user should immediately be aware of, and briefly hover over the current electronic device System interface (System UI) until the display time expires or the user swipes up and disappears, and then remains displayed in the notification drawer.
Next, application scenarios of the embodiments of the present application are described with reference to fig. 1 to 4.
With the development of intelligent electronic devices such as mobile phones, the functions of the electronic devices are becoming stronger. Currently, when an electronic device detects a notification message generated by an Application (APP), the electronic device may display the notification message in a banner notification manner, so that a user can learn the notification message in time.
In this embodiment, the electronic device is also referred to as a terminal device.
Currently, one way for an electronic device to display notification messages for an application by way of banner notifications is as follows: the electronic device displays the notification message on a system interface. For example, referring to fig. 1, when the electronic device 100 receives a WeChat message, the electronic device 100 may display a banner notification message on a system interface so that the user may obtain the WeChat message in a timely manner.
However, the method for displaying the banner notification message has the following technical problems: when the electronic equipment and other equipment are in multi-window collaborative work, if a system interface window of the electronic equipment is not displayed on the collaborative equipment, the collaborative equipment cannot display the banner notification message, so that a user is influenced to know the banner notification message in time; when the electronic equipment is in a multi-window working state, a user cannot accurately know the application to which the banner notification message belongs, so that the experience of the user is poor.
For example, when the electronic device works in conjunction with multiple windows of other devices, as shown in fig. 2, when the electronic device 200 drops the current user interface to the electronic device 300, in addition to displaying the current user interface, the electronic device 300 may support displaying other application windows simultaneously, as in the electronic device 300 in fig. 2, and displaying the micro-letter windows simultaneously. At this time, if the WeChat application receives a notification message, the banner notification message is displayed on the user interface. However, if the user puts the electronic device 200 aside and minimizes the window to which the user interface belongs in the electronic device 300, the user cannot instantly perceive the banner notification, so that the experience of the user is poor.
For another example, as shown in fig. 3, in a scenario where the electronic device 400 can simultaneously support the windowed application of at least one floating window, if a notification is received by a certain application program in the electronic device at this time, the electronic device 400 may display a banner notification message on the system interface, but there is a problem that the user cannot immediately perceive which application program the banner notification message specifically originates from, which results in poor experience of the user.
As another example, as shown in fig. 4, in a productivity desktop scenario where the electronic device 500 is dropped onto the display 600, the desktop on the display is already another display screen, unrelated to the content displayed on the handset 500. At this time, if the WeChat application is opened at the display end (also called the screen-throwing end), and the friend replies a WeChat message. The banner notification message can only be displayed on the system interface of the mobile phone end, so that the user cannot instantly perceive the condition of the banner notification message, and the experience of the user is poor.
Specifically, the software implementation scheme of the current electronic device when displaying the notification message of the APP by means of a banner notification message is shown in fig. 5, where the APP is used as a client to send the notification message to a notification management module (for example, notification Manager module) in the electronic device, and then the notification management module manages and runs the notification message and sends the notification message to a notification management service module (for example, notification Manager Service module), where the notification management service module is responsible for interacting with the system interface module so that the banner notification is displayed through the system interface module. It can be seen that current electronic devices rely on the System UI process when displaying banner notifications.
It is noted here that the specific form of APP is not limited in this embodiment. For example, it may be a WeChat, or a payment instrument, or other third party application.
In this embodiment, the specific screen projection mode adopted between the two electronic devices is not limited in the screen projection scene. For example, the screen may be projected by a wired method, or may be projected by a wireless method, or may be projected by near field communication (near field communication, NFC), or the like.
In summary, the electronic device is to hover over the window at the intention of the banner notification, so that some important notifications are immediately known to the user. However, for the scenes of multiple windows, screen projection and the like, the banner notification message display depends on the System UI process, so that a user cannot immediately perceive the notification message generated by the application, and the experience of the user is poor.
Therefore, a new method for displaying banner notification messages is needed, so that even in the above scenario, the user can be immediately aware, thereby improving the user experience.
Next, a method for displaying a banner notification message according to an embodiment of the present application will be described. In order to better understand the embodiments of the present application, the following describes a hardware structure of the electronic device of the embodiments of the present application. Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application. In this embodiment, the electronic device is also referred to as a terminal device.
The electronic device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, keys 190, an indicator 192, a camera 193, a display screen 194, and the like.
Alternatively, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units. Wherein the different processing units may be separate devices or may be integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data.
The USB interface 130 is an interface conforming to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 130 may be used to connect a charger to charge a terminal device, or may be used to transfer data between the terminal device and a peripheral device. And can also be used for connecting with a headset, and playing audio through the headset. The interface may also be used to connect other terminal devices, such as AR devices, etc.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used for connecting the charge management module 140 and the processor 110.
The wireless communication function of the terminal device may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Antennas in the terminal device may be used to cover single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G or the like applied on a terminal device. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (low noise amplifier, LNA), etc. The mobile communication module 150 may receive electromagnetic waves from the antenna 1, perform processes such as filtering, amplifying, and the like on the received electromagnetic waves, and transmit the processed electromagnetic waves to the modem processor for demodulation.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wirelesslocal area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), etc. as applied on a terminal device.
The terminal device implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.
The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel, a backlight, a bias circuit, and a PD. In some embodiments, the terminal device may include 1 or N display screens 194, N being a positive integer greater than 1.
The terminal device may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The camera 193 is used to capture still images or video. In some embodiments, the terminal device may include 1 or N cameras 193, N being a positive integer greater than 1.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to realize expansion of the memory capability of the terminal device. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer-executable program code that includes instructions. The internal memory 121 may include a storage program area and a storage data area.
The terminal device may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The terminal device can listen to music through the speaker 170A or listen to hands-free calls. A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When the terminal device picks up a call or voice message, the voice can be picked up by placing the receiver 170B close to the human ear. Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be disposed on the display screen 194. The gyro sensor 180B may be used to determine a motion gesture of the terminal device. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a hall sensor. The acceleration sensor 180E may detect the magnitude of acceleration of the terminal device in various directions (typically three axes). A distance sensor 180F for measuring a distance. The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense ambient light level. The fingerprint sensor 180H is used to collect a fingerprint. The temperature sensor 180J is for detecting temperature. The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The bone conduction sensor 180M may acquire a vibration signal.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The terminal device may receive key inputs, generating key signal inputs related to user settings of the terminal device and function control. The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
It is noted herein that the embodiments of the present application do not limit the specific technology and specific device configuration employed by the electronic device. For example, the electronic device may be a wearable terminal device such as a mobile phone, a tablet PC, a personal computer (personal computer, PC), a smart screen, an artificial intelligence (artificial intelligence, AI) speaker, a car machine device, and a smart watch, or may be various teaching aids (e.g., a learning machine, an early education machine), a smart toy, a portable robot, a personal digital assistant (personal digital assistant, PDA), an augmented reality technology (augmented reality, AR) device, a Virtual Reality (VR) device, or may be a device with a mobile office function, a device with an intelligent home function, a device with an audio-visual entertainment function, a device supporting smart travel, or the like.
The software system of the electronic device may employ a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The layered architecture may adopt an Android (Android) system, an apple (IOS) system, or other operating systems, which is not limited in this embodiment of the present application. The software structure of the electronic device is exemplified below by the Android system with a hierarchical architecture.
Fig. 7 is a software architecture block diagram of an electronic device applicable to an embodiment of the present application. The layered architecture divides the software system of the terminal device into a plurality of layers, each layer having a distinct role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system may be divided into four layers, an application layer (applications), an application framework layer (application framework), an Zhuoyun rows (Android run) and system libraries, a hardware abstraction layer, and a kernel layer (kernel) in order from top to bottom.
The application layer may include a series of application packages that run applications by calling an application program interface (application programming interface, API) provided by the application framework layer. As shown in fig. 7, the application package may include applications such as cameras, gallery, calendar, phone calls, maps, navigation, bluetooth, music, video, text messages, etc.
The application framework layer provides APIs and programming frameworks for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 7, the application framework layer may include a window manager, an activity manager, a notification manager, a package manager, a resource manager, an application manager, a telephony manager, and so on.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The activity manager is used for managing the life cycle of each application program and the navigation rollback function, and is responsible for the creation of the main thread of the Android, and the maintenance of the life cycle of each application program. The activity management services include process lists, remote callback interfaces, process priority controllers, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the terminal equipment vibrates, and an indicator light blinks.
The packet manager is used for program management within the system, for example: application installation, uninstallation, and upgrades, etc.
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The telephony manager is for managing mobile device functions, comprising: the mobile phone call state, the acquisition of telephone information (equipment, sim card and network information), the monitoring of the telephone state and the calling of a telephone dialer to dial a telephone.
The android system runtime comprises a core library and a virtual machine. And the android system is responsible for scheduling and managing the android system when running. The core library consists of two parts: one part is a function which needs to be called by Java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. The virtual machine executes Java files of the application layer and the application framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like. A display composition process (e.g., surface flinger) also runs in the virtual machine. The display composition process is used to control the composition of the image.
The system library may include a plurality of functional modules. For example: an image drawing module, an image rendering module, an image synthesizing module, a function library, a media library and the like.
The image drawing module is used for drawing two-dimensional or three-dimensional images. The image rendering module is used for rendering two-dimensional or three-dimensional images. The image synthesis module is used for synthesizing two-dimensional or three-dimensional images.
In a possible implementation manner, the application draws the image through the image drawing module, then the application renders the drawn image through the image rendering module, and then the application sends the rendered image to a cache queue of the display synthesis process. Every time Vsync arrives, a display composition process (e.g., surface flinger) sequentially acquires a frame of image to be composed from the buffer queue, and then performs image composition by the image composition module.
The function library provides macros, type definitions, string operation functions, mathematical calculation functions, input/output functions, and the like used in the C language
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio video encoding formats, such as: MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The hardware abstraction layer may include a plurality of library modules, which may be, for example, a hardware configuration module (HWC), a camera library module, and the like. The Android system can load a corresponding library module for the equipment hardware, so that the purpose of accessing the equipment hardware by an application program framework layer is achieved. The device hardware may include, for example, an LCD screen, a camera, etc. in an electronic device.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving the hardware so that the hardware works. The kernel layer at least includes display driver, screen driver, camera driver, sensor driver, etc., which is not limited in this embodiment of the present application.
In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second", etc. are used to distinguish the same item or similar items having substantially the same function and effect. It will be appreciated by those of skill in the art that the words "first," "second," and the like do not limit the amount and order of execution, and that the words "first," "second," and the like do not necessarily differ.
In this application, the terms "exemplary" or "such as" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "for example" should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "such as" is intended to present related concepts in a concrete fashion.
Furthermore, "at least one" means one or more, and "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a alone, a and B together, and B alone, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b, and c may represent: a, b, or c, or a and b, or a and c, or b and c, or a, b and c, wherein a, b and c can be single or multiple.
Fig. 8 shows a method for displaying a banner notification message according to an embodiment of the present application. As shown in fig. 8, the method in this embodiment includes: s801 and S802. The method provided by the present embodiment may be performed by the electronic device shown in fig. 6 or fig. 7.
S801, the first electronic device acquires a banner notification message, wherein the banner notification message comprises message content and a message package name.
It should be appreciated that after the APP in the first electronic device generates the notification message, the first electronic device may encapsulate the notification message into a banner notification message that needs to be displayed, and then display the message content of the notification message to the user in a banner notification manner based on the banner notification message. The specific form of APP is not limited in this embodiment. For example, chat software, music software, or the like may be used.
Specifically, in this embodiment, the banner notification message acquired by the first electronic device may include a message content of the notification message and a message packet name of the notification message. Optionally, the banner notification message acquired by the first electronic device in the application may further include more content, for example, a message icon of the notification message may also be included.
S802, when a window of an application corresponding to the message packet name is in a display state, message content is displayed in a display area of the window.
It should be appreciated that the message package name may generally be used to indicate the source of the notification message, i.e., to indicate from which application the notification message came. It should also be appreciated that different message package names may generally indicate different applications.
Therefore, in this embodiment, when the first electronic device displays the message content of the notification message by means of the banner notification message, firstly, the application program from which the banner notification message comes is determined based on the message packet name in the banner notification message, and then it is determined whether the window of the application program is in the display state. Wherein the display state described herein may be considered that the window of the application is viewable by the user; when it is determined that the window of the application is in the display state, the message content of the notification message is displayed in the window of the application through the banner notification, i.e., the banner notification is not displayed at a fixed location of the system interface but follows the window of the application.
It should be understood that, when the method for displaying the banner notification message provided in the embodiment of the present application is used, even in a scenario where the first electronic device and the other devices are in multi-window cooperative work, the user can be enabled to learn the banner notification message in time. And even in the scene that the first electronic equipment is in the multi-window working state, the user can accurately know the application to which the banner notification message belongs.
Taking the scenario of multi-screen collaborative operation of the electronic device 200 and the electronic device 300 shown in fig. 2 as an example, when the method for displaying a banner notification provided in the embodiment of the present application is adopted, as shown in fig. 9, when the electronic device 200 throws a current user interface onto the electronic device 300, if a notification message is received by a WeChat application, at this time, after obtaining a banner notification message based on the notification message, the electronic device 200 determines, based on a message packet name in the banner notification message, that the message content originates from a WeChat application when the message content of the notification message is displayed in a manner of using the banner notification, and then, because a window of the current WeChat application is in a display state, the message content of the notification message is displayed in a window of the WeChat through the banner notification instead of being displayed in the current user interface.
It can be seen that, in this manner, although the window of the WeChat corresponding to the message package name is different from the window of the interface currently displayed by the electronic device 200 in the electronic device 300, at this time, even if the user places the electronic device 200 aside and minimizes the window to which the interface currently displayed by the electronic device 200 belongs in the electronic device 300, the user can instantly perceive the condition of the banner notification message, thereby improving the user experience.
Taking a scenario in which the electronic device 400 shown in fig. 3 may simultaneously support a windowed application of at least one floating window as an example, when the method for displaying a banner notification provided in the embodiment of the present application is adopted, as shown in fig. 10, if a WeChat application receives a notification message at this time, after obtaining a banner notification message based on the notification message, the electronic device 400 determines, based on a message packet name in the banner notification message, that the message content originates from a WeChat application when displaying the message content of the notification message in a manner of using the banner notification, and then, because the window of the current WeChat application is in a display state, displays the message content of the notification message in the window of the WeChat through a banner notification.
It can be seen that in this manner, since the banner notification of the WeChat application is directly displayed in the window of the WeChat, rather than at a fixed location on the current user interface, the user can be made aware of which application the banner notification is specifically derived from, thereby improving the user experience.
It should be understood that in this scenario, if the current user interface of the electronic device 400 may simultaneously support more than 1 window of the floating window, when the application is used to display the banner notification message on the window of the corresponding application, the experience of distinguishing from which application the banner notification is specifically sourced by the user may be more obvious.
Illustratively, in the productivity desktop scenario of the electronic device 500 shown in fig. 4 being dropped onto the display 600, the desktop on the display is already another display screen, unrelated to the content displayed on the cell phone 500. As shown in fig. 11, at this time, a micro-letter application is opened at a display end (also referred to as a screen end), and if a notification message is received by the micro-letter application at this time, after obtaining a banner notification message based on the notification message, the electronic device 500 determines, based on a message packet name in the banner notification message, that the message content originated from the micro-letter application program when the message content of the notification message is displayed by using a banner notification manner, and then displays the message content of the notification message in a micro-letter window through a banner notification because a window of the current micro-letter application program is in a display state.
It can be seen that in this scenario, even though the desktop on the display is already another display, the user can still perceive the banner notification and can immediately know that the message content in the banner notification is from the WeChat application, thereby improving the user experience.
In the method for displaying the banner notification message provided in the embodiment, when the first electronic device obtains the banner notification message, firstly, an application from which the banner notification message comes is determined based on a message packet name included in the banner notification message, and then when a window of the application is in a display state, message content in the banner notification message is displayed in the application window in a banner notification manner.
Next, a detailed embodiment of a method for displaying a banner notification message will be described.
Step one: the first electronic device obtains the source of the banner notification message, and one-to-one binding of the banner notification message and the application is realized.
As shown in fig. 12, a notification record (e.g., also referred to as a notification rceived) refers to a specific banner notification message instance, where the banner notification message instance includes content such as message content, message package name, etc. (optionally, may also include a message icon, etc.); an activity stack (e.g., also called actigstack) refers to a specific application instance, each application instance corresponds to a stack, corresponds to a Task (Task), and then goes to a specific activity record (e.g., also called actigryrceord) page, and a Task identifier (also called a Task id in this embodiment) is a unique identifier for identifying a Task and can be used as a data structure of an application.
In this embodiment, a task identifier (TaskId) field is added to the message instance to establish a unique identifier association with activitycack. The method is specifically implemented by searching for a corresponding TaskId according to the name of a message packet in the Notification Rmethod when generating the Notification Rmethod, and assigning the obtained TaskId to the Notification Rmethod.
Step two: the first electronic device implements a banner notification message following the application window display.
It will be appreciated that the first device implementing the banner notification message to follow the application window display may also be considered to display the message content in the banner notification message in the display area of the application window.
In a first embodiment, it may comprise: adding a first control (for example, also called Notification View control) in a window component (for example, activity) of an application corresponding to the message package name, wherein the first control contains message content; the window of the application is then displayed based on the window component of the application.
As shown in fig. 13, the window component of the application includes different controls, for example, a third control (for example, a PhoneWindow control), a fourth control (for example, a DecorView control), and a fifth control (for example, a ContentView control) in the drawing, where the different controls may execute different services, and then a first control (for example, a notifyingview control) is newly added in the window component of the application to display the specific content of the banner notification message, so as to draw the display content in the window component along with the application process. Optionally, in this implementation, if it is determined that the window of the application is displayed in the second electronic device (where the second electronic device and the first electronic device are in a state of multi-window cooperative working), the method in this embodiment further includes: and sending the window component of the application to the second electronic device so that the second electronic device can display the message content in the banner notification message in the window of the application.
More specifically, fig. 14 is a schematic implementation diagram of software corresponding to when the first electronic device in this embodiment displays a banner notification message on a window of an application, and mainly relates to an application framework layer and an application layer. As shown in fig. 14, includes:
s1401, when the application APP generates a notification message, the notification management module is entered by calling the first service (for example, notify).
In this embodiment, the first service may be regarded as a service that needs to be used when it is required to enter the notification management module.
S1402, the notification management module invokes a second service (e.g., an enquiry notification withtag) to send a notification message to the notification management.
In this embodiment, the second service may be considered to be a service that needs to be used when in the get-in notification management Stub module.
S1403, notification management the Stub module invokes a third service (e.g., enquiry notification international) to send a notification message to the notification management service module (e.g., notificationmanagement service).
In this embodiment, the third service may be regarded as a service that needs to be used when it is required to enter the notification management service module.
S1404, the notification management service module invokes a create message instance service to send a notification message to a notification record module (notifyingrecord) to obtain a banner notification message.
Wherein the notification recording module generates a banner notification message based on the notification message and returns the banner notification message to the notification management service module.
S1405, the notification management service module calls a fourth service to obtain a task identifier corresponding to the notification message packet name, and adds the task identifier to the banner notification message.
In this embodiment, the fourth service is a service that can obtain the task identifier of the corresponding application based on the message packet name.
S1406, the notification management service module invokes a fifth service (e.g., notify castedlocked) to send a banner notification message after joining the task identifier to the notification listening module.
In this embodiment, the fifth service may be regarded as a service that needs to be used when the notification management service needs to enter the notification listening module.
S1407, the notification listening module invokes a sixth service (e.g., onnotificationpost) to send a banner notification message after joining the task identifier to the first target module (e.g., called hwpcmanager service).
The sixth service may be considered as a service that needs to be used when the notification listening module needs to enter the first target module and send a banner notification message after joining the task identifier to the first target module.
S1408, the first target module invokes a seventh service (e.g., updatenotification view) to send a banner notification message after joining the task identifier to the notification visual management module (e.g., referred to as notitification view manager).
The seventh service may be understood as a service that needs to be used when the first target module needs to enter the notifviewmanager and send a banner notification message after adding the task identifier to the notifviewmanager.
S1409, the notification visual management module invokes an eighth service to send the banner notification message after the task identifier is added to the notification visual module (notifyingView) so that the notifyingView determines the application corresponding to the banner notification message based on the task identifier in the banner notification message after the task identifier is added, and displays the banner notification message in a window of the application.
It can be seen that, in this embodiment, the APP in the first electronic device is used as a client to send a notification message to a notification management module (for example, notification Manager module) in the electronic device, and then, after the notification management module manages and runs the notification message and sends the notification message to a notification management service module (for example, notification Manager Service module), after obtaining the banner notification message based on the notification message, the Notification Manager Service module no longer needs to rely on a system interface process, but obtains an application corresponding to the banner notification message by obtaining a task identifier corresponding to the banner notification message, and then, displays the banner notification message in a window of the application.
It will be appreciated that in this embodiment, since the first control is added to the Activity, the first electronic device may combine the message content of the banner notification display and the window component of the application into one layer, thereby implementing the display of the message content in the banner notification message in the window of the application.
In a second embodiment, it may comprise: calculating a display area of an application window corresponding to the message packet name; creating a second control, wherein the second control contains message content; and displaying the display area based on the second control.
For example, as shown in fig. 15, the first electronic device may calculate, in real time, a position of an application window corresponding to a message package name in a display screen (i.e., a display area of the application window), then create an independent second control, where the second control includes a message content to be displayed in a banner notification message, and finally display, through a window management service (window manager service) module, the message content to be notified in the application window based on the second control in the display area. Here, the embodiment is not limited to a specific calculation manner of calculating the position of the window of the application corresponding to the message package name in the display screen, and for example, a two-dimensional coordinate system may be constructed with the upper left corner of the display screen as the origin of coordinates, and then coordinate values (x, y) of four corners of the window of the application with respect to the origin of coordinates may be calculated, respectively, to obtain the display area of the window of the application corresponding to the message package name.
Optionally, the method for displaying a banner notification provided in the present application further includes: and when the window of the application corresponding to the message packet name is in a closed state or a hidden state, displaying the message content at a preset position in the interface currently displayed by the first electronic equipment.
Wherein the window of the application is in a closed state may be considered to refer to a state in which the window of the application is not open and thus cannot be perceived by a user. The window of the application being in a hidden state may be considered to refer to a state in which the window of the application has been opened but cannot be perceived by the user due to minimization or the like.
In the implementation manner, when the first electronic device determines that the window of the application corresponding to the message packet name is in the closed state or the hidden state, the first electronic device still displays the message content at a preset position in the interface currently displayed by the first electronic device in a banner notification manner, so that the notification message can be notified to the user. That is, when the first electronic device determines that the window of the application corresponding to the message packet name is in the closed state or the hidden state, the first electronic device still displays the banner notification message through the system interface.
In the following, a schematic flow chart of a method for displaying a banner notification in a screen-drop scenario is described by taking the screen-drop scenario as an example.
As shown in fig. 16, when the first electronic device detects the banner notification message, the first electronic device performs S1601: and judging whether the application corresponding to the message packet name in the banner notification message is windowed, if so, executing S1602, otherwise, executing S1607.
S1602, it is determined whether the window of the application is in the display state (i.e., whether the window is in the foreground), if so, S1603 is executed, otherwise S1605 is executed.
S1603, adding a first control in the window component of the application.
The descriptions of the window component and the first control may refer to the descriptions in the foregoing embodiments, and are not repeated herein.
S1604, updating the view animation.
S1605, processing based on the system interface process.
That is, when an application corresponding to a message packet name in a banner notification message is not windowed and a window of the application is not in a display state even though the application is windowed, the application is processed by an existing System UI process.
S1606, layer composition;
s1607, the layer is sent and displayed.
In this embodiment, in the screen-drop scenario, when the first electronic device detects the banner notification message and determines that the notification message is displayed to the user in the banner notification manner, if it is determined that the window of the application corresponding to the message packet name in the banner notification message is in the display state, the message content is displayed in the application window by adding the first control in the window component of the application. Otherwise, if it is determined that the window of the application corresponding to the message packet name in the banner notification message is not in a display state, for example, the window of the application is not opened, or is opened but is scaled down, then the existing System UI process is used for processing.
In the following, still taking the screen-drop scene as an example, a schematic flowchart of another method for displaying banner notifications in the screen-drop scene is described.
As shown in fig. 17, when the first electronic device detects the banner notification message, the first electronic device performs S1701: and judging whether the application corresponding to the message packet name in the banner notification message is windowed, if so, executing S1702, otherwise, executing S1706.
S1702, judging whether the window of the application is in a display state, if so, executing S1703, otherwise, executing S1706.
S1703, calculating the display area of the window of the application in the screen to which the window belongs.
The description of the display area of the window may refer to the description in the above embodiment, and will not be repeated here.
S1704, add a second control.
The detailed description of the second control may refer to the description in the foregoing embodiment, and will not be repeated here.
S1705, updating the view animation.
S1706, processing is performed based on the system interface.
That is, when an application corresponding to a message packet name in a banner notification message is not windowed and a window of the application is not in a display state even though the application is windowed, the application is processed by an existing System UI process.
S1707, layer synthesis;
s1708, the layer is sent and displayed.
In this embodiment, in the screen-drop scenario, when the first electronic device detects the banner notification message and determines that the notification message is displayed to the user in the banner notification manner, if it is determined that the window of the application corresponding to the message packet name in the banner notification message is in the display state, the message content is displayed in the application window in the manner of adding the second control. Otherwise, if it is determined that the window of the application corresponding to the message packet name in the banner notification message is not in a display state, for example, the window of the application is not opened, or is opened but is scaled down, then the existing System UI process is used for processing.
The method provided by the embodiment of the present application is described in detail above with reference to fig. 1 to 17, and the display device of the banner notification message provided by the embodiment of the present application will be described in detail below with reference to fig. 18 and 19.
Fig. 18 shows a schematic structural diagram of a display device 1800 provided in an embodiment of the present application. As shown in fig. 18, the electronic device 1800 includes: an acquisition module 1801 and a display module 1802. Apparatus 1800 may be used to implement the method of any of the method embodiments described previously.
As one example, the acquisition module 1801 may be used to implement S801 and the display module 1802 may be used to implement S802.
It should be appreciated that the terminal device 1800 herein is embodied in the form of functional modules. The term module herein may refer to an application specific integrated circuit (application specific integrated circuit, ASIC), an electronic circuit, a processor (e.g., a shared, dedicated, or group processor, etc.) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that support the described functionality. In an alternative example, it will be understood by those skilled in the art that the terminal device 1800 may be specifically a terminal device in the foregoing method embodiment, or the functions of the terminal device in the foregoing method embodiment may be integrated in the terminal device 1800, and the terminal device 1800 may be configured to execute each flow and/or step corresponding to the terminal device in the foregoing method embodiment, which is not repeated herein.
The terminal device 1800 has functions for implementing corresponding steps executed by the terminal device in the method embodiment; the above functions may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the functions described above.
In an embodiment of the present application, the terminal device 1800 in fig. 18 may also be a chip or a chip system, for example: system on chip (SoC).
Fig. 19 is a schematic block diagram of another terminal device 1900 provided in an embodiment of the present application. The terminal device 1900 includes a processor 1910, a transceiver 1920, and a memory 1930. Wherein the processor 1910, the transceiver 1920 and the memory 1830 communicate with each other through an internal connection path, the memory 1930 is used for storing instructions, and the processor 1920 is used for executing the instructions stored in the memory 1930 to control the transceiver 1920 to transmit signals and/or receive signals.
It should be understood that the terminal device 1900 may be specifically a terminal device in the foregoing method embodiment, or the functions of the terminal device in the foregoing method embodiment may be integrated in the terminal device 1900, and the terminal device 1900 may be configured to perform the steps and/or flows corresponding to the terminal device in the foregoing method embodiment. Optionally, the memory 1930 may include read-only memory and random access memory, and provide instructions and data to the processor. A portion of the memory may also include non-volatile random access memory. For example, the memory may also store information of the device type. The processor 1910 may be configured to execute instructions stored in the memory, and when the processor executes the instructions, the processor may perform steps and/or flows corresponding to the terminal device in the above-described method embodiments.
It is to be appreciated that in embodiments of the present application, the processor 1910 may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor executes instructions in the memory to perform the steps of the method described above in conjunction with its hardware. To avoid repetition, a detailed description is not provided herein.
The application also provides a computer readable storage medium for storing a computer program, where the computer program is used to implement a method corresponding to the terminal device in the above method embodiment.
The application also provides a chip system, which is used for supporting the terminal equipment to realize the functions shown in the embodiment of the application in the embodiment of the method.
The present application also provides a computer program product, which comprises a computer program (which may also be referred to as code, or instructions), and which, when run on a computer, can perform the method corresponding to the terminal device shown in the above method embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative modules and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described system, apparatus and module may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or modules, which may be in electrical, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, i.e., may be located in one place, or may be distributed over a plurality of network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist alone physically, or two or more modules may be integrated into one module.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a read-only memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely specific embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any person skilled in the art may easily think about changes or substitutions within the technical scope of the embodiments of the present application, and the changes or substitutions are intended to be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A method for displaying a banner notification message, applied to a first electronic device, comprising:
acquiring a banner notification message, wherein the banner notification message comprises message content and a message packet name;
and when the window of the application corresponding to the message packet name is in a display state, displaying the message content in a display area of the window.
2. The method according to claim 1, wherein the method further comprises:
and when the window of the application corresponding to the message packet name is in a closed state or a hidden state, displaying the message content at a preset position in the interface currently displayed by the first electronic equipment.
3. The method of claim 1 or 2, wherein the displaying the message content in the display area of the window comprises:
adding a first control in a window component of an application corresponding to the message package name, wherein the first control contains the message content;
and displaying the window of the application based on the window component of the application.
4. A method according to any one of claims 1 to 3, wherein a window of an application to which the message package name corresponds is displayed in a second electronic device, the method further comprising:
And sending the window component of the application to the second electronic equipment, wherein the second electronic equipment and the first electronic equipment are in a state of multi-window cooperative work.
5. The method of claim 4, wherein the window of the application to which the message package name corresponds is different from the window of the interface currently displayed by the first electronic device in the second electronic device.
6. The method of claim 1 or 2, wherein the displaying the message content in the display area of the window comprises:
calculating a display area of a window of the application corresponding to the message packet name in a screen to which the window belongs;
creating a second control, wherein the second control comprises the message content;
and displaying the second control in the display area.
7. An apparatus for banner notification messages, characterized by being applied to a first electronic device, comprising:
the system comprises an acquisition module, a message packet name acquisition module and a message packet name acquisition module, wherein the acquisition module is used for acquiring a banner notification message, and the banner notification message comprises message content and a message packet name;
and the display module is used for displaying the message content in a display area of the window when the window of the application corresponding to the message packet name is in a display state.
8. The apparatus of claim 7, wherein the display module is further configured to:
and when the window of the application corresponding to the message packet name is in a closed state or a hidden state, displaying the message content at a preset position in the interface currently displayed by the electronic equipment.
9. The device according to claim 7 or 8, wherein the display module is specifically configured to:
adding a first control in a window component of an application corresponding to the message package name, wherein the first control contains the message content;
and displaying the window of the application based on the window component of the application.
10. The apparatus of claim 9, wherein a window of the application corresponding to the message package name is displayed in a second electronic device, and wherein the display module is further configured to:
and sending the window component of the application to the second electronic equipment, wherein the second electronic equipment and the first electronic equipment are in a state of multi-window cooperative work.
11. The apparatus of claim 10, wherein the window of the application to which the message package name corresponds is different from the window of the interface currently displayed by the first electronic device in the second electronic device.
12. The device according to claim 7 or 8, wherein the display module is specifically configured to:
calculating a display area of a window of the application corresponding to the message packet name in a screen to which the window belongs;
creating a second control, wherein the second control comprises the message content;
and displaying the second control in the display area.
13. An electronic device, comprising: a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, causes the terminal device to perform the method of any of claims 1 to 6.
14. A computer readable medium, characterized in that the computer readable medium stores a program code for computer execution, the program code comprising instructions for performing the method of any of claims 1 to 6.
15. A computer program product comprising computer program code embodied therein, which when run on a computer causes the computer to implement the method as claimed in any one of claims 1 to 6.
CN202211232886.3A 2022-10-10 2022-10-10 Method for displaying banner notification message and electronic equipment Pending CN117880412A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211232886.3A CN117880412A (en) 2022-10-10 2022-10-10 Method for displaying banner notification message and electronic equipment
PCT/CN2023/120891 WO2024078306A1 (en) 2022-10-10 2023-09-22 Banner notification message display method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211232886.3A CN117880412A (en) 2022-10-10 2022-10-10 Method for displaying banner notification message and electronic equipment

Publications (1)

Publication Number Publication Date
CN117880412A true CN117880412A (en) 2024-04-12

Family

ID=90592324

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211232886.3A Pending CN117880412A (en) 2022-10-10 2022-10-10 Method for displaying banner notification message and electronic equipment

Country Status (2)

Country Link
CN (1) CN117880412A (en)
WO (1) WO2024078306A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3693845B1 (en) * 2013-06-28 2021-11-10 BlackBerry Limited Generating message notifications providing direct actions
CN108345483A (en) * 2018-01-10 2018-07-31 深圳市金立通信设备有限公司 A kind of reminding method of notification message, terminal and computer readable storage medium
CN115599566A (en) * 2021-06-25 2023-01-13 荣耀终端有限公司(Cn) Notification message processing method, device, system and computer readable storage medium

Also Published As

Publication number Publication date
WO2024078306A1 (en) 2024-04-18

Similar Documents

Publication Publication Date Title
CN110471639B (en) Display method and related device
US20220342850A1 (en) Data transmission method and related device
CN115866121B (en) Application interface interaction method, electronic device and computer readable storage medium
EP4040277A1 (en) Method for displaying multiple windows, and electronic device and system
CN115623115B (en) Method, device, system and storage medium for creating application shortcut across devices
US12032799B2 (en) Card sharing method, electronic device, and communications system
KR20150025613A (en) Apparatas and method for displaying relevant information of application in an electronic device
CN116360725B (en) Display interaction system, display method and device
CN115981582B (en) Display method and electronic equipment
CN112420217B (en) Message pushing method, device, equipment and storage medium
US20230418630A1 (en) Operation sequence adding method, electronic device, and system
CN115016697A (en) Screen projection method, computer device, readable storage medium, and program product
CN110045958B (en) Texture data generation method, device, storage medium and equipment
CN111986454A (en) Wireless earphone searching method, device, storage medium and terminal
US20230362782A1 (en) Data Sharing Method, Electronic Device, and System
CN112148499A (en) Data reporting method and device, computer equipment and medium
WO2021042881A1 (en) Message notification method and electronic device
CN114371895B (en) Terminal equipment, mail marking method and storage medium
CN117880412A (en) Method for displaying banner notification message and electronic equipment
CN114079691A (en) Equipment identification method and related device
CN116708647B (en) Notification message reply method and electronic equipment
US20240201932A1 (en) Display method, electronic device, and system
CN117149321B (en) Game interaction method and device based on multi-device cooperation and storage medium
CN116095230B (en) Application program recommendation method, terminal device and readable storage medium
CN114647350B (en) Application sharing method, electronic device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination