CN109408159A - Interface message is shown and processing method, device and electronic equipment - Google Patents

Interface message is shown and processing method, device and electronic equipment Download PDF

Info

Publication number
CN109408159A
CN109408159A CN201710693363.1A CN201710693363A CN109408159A CN 109408159 A CN109408159 A CN 109408159A CN 201710693363 A CN201710693363 A CN 201710693363A CN 109408159 A CN109408159 A CN 109408159A
Authority
CN
China
Prior art keywords
data
list
message
message list
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710693363.1A
Other languages
Chinese (zh)
Inventor
阮升升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201710693363.1A priority Critical patent/CN109408159A/en
Priority to TW107120282A priority patent/TW201911021A/en
Priority to PCT/CN2018/098458 priority patent/WO2019033935A1/en
Publication of CN109408159A publication Critical patent/CN109408159A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event management; Broadcasting; Multicasting; Notifications
    • 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
    • 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
    • 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Abstract

The embodiment of the present invention provides a kind of interface message and shows and processing method, device and electronic equipment, wherein, interface message display method includes: to receive the messaging list refresh requests that at least one business is initiated in application, and by refresh data specified in the messaging list refresh requests, update into first message list;By the data in the first message list by preset synchronization regular and synchronized into second message list;Data in the second message list are shown in application interface.The scheme of the embodiment of the present invention, can the frequency that is refreshed of dynamic control interface message, to avoid in the case where initiating a large amount of messaging list refresh requests in certain business short time, there is display Caton in interface, without response the problems such as.

Description

Interface message is shown and processing method, device and electronic equipment
Technical field
This application involves field of communication technology more particularly to a kind of interface message is shown and processing method, device and electronics Equipment.
Background technique
Under Android android system frame, instant messaging application APP (hereinafter referred to as APP) can safeguard that one includes to work as The messaging list of preceding all chat contexts, which is related to multinomial business, and (such as single chat message group chat message, is Message of uniting etc.).In the process of running, each business often receives a new message to APP, then submits once for above-mentioned message column The refresh requests of table carry out Refresh Data to messaging list, disappear so that APP carries out interface according to the messaging list data after refreshing The display of breath.After Refresh Data due to executing a messaging list every time, the corresponding user interface (User of APP can be all triggered Interface, abbreviation UI) thread (main thread) go processing messaging list in data to be shown on interface, therefore, when Data in short time in messaging list are frequently refreshed (for example, per second refresh tens of times or even up to a hundred times), increase UI line The processing pressure of journey, it is possible to phenomena such as UI thread block occur, so that certain messaging list refresh requests cannot be located in time Reason, in turn result in related interfaces show Caton, without response the problems such as.
In the prior art, there is following two settling mode regarding to the issue above, first way is by rewriting code It constrains the frequency that certain business initiate messaging list refresh requests, data in messaging list is brushed with reducing in the short time New number;The second way is controlled by the frequency for executing refresh operation to UI thread, right in the short time to reduce The number that messaging list data are refreshed.
The prior art has following defects that
Above-mentioned first way is larger to the constraint and dependence of developer, increases the pressure and work of developer Amount;The problem of second way then seriously affects the real-time that message is shown, leads to some contents displayed on interface display delays is bright It is aobvious.
In short, above two mode all can not reply easily and effectively under emergency case, hair in certain business short time The case where playing a large amount of messaging list refresh requests.
Summary of the invention
It is shown the present invention provides a kind of interface message and processing method, device and electronic equipment, can dynamically control boundary The frequency that face message is refreshed, thus avoid in the case where initiating a large amount of messaging list refresh requests in certain business short time, Interface occur display Caton, without response the problems such as.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of interface message display method, comprising:
The messaging list refresh requests that at least one business is initiated in application are received, and by the messaging list refresh requests In specified refresh data, update into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list;
Data in the second message list are shown in application interface.
Second aspect provides a kind of interface message display device, comprising:
First request receiving module, for receiving the messaging list refresh requests that at least one business is initiated in application, and Refresh data specified in the messaging list refresh requests is updated into first message list;
First data simultaneous module, for by the data in the first message list by preset synchronization regular and synchronized to the In two messaging list;
Data disaply moudle, for showing the data in the second message list in application interface.
The third aspect provides a kind of electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The messaging list refresh requests that at least one business is initiated in application are received, and by the messaging list refresh requests In specified refresh data, update into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list;
Data in the second message list are shown in application interface.
Fourth aspect provides a kind of interface message treatment method, comprising:
The messaging list refresh requests that at least one business is initiated in application are received, and by the messaging list refresh requests In specified refresh data, update into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list, for user Interface UI main thread calls.
5th aspect, provides a kind of interface message processing apparatus, comprising:
Second request receiving module, for receiving the messaging list refresh requests that at least one business is initiated in application, and Refresh data specified in the messaging list refresh requests is updated into first message list;
Second data simultaneous module, for by the data in the first message list by preset synchronization regular and synchronized to the In two messaging list, for user interface UI main thread calling.
6th aspect, provides a kind of electronic equipment, comprising:
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The messaging list refresh requests that at least one business is initiated in application are received, and by the messaging list refresh requests In specified refresh data, update into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list, for user Interface UI main thread calls.
Interface message provided by the invention is shown and processing method, device and electronic equipment, is sent out according to business each in application The messaging list refresh requests risen, refresh the data in first message list, and by the data in first message list By preset synchronization regular and synchronized into second message list, the data in second message list are shown at interface, i.e., will Buffer area of the first message list as the data after refreshing, to guarantee timely processing to message list refresh request, by the Data in one messaging list are synchronized in second message list with the time interval that dynamic adjusts, and second message list conduct The data of interface display provide area, reduce the frequency that interface message is refreshed and keep away to reduce the processing pressure of UI thread Exempt from the case where initiating a large amount of messaging list refresh requests in certain business short time, interface display Caton occurs, without response The problems such as.
Above description is only the general introduction of technical scheme, in order to better understand the technological means of the application, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects, features and advantages of the application can It is clearer and more comprehensible, below the special specific embodiment for lifting the application.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the application scenarios schematic diagram of interface message display method provided by the invention;
Fig. 2 is the operation principle schematic diagram of interface message display method provided by the invention;
Fig. 3 is the flow diagram of message display method one embodiment in interface provided by the invention;
Fig. 4 is the flow diagram of another embodiment of interface message display method provided by the invention;
Fig. 5 is the structural schematic diagram of message display device one embodiment in interface provided by the invention;
Fig. 6 is the flow diagram of message treatment method one embodiment in interface provided by the invention;
Fig. 7 is the structural schematic diagram of message processing apparatus one embodiment in interface provided by the invention;
Fig. 8 is the structural schematic diagram of electronic equipment one embodiment provided by the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Relational language explanation:
Messaging list, such as instant messaging application can safeguard the message comprising current all chat contexts List, the messaging list are related to multinomial business (such as single chat message, group chat message, system message).
Messaging list refresh requests, using in the process of running, each business often receives a new message, can all initiate Refresh data specified in messaging list refresh requests is updated for requesting and arrives message by one messaging list refresh requests In list.
Technical principle of the invention is illustrated below:
In the related technology, the messaging list refresh requests initiated for business each in application notify UI line immediately every time Journey (main thread) carries out refresh process to the data in messaging list, and is shown on interface.
In embodiments of the present invention, the messaging list refresh requests initiated for business each in application, are not called immediately UI thread (main thread) carries out refresh process to the data in messaging list, but first to the buffer area as the data after refreshing First message list refreshed, and the data in first message list are shown by preset synchronization regular and synchronized to as interface The data shown are provided in the second message list in area, i.e., the time interval adjusted the data in first message list with dynamic is same It walks and is provided in the second message list in area as the data of interface display, and UI thread (main thread) is notified to arrange second message Data in table are shown in application interface.By the above-mentioned means, the trigger process of partial refresh request can be merged, reduce The frequency that interface message is refreshed is avoided in certain business short time and is initiated greatly to reduce the processing pressure of UI thread Measure messaging list refresh requests in the case where, interface occur display Caton, without response the problems such as.
Fig. 1 is the application scenarios schematic diagram of interface message display method provided by the invention.As shown in Figure 1, being set to end Instant messaging application APP in end equipment 1, receives the contents such as text, voice of user 1 (sender) input, and by the content It is sent to instant messaging application server in form of a message.The message is forwarded to user 2 and (connect by instant messaging application server Receipts person) terminal device 2 that uses.After the instant messaging application APP being set on terminal device 2 receives the message, Fig. 2 is executed Shown in interface message display method, instant messaging application APP receives the messaging list brush of corresponding with message business initiation New request, and by refresh data corresponding with the message specified in messaging list refresh requests, it updates to first message and arranges In table, and the data in first message list are pressed into preset synchronization regular and synchronized into second message list, second message is arranged Application interface of the data in the instant messaging application APP being set on terminal device 2 in table is shown, and shows user 2 (recipients).It should be appreciated by those skilled in the art that sender of the above process using user 1 as message, user 2 are as disappearing It is illustrated for the recipient of breath, likewise, user 1 can also be used as the recipient of message, user 2 can also be used as and disappear The sender of breath.
The technical solution of the application is further illustrated below by multiple embodiments.
Embodiment one
Fig. 3 is the flow diagram of message display method one embodiment in interface provided by the invention.The embodiment of the present invention Interface message display method can be applied in various terminal equipment (such as mobile phone, computer, PAD etc.), i.e. the embodiment of the present invention The executing subject of interface message display method can be various terminal equipment.As shown in figure 3, the interface of the embodiment of the present invention disappears Display methods is ceased, specifically can include:
S310 receives the messaging list refresh requests that at least one business is initiated in application, and messaging list refreshing is asked Specified refresh data in asking, updates into first message list.
Specifically, using at least one business in (such as instant messaging application), (such as single chat message group chat message, is Message of uniting etc.), after receiving new information, messaging list refresh requests are initiated, include specified brush in messaging list refresh requests New data.A new information is often received, a messaging list refresh requests are initiated.The messaging list refresh requests are received, and Refresh data specified in messaging list refresh requests is updated into first message list.
S320, by the data in first message list by preset synchronization regular and synchronized into second message list.
Specifically, by preset synchronization rule, such as according to specified data synchronization time in preset synchronization rule or with dynamic The time interval of state adjustment, the data in first message list was synchronized in second message list, so that synchronization time twice Multiple messaging list refresh requests in interval are merged, i.e. multiple messaging list refreshing twice in synchronization of time intenals is asked It asks, only corresponds to the primary update of the data in second message list.It can be with the data and the in real-time judge first message list Whether the data in two messaging list are identical, do not execute this step if identical if it is different, then determining and executing this step, Ignore this synchronization request, is equivalent to and next data simultaneously operating is merged into once.
S330 shows the data in second message list in application interface.
Specifically, UI thread (main thread) can be notified to show the data in second message list in application interface Show, i.e., the data being updated to the data in the messaging list currently shown on application interface in second message list.Second disappears The primary update of the data in list is ceased, corresponding UI thread (main thread) is in the messaging list currently shown on application interface The primary refreshing of data, therefore multiple messaging list refresh requests in synchronization of time intenals twice, only correspond to UI thread (main line Journey) primary refreshing to the data in the messaging list currently shown on application interface, reduce the frequency that interface message is refreshed Rate avoids to reduce the processing pressure of UI thread and initiates a large amount of messaging list refresh requests in certain business short time In the case where, interface occur display Caton, without response the problems such as.
Interface message display method provided in an embodiment of the present invention refreshes according to the messaging list that business each in application is initiated Request, refreshes the data in first message list, and the data in first message list are same by preset synchronization rule Walk in second message list, the data in second message list shown at interface, i.e., using first message list as The buffer area of data after refreshing, to guarantee the timely processing to message list refresh request, by the number in first message list The time interval of dynamic adjustment is synchronized in second message list accordingly, and second message list is mentioned as the data of interface display Donor site reduces the frequency that interface message is refreshed, to reduce the processing pressure of UI thread, avoids certain business in short-term It is interior initiate a large amount of messaging list refresh requests in the case where, there is display Caton in interface, without response the problems such as.
Embodiment two
Fig. 4 is the flow diagram of another embodiment of interface message display method provided by the invention.The present invention is implemented The interface message display method of example can be applied in various terminal equipment (such as mobile phone, computer, PAD etc.), i.e., the present invention is implemented The executing subject of the interface message display method of example can be various terminal equipment.The interface message display side of the embodiment of the present invention Method is a kind of specific implementation of the interface message display method of embodiment illustrated in fig. 3, as shown in figure 4, the embodiment of the present invention Interface message display method it is specific can include:
S410 receives the messaging list refresh requests that at least one business is initiated in application, and messaging list refreshing is asked Specified refresh data in asking, updates into first message list.
Specifically, step S410 is identical as the step S310 in embodiment illustrated in fig. 3, details are not described herein again.
Step S320 in embodiment illustrated in fig. 3 specifically may include following steps S420 and S430.
S420 determines the synchronous synchronization of time intenals of this data synchronic distance last time data, the synchronization of time intenals The frequency dependence of messaging list refresh requests is initiated with each business recently.
Specifically, the frequency of each business initiation messaging list refresh requests is higher recently, then synchronization of time intenals is longer, with Synchronous frequency is reduced, realizes and merges more messaging list refresh requests, avoid excessive calling UI thread.Nearest each business The frequency for initiating messaging list refresh requests is lower, then synchronization of time intenals is shorter, to improve synchronous frequency, guarantees interface number According to the timeliness of refreshing.
S430, according to last data synchronous synchronization time and synchronization of time intenals, in this data synchronization time When arrival, the data in first message list are synchronized in second message list.
Specifically, according to this data synchronic distance determined in last data synchronous synchronization time and step S420 The synchronization of time intenals of last data synchronization calculates this data synchronous synchronization time, and in the same of this data synchronization When walking time arrival, the data in first message list are synchronized in second message list.
Further, in step S420 " between the synchronization time for determining the synchronization of this data synchronic distance last time data Every ", specifically it may be accomplished by:
As the first embodiments possible, if the frequency for initiating messaging list refresh requests is at or above first Predetermined frequency, and be equal to or less than the second predetermined frequency, then it is synchronized using preset Fixed Time Interval as this data Synchronization of time intenals, the first predetermined frequency is less than the second predetermined frequency.
As second of embodiments possible, if the frequency for initiating messaging list refresh requests is lower than the first preset frequency Rate, then it is synchronous as this data by the time interval after the duration for reducing corresponding proportion on the basis of Fixed Time Interval Synchronization of time intenals.
As the third embodiments possible, if the frequency for initiating messaging list refresh requests is higher than the second preset frequency Rate, then it is synchronous as this data by the time interval after the duration for increasing corresponding proportion on the basis of Fixed Time Interval Synchronization of time intenals.
Further, in step S410, the messaging list refresh requests that at least one business is initiated are specific can include: to the At least one refresh requests that data in one messaging list are increased, deleted and modified.Receive messaging list refreshing After request, it can be increased, deleted and/or be modified operation to the data in first message list, to realize to first message The update of data in list.
Further, the step S330 in embodiment illustrated in fig. 3 specifically may include following steps S440.
S440, after each data synchronously complete, notice monitors all observers of the data in second message list, adjusts The display content at corresponding business interface is updated with corresponding user interface UI thread.
Specifically, notice monitors all observers of the data in second message list after each data synchronously complete, Corresponding user interface UI thread calls in i.e. each business side, is second message column by the display content update at corresponding business interface Data in table.
Interface message display method provided in an embodiment of the present invention refreshes according to the messaging list that business each in application is initiated Request, refreshes the data in first message list, and the data in first message list are same by preset synchronization rule Walk in second message list, the data in second message list shown at interface, i.e., using first message list as The buffer area of data after refreshing, to guarantee the timely processing to message list refresh request, by the number in first message list The time interval of dynamic adjustment is synchronized in second message list accordingly, and second message list is mentioned as the data of interface display Donor site reduces the frequency that interface message is refreshed, to reduce the processing pressure of UI thread, avoids certain business in short-term It is interior initiate a large amount of messaging list refresh requests in the case where, there is display Caton in interface, without response the problems such as.
Embodiment three
Fig. 5 is the structural schematic diagram of message display device one embodiment in interface provided by the invention.The embodiment of the present invention Interface message display device may be disposed in various terminal equipment (such as mobile phone, computer, PAD etc.), for executing embodiment One, two interface message display method.As shown in figure 5, the interface message display device of the embodiment of the present invention specifically may include One request receiving module 510, the first data simultaneous module 520 and data disaply moudle 530.
First request receiving module 510, for receiving the messaging list refresh requests that at least one business is initiated in application, And by refresh data specified in messaging list refresh requests, update into first message list.
First data simultaneous module 520, for by the data in first message list by preset synchronization regular and synchronized to the In two messaging list.
Data disaply moudle 530, for showing the data in second message list in application interface.
Further, the first data simultaneous module 520 is specifically used for: by the data in first message list by preset synchronization Specified data is synchronized in second message list synchronization time in rule.
Further, the interface message display device of the embodiment of the present invention can also include: synchronous judgment module, for real When monitoring first message list in data and the data in second message list it is whether identical;It is executed if it is different, then determining Data in first message list are synchronized in second message list synchronization time by specified data in preset synchronization rule Operation.
Further, the first data simultaneous module 520 is specifically used for: determining that this data synchronic distance last time data are same The synchronization of time intenals of step, synchronization of time intenals and the recently frequency dependence of each business initiation messaging list refresh requests;According to Last data synchronous synchronization time and synchronization of time intenals, when reaching this data synchronization time, by first message Data in list are synchronized in second message list.
Further, the frequency for initiating messaging list refresh requests is higher, and synchronization of time intenals is longer.
Further, the first data simultaneous module 520 is specifically used for: if initiating the frequency etc. of messaging list refresh requests In or be higher than the first predetermined frequency, and be equal to or less than the second predetermined frequency, then using preset Fixed Time Interval as The synchronous synchronization of time intenals of this data, the first predetermined frequency is less than the second predetermined frequency;If initiating messaging list to refresh The frequency of request be lower than the first predetermined frequency, then by the basis of Fixed Time Interval reduce corresponding proportion duration after when Between be spaced, the synchronization of time intenals synchronous as this data;If the frequency for initiating messaging list refresh requests is higher than second Predetermined frequency, then by the time interval after the duration for increasing corresponding proportion on the basis of Fixed Time Interval, as this number According to synchronous synchronization of time intenals.
Further, the messaging list refresh requests that at least one business is initiated include: to the number in first message list According at least one refresh requests for being increased, being deleted and being modified.
Further, data disaply moudle 530 is specifically used for: after each data synchronously complete, notice monitors second and disappears All observers for ceasing the data in list call corresponding user interface UI thread to update in the display at corresponding business interface Hold.
Specifically, each module in the embodiment of the present invention realizes that the detailed process of its function can be found in embodiment one, two Associated description, details are not described herein again.
Interface message display device provided in an embodiment of the present invention refreshes according to the messaging list that business each in application is initiated Request, refreshes the data in first message list, and the data in first message list are same by preset synchronization rule Walk in second message list, the data in second message list shown at interface, i.e., using first message list as The buffer area of data after refreshing, to guarantee the timely processing to message list refresh request, by the number in first message list The time interval of dynamic adjustment is synchronized in second message list accordingly, and second message list is mentioned as the data of interface display Donor site reduces the frequency that interface message is refreshed, to reduce the processing pressure of UI thread, avoids certain business in short-term It is interior initiate a large amount of messaging list refresh requests in the case where, there is display Caton in interface, without response the problems such as.
Example IV
Fig. 6 is the flow diagram of message treatment method one embodiment in interface provided by the invention.The embodiment of the present invention Interface message treatment method can be applied in various terminal equipment (such as mobile phone, computer, PAD etc.), i.e. the embodiment of the present invention The executing subject of interface message treatment method can be various terminal equipment.As shown in fig. 6, the interface of the embodiment of the present invention disappears It is specific to cease processing method can include:
S610 receives the messaging list refresh requests that at least one business is initiated in application, and messaging list refreshing is asked Specified refresh data in asking, updates into first message list.
S620, by the data in first message list by preset synchronization regular and synchronized into second message list, for Family interface UI main thread calls.
Specifically, the detailed process of step S610, S620 can be found in step S310, S320 in embodiment illustrated in fig. 3 Associated description, details are not described herein again.Data in first message list are arranged by preset synchronization regular and synchronized to second message After in table, user interface UI main thread can call the data in second message list, and be shown on application interface.
Interface message treatment method provided in an embodiment of the present invention refreshes according to the messaging list that business each in application is initiated Request, refreshes the data in first message list, and the data in first message list are same by preset synchronization rule It walks in second message list, i.e., using first message list as the buffer area of the data after refreshing, to guarantee to messaging list Data in first message list are synchronized to second message column with the time interval that dynamic adjusts by the timely processing of refresh requests In table, and second message list provides area as the data of interface display, the frequency that interface message is refreshed is reduced, to drop The low processing pressure of UI thread avoids in the case where initiating a large amount of messaging list refresh requests in certain business short time, Interface occur display Caton, without response the problems such as.
Embodiment five
Fig. 7 is the structural schematic diagram of message processing apparatus one embodiment in interface provided by the invention.The embodiment of the present invention Interface message processing apparatus may be disposed in various terminal equipment (such as mobile phone, computer, PAD etc.), for executing embodiment Four interface message treatment method.As shown in fig. 7, the interface message processing apparatus of the embodiment of the present invention specifically may include second asking Ask receiving module 710 and the second data simultaneous module 720.
Second request receiving module 710, for receiving the messaging list refresh requests that at least one business is initiated in application, And by refresh data specified in messaging list refresh requests, update into first message list.
Second data simultaneous module 720, for by the data in first message list by preset synchronization regular and synchronized to the In two messaging list, for user interface UI main thread calling.
Specifically, each module in the embodiment of the present invention realizes that the detailed process of its function can be found in the phase in example IV Description is closed, details are not described herein again.
Interface message processing apparatus provided in an embodiment of the present invention refreshes according to the messaging list that business each in application is initiated Request, refreshes the data in first message list, and the data in first message list are same by preset synchronization rule It walks in second message list, i.e., using first message list as the buffer area of the data after refreshing, to guarantee to messaging list Data in first message list are synchronized to second message column with the time interval that dynamic adjusts by the timely processing of refresh requests In table, and second message list provides area as the data of interface display, the frequency that interface message is refreshed is reduced, to drop The low processing pressure of UI thread avoids in the case where initiating a large amount of messaging list refresh requests in certain business short time, Interface occur display Caton, without response the problems such as.
Embodiment six
It disclosed interface message to show and the overall architecture of processing unit, the function of the device can be by a kind of electronics Equipment, which is realized, to be completed, as shown in figure 8, it is the structural schematic diagram of the electronic equipment of the embodiment of the present invention, is specifically included: memory 81 and processor 82.
Memory 81, for storing program.
In addition to above procedure, memory 81 is also configured to store various other data to support on an electronic device Operation.The example of these data includes the instruction of any application or method for operating on an electronic device, connection Personal data, telephone book data, message, picture, video etc..
Memory 81 can be by any kind of volatibility or non-volatile memory device or their combination realization, such as Static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only to be deposited Reservoir (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Processor 82 is coupled to memory 81, for executing the program in memory 81.
In an embodiment of the invention, processor 82 can be used for:
The messaging list refresh requests that at least one business is initiated in application are received, and by institute in messaging list refresh requests Specified refresh data is updated into first message list;
By the data in first message list by preset synchronization regular and synchronized into second message list;
Data in second message list are shown in application interface.
In another embodiment, processor 82 can be used for:
The messaging list refresh requests that at least one business is initiated in application are received, and by institute in messaging list refresh requests Specified refresh data is updated into first message list;
By the data in first message list by preset synchronization regular and synchronized into second message list, for user interface UI main thread calls.
Above-mentioned specific processing operation is described in detail in embodiment in front, and details are not described herein.
Further, as shown in figure 8, electronic equipment can also include: communication component 83, power supply module 84, audio component 85, Other components such as display 86.Members are only schematically provided in Fig. 8, are not meant to that electronic equipment only includes shown in Fig. 8 Component.
Communication component 83 is configured to facilitate the communication of wired or wireless way between electronic equipment and other equipment.Electronics Equipment can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary reality It applies in example, communication component 83 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.In one exemplary embodiment, communication component 83 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
Power supply module 84 provides electric power for the various assemblies of electronic equipment.Power supply module 84 may include power management system System, one or more power supplys and other with for electronic equipment generate, manage, and distribute the associated component of electric power.
Audio component 85 is configured as output and/or input audio signal.For example, audio component 85 includes a microphone (MIC), when electronic equipment is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is configured To receive external audio signal.The received audio signal can be further stored in memory 81 or via communication component 83 It sends.In some embodiments, audio component 85 further includes a loudspeaker, is used for output audio signal.
Display 86 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen Including touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one Or multiple touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can not only sense touch Or the boundary of sliding action, but also detect duration and pressure relevant to touch or slide.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Program above-mentioned can be stored in a computer readable storage medium.The journey When being executed, execution includes the steps that above-mentioned each method embodiment to sequence;And storage medium above-mentioned include: ROM, RAM, magnetic disk or The various media that can store program code such as person's CD.
Finally, it should be noted that the above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application referring to foregoing embodiments, those skilled in the art should understand that: its according to So be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features into Row equivalent replacement;And these are modified or replaceed, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (13)

1. a kind of interface message display method characterized by comprising
The messaging list refresh requests that at least one business is initiated in application are received, and by institute in the messaging list refresh requests Specified refresh data is updated into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list;
Data in the second message list are shown in application interface.
2. the method according to claim 1, wherein the data by the first message list are by preset Synchronization rules are synchronized in second message list, comprising:
Data in the first message list are synchronized to institute by specified data in the preset synchronization rule synchronization time It states in second message list.
3. according to the method described in claim 2, it is characterized in that, the data by the first message list are by described Specified data is synchronized in the second message list synchronization time in preset synchronization rule, comprising:
Determine the synchronous synchronization of time intenals of this data synchronic distance last time data, the synchronization of time intenals and each recently Business initiates the frequency dependence of the messaging list refresh requests;
According to the last data synchronous synchronization time and the synchronization of time intenals, arrived synchronization time in this data Up to when, the data in the first message list are synchronized in the second message list.
4. according to the method described in claim 3, it is characterized in that, the frequency for initiating the messaging list refresh requests is got over Height, the synchronization of time intenals are longer.
5. according to the method described in claim 3, it is characterized in that, this data synchronic distance last time data of the determination are same The synchronization of time intenals of step, comprising:
If the frequency for initiating the messaging list refresh requests is at or above the first predetermined frequency, and be equal to or Lower than the second predetermined frequency, then the synchronization of time intenals synchronized using preset Fixed Time Interval as this described data, institute The first predetermined frequency is stated less than second predetermined frequency;
If the frequency for initiating the messaging list refresh requests is lower than first predetermined frequency, will be in the fixation The synchronization time that time interval after reducing the duration of corresponding proportion on the basis of time interval is synchronized as this described data Interval;
If the frequency for initiating the messaging list refresh requests is higher than second predetermined frequency, will be in the fixation The synchronization time that time interval after increasing the duration of corresponding proportion on the basis of time interval is synchronized as this described data Interval.
6. the method according to claim 1, wherein the messaging list refreshing that at least one described business is initiated is asked Asking includes: at least one refresh requests that the data in the first message list are increased, deleted and modified.
7. the method according to claim 1, wherein the data by the second message list are being applied Interface is shown, comprising:
After each data synchronously complete, notice monitors all observers of the data in the second message list, calls phase The user interface UI thread answered updates the display content at corresponding business interface.
8. the method according to claim 1, wherein the method also includes:
Whether the data in first message list described in real-time monitoring and the data in the second message list are identical;
The data by the first message list are executed by preset synchronization regular and synchronized to second if it is different, then determining Operation in messaging list.
9. a kind of interface message display device characterized by comprising
First request receiving module, for receiving the messaging list refresh requests that at least one business is initiated in application, and by institute Refresh data specified in messaging list refresh requests is stated, is updated into first message list;
First data simultaneous module, for the data in the first message list to disappear by preset synchronization regular and synchronized to second It ceases in list;
Data disaply moudle, for showing the data in the second message list in application interface.
10. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The messaging list refresh requests that at least one business is initiated in application are received, and by institute in the messaging list refresh requests Specified refresh data is updated into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list;
Data in the second message list are shown in application interface.
11. a kind of interface message treatment method characterized by comprising
The messaging list refresh requests that at least one business is initiated in application are received, and by institute in the messaging list refresh requests Specified refresh data is updated into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list, for user interface UI main thread calls.
12. a kind of interface message processing apparatus characterized by comprising
Second request receiving module, for receiving the messaging list refresh requests that at least one business is initiated in application, and by institute Refresh data specified in messaging list refresh requests is stated, is updated into first message list;
Second data simultaneous module, for the data in the first message list to disappear by preset synchronization regular and synchronized to second It ceases in list, for user interface UI main thread calling.
13. a kind of electronic equipment characterized by comprising
Memory, for storing program;
Processor is coupled to the memory, for executing described program, to be used for:
The messaging list refresh requests that at least one business is initiated in application are received, and by institute in the messaging list refresh requests Specified refresh data is updated into first message list;
By the data in the first message list by preset synchronization regular and synchronized into second message list, for user interface UI main thread calls.
CN201710693363.1A 2017-08-14 2017-08-14 Interface message is shown and processing method, device and electronic equipment Pending CN109408159A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201710693363.1A CN109408159A (en) 2017-08-14 2017-08-14 Interface message is shown and processing method, device and electronic equipment
TW107120282A TW201911021A (en) 2017-08-14 2018-06-13 Interface message displaying and processing method and apparatus, and electronic device
PCT/CN2018/098458 WO2019033935A1 (en) 2017-08-14 2018-08-03 Interface message displaying and processing method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710693363.1A CN109408159A (en) 2017-08-14 2017-08-14 Interface message is shown and processing method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN109408159A true CN109408159A (en) 2019-03-01

Family

ID=65361915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710693363.1A Pending CN109408159A (en) 2017-08-14 2017-08-14 Interface message is shown and processing method, device and electronic equipment

Country Status (3)

Country Link
CN (1) CN109408159A (en)
TW (1) TW201911021A (en)
WO (1) WO2019033935A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992087A (en) * 2019-04-09 2019-07-09 努比亚技术有限公司 Optimization method, wearable device and the storage medium that wearable device data are shown
CN111585774A (en) * 2020-03-24 2020-08-25 福建天泉教育科技有限公司 Session updating method and storage medium
CN113064681A (en) * 2021-03-09 2021-07-02 青岛海尔科技有限公司 System, device, method and equipment for refreshing user interface
CN114040254A (en) * 2021-11-08 2022-02-11 聚好看科技股份有限公司 Display device and high-concurrency message display method
CN114327707A (en) * 2021-12-20 2022-04-12 凌云光技术股份有限公司 User interface refreshing method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010014918A1 (en) * 1997-06-27 2001-08-16 Paul Karl Harter Method and apparatus for synchronized message passng using shared resources
CN102447647A (en) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 Notification method, device and system based on new information
CN104202651A (en) * 2014-08-27 2014-12-10 深圳市九洲电器有限公司 EPG (Electronic Program Guide) updating method and system
US20150188875A1 (en) * 2013-12-31 2015-07-02 Google Inc. Systems and methods for throttling display of electronic messages
CN105320707A (en) * 2014-08-05 2016-02-10 腾讯科技(深圳)有限公司 Hot word prompt method and device based on instant communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411698B (en) * 2016-09-12 2019-08-13 Oppo广东移动通信有限公司 The real-time messages display control method and mobile terminal of instant messaging application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010014918A1 (en) * 1997-06-27 2001-08-16 Paul Karl Harter Method and apparatus for synchronized message passng using shared resources
CN102447647A (en) * 2010-10-13 2012-05-09 腾讯科技(深圳)有限公司 Notification method, device and system based on new information
US20150188875A1 (en) * 2013-12-31 2015-07-02 Google Inc. Systems and methods for throttling display of electronic messages
CN105320707A (en) * 2014-08-05 2016-02-10 腾讯科技(深圳)有限公司 Hot word prompt method and device based on instant communication
CN104202651A (en) * 2014-08-27 2014-12-10 深圳市九洲电器有限公司 EPG (Electronic Program Guide) updating method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109992087A (en) * 2019-04-09 2019-07-09 努比亚技术有限公司 Optimization method, wearable device and the storage medium that wearable device data are shown
CN109992087B (en) * 2019-04-09 2023-10-17 努比亚技术有限公司 Optimization method for data display of wearable device, wearable device and storage medium
CN111585774A (en) * 2020-03-24 2020-08-25 福建天泉教育科技有限公司 Session updating method and storage medium
CN113064681A (en) * 2021-03-09 2021-07-02 青岛海尔科技有限公司 System, device, method and equipment for refreshing user interface
CN114040254A (en) * 2021-11-08 2022-02-11 聚好看科技股份有限公司 Display device and high-concurrency message display method
CN114040254B (en) * 2021-11-08 2023-07-18 聚好看科技股份有限公司 Display equipment and high concurrency message display method
CN114327707A (en) * 2021-12-20 2022-04-12 凌云光技术股份有限公司 User interface refreshing method

Also Published As

Publication number Publication date
WO2019033935A1 (en) 2019-02-21
TW201911021A (en) 2019-03-16

Similar Documents

Publication Publication Date Title
CN109408159A (en) Interface message is shown and processing method, device and electronic equipment
CN106875925B (en) The refresh rate method of adjustment and device of screen
JP2018515871A (en) Group management method, terminal, and storage medium
CN105389099A (en) method and apparatus for voice recording and playback
CN106710539B (en) Liquid crystal display method and device
US9661132B2 (en) Method, apparatus, and storage medium for displaying a conversation interface
CN107315792B (en) Page updating method and device, electronic equipment and computer readable storage medium
US20150033144A1 (en) Method and apparatus for registering schedule in portable terminal
WO2020088269A1 (en) Chat information processing method and apparatus, and electronic device
US20170031640A1 (en) Method, device and system for starting target function
US11546749B2 (en) Method and device for communication processing, and storage medium
US20140222951A1 (en) Apparatus and method for syncing device notifications
US8725822B2 (en) Controlling the presence information of activity participants
US20230328204A1 (en) System and methods to determine readiness in video collaboration
CN113391684A (en) Temperature control method, temperature control device, and storage medium
JP2015070299A (en) Minute book creation supporting device, electronic conference device and electronic conference system
WO2019129003A1 (en) Notification prompt method, group addition method and apparatus, terminal and storage medium
JP2014216883A (en) Communication terminal, communication system, communication method, and program
CN111835617B (en) User head portrait adjusting method and device and electronic equipment
US11805475B2 (en) Access control barring method and apparatus
CN107426401B (en) Mute reminding method, device and terminal
US20220051667A1 (en) Method and device for controlling operation mode of terminal device, and medium
US20170289306A1 (en) Method, device and storage medium for synchronizing states
US10554705B2 (en) System and method for controlling client electronic devices in wireless local ad hoc network
US20160330305A1 (en) Directory contact image size based on social interaction

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190301