Display method and device

文档序号:7274 发布日期:2021-09-17 浏览:26次 中文

1. A display method, comprising:

displaying a first notification in a first area, the first notification having a first priority;

and updating the display content of the first area to the second notification when the second notification is acquired and the second priority of the second notification is higher than or equal to the first priority.

2. The display method according to claim 1,

the first notification corresponds to a first display duration, and the second notification corresponds to a second display duration;

after the updating the display content of the first area to the second notification, the method further includes:

and updating the display content of the first area to the first notification when the second display duration is less than the first display duration, the display time of the second notification reaches the second display duration, and the display time of the first notification does not reach the first display duration.

3. The display method according to claim 1, wherein the displaying the first notification in the first area comprises:

displaying a first notice on a first layer of a first area;

the updating the display content of the first area to the second notification includes:

and displaying the second notice on a second layer of the first area, wherein the second layer covers the first layer.

4. The display method according to claim 1, wherein after the obtaining of the second notification and before the updating of the display content of the first area to the second notification, further comprising:

acquiring the belonged categories of the first notification and the second notification, wherein the belonged categories comprise a first category, a second category and a third category, and the priority levels of the first category, the second category and the third category are sequentially increased;

wherein the occurrence of the notification in the first category is related to the user operation behavior, the occurrence of the notification in the second category is related to the time, and the occurrence of the notification in the third category is related to the user physical health data.

5. The display method according to claim 1, wherein the displaying the first notification in the first area comprises:

when the first notification is acquired and the display timing of the first notification is met, displaying the first notification in the first area;

after the obtaining of the second notification and before the updating of the display content of the first area to the second notification, the method further includes:

and acquiring a second priority of the second notification when the display timing of the second notification is met.

6. The display method according to claim 5,

determining display opportunity meeting the notification when the notification is in a first category and an application event corresponding to the notification is in a starting state, wherein the notification in the first category is related to user operation behaviors;

determining a display timing satisfying a notification in a case where the notification is of a second category in which a notification occurrence is time-dependent and a display start time of the notification is reached;

determining display timing meeting the notification when the notification is in a third category and the notification data corresponding to the notification does not meet the preset conditions, wherein the notification in the third category is related to the body health data of the user;

the notification is the first notification or a second notification.

7. A display device, comprising:

the first display module is used for displaying a first notice in a first area, and the first notice has a first priority;

and the second display module is used for updating the display content of the first area to the second notification when the second notification is acquired and the second priority of the second notification is higher than or equal to the first priority.

8. The display device according to claim 7,

the first notification corresponds to a first display duration, and the second notification corresponds to a second display duration;

the display device further includes:

and the display updating module is used for updating the display content of the first area into the first notification when the second display duration is less than the first display duration, the display time of the second notification reaches the second display duration, and the display time of the first notification does not reach the first display duration.

9. The display device according to claim 7, wherein the first display module is specifically configured to display a first notification in a first layer of a first area;

the second display module is specifically configured to display the second notification on a second layer of the first area, where the second layer covers the first layer.

10. The display device according to claim 7, further comprising:

a first obtaining module, configured to obtain categories to which the first notification and the second notification belong, where the categories include a first category, a second category, and a third category, and priority levels of the first category, the second category, and the third category are sequentially higher;

wherein the occurrence of the notification in the first category is related to the user operation behavior, the occurrence of the notification in the second category is related to the time, and the occurrence of the notification in the third category is related to the user physical health data.

11. The display device according to claim 7,

the first display module is specifically configured to, when the first notification is acquired and a display timing of the first notification is met, display the first notification in the first area;

the display device further includes:

and the second acquisition module is used for acquiring the second priority of the second notification under the condition that the display opportunity of the second notification is met.

12. The display device according to claim 11, further comprising:

the device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining display opportunity meeting the notification when the notification is in a first category and an application event corresponding to the notification is in a starting state, and the notification in the first category is related to user operation behaviors;

a second determination module, configured to determine a display timing that satisfies a notification when the notification is of a second category and a display start time of the notification is reached, where an occurrence of the notification in the second category is time-dependent;

the third determining module is used for determining the display time meeting the notification when the notification is in a third category and the notification data corresponding to the notification does not meet the preset conditions, wherein the notification in the third category is related to the body health data of the user;

the notification is the first notification or a second notification.

13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the display method according to any one of claims 1 to 6.

14. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by a processor, implement the steps of the display method according to any one of claims 1 to 6.

Background

With the rapid development of mobile communication technology, various electronic devices have become indispensable tools in various aspects of people's lives. The functions of various Application programs (APP) of the electronic equipment are gradually improved, various intelligent services are provided for users, and great convenience is brought to the work and life of the users.

In the electronic equipment, the interactive mode of smart watches, smart bracelets and the like is similar to that of a mobile phone, if a user needs to check information or check detected body data, the user needs to enter an application list in a key or sliding mode on a display screen, and then enters a designated application to check information.

And the display screen that is limited to electronic equipment such as intelligent wrist-watch, intelligent bracelet is less, can't show many information, if show many information then the typeface diminishes to be unfavorable for looking over.

Disclosure of Invention

An object of the embodiments of the present application is to provide a display method and device, so as to solve the problem that in the prior art, a display screen is limited to be small, a plurality of pieces of information cannot be displayed, and if a plurality of pieces of information are displayed, a font becomes small, which is not favorable for viewing.

In a first aspect, an embodiment of the present application provides a display method, including:

displaying a first notification in a first area, the first notification having a first priority;

and updating the display content of the first area to the second notification when the second notification is acquired and the second priority of the second notification is higher than or equal to the first priority.

In a second aspect, an embodiment of the present application provides a display device, including:

the first display module is used for displaying a first notice in a first area, and the first notice has a first priority;

and the second display module is used for updating the display content of the first area to the second notification when the second notification is acquired and the priority of the second notification is higher than or equal to the first priority.

In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the display method according to the first aspect.

In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the program or instructions implement the steps of the display method according to the first aspect.

In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the display method according to the first aspect.

In the embodiment of the application, the first notification is displayed in the first area, the first notification has a first priority, then the display content of the first area is updated to the second notification when the second notification is acquired, and the second priority of the second notification is higher than or equal to the first priority, so that the first notification is displayed in the first area of the electronic device, and after the second notification is acquired, whether the second notification is updated to be displayed is determined based on the first priority of the first notification and the priority of the second notification, so that only one notification can be displayed in the same time on the first area, the displayed notification is more in line with the viewing requirement of a user, the problem that a display screen is small, and if a plurality of pieces of information are displayed, the font is reduced and is not beneficial to viewing is solved.

Drawings

Fig. 1 is a schematic flow chart of a display method according to an embodiment of the present disclosure;

FIG. 2 is a diagram of one of the interfaces of the first area displaying a notification according to an embodiment of the present disclosure;

FIG. 3 is a second interface of the first area displaying a notification according to the embodiment of the present application;

FIG. 4 is a third interface of the first area displaying a notification according to the present disclosure;

fig. 5 is a second schematic flowchart of a display method according to an embodiment of the present application;

fig. 6 is a block diagram of a display device according to an embodiment of the present disclosure;

FIG. 7 is a block diagram of an electronic device according to an embodiment of the present disclosure;

fig. 8 is a second block diagram of an electronic device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.

The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.

The display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.

As shown in fig. 1, which is one of the step flow charts of the display method provided in the embodiment of the present application, the method includes the following steps:

step 101: a first notification is displayed in a first area.

Wherein a first notification can be displayed in a first area of a display screen of the electronic device, the first notification having a first priority.

Specifically, the electronic device may be a wearable device, for example, a smart watch or a smart bracelet, and the following describes the first notification by taking the wearable device as an example.

The wearable device has a plurality of applications disposed therein, which may include installed applications and applications onboard the wearable device system (e.g., timers, alarms, calendars, etc.), each of which may generate notifications of one or more application events.

The first notification in this embodiment may be a notification of any application event generated by any application program in the wearable device.

For example, as an example, assuming that a plurality of applications such as A, B, C are installed in the wearable device, and the user has subscribed to an air ticket and a train ticket by operating application a, two notifications are generated by application a: the travel event notification corresponding to the air ticket and the travel event notification corresponding to the train ticket; for another example, if the user plays music by operating the application program B, a music play event notification is generated by the application program B; as another example, the wearable device background detects physical health data (such as heart rate data) of the user through application C, and a heart rate detection event notification is generated through application C.

The first notification may include an event identifier of the application event, an event occurrence location, an event occurrence time, event generation data, and other information related to the event, which is not particularly limited herein. For example, continuing with the above example, if the first notification is a travel event notification corresponding to a ticket, the content of the first notification may include flight information including boarding location, departure time, number of flights, and the like; if the first notification is a travel event notification corresponding to the train ticket, the content of the first notification may include train ticket information including an departure place, departure time, and the like; if the first notification is a music play event notification, the content of the first notification may include the name of the song being played, the lyrics, the singer, and the like; if the first notification is a heart rate detection event notification, the content of the first notification may include heart rate data.

The first region may be an entire display screen region or a partial region of the display screen, and is not particularly limited herein. Specifically, the first region is the whole display screen region, so that the first notification can be displayed on the whole display screen of the electronic equipment such as the smart watch and the smart bracelet, and the problem that the font is reduced and is not beneficial to viewing if the first notification is displayed in a partial region due to the fact that the display screen of the smart watch and the smart bracelet is small is solved; of course, the first area is a partial area of the display screen, so that the first notification can be prevented from blocking other contents on the display screen.

Step 102: and updating the display content of the first area to the second notification when the second notification is acquired and the second priority of the second notification is higher than or equal to the first priority.

The second notification may also be a notification of any application event generated by any application program in the electronic device, and specific reference may be made to the related description of the first notification, which is not described herein again in detail.

In the process of displaying the first notification in the first area of the display screen, the electronic device may acquire the second notification, at this time, the second priority of the second notification may be acquired, and under the condition that the second priority of the second notification is higher than or equal to the first priority of the first notification, the display content of the first area is updated to the second notification, so that whether the second notification is updated and displayed is determined based on the first priority of the first notification and the priority of the second notification, and therefore, only one notification is displayed in the first area at the same time, the problem that the displayed notification is limited to be small in the display screen while the displayed notification meets the viewing requirements of a user is avoided, and if a plurality of pieces of information are displayed, the font becomes small and is not beneficial to viewing is solved.

For example, assuming that at the current time, 7 o 'clock, an airplane travel event notification (first notification) is displayed on a first area of the display screen, and then 7 o' clock 15 acquires a user heart rate event notification (second notification) in a time-sharing manner, at this time, if the second priority of the user heart rate event notification is higher than the first priority of the airplane travel event notification, the user heart rate event notification is updated and displayed on the first area.

For another example, assuming that an airplane travel event notification (first notification) is displayed on the first area at the current time 10, then the conference notification (second notification) is acquired in time division at 10 o' clock 15, and at this time, if the second priority of the conference notification is the same as the first priority of the airplane travel event notification, the conference notification is updated and displayed on the first area.

It should be noted that, in the case that the second priority of the second notification is lower than the first priority of the first notification, the first notification continues to be displayed, so that the displayed notification more meets the viewing requirement of the user.

In this way, in this embodiment, by displaying the first notification in the first area, where the first notification has the first priority, and then updating the display content of the first area to the second notification when the second notification is acquired and the second priority of the second notification is higher than or equal to the first priority, it is implemented to determine whether to update and display the second notification based on the first priority of the first notification and the priority of the second notification, so that only one notification is displayed in the first area at the same time, and while the displayed notification better meets the viewing requirement of the user, the problem that the display screen is limited to be small, and if a plurality of pieces of information are displayed, the font becomes small and is not favorable for viewing is avoided.

Optionally, in this embodiment, the first notification corresponds to a first display duration, and the second notification corresponds to a second display duration;

after the updating the display content of the first area to the second notification, the method further includes:

and updating the display content of the first area to the first notification when the second display duration is less than the first display duration, the display time of the second notification reaches the second display duration, and the display time of the first notification does not reach the first display duration.

Specifically, each notification has a certain display duration, and the display duration is a preset display duration of the notification in the first area. The first notification corresponds to a first display duration and the second notification corresponds to a second display duration. For example, the first display time period may be 20 minutes, which means that the first notification is displayed on the first area for 20 minutes at a time set in advance; the second display time period may be 30 minutes, indicating that the second notification is displayed on the first area for 30 minutes at a time set in advance.

It should be further noted that, after the display content of the first area is updated to the second notification, the time that the first notification is updated and covered is counted into the first display duration corresponding to the first notification.

If the first duration is longer than the second duration, the display content of the first area can be updated to the first notification again under the condition that the display time of the second notification reaches the second display duration and the display time of the first notification does not reach the first display duration; namely, the first notification covered by the update does not disappear, and when the second notification disappears, the first notification covered by the update is displayed again, so that the information acquisition capability of the electronic equipment is improved, and the viewing requirement of a user on the information is met.

Optionally, in this embodiment, when the first area displays the first notification, the first notification may be displayed in a first layer of the first area; when the display content of the first area is updated to the second notification, the second notification may be displayed in a second layer of the first area, where the second layer covers the first layer.

Specifically, different notifications are displayed in a first area in a split-map manner, the first notification is displayed on a first map layer, and the second notification is displayed on a second map layer covering the first map layer, so that the notification on only one map layer is displayed at the same time on the first area, and the problem that the display screen is limited to be small, and the font is reduced and the viewing is not facilitated if a plurality of pieces of information are displayed is solved; in addition, different notifications are displayed in different image layers, so that when the display time of the second notification reaches the second display time length of the second notification and the display time of the first notification does not reach the first display time length, the covered first image layer can be displayed on the first area again, namely, the first notification is displayed again, the covered first notification can be displayed again, and the information viewing requirement of a user is met.

Furthermore, optionally, in this embodiment, after obtaining the second notification, before updating the display content of the first area to the second notification, the method further includes:

acquiring the belonged categories of the first notification and the second notification, wherein the belonged categories comprise a first category, a second category and a third category, and the priority levels of the first category, the second category and the third category are sequentially increased;

wherein the occurrence of the notification in the first category is related to the user operation behavior, the occurrence of the notification in the second category is related to the time, and the occurrence of the notification in the third category is related to the user physical health data.

Specifically, the category to which the first notification belongs may be a first category, a second category, or a third category, and the category to which the second notification belongs may be the first category, the second category, or the third category.

It should be noted that the priority of the category to which the first notification belongs is the first priority of the first notification, and the priority of the category to which the second notification belongs is the second priority of the second notification. For example, if the category to which the first notification belongs is the second category and the category to which the second notification belongs is the third category, the second priority is higher than the first priority; and if the categories of the first notification and the second notification are both the first category, the first priority of the first notification is the same as the second priority of the second notification.

Further, specifically, the notification occurrence in the first category is related to the user operation behavior, that is, the first category is divided based on whether the notification occurrence is triggered by the user operation, and the notification occurrence related to the user operation behavior may be divided into the category. For example, music play event notifications, timed event notifications, countdown event notifications, etc., which all occur in connection with user actions, may be classified into a first category (also referred to as a user behavior class).

The notification occurrences in the second category are time-dependent, i.e., the second category is divided based on whether the notification occurrences are strongly time-dependent, which may be divided into the categories. For example, a travel event notification, a meeting event notification, a viewing event notification, a calendar reminder event notification, an alarm event notification, a drinking reminder event notification, etc., the notifications of events occurring all being time-related, may be classified into a second category (also referred to as a time category).

The notification occurrences in the third category are related to the physical health data of the user, i.e. the third category is classified based on whether the notification occurrences are triggered by the physical health data of the user, into which the notification occurrences related to the physical health data of the user may be classified. For example, heart rate detection event notifications, blood oxygen detection event notifications, step number detection event notifications, etc., which all occur in relation to the user's physical health data, may be classified into a third category (which may also be referred to as a physical data category).

After the notifications are classified according to the method, the categories of the first notification and the second notification can be acquired, so that the first priority of the first notification and the second priority of the second notification can be determined, the user can view the notifications related to the body health of the user in priority to know the health condition of the user, and then view the notifications related to the time, so that the occurrence time of the notifications is avoided from being missed, and the information viewing requirement of the user is met.

Further, optionally, in this embodiment, displaying the first notification in the first area includes:

when the first notification is acquired and the display timing of the first notification is met, displaying the first notification in the first area;

after the second notification is acquired and before the display content of the first area is updated to the second notification, the method further includes:

and acquiring a second priority of the second notification when the display timing of the second notification is met.

Specifically, the display timing of the first notification and the display timing of the second notification may be preset, and may be set based on viewing timing requirements of the user for different notifications, so that the display timing can meet the viewing timing requirements of the user, and the different notifications can be displayed on the first region when appropriate. For example, if the first notification is a travel event notification corresponding to the ticket, and the display timing may be 3 hours before the aircraft takes off, the first notification may be displayed on the first area 3 hours before the aircraft takes off, so that the user can view the notification 3 hours in advance, the user does not miss travel time, and the information viewing timing requirement of the user is met.

When the display time of the second notification is met, the second priority of the second notification is acquired, the situation that the second priority is acquired inefficiently when the electronic equipment acquires other notifications is avoided under the condition that the display time of the second notification is not met, and the computing resources of the electronic equipment are saved.

Therefore, when the first notification is acquired and the display time of the first notification is met, the first notification is displayed in the first area, when the display time of the second notification is met, the second priority of the second notification is acquired, whether the second notification is updated to be displayed is determined based on the second priority, and when different notifications are displayed on the first area of the display screen can be determined, so that the first notification and the second notification can be displayed on the first area of the display screen at a proper time, a user does not need to enter an application program to view the notifications through operations of sliding, clicking and the like for multiple times, the interaction cost between the user and the electronic equipment is reduced, and the convenience of the user in viewing the notifications is improved.

In addition, optionally, in this embodiment, when a notification is in a first category and an application event corresponding to the notification is in a start state, determining that a display timing of the notification is satisfied, where a notification occurrence in the first category is related to a user operation behavior;

determining a display timing satisfying a notification in a case where the notification is of a second category in which a notification occurrence is time-dependent and a display start time of the notification is reached;

determining display timing meeting the notification when the notification is in a third category and the notification data corresponding to the notification does not meet the preset conditions, wherein the notification in the third category is related to the body health data of the user;

the notification is the first notification or a second notification.

Specifically, the present embodiment may determine the display timing of the first notification and the display timing of the second notification based on the categories to which the first notification and the second notification belong, and the following specific examples are given:

first, if the first notification or the second notification is of the first category, that is, the occurrence of the notification is related to a user operation behavior, since the user operation can change the state of the application event, the display timing of the notification can be determined to be satisfied under the condition that the application event corresponding to the notification is in the start state, so that the viewing requirement of the user on the information can be satisfied.

This is illustrated here by way of specific examples.

For example, the display timings of the music play event notification, the chronograph event notification, the countdown event notification, and the like are as follows:

for music play event notifications: when music is played in the background, namely when the music playing event is in a starting state, the display time meeting the notification is determined, and at the moment, the event notification is displayed on the first area of the display screen. Note that the notification disappears on the display screen when the music stops playing.

For timed event notification: when a timer counts in the background, namely when the timer event is in a starting state, the display time meeting the notification is determined, and the notification is displayed on the first area of the display screen at the moment. Of course, the notification disappears on the display screen when the timer times out or ends. For example, if the first area is a dial of a smart watch, the display of the chronograph event notification on the dial is shown in fig. 2, the dial is displayed with the current time including the date (06/10), the week (wednesday) and the clock time (18:00), and the notification content includes the chronograph event name (chronograph) and the timed time (00:30: 00).

For countdown event notification: when the countdown timer counts in the background, namely the countdown event is in a starting state, the display time meeting the notification is determined, and the notification is displayed on the first area of the display screen at the moment. Of course, the notification disappears on the display screen when the countdown is paused or ended.

Secondly, if the first notification or the second notification is of the second category, that is, the occurrence of the notification is time-dependent, the display timing of the notification can be determined to be satisfied when the display start time of the notification is reached, so that the viewing demand of the user on the information can be satisfied.

This is illustrated here by way of specific examples.

For example, the display timings of the travel event notification, the meeting event notification, the viewing event notification, the calendar reminder event notification, the alarm clock event notification, the drinking reminder event notification, the sleep detection event notification, and the like are as follows:

for airplane and train trip event notification: if the display starting time of the notification is 3 hours before the takeoff or departure time, determining that the display time of the notification is met when the time reaches 3 hours before the takeoff or departure time, and displaying the notification (namely flight information and train ticket information) on a first area of a display screen at the moment; of course, the notification may disappear on the first area of the display screen after taking off or departure for more than 15 minutes, i.e., the notification is displayed for a period of time from 3 hours before the taking off or departure time to 15 minutes before taking off or departure. For example, if the first area is a dial of a smart watch, the train trip event notification may be displayed on the dial as shown in fig. 3, the current time and the notification content are displayed on the dial, the current time may include a date (06/10), a day (wednesday) and a clock time (16:35), and the notification content includes a train departure time (18:30 today) and a train departure place (SZ station), and the like.

For conference event notification: if the display start time of the notification is 30 minutes before the start of the conference, determining the display timing meeting the notification when the display start time of the notification reaches 30 minutes before the start of the conference, and displaying the notification on the first area of the display screen at the moment; of course, the notification may disappear on the first area of the display screen 30 minutes after the conference starts, i.e., the notification is displayed for 30 minutes before the conference starts to 30 minutes after the conference starts.

And (3) notifying the film watching event: if the display start time of the notification is 3 hours before the showing time, determining the display time meeting the notification when the display start time of the notification reaches 3 hours before the showing time, and displaying the notification on the first area of the display screen at the moment; of course, the notification may disappear on the first area of the display screen after the 30 minutes of the showing, that is, the notification is displayed for a period of time from 3 hours before the showing time to 30 minutes after the showing time.

For calendar reminder event notifications: if the display starting time of the notification is 30 minutes before the reminding time, determining the display time meeting the notification when the display starting time of the notification is 30 minutes before the reminding time, and displaying the notification on a first area of a display screen at the moment; of course, the notification may disappear on the first area of the display screen after the reminder time starts 30 minutes, that is, the display duration of the notification is from 30 minutes before the reminder time to 30 minutes after the reminder time starts.

For alarm event notification: the display starting time of the notification is 10 minutes before the alarm clock rings, when the alarm clock rings for 10 minutes, the display time meeting the notification is determined, and the notification is displayed on the first area of the display screen at the moment; of course, the notification may disappear on the first area of the display screen when the alarm rings, that is, the display duration of the notification is from 10 minutes before the alarm rings to the time when the alarm rings.

For drinking reminder event notification: the display starting time of the notification is 10 minutes before the water drinking reminder, when the display time of the notification is up to 10 minutes before the water drinking reminder, the display opportunity meeting the notification is determined, and the notification is displayed on a first area of a display screen at the moment; of course, the notification may disappear on the first area of the display screen when the water drinking reminder is given, that is, the display duration of the notification is from 10 minutes before the water drinking reminder to the time of the water drinking reminder.

Counting event notifications for wake-up events: when the display starting time of the notification is getting up, determining the display time meeting the notification when getting up, and displaying the notification on the first area of the display screen at the moment; of course, the notification may disappear on the first area of the display screen after being displayed for 30 minutes, i.e., the notification is displayed for 30 minutes.

If the first notification or the second notification is of the third category, that is, the occurrence of the notification is related to the body health data of the user, the display timing of the notification can be determined to be met under the condition that the notification data corresponding to the notification does not meet the preset condition, so that the viewing requirement of the user on the information can be met.

It should be noted that, for the notifications belonging to the third category, different notifications correspond to different preset conditions. Of course, the preset conditions can be set according to the normal data of the human body of the user, so that the physical health condition of the human body can be reflected.

This is illustrated here by way of specific examples.

For example, the timing of the display of the heart rate detection event notification, the blood oxygen detection event notification, the step number detection event notification, etc. is as follows:

for heart rate detection event notification: setting a preset condition that the heart rate frequency is lower than a preset frequency value (for example, 120 times/minute), and when the heart rate data detected by the background is higher than the preset frequency value, namely the data does not accord with the preset condition, determining that the display time of the notification is met, wherein the notification is displayed on a first area of a display screen; of course, when the heart rate data is lower than the preset frequency value, the preset condition is met, and the notification is not displayed (disappears) on the first area of the display screen, that is, the display duration of the notification is from when the heart rate data is detected to be higher than the preset frequency value to when the heart rate data is restored to the preset frequency value.

For blood oxygen detection event notification: setting a preset condition that the blood oxygen saturation is higher than a preset saturation (for example, 92%), and determining that the display time of the notification is met when the background detects that the blood oxygen saturation is lower than the preset saturation, namely the data does not meet the preset condition, wherein the notification is displayed on a first area of a display screen; of course, when the blood oxygen saturation is higher than the preset saturation, that is, the data meets the preset condition, the notification is not displayed (disappears) on the display screen. For example, if the first area is a dial of a smart watch, the display of the blood oxygen detection event notification on the dial is shown in fig. 4, and in fig. 4, since the current blood oxygen saturation is 90% lower than the preset saturation (92%), the notification content including the date (06/10), the week (wednesday), the clock time (18:00), the name of the blood oxygen saturation (the blood oxygen saturation) and the value of the saturation (90%) is displayed on the display screen.

Event notification is detected for the number of steps: setting a preset condition that the step number is higher than a preset numerical value (for example, 8000 steps), and determining that the display time of the notification is met if the background detects that the step number does not reach the preset numerical value (8000) after a fixed time of a day, namely the data does not meet the preset condition, wherein the notification is displayed on a first area of a display screen; and if the background detects that the step number reaches a preset value at a fixed time of a day, the background informs that the step number is not displayed (disappears) on the display screen.

In this way, the display timing of the notification is determined according to the category to which the notification belongs, so that the first notification or the second notification can be displayed on the first area of the display screen under the condition that the display timing is met, and the information viewing requirement of a user is met.

Optionally, an embodiment of the present application is described below with reference to fig. 5, in which the display method includes the following steps:

step 501, obtaining the notification, and determining the category of the notification.

The category to which the notification belongs is the first category, the second category or the third category, and specific contents of the categories can be referred to in the above embodiments, which is not specifically described herein.

Step 502, determining the display time and priority of the notification according to the category of the notification.

For how to determine the priority of the notification according to the category to which the notification belongs, reference may be specifically made to the above embodiments, which are not described herein again in detail; in addition, how to determine the display timing of the notification according to the category to which the notification belongs can also refer to the above embodiments, which are not described in detail herein.

And step 503, displaying according to the display time and priority of the notification.

Wherein only one event information is displayed at a time on the first area of the display screen.

Under the condition that the first notification is acquired and the display opportunity of the first notification is met, displaying the first notification on a first area, wherein the first notification has a first priority; and updating the display content of the first area to the second notification when the second notification is acquired and the display timing of the second notification is met and the second priority of the second notification is higher than or equal to the first priority.

Of course, if the second priority of the second notification is lower than the first priority, the first notification continues to be displayed.

In addition, under the condition that the second display duration of the second notification is less than the first display duration of the first notification, the display time of the second notification reaches the second display duration, and the display time of the first notification does not reach the first display duration, the display content of the first area is updated to the first notification.

Like this, through above-mentioned process, realized the display process to different notices to realized only can showing a notice in the same time on first region, make when the notice that shows more accords with user's the demand of looking over, avoided being subject to the display screen less, if show many information then the typeface diminishes the problem that is unfavorable for looking over, reduced the interactive cost between user and the electronic equipment, improved the convenience when user looked over the information.

In the display method provided in the embodiment of the present application, the execution main body may be a display device, or a control module for executing the display method in the display device. In the embodiment of the present application, a display device executing a display method is taken as an example, and the display device provided in the embodiment of the present application is described.

As shown in fig. 6, the display device includes:

a first display module 601, configured to display a first notification in a first area, where the first notification has a first priority;

a second display module 602, configured to update the display content of the first area to a second notification when the second notification is acquired and a second priority of the second notification is higher than or equal to the first priority.

Optionally, the first notification corresponds to a first display duration, and the second notification corresponds to a second display duration;

the display device further includes:

and the display updating module is used for updating the display content of the first area into the first notification when the second display duration is less than the first display duration, the display time of the second notification reaches the second display duration, and the display time of the first notification does not reach the first display duration.

Optionally, the first display module 601 is specifically configured to display a first notification in a first layer of a first area;

the second display module 602 is specifically configured to display the second notification on a second layer of the first area, where the second layer covers the first layer.

Optionally, the display device further comprises:

a first obtaining module, configured to obtain categories to which the first notification and the second notification belong, where the categories include a first category, a second category, and a third category, and priority levels of the first category, the second category, and the third category are sequentially higher;

wherein the occurrence of the notification in the first category is related to the user operation behavior, the occurrence of the notification in the second category is related to the time, and the occurrence of the notification in the third category is related to the user physical health data.

Optionally, the first display module 601 is specifically configured to, when the first notification is acquired and a display timing of the first notification is met, display the first notification in the first area;

the display device further includes:

and the second acquisition module is used for acquiring the second priority of the second notification under the condition that the display opportunity of the second notification is met.

Optionally, the display device further comprises:

the device comprises a first determining module, a second determining module and a display module, wherein the first determining module is used for determining display opportunity meeting the notification when the notification is in a first category and an application event corresponding to the notification is in a starting state, and the notification in the first category is related to user operation behaviors;

a second determination module, configured to determine a display timing that satisfies a notification when the notification is of a second category and a display start time of the notification is reached, where an occurrence of the notification in the second category is time-dependent;

the third determining module is used for determining the display time meeting the notification when the notification is in a third category and the notification data corresponding to the notification does not meet the preset conditions, wherein the notification in the third category is related to the body health data of the user;

the notification is the first notification or a second notification.

In the embodiment of the application, the first notification is displayed in the first area through the first display module, the first notification has a first priority, then the second notification is obtained, and under the condition that the second priority of the second notification is higher than or equal to the first priority, the display content of the first area is updated to the second notification through the second display module, so that the first notification is displayed in the first area of the electronic equipment, and after the second notification is obtained, whether the second notification is updated to be displayed is determined based on the first priority of the first notification and the priority of the second notification, and therefore only one notification can be displayed in the first area at the same time, the displayed notification better meets the viewing requirements of users, meanwhile, the problem that the display screen is limited to be small, and the font is not beneficial to viewing if a plurality of pieces of information are displayed is avoided.

The display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.

The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.

The display device provided in the embodiment of the present application can implement each process implemented by the method embodiments of fig. 1 to 6, and is not described here again to avoid repetition.

Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the display method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.

It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.

Fig. 8 is a hardware configuration diagram of an electronic device 800 implementing various embodiments of the present application;

the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.

Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.

The display unit 806 is configured to display a first notification in a first area, where the first notification has a first priority; and updating the display content of the first area to the second notification when the second notification is acquired and the second priority of the second notification is higher than or equal to the first priority.

Optionally, the first notification corresponds to a first display duration, and the second notification corresponds to a second display duration;

after the updating of the display content of the first area to the second notification, the display unit 806 is further configured to update the display content of the first area to the first notification when the second display duration is less than the first display duration, the display time of the second notification reaches the second display duration, and the display time of the first notification does not reach the first display duration.

Optionally, the display unit 806 is configured to display the first notification in the first layer of the first area; and displaying the second notice on a second layer of the first area, wherein the second layer covers the first layer.

Optionally, the processor 810 is configured to obtain categories of the first notification and the second notification, where the categories include a first category, a second category, and a third category, and the priority levels of the first category, the second category, and the third category are sequentially higher;

wherein the occurrence of the notification in the first category is related to the user operation behavior, the occurrence of the notification in the second category is related to the time, and the occurrence of the notification in the third category is related to the user physical health data.

Optionally, the display unit 806 is configured to, when the first notification is acquired and a display timing of the first notification is met, display the first notification in the first area;

the processor 810 is configured to obtain a second priority of the second notification when the display timing of the second notification is satisfied.

Optionally, the processor 810 is configured to, when a notification is in a first category and an application event corresponding to the notification is in a start state, determine that a display timing of the notification is satisfied, where a notification occurrence in the first category is related to a user operation behavior;

determining a display timing satisfying a notification in a case where the notification is of a second category in which a notification occurrence is time-dependent and a display start time of the notification is reached;

determining display timing meeting the notification when the notification is in a third category and the notification data corresponding to the notification does not meet the preset conditions, wherein the notification in the third category is related to the body health data of the user;

the notification is the first notification or a second notification.

In the embodiment of the application, the first notification is displayed in the first area, the first notification has a first priority, then the display content of the first area is updated to the second notification when the second notification is acquired, and the second priority of the second notification is higher than or equal to the first priority, so that the first notification is displayed in the first area of the electronic device, and after the second notification is acquired, whether the second notification is updated to be displayed is determined based on the first priority of the first notification and the priority of the second notification, so that only one notification can be displayed in the same time on the first area, the displayed notification is more in line with the viewing requirement of a user, the problem that a display screen is small, and if a plurality of pieces of information are displayed, the font is reduced and is not beneficial to viewing is solved.

It should be understood that in the embodiment of the present application, the input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics Processing Unit 8041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 8071 and other input devices 8072. A touch panel 8071, also referred to as a touch screen. The touch panel 8071 may include two portions of a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.

The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.

The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.

The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.

It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an electronic device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.

While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:基于WCF协议的MES系统用户界面多国语言切换方法及系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!