CN109005283A - Show method, apparatus, terminal and the storage medium of notification message - Google Patents

Show method, apparatus, terminal and the storage medium of notification message Download PDF

Info

Publication number
CN109005283A
CN109005283A CN201810697712.1A CN201810697712A CN109005283A CN 109005283 A CN109005283 A CN 109005283A CN 201810697712 A CN201810697712 A CN 201810697712A CN 109005283 A CN109005283 A CN 109005283A
Authority
CN
China
Prior art keywords
notice
notification message
display
terminal
display box
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.)
Granted
Application number
CN201810697712.1A
Other languages
Chinese (zh)
Other versions
CN109005283B (en
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN201810697712.1A priority Critical patent/CN109005283B/en
Publication of CN109005283A publication Critical patent/CN109005283A/en
Application granted granted Critical
Publication of CN109005283B publication Critical patent/CN109005283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • 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/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of method, apparatus, terminal and storage medium for showing notification message, belong to field of computer technology, the described method includes: when the user interface of terminal full screen display target application, and when receiving the instruction of display notification message, obtain the corresponding notice element of notification message, and then obtain the corresponding indicating template of notice element, the notice display box comprising notice element is generated according to indicating template, the notice display box is that background is transparent or semitransparent display box, and notice display box is shown in the user interface of target application.Wherein, notice element is used to show the message content of notification message, and/or, for receiving control instruction.User interface of the application in terminal full screen display target application, and when receiving the instruction of display notification message, it can show a background transparent or translucent notice display box, under the premise of guaranteeing that notification message is shown in time, reduce and present user interface is blocked.

Description

Show method, apparatus, terminal and the storage medium of notification message
Technical field
The invention relates to field of computer technology, in particular to a kind of method, apparatus for showing notification message, end End and storage medium.
Background technique
Smart phone obtains the important equipment of information as modern day user, can be provided a user by installing various application Different types of information.
It in the related technology, can be by way of notification message at end when the first application has notification message to need to show It is shown in the user interface at end.When the user interface of the second application of terminal full screen display, terminal will show bullet in center Screen Window causes user interface to be blocked, and influences the viewing of user.
Summary of the invention
The embodiment of the present application provides a kind of method, apparatus, terminal and storage medium for showing notification message, can solve When the user interface of the second application of terminal full screen display, terminal will show pop-up in center Screen, and user interface is caused to be hidden The problem of keeping off, influencing the viewing of user.The technical solution is as follows:
According to a first aspect of the present application, a kind of method for showing notification message is provided, which comprises
When terminal is displayed in full screen the user interface of target application, and receives the instruction of display notification message, institute is obtained State the corresponding notice element of notification message;The notice element is used to show the message content of the notification message, and/or, institute Notice element is stated for receiving control instruction, it is corresponding that the control instruction is used to indicate the terminal execution notice element Operation;
Obtain the corresponding indicating template of the notice element;
The notice display box comprising the notice element is generated according to the indicating template, the notice display box is background For transparent or semitransparent display box;
The notice display box is shown in the user interface of the target application.
According to a second aspect of the present application, a kind of device for showing notification message is provided, described device includes:
Element obtains module, for the user interface when terminal full screen display target application, and receives display notice and disappears When the instruction of breath, the corresponding notice element of the notification message is obtained;The notice element is for showing the notification message Message content, and/or, the notice element is used to indicate the terminal and executes for receiving control instruction, the control instruction The corresponding operation of the notice element;
Template obtains module, for obtaining the corresponding indicating template of the notice element;
Display box generation module, for generating the notice display box comprising the notice element according to the indicating template, The notice display box is that background is transparent or semitransparent display box;
Display box display module, for showing the notice display box in the user interface of the target application.
According to the third aspect of the application, a kind of terminal is provided, the terminal includes processor and memory, described to deposit At least one instruction is stored in reservoir, described instruction is loaded by the processor and executed to realize as described in relation to the first aspect The method for showing notification message.
According to the fourth aspect of the application, a kind of computer readable storage medium is provided, is stored in the storage medium There is at least one instruction, described instruction is loaded by processor and executed the display notification message with realization as described in relation to the first aspect Method.
Technical solution provided by the embodiments of the present application has the benefit that
Since the embodiment of the present application is when implementing, terminal can be enabled in the user interface of full screen display target application, and When receiving the instruction of display notification message, notice is shown by one background transparent of display or translucent notice display box Each notice element in message, wherein notice element is the message content for showing notification message, alternatively, notification message It is also possible to for receiving control instruction.As it can be seen that the embodiment of the present application can under the premise of guaranteeing that notification message is shown in time Reduce blocking to the user interface of target application, improves the effect of the user interface display simultaneously of notification message and target application Fruit.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is the flow chart of the method for the display notification message that one exemplary embodiment of the application provides;
Fig. 2 is a kind of schematic diagram of the corresponding notice display box of indicating template provided based on embodiment illustrated in fig. 1;
Fig. 3 is a kind of schematic diagram of display notice display box provided based on embodiment illustrated in fig. 1;
Fig. 4 is the schematic diagram of another display notice display box provided based on embodiment illustrated in fig. 1;
Fig. 5 is the flow chart of the method for the display notification message that another exemplary embodiment of the application provides;
Fig. 6 is the structural block diagram of the device for the display notification message that one exemplary embodiment of the application provides;
Fig. 7 is the structural block diagram for the terminal that one exemplary embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
It can be readily appreciated that it below will be to several nouns occurred in the embodiment of the present application for scheme shown in the embodiment of the present application It is introduced.
Target application: the application being displayed in full screen in terminal is referred to, either system application, is also possible to third party and answers With.In possible application scenarios, which can be game application, input method application, browser application, wallpaper are answered It is applied with the application of, system tool, convenient life application, audio-visual broadcastings, converse communication applications, social networking application, theme plug-in unit Using, shooting beautification application, Domestic News application, books reading application, study office application, online shopping payment application, finance reason Wealth application, digital map navigation application, takes out application, network chauffeur application, shared bicycle application, sport and body-building at original publication application Using at least one of, ticket booking application, live streaming application, super quotient's facilitated application, application shop application and smart machine application.
Notify element: in a kind of possible scene, notice element is used to show the message content of the notification message, example Such as, when notifying element is content of announcement, which may include at least one of text, picture, audio and video.
In alternatively possible scene, notice element for receiving control instruction, for example, when notice element be button, When at least one of check box and sliding block, notice element can receive at least one of click, selection and dragging control and refer to It enables.Wherein, control instruction is used to indicate terminal and executes the corresponding operation of notice element.For example, when notice element close button, control System instruction is used to indicate the display that terminal closes the notification message.Alternatively, control instruction is used when notifying element is to answer button The call of current incoming call is connected in instruction terminal.
In another possible scene, notice element not only can be used to show message content, but also refer to for receiving control It enables, for example, the screen area of the display content of announcement is clicked when notifying element to have the content of announcement of transparent control layer When, the transparent control layer can be triggered, so that screen jumps the corresponding user interface of display content of announcement.
Optionally, notice element includes at least one notified in title, content of announcement, notice button and Notifications dialog Kind.Notice button can receive click commands, and user clicks the instruction generated when the notice button when click commands.Notify title It is the text for being used to indicate the theme of a notice.Content of announcement is the part for being used to indicate the main information of a notice, can To be embodied as at least one of text, picture, audio and video.Notifications dialog is the framework for receiving user and inputting text.
Indicating template: can be preset template in system, and different templates corresponds to corresponding notice display box, and one It can specify that the typesetting of each display elements in a notice display box.That is a template defines in the corresponding notice display box Type, quantity and the display area of the display elements of display.
Notice display box: being that system service or system apply the notification frame generated according to indicating template and display elements, The background of the notification frame is transparent or translucent.In one possible implementation, the transparency of the background can be Preset determining constant value.In alternatively possible implementation, the transparency of the background is also possible to according to application Type determine that for example, when target application is Video Applications, which is 75%;When target application is game application When, which is 50%.It should be noted that transparent background can be the background that transparency is 100%, translucent back Scape can be transparency and be greater than zero background into the section less than 1.
Optionally, in a kind of possible application scenarios, terminal shows the top area of the user interface in target application Show the Notifications dialog, which refers to the region for the user interface top edge that reclines.In alternatively possible application scenarios In, terminal will show the Notifications dialog in the side area of the user interface of target application, which refers to the use that reclines The display area and/or the display area in right side edge of the left side edge at family interface.On the side of the user interface of target application Edge region shows the Notifications dialog, can reduce blocking to the user interface of target application to greatest extent, while can rise The effect that user checks is shown to by notification message.
It should be noted that the terminal of disclosure application refers to the terminal for having display screen.The display screen both can be with It is LED display, is also possible to projection display screen.Alternatively, be also possible to can be directly by image for the terminal of the application application It projects to the equipment on user eyeground.In a kind of possible application scenarios, terminal can be mobile phone, tablet computer, electricity on knee Brain, desktop computer, computer all-in-one machine, server, work station, TV, set-top box, smart glasses, smart watches, digital camera, MP4 playback terminal, MP5 playback terminal, learning machine, point reader, electric paper book, electronic dictionary, car-mounted terminal, virtual reality (Virtual Reality, VR) playback terminal or augmented reality (Augmented Reality, AR) playback terminal etc..
Referring to FIG. 1, it is the flow chart of the method for the display notification message that one exemplary embodiment of the application provides. The method of the display notification message can be applied in above-mentioned terminal.In Fig. 1, the method for showing notification message includes:
Step 110, when the user interface of terminal full screen display target application, and the instruction of display notification message is received When, obtain the corresponding notice element of notification message;Notice element is used to show the message content of notification message, and/or, notice member Element is used to indicate terminal and executes the corresponding operation of notice element for receiving control instruction, control instruction.
In the embodiment of the present application, terminal can adjust a system service or system to apply to execute step 110.This is System application or system service can monitor the user interface that target application whether is displayed in full screen in the screen of terminal.In addition, should System application or system service can also monitor the instruction that terminal receives display notification message.When system application or system service When being displayed in full screen the user interface of target application in terminal, and receiving the instruction of display notification message, notification message pair is obtained The notice element answered.Wherein, which is originally used for the display content of display notification message, and/or, notice element is for receiving Control instruction, control instruction are used to indicate terminal and execute the corresponding operation of notice element.
It should be noted that in the embodiment of the present application, terminal can provide in set interface to vertically hung scroll and dialog box Optimize the switch of display, which can be named as " vertically hung scroll and dialog box optimization display ".When user opens the switch, so that eventually After end is enabled to the optimization function of vertically hung scroll and dialog box, terminal can implement this programme.In alternatively possible implementation, Terminal default opens the optimization function to vertically hung scroll and dialog box, is configured in set interface without user.
Step 120, the corresponding indicating template of notice element is obtained.
In the embodiment of the present application, the corresponding indicating template of the available notice element of terminal.
Optionally, the system service in terminal or system application can according to the quantity of notice element, display area and/or Type obtains the corresponding indicating template of notice element.
In a kind of possible mode, terminal can find the display of exact matching according to the whole notice elements got Template.For example, whole notice elements that terminal is got include a notice title, a content of announcement and two notify by Button.Then terminal will only show that the indicating template of a notice title, a content of announcement and two notice buttons is true simultaneously It is set to the indicating template with notice element exact matching.
In alternatively possible mode, terminal can be found matched according to the Partial Elements of the notice element got Indicating template, for example, whole notice elements that terminal is got include notice title " colleague A ", a content of announcement " people Thing group group leader " and two notice buttons, two notice buttons are " answering button " and " rejection button " respectively.Terminal can only root According to the notice title and two notice buttons matching indicating templates in notice element, notice title and two notices will be shown The indicating template of button is determined as notifying the corresponding indicating template of element.As it can be seen that terminal is according to notice in this matching way The number amount and type of element, the corresponding indicating template of matching display elements.
In a kind of mode in the cards, terminal can also be according to the corresponding display mould of display area selection of notice element Plate.For example, the width of indicating template and display font size be it is determining, then the text of content of announcement can be determined with line number.When logical When knowing the text of content no more than line number threshold value, terminal will select the indicating template that button is unfolded without content of announcement.When logical When knowing that the text of content is greater than line number threshold value, indicating template of the terminal by selection with content of announcement expansion button.
It is the corresponding notice display of a kind of indicating template provided based on embodiment illustrated in fig. 1 for example, referring to Fig. 2 The schematic diagram of frame.In Fig. 2, notify to include notice title 211, content of announcement 212 and notice button 213 in display box 21.It is logical Know in display box 22 to include notice title 221, content of announcement 222, notice button 223 and content of announcement expansion button 224.Its In, when the line number of the display content in display elements is no more than 2 row, terminal will determine that notice display box 21 is display elements pair The indicating template answered.When the line number of the display content of display elements is more than 2 row, terminal will determine that notice display box 22 is display The corresponding indicating template of element.Wherein, when button 224 is unfolded by user's clicking trigger in content of announcement, terminal will be in expansion notice The framework for holding 222, shows the complete content of content of announcement.
It should be noted that the screen of terminal shown in Fig. 2 is being displayed in full screen the user interface of target application.
In the mode of alternatively possible realization, terminal can also be more than 2 rows when the line number of the display content of display elements When, display box 21 will be notified to be determined as the corresponding indicating template of display elements.But it shows and omits at the end of content of announcement 222 Number " ... " indicates that content of announcement 222 has partial content not show.
It should be noted that system service or system are applied in quantity, display area and/or the class according to notice element Type obtains before notifying the corresponding indicating template of element, additionally it is possible to according to the application identities of target application, determine corresponding target Template library.For example, referring to table one.
Table one
Application identities Game a Game b Video Applications c D is applied in live streaming
Target template library Template library A Template library A Template library B Template library C
In this application, application identities can be the installation kit name of application.Such as " game a " in table one, " game b ", " Video Applications c " or " c is applied in live streaming ".In a kind of mode in the cards, installation kit name can be implemented as shaped like " com.android.apk " or " com.abc.android.apk ".Different application identities can correspond to the same target mould Plate library, such as " game a " and " game b " correspond to target template library " template library A ".
After determining target template library, terminal can be according to quantity, display area and/or the type of notice element, from mesh It marks and obtains the corresponding indicating template of notice element in template library.
Step 130, the notice display box comprising notice element is generated according to indicating template, notice display box is that background is Bright or translucent display box.
In the embodiment of the present application, the system service in terminal or system application will be generated according to indicating template comprising notice The notice display box of element, notice display box are that background is transparent or semitransparent display box.Wherein, terminal system service or it is System is applied on the predeterminated position by display elements typesetting into indicating template, and can be with according to the word being arranged in indicating template Body, font size, whether the parameter presets such as overstriking and underscore, adjust display elements in text.Meanwhile system service or system Using the picture that can be adjusted according to parameters such as preset resolution ratio and dimension of pictures in display elements.In addition, system service or System application can generate new notice button according to preset button size and button-shape.System service will need to add The place indicated to the notice element typesetting in notice display box to indicating template.
For example, notice element includes notice title T1, content of announcement T2, notice button T3 and notice button T4.System clothes Be provided in business or the determining corresponding indicating template of notice element of system application display notice title T1, notice button T3 and Notify the position of button T4.In this scene, system service or system application will according to the preset text parameter of indicating template and The adjustment such as image parameters notify title T1, while according to preset button size and button-shape, generate notice button respectively T3 and the notice corresponding new notice button of button T4.
Step 140, notice display box is shown in the user interface of target application.
In the embodiment of the present application, system service or system are applied shows notice display in the user interface of target application Frame.
In one possible implementation, Fig. 3 is referred to, is a kind of display provided based on embodiment illustrated in fig. 1 Notify the schematic diagram of display box.In Fig. 3, notice display box 31 is that background is translucent display box.Also, notify display box 31 user interface 32 top area 33 show, edge of the top area 33 due to the user interface 32 that reclines.Therefore, it notifies Display box 31 can be in the case where blocking user interface 32 less as far as possible, and showing wherein needs notice element to be shown.Logical Know in display box 31, shows notice title 311, content of announcement 312 and notice button 313.
Optionally, in the mode of alternatively possible realization, Fig. 4 is referred to, is provided based on embodiment illustrated in fig. 1 The schematic diagram of another kind display notice display box.In notice display box 41, content of announcement 411, notice 412 and of button are shown Notify button 413.
In conclusion the method for display notification message provided in this embodiment can enable terminal full frame aobvious when implementing Show the user interface of target application, and when receiving the instruction of display notification message, passes through one background transparent of display or half Transparent notice display box shows each notice element in notification message, wherein notice element is for showing that notice disappears The message content of breath, alternatively, notification message is also possible to for receiving control instruction.As it can be seen that being shown in time in guarantee notification message Under the premise of showing, the embodiment of the present application can reduce blocking to the user interface of target application, improve notification message and target The effect that the user interface of application is shown simultaneously.
In conjunction with upper one embodiment, terminal can also notify the display side of display box according to the Type Control of notification message Formula can refer to following examples in detail.
Fig. 5 is referred to, is the process of the method for the display notification message that another exemplary embodiment of the application provides Figure.The method of the display notification message can be applied in above-mentioned terminal.In Fig. 5, the method for the display notification message includes:
It step 501, whether include target mark in detection notice message when terminal receives the instruction of display notification message Note.
In the embodiment of the present application, target label, which is used to indicate, shows notification message pair in the user interface of target application The notice display box answered.
Step 502, when in notification message include target label, and terminal full screen display target application user interface when, Obtain the notice element in notification message.
In the embodiment of the present application, if system service or system application are detected comprising target label in system message, and When terminal is displayed in full screen the user interface of target application, the notice element in notification message is obtained.Wherein, target label can be One specific identifier.
Optionally, in the alternatively possible implementation of the embodiment of the present application, system service or system application may be used also Determine whether to obtain the notice element in notification message to detect target identification position, wherein target identification position is binaryzation Numerical digit, the value of target identification position are the first numerical value or second value.When the target identification position in notification message be the first numerical value, and When terminal is displayed in full screen the user interface of target application, the notice element in notification message is obtained.Optionally, when the first numerical value is When 1, second value can be 0.When the first numerical value is 0, second value can be 1.
Step 503, the corresponding indicating template of notice element is obtained.
In the present embodiment, the implementation procedure of step 503 and the implementation procedure of step 120 are identical, repeat no more.
Step 504, the notice display box comprising notice element is generated according to indicating template, notice display box is that background is Bright or translucent display box.
In the present embodiment, the implementation procedure of step 504 and the implementation procedure of step 130 are identical, repeat no more.
Step 505, notice display box is shown in the user interface of target application.
In the present embodiment, the implementation procedure of step 505 and the implementation procedure of step 140 are identical, repeat no more.
Step 506, the type of detection notice message, the type of notification message include notification bar notification message and pop-up notice Message.
In the embodiment of the present application, system service or system application are able to detect the type of notification message, the notification message Type include notification bar notification message and pop-up notification message.
On the one hand, notification bar message is to belong to the message of system application or third-party application, and the message is in user interface It after top display scheduled duration and disappears, and resides in notification bar.For example, the Domestic News of third-party application, connection human hair Both for reminding of new message and system rubbish the cleaning prompt sent etc. notification message, can be used as notification bar notification message.
On the other hand, pop-up notification message can be the notice that the application with higher system permission issues.Due to the bullet Window notification message can show that therefore, in this application, the operating system of terminal generally will not be by the sending pop-up in center Screen The permission of notification message authorizes third-party application.In one possible implementation, system application or system service will issue The permission of pop-up notification message authorizes crucial system service, carries out important system notice.For example, in a kind of possible realization In mode, crucial system service can show that not enough power supply, memory space has been expired and Bluetooth pairing by pop-up system message Notice etc. important system notification message.
Terminal will determine execution step 507 and step 508 according to implementing result after executing completion step 506, alternatively, Execute step 509 and step 510.
Step 507, when notification message is notification bar notification message, setting timing length is the timer of preset duration.
Step 508, when the timer times out, notice display box is hidden.
In the embodiment of the present application, it when system service or system apply the notification bar notification message in notification message, will set Set the timer that timing length is preset duration.When the timer times out, system service or system application are by hiding notice display box. Notice display box is avoided to be resident for a long time, the user interface of shelter target application.
Step 509, it when notification message is pop-up notification message, detects whether to receive control instruction.
It should be noted that system service or system application will detect terminal when notification message is pop-up notification message Whether control instruction is received.
Step 510, when receiving control instruction, notice display box is hidden.
In the embodiment of the present application, since the information carried in pop-up notification message is usually important.Therefore, do not having When receiving control instruction, system service or system are applied continuously display notice display box, until when receiving control instruction, System service or system application are by hiding notice display box.For example, in user interface shown in Fig. 4, when terminal receives work When for notifying the control instruction of button 413, system service or system application are by hiding notice display box.That is, when notice button After 413 " being aware of " are clicked, terminal will directly hide notice display box 41.
In conclusion the method for display notification message provided in this embodiment, when terminal receives display notification message When instruction, in detection notice message whether include target label, when in notification message include target label, and terminal be displayed in full screen When the user interface of target application, the notice element in notification message is obtained, obtains the corresponding indicating template of notice element, according to Indicating template generates the notice display box comprising notice element, and notice display box is that background is transparent or semitransparent display box, Notice display box, the type of detection notice message are shown in the user interface of target application, the type of notification message includes logical Know column notification message and pop-up notification message.
On the one hand, when notification message is notification bar notification message, setting timing length is the timer of preset duration, when Timer expiry hides notice display box.As it can be seen that since terminal can include target label in an announcement message, and it is full frame aobvious When showing the user interface of target application, is shown in preset duration and show transparent or translucent notice display box.Therefore, originally Application embodiment is reduced and is blocked to present user interface under the premise of guaranteeing that notification message is shown in time.
On the other hand, when notification message is pop-up notification message, system service or system application detect whether to receive Control instruction hides notice display box when receiving control instruction.As it can be seen that the embodiment of the present application can enable pop-up notice disappear Breath is continuously display when terminal is not received by control instruction, hides after terminal receives control instruction, realizes and guaranteeing Under the premise of important messages are shown, blocking to the user interface of target application is reduced, notification message is improved and target is answered The effect that user interface is shown simultaneously.
Following is the application Installation practice, can be used for executing the application embodiment of the method.It is real for the application device Undisclosed details in example is applied, the application embodiment of the method is please referred to.
Referring to FIG. 6, it is the structural frames of the device for the display notification message that one exemplary embodiment of the application provides Figure.The device of the display notification message can pass through the whole or one of software, hardware or both being implemented in combination with as terminal Part.The device includes:
Element obtains module 610, for the user interface when terminal full screen display target application, and receives display notice When the instruction of message, the corresponding notice element of the notification message is obtained;The notice element is for showing the notification message Message content, and/or, for receiving control instruction, the control instruction is used to indicate the terminal and holds the notice element The corresponding operation of the row notice element.
Template obtains module 620, for obtaining the corresponding indicating template of the notice element.
Display box generation module 630 is shown for generating the notice comprising the notice element according to the indicating template Frame, the notice display box are that background is transparent or semitransparent display box.
Display box display module 640, for showing the notice display box in the user interface of the target application.
In an alternative embodiment, template obtains module 620, for the quantity according to the notice element, display Area and/or type obtain the corresponding indicating template of the notice element.
In an alternative embodiment, described device further includes execution module, the execution module, for according to The application identities of target application determine corresponding target template library.The template obtains module 620, for according to the notice Quantity, display area and/or the type of element obtain the corresponding display mould of the notice element from the target template library Plate.
In an alternative embodiment, the notice element includes: notice title, content of announcement, notice button and leads to Know at least one of dialog box.
In an alternative embodiment, the element obtains module 610, for receiving display notice when the terminal When the instruction of message, detect whether comprising target label in the notification message, the target label is used to indicate in the mesh It marks in the user interface of application and shows the corresponding notice display box of the notification message;When in the notification message include institute It states target label, and when the terminal is displayed in full screen the user interface of the displaying target application, obtains in the notification message The notice element.
In an alternative embodiment, the execution module, for when notification message is notification bar notification message, if Set the timer that timing length is preset duration;When the timer expiry, the notice display box is hidden.
In an alternative embodiment, the execution module, for detecting when notification message is pop-up notification message Whether the control instruction is received;When receiving the control instruction, the notice display box is hidden.
In an alternative embodiment, display box display module 640, it is aobvious for the top area in the user interface Show the Notifications dialog, the top area is the region of the user interface top edge of reclining.
Referring to FIG. 7, it is the structural block diagram for the terminal that one exemplary embodiment of the application provides, as shown in fig. 7, should Terminal includes processor 710, memory 720 and display screen component 730, is stored at least one instruction in the memory 720, Described instruction is loaded as the processor 710 and is executed to realize the side for showing notification message described in as above each embodiment Method.
The embodiment of the present application also provides a kind of computer-readable medium, which has at least one Instruction, at least one instruction are loaded as the processor and are executed to realize display notice described in as above each embodiment The method of message.
The embodiment of the present application also provides a kind of computer program product, which is stored at least one Instruction, at least one instruction are loaded as the processor and are executed to realize display notice described in as above each embodiment The method of message.
It should be understood that it is provided by the above embodiment record screen device execute display notification message method when, only with The division progress of above-mentioned each functional module can according to need and for example, in practical application by above-mentioned function distribution by not Same functional module is completed, i.e., the internal structure of equipment is divided into different functional modules, to complete whole described above Or partial function.In addition, the device of display notification message provided by the above embodiment and the method for display notification message are implemented Example belongs to same design, and specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (11)

1. a kind of method for showing notification message, which is characterized in that the described method includes:
When terminal is displayed in full screen the user interface of target application, and receives the instruction of display notification message, obtain described logical Know the corresponding notice element of message;The notice element is used to show the message content of the notification message, and/or, it is described logical Major elements is used to indicate the terminal and executes the corresponding behaviour of the notice element for receiving control instruction, the control instruction Make;
Obtain the corresponding indicating template of the notice element;
The notice display box comprising the notice element is generated according to the indicating template, the notice display box is that background is Bright or translucent display box;
The notice display box is shown in the user interface of the target application.
2. the method according to claim 1, wherein described obtain the corresponding indicating template of the notice element, Include:
According to quantity, display area and/or the type of the notice element, the corresponding indicating template of the notice element is obtained.
3. according to the method described in claim 2, it is characterized in that, in the quantity according to the notice element, display surface Long-pending and/or type, before obtaining the corresponding indicating template of the notice element, the method also includes:
According to the application identities of the target application, corresponding target template library is determined;
Quantity, display area and/or the type according to the notice element, obtains the corresponding display mould of the notice element Plate, comprising:
According to quantity, display area and/or the type of the notice element, the notice member is obtained from the target template library The corresponding indicating template of element.
4. the method according to claim 1, wherein the notice element include: notice title, content of announcement, Notify at least one of button and Notifications dialog.
5. the method according to claim 1, wherein user circle for being displayed in full screen target application when terminal Face, and receive display notification message instruction when, obtain the corresponding notice element of the notification message, comprising:
Whether when the terminal receives the instruction of display notification message, detecting in the notification message includes target label, The target label is used to indicate shows the corresponding notice of the notification message in the user interface of the target application Display box;
When including the target label in the notification message, and the terminal is displayed in full screen the user of displaying target application When interface, the notice element in the notification message is obtained.
6. method according to any one of claims 1 to 5, which is characterized in that the notification message is notification bar notification message, The method also includes:
The timer that timing length is preset duration is set;
When the timer expiry, the notice display box is hidden.
7. method according to any one of claims 1 to 5, which is characterized in that the notification message is pop-up notification message, institute State method further include:
It detects whether to receive the control instruction;
When receiving the control instruction, the notice display box is hidden.
8. method according to any one of claims 1 to 5, which is characterized in that the user interface in the target application The middle display notice display box, comprising:
Show that the Notifications dialog, the top area are the user interfaces that reclines in the top area of the user interface The region of top edge.
9. a kind of device for showing notification message, which is characterized in that described device includes:
Element obtains module, for the user interface when terminal full screen display target application, and receives display notification message When instruction, the corresponding notice element of the notification message is obtained;The notice element is used to show the message of the notification message Content, and/or, the notice element is used to indicate described in the terminal execution for receiving control instruction, the control instruction Notify the corresponding operation of element;
Template obtains module, for obtaining the corresponding indicating template of the notice element;
Display box generation module, it is described for generating the notice display box comprising the notice element according to the indicating template Notice display box is that background is transparent or semitransparent display box;
Display box display module, for showing the notice display box in the user interface of the target application.
10. a kind of terminal, which is characterized in that the terminal includes processor and memory, is stored at least in the memory One instruction, described instruction are loaded by the processor and are executed to realize display notice as described in any of the claims 1 to 8 The method of message.
11. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, institute in the storage medium Instruction is stated to be loaded by processor and executed to realize the method as described in any of the claims 1 to 8 for showing notification message.
CN201810697712.1A 2018-06-29 2018-06-29 Method, device, terminal and storage medium for displaying notification message Active CN109005283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810697712.1A CN109005283B (en) 2018-06-29 2018-06-29 Method, device, terminal and storage medium for displaying notification message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810697712.1A CN109005283B (en) 2018-06-29 2018-06-29 Method, device, terminal and storage medium for displaying notification message

Publications (2)

Publication Number Publication Date
CN109005283A true CN109005283A (en) 2018-12-14
CN109005283B CN109005283B (en) 2021-05-14

Family

ID=64601013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810697712.1A Active CN109005283B (en) 2018-06-29 2018-06-29 Method, device, terminal and storage medium for displaying notification message

Country Status (1)

Country Link
CN (1) CN109005283B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109933403A (en) * 2019-03-27 2019-06-25 努比亚技术有限公司 Immerse interface detection method, device, intelligent terminal and readable storage medium storing program for executing
CN110069233A (en) * 2019-04-10 2019-07-30 广州小鹏汽车科技有限公司 Method, equipment and the vehicle for the applicative notifications that control display is adapted to onboard system
CN110989833A (en) * 2019-11-25 2020-04-10 联想(北京)有限公司 Control method, AR device and computer readable storage medium
CN111614972A (en) * 2020-05-27 2020-09-01 网易(杭州)网络有限公司 System message processing method and device for live application
CN111726456A (en) * 2019-03-22 2020-09-29 腾讯科技(深圳)有限公司 Data processing method and related device
CN113190420A (en) * 2021-05-31 2021-07-30 维沃移动通信(杭州)有限公司 Electric quantity prompting method and device
CN113596238A (en) * 2021-07-29 2021-11-02 维沃移动通信有限公司 Information display method, information display device, electronic equipment and medium
WO2022078108A1 (en) * 2020-10-15 2022-04-21 Oppo广东移动通信有限公司 Method and apparatus for monitoring permission use, device, and storage medium
CN115348354A (en) * 2021-05-14 2022-11-15 Oppo广东移动通信有限公司 Content display control method, content display control device, electronic equipment and storage medium
WO2023045853A1 (en) * 2021-09-24 2023-03-30 维沃移动通信有限公司 Interface display method and apparatus

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635442A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and apparatus for displaying message on mobile terminal
CN107734186A (en) * 2017-10-31 2018-02-23 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of prompting message
CN107948406A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 message display method and device
CN108111675A (en) * 2017-12-13 2018-06-01 维沃移动通信有限公司 Processing method, device and the mobile terminal of notification message

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635442A (en) * 2015-12-18 2016-06-01 北京奇虎科技有限公司 Method and apparatus for displaying message on mobile terminal
CN107734186A (en) * 2017-10-31 2018-02-23 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of prompting message
CN107948406A (en) * 2017-11-14 2018-04-20 维沃移动通信有限公司 message display method and device
CN108111675A (en) * 2017-12-13 2018-06-01 维沃移动通信有限公司 Processing method, device and the mobile terminal of notification message

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726456B (en) * 2019-03-22 2022-01-18 腾讯科技(深圳)有限公司 Data processing method and related device
CN111726456A (en) * 2019-03-22 2020-09-29 腾讯科技(深圳)有限公司 Data processing method and related device
CN109933403A (en) * 2019-03-27 2019-06-25 努比亚技术有限公司 Immerse interface detection method, device, intelligent terminal and readable storage medium storing program for executing
CN110069233A (en) * 2019-04-10 2019-07-30 广州小鹏汽车科技有限公司 Method, equipment and the vehicle for the applicative notifications that control display is adapted to onboard system
CN110989833A (en) * 2019-11-25 2020-04-10 联想(北京)有限公司 Control method, AR device and computer readable storage medium
CN111614972A (en) * 2020-05-27 2020-09-01 网易(杭州)网络有限公司 System message processing method and device for live application
WO2022078108A1 (en) * 2020-10-15 2022-04-21 Oppo广东移动通信有限公司 Method and apparatus for monitoring permission use, device, and storage medium
CN115348354A (en) * 2021-05-14 2022-11-15 Oppo广东移动通信有限公司 Content display control method, content display control device, electronic equipment and storage medium
CN113190420A (en) * 2021-05-31 2021-07-30 维沃移动通信(杭州)有限公司 Electric quantity prompting method and device
CN113596238A (en) * 2021-07-29 2021-11-02 维沃移动通信有限公司 Information display method, information display device, electronic equipment and medium
WO2023006027A1 (en) * 2021-07-29 2023-02-02 维沃移动通信有限公司 Information display method and apparatus, electronic device, and medium
CN113596238B (en) * 2021-07-29 2024-02-13 维沃移动通信有限公司 Information display method, device, electronic equipment and medium
WO2023045853A1 (en) * 2021-09-24 2023-03-30 维沃移动通信有限公司 Interface display method and apparatus

Also Published As

Publication number Publication date
CN109005283B (en) 2021-05-14

Similar Documents

Publication Publication Date Title
CN109005283A (en) Show method, apparatus, terminal and the storage medium of notification message
CN111866423B (en) Screen recording method for electronic terminal and corresponding equipment
CN108024079A (en) Record screen method, apparatus, terminal and storage medium
CN108427589B (en) Data processing method and electronic equipment
CN113204656A (en) Multimedia resource display method, device, equipment and storage medium
CN107357544B (en) Display method, display device, intelligent terminal and computer readable storage medium
CN111816139B (en) Screen refresh rate switching method and electronic equipment
CN111078070A (en) PPT video barrage play control method, device, terminal and medium
CN112995418B (en) Video color ring playing method, sending method and related equipment
CN110955471B (en) Notification message display method, notification message display device, terminal and storage medium
CN113868446A (en) Page display method, device, equipment and storage medium
CN108803965A (en) Show method, apparatus, terminal and the storage medium of icon
CN105988790B (en) Information processing method, sending terminal and receiving terminal
CN109034242B (en) Grading method, device and system of image processing algorithm
CN113052619B (en) Advertisement making method and device
CN112532896A (en) Video production method, video production device, electronic device and storage medium
CN111078078A (en) Video playing control method, device, terminal and computer readable storage medium
CN110958402B (en) Spliced matrix display method and system
US20170161871A1 (en) Method and electronic device for previewing picture on intelligent terminal
CN113709565B (en) Method and device for recording facial expression of watching video
CN114245193A (en) Display control method and device and electronic equipment
CN109242763B (en) Picture processing method, picture processing device and terminal equipment
CN112418942A (en) Advertisement display method and device and electronic equipment
US20230418427A1 (en) Method, apparatuses, device and storage medium for video recommendation
CN111935493B (en) Anchor photo album processing method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant