WO2020244159A1 - 界面消息刷新方法、装置、计算机设备及可读存储介质 - Google Patents

界面消息刷新方法、装置、计算机设备及可读存储介质 Download PDF

Info

Publication number
WO2020244159A1
WO2020244159A1 PCT/CN2019/118972 CN2019118972W WO2020244159A1 WO 2020244159 A1 WO2020244159 A1 WO 2020244159A1 CN 2019118972 W CN2019118972 W CN 2019118972W WO 2020244159 A1 WO2020244159 A1 WO 2020244159A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
new
displayed
new message
messages
Prior art date
Application number
PCT/CN2019/118972
Other languages
English (en)
French (fr)
Inventor
董深义
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020244159A1 publication Critical patent/WO2020244159A1/zh

Links

Images

Classifications

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

Definitions

  • This application relates to the field of electronic communication technology, and in particular to an interface message refreshing method, device, computer equipment and non-volatile readable storage medium.
  • the message list control used by the existing chat application software is a global refresh control.
  • the number of refreshes for each new message is twice, and one is sending. Refreshing the status once is the refreshing of the successful sending status, so that the frequency of refreshing the message list is twice the number of visible messages on the page (N messages refreshed 2N times), which may result in page freezes, high power consumption, etc. Problems, and will consume more user traffic resources.
  • An implementation manner of the present application provides an interface message refresh method, the method includes:
  • An embodiment of the present application provides an interface message refreshing device, the device including:
  • the detection module is used to detect whether the message refresh instruction is triggered
  • the extraction module is used to obtain a message list and extract a new message from the message list when the message refresh instruction is triggered;
  • the first determining module is configured to determine the historical message displayed in the conversation window after refreshing and the new message to be displayed according to the preset display rule;
  • An obtaining module configured to obtain the location identifier of the historical message and the new message in the conversation window
  • the second determining module is configured to determine the to-be-displayed position of the new message according to the position identifier of the new message;
  • the update module is used to adjust the display position of the historical message and update the content of the position to be displayed to the new message.
  • An embodiment of the present application provides a computer device that includes a processor and a memory, and a number of computer-readable instructions are stored on the memory.
  • the processor is used to execute the computer-readable instructions stored in the memory, The steps of the interface message refresh method described earlier.
  • An embodiment of the present application provides a non-volatile readable storage medium having computer readable instructions stored thereon, and when the computer readable instructions are executed by a processor, the steps of the interface message refresh method as described above are realized.
  • the message extraction and refresh only involve the message itself, and do not involve refreshing other historical messages, and each message is refreshed Only trigger the message refresh event once, which reduces the resource consumption of the CPU, makes the page loading of the session window smoother, avoids the problem of user freezing, and can greatly reduce the consumption of session applications and traffic, and improve the user's online message reception.
  • the message refresh event Only trigger the message refresh event once, which reduces the resource consumption of the CPU, makes the page loading of the session window smoother, avoids the problem of user freezing, and can greatly reduce the consumption of session applications and traffic, and improve the user's online message reception.
  • Fig. 1 is a flowchart of steps of a method for refreshing interface messages in an embodiment of the application.
  • Fig. 2 is a functional block diagram of an interface message refreshing device in an embodiment of the application.
  • Figure 3 is a schematic diagram of a computer device in an embodiment of the application.
  • the expression interaction method of the present application is applied to one or more computer devices.
  • the computer device is a device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions.
  • Its hardware includes, but is not limited to, a microprocessor and an Application Specific Integrated Circuit (ASIC) , Field-Programmable Gate Array (FPGA), Digital Processor (Digital Signal Processor, DSP), embedded equipment, etc.
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • DSP Digital Processor
  • embedded equipment etc.
  • the computer device may be a computing device such as a desktop computer, a notebook computer, a tablet computer, a server, and a mobile phone.
  • the computer device can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device.
  • Fig. 1 is a flowchart of the steps of a preferred embodiment of a method for refreshing interface messages of the present application. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.
  • the interface message refresh method specifically includes the following steps.
  • Step S11 Detect whether a message refresh instruction is triggered.
  • the terminal can be pre-installed with an instant messaging client program, and through the instant messaging client program and the network, the terminal can receive the session message entered by the user in the session window of the instant messaging client, and can also receive the remote server Session messages from other terminals are forwarded and displayed to users.
  • the terminal may be a computer device or an e-book reader, MP3/MP4 player, smart watch, smart TV and other devices as shown in FIG. 3.
  • the message refresh instruction may be used to refresh the session message displayed on the displayable area of the current session window.
  • the message refresh instruction may be due to the reception of a session message input by the user of the local machine, or a session message sent by the server. And trigger. It is understandable that each session message input by the user of the local machine is set to trigger a message refresh instruction, and also when each session message sent by the server is received, a message refresh instruction is triggered.
  • a message list control can be used to refresh the conversation message of the conversation window.
  • the message list control preferably includes a message sending control and a message receiving control.
  • the message sending control can only process the business logic of sending messages, such as sending messages.
  • the progress of the local user the user on the right of the conversation window), avatar, etc.
  • the message receiving control can only process the business logic of receiving messages, such as the progress of downloading messages, the nicknames of other terminal users (the user on the left of the conversation window), Avatar etc.
  • Step S12 If it is detected that the message refresh instruction is triggered, obtain a message list and extract a new message from the message list.
  • the message list may record information about all session messages currently received or sent by the terminal, including information currently received and historically received, and information currently entered and historically entered by the local user.
  • the message refresh instruction When it is detected that the message refresh instruction is triggered, it indicates that the session message input by the user of the local machine may be received, or triggered by the session message sent by the remote server, the message list is obtained, and the message list is extracted New messages; because only new messages are extracted instead of all messages that need to be displayed in the refreshed session window, it can save user traffic resources and reduce background hardware (such as CPU, memory) resources.
  • the new message can be a latest conversation message sent by a remote server, or a latest conversation message input by a user of the local machine.
  • the new message may include message content, user identifier, message sending time or message receiving time, etc.
  • the user identifier may be the nickname, avatar and other information of the message sender.
  • the sender message may refer to the message sent by the user of the local machine.
  • the message can be a message sent by other end users. If the new message belongs to the sender message, the message sending control is used to extract the new message from the message list. If the new message belongs to the receiver message, the message receiving control is used to extract the new message from the message list. Fetch new messages.
  • Step S13 Determine historical messages displayed in the conversation window after refreshing and new messages to be displayed according to preset display rules.
  • the preset display rules may include: the length and width of the displayable area of the current conversation window, the length and width of the message display font, the length, width and number of lines of the message to be displayed, and the length and width of each message Length, width and number of lines, the line spacing between each line of instant messaging information displayed, etc.
  • the display rules such as the length and width of the displayable area of the current conversation window, the length and width of the message display font, the line spacing between each line of conversation messages displayed, and the conversation messages in the message list
  • determine the conversation message that will be displayed on the current conversation window after refreshing include: the displayed conversation messages and the conversation messages to be displayed on the current conversation window after the refresh.
  • the conversation message to be displayed is the new message.
  • the displayed session messages will be determined from the session messages displayed on the current session window after the refresh. The part of the conversation message displayed on the current conversation window except for the whole or part of the new message and the conversation message about to scroll out of the current conversation window.
  • the history message is part or all of the conversation messages displayed before the conversation window is refreshed.
  • the historical message is the part of the conversation message displayed before the refresh of the conversation window.
  • the conversation message displayed before the refresh does not scroll out of the refreshed conversation window
  • the historical messages are all conversation messages displayed before the conversation window is refreshed.
  • Step S14 Obtain the location identifier of the historical message and the new message in the conversation window.
  • the position identifier of the historical message and the new message in the conversation window may be acquired.
  • the position identifier indicates the display position of the new message and the historical message in the current conversation window.
  • Step S15 Determine the to-be-displayed position of the new message according to the position identifier of the new message.
  • the position to be displayed of the new message in the conversation window may be determined according to the position identifier of the new message.
  • the user’s messages on the right side of the conversation window can only be displayed on the right side of the conversation window
  • the user’s messages on the left side of the conversation window can only be displayed on the left side of the conversation window, which can be determined according to the location identifier of the new message and the sender information of the message.
  • the new message is in the position to be displayed in the conversation window.
  • Step S16 Adjust the display position of the historical message, and update the content of the position to be displayed as the new message.
  • the message list control can be used to adjust the display position of the historical message based on the position identifier of the historical message, and the content of the position to be displayed is updated according to the position to be displayed of the new message. State new news. Since the historical messages are displayed before the session window is refreshed, the message list control does not need to obtain all the messages to be displayed from the message list and update them. The historical messages that need to be displayed in the refreshed session window can be recorded from the previously displayed messages Obtain in the middle, save user traffic resources.
  • the message displayed before the conversation window is refreshed is the second to sixth conversation message from the bottom in the message list
  • the first conversation message from the bottom in the message list is the new message.
  • the length and width of the displayable area of the conversation window the length and width of the preset display font, the display rules of the line spacing between each line of conversation messages displayed, and the characters of each conversation message in the message list
  • the 5th and 6th session messages will scroll out of the session window after refreshing the display, so they will be displayed in the current session window after refreshing.
  • the conversation message is the first to fourth conversation messages from the bottom in the message list.
  • the content of the second to fourth from the bottom of the conversation message is the displayed conversation message displayed on the current conversation window after refreshing. You don’t need to get it from the message list again, just adjust the display position.
  • the first instant message information is a new message displayed at the position to be displayed on the current conversation window after refresh, and the content of the position to be displayed needs to be updated to the new message.
  • the content of the position to be displayed can be updated to the new message by only using the message sending control; if the new message belongs to the receiver Message, you can only use the message receiving control to update the content of the position to be displayed to the new message. Since the message receiving control and the message sending control are used to operate independently, the layout of redundant message control can be reduced. Resource overhead.
  • the message extraction and refresh only involve the message itself, and do not involve refreshing other historical messages, and each message refresh only triggers a message refresh event, which reduces the CPU usage. It can make the page load of the conversation window more smooth, avoid the problem of user freezing, and can greatly reduce the consumption of conversation applications and traffic, and improve the user experience of receiving a large number of messages online.
  • Fig. 2 is a functional module diagram of a preferred embodiment of the interface message refreshing device of this application.
  • the interface message refreshing device 10 may include a detection module 101, an extraction module 102, a first determination module 103, an acquisition module 104, a second determination module 105, and an update module 106.
  • the detection module 101 is used to detect whether a message refresh instruction is triggered.
  • the terminal can be pre-installed with an instant messaging client program, and through the instant messaging client program and the network, the terminal can receive the session message entered by the user in the session window of the instant messaging client, and can also receive the remote server Session messages from other terminals are forwarded and displayed to users.
  • the terminal may be a computer device or an e-book reader, MP3/MP4 player, smart watch, smart TV and other devices as shown in FIG. 3.
  • the message refresh instruction may be used to refresh the session message displayed on the displayable area of the current session window.
  • the message refresh instruction may be due to the reception of a session message input by the user of the local machine, or a session message sent by the server. And trigger. It is understandable that each session message input by the user of the local machine is set to trigger a message refresh instruction, and also when each session message sent by the server is received, a message refresh instruction is triggered.
  • the detection module 101 may detect that the message refresh instruction is triggered.
  • a message list control can be used to refresh the conversation message of the conversation window.
  • the message list control preferably includes a message sending control and a message receiving control.
  • the message sending control can only process the business logic of sending messages, such as sending messages.
  • the progress of the local user the user on the right of the conversation window), avatar, etc.
  • the message receiving control can only process the business logic of receiving messages, such as the progress of downloading messages, the nicknames of other terminal users (the user on the left of the conversation window), Avatar etc.
  • the extraction module 102 is configured to obtain a message list and extract a new message from the message list when it is detected that the message refresh instruction is triggered.
  • the message list may record information about all session messages currently received or sent by the terminal, including information currently received and historically received, and information currently entered and historically entered by the local user.
  • the message refresh instruction When it is detected that the message refresh instruction is triggered, it indicates that the session message input by the user of the local machine may be received, or it is triggered by the session message sent by the remote server.
  • the extraction module 102 obtains the message list and obtains it from New messages are extracted from the message list; because the extraction module 102 only extracts new messages instead of extracting all the messages that need to be displayed in the refreshed session window, it can save user traffic resources and reduce background hardware (such as CPU, memory) occupation Resources.
  • the new message can be a latest conversation message sent by a remote server, or a latest conversation message input by a user of the local machine.
  • the new message may include message content, user identifier, message sending time or message receiving time, etc.
  • the user identifier may be the nickname, avatar and other information of the message sender.
  • the extraction module 102 may first determine whether the new message belongs to a sender message or a receiver message.
  • the sender message may refer to a message sent by a local user.
  • the recipient message may be a message sent by another terminal user. If the new message belongs to the sender message, the extraction module 102 can use the message sending control to extract the new message from the message list; if the new message belongs to the receiver message, the extraction module 102 The message receiving control can be used to extract new messages from the message list.
  • the first determining module 103 is configured to determine historical messages displayed in the conversation window after refreshing and new messages to be displayed according to preset display rules.
  • the preset display rules may include: the length and width of the displayable area of the current conversation window, the length and width of the message display font, the length, width and number of lines of the message to be displayed, and the length and width of each message Length, width and number of lines, the line spacing between each line of instant messaging information displayed, etc.
  • the first determining module 103 may display rules, such as the length and width of the displayable area of the current conversation window, the length and width of the message display font, the line spacing between each line of conversation messages displayed, etc.
  • the number of characters of each session message in the message list is determined according to the time sequence received, which will be displayed on the current session window after refreshing.
  • the conversation messages that will be displayed on the current conversation window after the refresh include: the displayed conversation messages and the conversation messages to be displayed on the current conversation window after the refresh.
  • the conversation message to be displayed is the new message.
  • the displayed session messages will be determined from the session messages displayed on the current session window after the refresh.
  • the part of the conversation message displayed on the current conversation window except for the whole or part of the new message and the conversation message about to scroll out of the current conversation window.
  • the history message is part or all of the conversation messages displayed before the conversation window is refreshed.
  • the historical message is the part of the conversation message displayed before the refresh of the conversation window.
  • the conversation message displayed before the refresh does not scroll out of the refreshed conversation window
  • the historical messages are all conversation messages displayed before the conversation window is refreshed.
  • the acquiring module 104 is configured to acquire the location identifier of the historical message and the new message in the conversation window.
  • the obtaining module 104 may obtain the historical message and the position identifier of the new message in the conversation window.
  • the position identifier indicates the display position of the new message and the historical message in the current conversation window.
  • the second determining module 105 is configured to determine the to-be-displayed position of the new message according to the position identifier of the new message.
  • the second determining module 105 may determine the to-be-displayed position of the new message in the conversation window according to the location identifier of the new message.
  • the user’s messages on the right side of the conversation window can only be displayed on the right side of the conversation window
  • the user’s messages on the left side of the conversation window can only be displayed on the left side of the conversation window, which can be determined according to the location identifier of the new message and the sender information of the message.
  • the new message is in the position to be displayed in the conversation window.
  • the update module 106 is configured to adjust the display position of the historical message, and update the content of the position to be displayed to the new message.
  • the update module 106 may use the message list control to adjust the display position of the historical message based on the position identifier of the historical message, and adjust the position to be displayed according to the position to be displayed of the new message.
  • the content of is updated to the new message. Since the historical messages are displayed before the session window is refreshed, the message list control does not need to obtain all the messages to be displayed from the message list and update them.
  • the historical messages that need to be displayed in the refreshed session window can be recorded from the previously displayed messages Obtain in the middle, save user traffic resources.
  • the message displayed before the conversation window is refreshed is the second to sixth conversation message from the bottom in the message list
  • the first conversation message from the bottom in the message list is the new message.
  • the length and width of the displayable area of the conversation window the length and width of the preset display font, the display rules of the line spacing between each line of conversation messages displayed, and the characters of each conversation message in the message list
  • the 5th and 6th session messages will scroll out of the session window after refreshing the display, so they will be displayed in the current session window after refreshing.
  • the conversation message is the first to fourth conversation messages from the bottom in the message list.
  • the content of the second to fourth from the bottom of the conversation message is the displayed conversation message displayed on the current conversation window after refreshing. You don’t need to get it from the message list again, just adjust the display position.
  • the first instant message information is a new message displayed at the position to be displayed on the current conversation window after refresh, and the content of the position to be displayed needs to be updated to the new message.
  • the update module 106 may only use the message sending control to update the content of the position to be displayed to the new message; if the new message If the message belongs to the recipient message, the update module 106 can only use the message receiving control to update the content of the position to be displayed to the new message, because the message receiving control and the message sending control are used to operate independently , Can reduce the resource overhead of redundant message control layout.
  • the message extraction and refresh only involve the message itself, and do not involve refreshing other historical messages, and each message refresh only triggers a message refresh event, which reduces the CPU usage. It can make the page load of the conversation window more smooth, avoid the problem of user freezing, and can greatly reduce the consumption of conversation applications and traffic, and improve the user experience of receiving a large number of messages online.
  • FIG. 3 is a schematic diagram of a preferred embodiment of the computer equipment of this application.
  • the computer device 1 includes a memory 20, a processor 30, and computer-readable instructions 40 stored in the memory 20 and running on the processor 30, such as an interface message refresh program.
  • the processor 30 executes the computer-readable instruction 40, the steps in the above embodiment of the interface message refreshing method are implemented, such as steps S11 to S16 shown in FIG. 1.
  • the processor 30 executes the computer-readable instruction 40, the function of each module in the embodiment of the device for refreshing the interface message is realized, such as the modules 101 to 106 in FIG. 2.
  • the computer-readable instructions 40 may be divided into one or more modules/units, and the one or more modules/units are stored in the memory 20 and executed by the processor 30, To complete this application.
  • the one or more modules/units may be a series of computer-readable instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer-readable instructions 40 in the computer device 1.
  • the computer-readable instruction 40 may be divided into the detection module 101, the extraction module 102, the first determination module 103, the acquisition module 104, the second determination module 105, and the update module 106 in FIG. 2. Refer to the second embodiment for the specific functions of each module.
  • the computer device 1 may be a computing device such as a desktop computer, a notebook, a palmtop computer, a mobile phone, a tablet computer, and a cloud server.
  • a computing device such as a desktop computer, a notebook, a palmtop computer, a mobile phone, a tablet computer, and a cloud server.
  • the schematic diagram is only an example of the computer device 1 and does not constitute a limitation on the computer device 1. It may include more or less components than those shown in the figure, or a combination of certain components, or different components. Components, for example, the computer device 1 may also include input and output devices, network access devices, buses, and so on.
  • the so-called processor 30 may be a central processing unit (Central Processing Unit, CPU), other general processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor, or the processor 30 may also be any conventional processor, etc.
  • the processor 30 is the control center of the computer device 1 and connects the entire computer device 1 with various interfaces and lines. Parts.
  • the memory 20 may be used to store the computer-readable instructions 40 and/or modules/units, and the processor 30 can run or execute the computer-readable instructions and/or modules/units stored in the memory 20, and
  • the data stored in the memory 20 is called to realize various functions of the computer device 1.
  • the memory 20 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data) created in accordance with the use of the computer device 1 and the like are stored.
  • the memory 20 may include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, a flash memory card (Flash Card), At least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • non-volatile memory such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, a flash memory card (Flash Card), At least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the integrated modules/units of the computer device 1 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile readable storage medium.
  • this application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through computer-readable instructions.
  • the computer-readable instructions can be stored in a non-volatile memory.
  • the computer-readable instruction code may be in the form of source code, object code, executable file, or some intermediate forms, etc.
  • the non-volatile readable medium may include: any entity or device capable of carrying the computer readable instruction code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory).
  • the functional units in the various embodiments of the present application may be integrated in the same processing unit, or each unit may exist alone physically, or two or more units may be integrated in the same unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

一种界面消息刷新方法,包括:检测是否触发消息刷新指令(S11);若检测到所述消息刷新指令被触发,则获取消息列表并从所述消息列表中提取新消息(S12);根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息(S13);获取所述历史消息及所述新消息在所述会话窗口的位置标识(S14);根据所述新消息的位置标识确定所述新消息的待显示位置(S15);调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息(S16)。还提供一种界面消息刷新装置、计算机设备及非易失性可读存储介质。该方案涉及终端操作体验优化技术,可使得会话窗口页面加载更流畅,降低会话应用的电量、流量消耗,提升用户使用体验。

Description

界面消息刷新方法、装置、计算机设备及可读存储介质
本申请要求于2019年06月05日提交中国专利局,申请号为201910488464.4发明名称为“界面消息刷新方法、装置、计算机装置及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及电子通信技术领域,具体涉及一种界面消息刷新方法、装置、计算机设备及非易失性可读存储介质。
背景技术
现有的聊天应用软件使用的消息列表控件是一种全局刷新的控件,刷新一条新消息时需要刷新消息列表中所有可见的消息,同时每一条新消息刷新的次数是2次,一次是发送中状态的刷新,一次是发送成功状态的刷新,进而使得消息列表刷新的频率是页面可见消息数的2倍(N条消息刷新2N次),由此可能会衍生诸如页面卡顿、耗电量高等问题,且会消耗用户较多流量资源。
发明内容
鉴于以上内容,有必要提出一种界面消息刷新方法、装置、计算机设备及非易失性可读存储介质,其可使得会话窗口页面加载更流畅,大幅度降低会话应用的电量、流量消耗,提升用户使用体验。
本申请一实施方式提供一种界面消息刷新方法,所述方法包括:
检测是否触发消息刷新指令;
若检测到所述消息刷新指令被触发,则获取消息列表并从所述消息列表中提取新消息;
根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息;
获取所述历史消息及所述新消息在所述会话窗口的位置标识;
根据所述新消息的位置标识确定所述新消息的待显示位置;及
调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
本申请一实施方式提供一种界面消息刷新装置,所述装置包括:
检测模块,用于检测是否触发消息刷新指令;
提取模块,用于在所述消息刷新指令被触发时,获取消息列表并从所述消息列表中提取新消息;
第一确定模块,用于根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息;
获取模块,用于获取所述历史消息及所述新消息在所述会话窗口的位置标识;
第二确定模块,用于根据所述新消息的位置标识确定所述新消息的待显示位置;及
更新模块,用于调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
本申请一实施方式提供一种计算机设备,所述计算机设备包括处理器及存储器,所述存储器上存储有若干计算机可读指令,所述处理器用于执行存储器中存储的计算机可读指令时实现如前面所述的界面消息刷新方法的步骤。
本申请一实施方式提供一种非易失性可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如前面所述的界面消息刷新方法的步骤。
上述界面消息刷新方法、装置、计算机设备及非易失性可读存储介质,在进行界面消息刷新时,消息提取与刷新只涉及该消息本身,不涉及刷新别的历史消息,且每条消息刷新只触发一次消息刷新事件,降低了CPU的占用资源,可使得会话窗口页面加载更流畅,避免用户卡顿卡死的问题,且可大幅度降低会话应用、流量消耗,提升用户在线大量接收消息的体验。
附图说明
图1为本申请一实施例中界面消息刷新方法的步骤流程图。
图2为本申请一实施例中界面消息刷新装置的功能模块图。
图3为本申请一实施例中计算机设备示意图。
如下具体实施方式将结合上述附图进一步说明本申请。
具体实施方式
为了能够更清楚地理解本申请的上述目的、特征和优点,下面结合附图和具体实施例对本申请进行详细描述。需要说明的是,在不冲突的情况下,本申请的实施例及实施例中的特 征可以相互组合。
在下面的描述中阐述了很多具体细节以便于充分理解本申请,所描述的实施方式仅仅是本申请一部分实施方式,而不是全部的实施方式。基于本申请中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,都属于本申请保护的范围。
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中在本申请的说明书中所使用的术语只是为了描述具体的实施方式的目的,不是旨在于限制本申请。
优选地,本申请的表情交互方法应用在一个或者多个计算机设备中。所述计算机设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。
所述计算机设备可以是桌上型计算机、笔记本电脑、平板电脑、服务器、手机等计算设备。所述计算机设备可以与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互。
实施例一:
图1是本申请界面消息刷新方法较佳实施例的步骤流程图。根据不同的需求,所述流程图中步骤的顺序可以改变,某些步骤可以省略。
参阅图1所示,所述界面消息刷新方法具体包括以下步骤。
步骤S11、检测是否触发消息刷新指令。
在一实施方式中,终端可预先安装有即时通信客户端程序,通过该即时通信客户端程序及网络,终端可接收用户在该即时通信客户端的会话窗口输入的会话消息,也可接收远端服务器转发的来自其他终端的会话消息,并显示给用户。终端可以是图3所示的计算机设备或者电子书阅读器、MP3/MP4播放器、智能手表、智能电视等设备。
所述消息刷新指令可以用于刷新当前会话窗口的可显示区域上显示的会话消息,具体地,消息刷新指令可以因接收到本机用户输入的会话消息,也可以是接收到服务器发送的会话消息而触发。可以理解的是,设置本机用户输入的每一条会话消息触发一次消息刷新指令,同样当接收到服务器发送的每一条会话消息,触发一次消息刷新指令。
在一实施方式中,可以通过消息列表控件来实现刷新会话窗口的会话消息,所述消息列表控件优选包括消息发送控件和消息接收控件,消息发送控件可以只处理发送消息的业务逻辑,比如发送消息的进度,本机用户(会话窗口的右边用户)的昵称、头像等,消息接收控件可以只处理接收消息的业务逻辑,比如下载消息的进度,其他终端用户(会话窗口的左边用户)的昵称、头像等。
当所述消息发送控件或所述消息接收控件插入一条新消息时,优选只触发一次消息刷新指令。
步骤S12、若检测到所述消息刷新指令被触发,则获取消息列表并从所述消息列表中提取新消息。
在一实施方式中,消息列表中可以记录有终端当前已接收到或已发送的所有会话消息的信息,包括当前接收的与历史接收的信息,本机用户当前输入的与历史输入的信息。当检测到所述消息刷新指令被触发时,表明可能接收到本机用户输入的会话消息,或者是接收到远端服务器发送的会话消息而触发,获取该消息列表,并且从该消息列表中提取新消息;由于只提取了新消息而不是提取所有需在刷新后的会话窗口显示的消息,可以节省用户流量资源及降低后台硬件(如CPU、内存)占用资源。该新消息即可以是远端服务器发送的一条最新的会话消息,也可以是本机用户输入的一条最新的会话消息。
在一实施方式中,所述新消息可以包括消息内容、用户标识符、消息发送时间或消息接收时间等。所述用户标识符可以是消息发送方的昵称、头像等信息。
在一实施方式中,在进行新消息提取前,可以先判断所述新消息是属于发送方消息还是属于接收方消息,所述发送方消息可以是指本机用户发送的消息,所述接收方消息可以是其他终端用户发送的消息。若所述新消息是属于发送方消息,则利用消息发送控件来从所述消息列表中提取新消息,若所述新消息是属于接收方消息,则利用消息接收控件来从所述消息列表中提取新消息。
步骤S13,根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息。
在一实施方式中,所述预设显示规则可以包括:当前会话窗口的可显示区域的长度与宽度,消息显示字体的长度与宽度,待显示消息的长度、宽度及行数,每条消息的长度、宽度及行数,显示的每一行即时通信息消息之间的行间距等。
在一实施方式中,可以根据当前会话窗口的可显示区域的长度与宽度、消息显示字体的长度与宽度,显示的每一行会话消息之间的行间距等显示规则、该消息列表中各会 话消息的字符数,按照接收的时间先后顺序,确定刷新后将会在该当前会话窗口上显示的会话消息。该刷新后将会在该当前会话窗口上显示的会话消息包括:刷新后在该当前会话窗口上显示的各条已显示的会话消息以及待显示的会话消息。其中,该待显示的会话消息即为所述新消息。根据刷新前该当前会话窗口上显示的会话消息,从该刷新后将会在该当前会话窗口上显示的会话消息中确定出该各条已显示的会话消息,也即该刷新后将会在该当前会话窗口上显示的会话消息中除了该新消息与即将滚动出该当前会话窗口的会话消息的整体或部分以外的那部分会话消息。
在一实施方式中,所述历史消息即为所述会话窗口在刷新前显示的部分或者全部会话消息。当刷新前显示的会话消息有滚动出刷新后的会话窗口时,则所述历史消息即为所述会话窗口在刷新前显示的部分会话消息,当刷新前显示的会话消息无滚动出刷新后的会话窗口时,则所述历史消息即为所述会话窗口在刷新前显示的全部会话消息。
步骤S14、获取所述历史消息及所述新消息在所述会话窗口的位置标识。
在一实施方式中,当确定了刷新后将在所述会话窗口显示的待显示消息时,可以获取所述历史消息及所述新消息在所述会话窗口的位置标识。所述位置标识指示了新消息及历史消息在当前会话窗口中的显示位置。
步骤S15、根据所述新消息的位置标识确定所述新消息的待显示位置。
在一实施方式中,可以根据所述新消息的位置标识确定所述新消息在所述会话窗口的待显示位置。
可以理解的是,会话窗口右边用户的消息可以只显示在会话窗口右边,会话窗口左边用户的消息可以只显示在会话窗口左边,可以根据所述新消息的位置标识及该消息的发出方信息确定所述新消息在所述会话窗口的待显示位置。
步骤S16、调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
在一实施方式中,可以利用消息列表控件基于所述历史消息的位置标识调整所述历史消息的显示位置,并根据所述新消息的的待显示位置将所述待显示位置的内容更新为所述新消息。由于所述历史消息在会话窗口刷新前有显示,消息列表控件无需从消息列表中获取全部待显示的消息并进行更新,对于刷新后的会话窗口需显示的历史消息可以从先前已显示的消息记录中获取,节省用户流量资源。
举例而言,假设会话窗口刷新前显示的消息是消息列表中的倒数第2至6条会话消息,消息列表中倒数第一条会话消息为所述新消息。此时,根据该会话窗口的可显示区 域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行会话消息之间的行间距等显示规则以及该消息列表中各会话消息的字符数,按照接收时间的先后顺序,可确定为了显示倒数第1条会话消息,倒数第5、6条会话消息在刷新显示后滚动出该会话窗口,因此刷新后将会在该当前会话窗口显示的会话消息为消息列表中倒数第1至4条会话消息。而该倒数第2条至第4条会话消息的内容为刷新后在该当前会话窗口上显示的各条已显示的会话消息,无需再次从消息列表中获取,只需调整显示位置即可,倒数第1条即时消息信息为刷新后在该当前会话窗口上待显示位置显示的新消息,需将所述待显示位置的内容更新为所述新消息。
在一实施方式中,若所述新消息是属于发送方消息,则可以只利用所述消息发送控件将所述待显示位置的内容更新为所述新消息;若所述新消息是属于接收方消息,则可以只利用所述消息接收控件将所述待显示位置的内容更新为所述新消息,由于采用了消息接收控件与消息发送控件来独立进行运作,可以实现减少冗余消息控件布局的资源开销。
上述界面消息刷新方法,在进行界面消息刷新时,消息提取与刷新只涉及该消息本身,不涉及刷新别的历史消息,且每条消息刷新只触发一次消息刷新事件,降低了CPU的占用资源,可使得会话窗口页面加载更流畅,避免用户卡顿卡死的问题,且可大幅度降低会话应用、流量消耗,提升用户在线大量接收消息的体验。
实施例二:
图2为本申请界面消息刷新装置较佳实施例的功能模块图。
参阅图2所示,所述界面消息刷新装置10可以包括检测模块101、提取模块102、第一确定模块103、获取模块104及第二确定模块105及更新模块106。
所述检测模块101用于检测是否触发消息刷新指令。
在一实施方式中,终端可预先安装有即时通信客户端程序,通过该即时通信客户端程序及网络,终端可接收用户在该即时通信客户端的会话窗口输入的会话消息,也可接收远端服务器转发的来自其他终端的会话消息,并显示给用户。终端可以是图3所示的计算机设备或者电子书阅读器、MP3/MP4播放器、智能手表、智能电视等设备。
所述消息刷新指令可以用于刷新当前会话窗口的可显示区域上显示的会话消息,具体地,消息刷新指令可以因接收到本机用户输入的会话消息,也可以是接收到服务器发送的会话消息而触发。可以理解的是,设置本机用户输入的每一条会话消息触发一次消息刷新指令,同样当接收到服务器发送的每一条会话消息,触发一次消息刷新指令。当 接收到本机用户输入的会话消息,或者接收到服务器发送的会话消息而触发时,所述检测模块101可以检测到消息刷新指令被触发。
在一实施方式中,可以通过消息列表控件来实现刷新会话窗口的会话消息,所述消息列表控件优选包括消息发送控件和消息接收控件,消息发送控件可以只处理发送消息的业务逻辑,比如发送消息的进度,本机用户(会话窗口的右边用户)的昵称、头像等,消息接收控件可以只处理接收消息的业务逻辑,比如下载消息的进度,其他终端用户(会话窗口的左边用户)的昵称、头像等。
当所述消息发送控件或所述消息接收控件插入一条新消息时,优选只触发一次消息刷新指令。
所述提取模块102用于在检测到所述消息刷新指令被触发时,获取消息列表并从所述消息列表中提取新消息。
在一实施方式中,消息列表中可以记录有终端当前已接收到或已发送的所有会话消息的信息,包括当前接收的与历史接收的信息,本机用户当前输入的与历史输入的信息。当检测到所述消息刷新指令被触发时,表明可能接收到本机用户输入的会话消息,或者是接收到远端服务器发送的会话消息而触发,所述提取模块102获取该消息列表,并且从该消息列表中提取新消息;由于所述提取模块102只提取了新消息而不是提取所有需在刷新后的会话窗口显示的消息,可以节省用户流量资源及降低后台硬件(如CPU、内存)占用资源。该新消息即可以是远端服务器发送的一条最新的会话消息,也可以是本机用户输入的一条最新的会话消息。
在一实施方式中,所述新消息可以包括消息内容、用户标识符、消息发送时间或消息接收时间等。所述用户标识符可以是消息发送方的昵称、头像等信息。
在一实施方式中,在进行新消息提取前,所述提取模块102可以先判断所述新消息是属于发送方消息还是属于接收方消息,所述发送方消息可以是指本机用户发送的消息,所述接收方消息可以是其他终端用户发送的消息。若所述新消息是属于发送方消息,则所述提取模块102可以利用消息发送控件来从所述消息列表中提取新消息,若所述新消息是属于接收方消息,则所述提取模块102可以利用消息接收控件来从所述消息列表中提取新消息。
所述第一确定模块103用于根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息。
在一实施方式中,所述预设显示规则可以包括:当前会话窗口的可显示区域的长度 与宽度,消息显示字体的长度与宽度,待显示消息的长度、宽度及行数,每条消息的长度、宽度及行数,显示的每一行即时通信息消息之间的行间距等。
在一实施方式中,所述第一确定模块103可以根据当前会话窗口的可显示区域的长度与宽度、消息显示字体的长度与宽度,显示的每一行会话消息之间的行间距等显示规则、该消息列表中各会话消息的字符数,按照接收的时间先后顺序,确定刷新后将会在该当前会话窗口上显示的会话消息。该刷新后将会在该当前会话窗口上显示的会话消息包括:刷新后在该当前会话窗口上显示的各条已显示的会话消息以及待显示的会话消息。其中,该待显示的会话消息即为所述新消息。根据刷新前该当前会话窗口上显示的会话消息,从该刷新后将会在该当前会话窗口上显示的会话消息中确定出该各条已显示的会话消息,也即该刷新后将会在该当前会话窗口上显示的会话消息中除了该新消息与即将滚动出该当前会话窗口的会话消息的整体或部分以外的那部分会话消息。
在一实施方式中,所述历史消息即为所述会话窗口在刷新前显示的部分或者全部会话消息。当刷新前显示的会话消息有滚动出刷新后的会话窗口时,则所述历史消息即为所述会话窗口在刷新前显示的部分会话消息,当刷新前显示的会话消息无滚动出刷新后的会话窗口时,则所述历史消息即为所述会话窗口在刷新前显示的全部会话消息。
所述获取模块104用于获取所述历史消息及所述新消息在所述会话窗口的位置标识。
在一实施方式中,当确定了刷新后将在所述会话窗口显示的待显示消息时,所述获取模块104可以获取所述历史消息及所述新消息在所述会话窗口的位置标识。所述位置标识指示了新消息及历史消息在当前会话窗口中的显示位置。
所述第二确定模块105用于根据所述新消息的位置标识确定所述新消息的待显示位置。
在一实施方式中,所述第二确定模块105可以根据所述新消息的位置标识确定所述新消息在所述会话窗口的待显示位置。
可以理解的是,会话窗口右边用户的消息可以只显示在会话窗口右边,会话窗口左边用户的消息可以只显示在会话窗口左边,可以根据所述新消息的位置标识及该消息的发出方信息确定所述新消息在所述会话窗口的待显示位置。
所述更新模块106用于调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
在一实施方式中,所述更新模块106可以利用消息列表控件基于所述历史消息的位置标识调整所述历史消息的显示位置,并根据所述新消息的的待显示位置将所述待显示 位置的内容更新为所述新消息。由于所述历史消息在会话窗口刷新前有显示,消息列表控件无需从消息列表中获取全部待显示的消息并进行更新,对于刷新后的会话窗口需显示的历史消息可以从先前已显示的消息记录中获取,节省用户流量资源。
举例而言,假设会话窗口刷新前显示的消息是消息列表中的倒数第2至6条会话消息,消息列表中倒数第一条会话消息为所述新消息。此时,根据该会话窗口的可显示区域的长度与宽度,预设的显示字体的长度与宽度,显示的每一行会话消息之间的行间距等显示规则以及该消息列表中各会话消息的字符数,按照接收时间的先后顺序,可确定为了显示倒数第1条会话消息,倒数第5、6条会话消息在刷新显示后滚动出该会话窗口,因此刷新后将会在该当前会话窗口显示的会话消息为消息列表中倒数第1至4条会话消息。而该倒数第2条至第4条会话消息的内容为刷新后在该当前会话窗口上显示的各条已显示的会话消息,无需再次从消息列表中获取,只需调整显示位置即可,倒数第1条即时消息信息为刷新后在该当前会话窗口上待显示位置显示的新消息,需将所述待显示位置的内容更新为所述新消息。
在一实施方式中,若所述新消息是属于发送方消息,则所述更新模块106可以只利用所述消息发送控件将所述待显示位置的内容更新为所述新消息;若所述新消息是属于接收方消息,则所述更新模块106可以只利用所述消息接收控件将所述待显示位置的内容更新为所述新消息,由于采用了消息接收控件与消息发送控件来独立进行运作,可以实现减少冗余消息控件布局的资源开销。
上述界面消息刷新装置,在进行界面消息刷新时,消息提取与刷新只涉及该消息本身,不涉及刷新别的历史消息,且每条消息刷新只触发一次消息刷新事件,降低了CPU的占用资源,可使得会话窗口页面加载更流畅,避免用户卡顿卡死的问题,且可大幅度降低会话应用、流量消耗,提升用户在线大量接收消息的体验。
图3为本申请计算机设备较佳实施例的示意图。
所述计算机设备1包括存储器20、处理器30以及存储在所述存储器20中并可在所述处理器30上运行的计算机可读指令40,例如界面消息刷新程序。所述处理器30执行所述计算机可读指令40时实现上述界面消息刷新方法实施例中的步骤,例如图1所示的步骤S11~S16。或者,所述处理器30执行所述计算机可读指令40时实现上述界面消息刷新装置实施例中各模块的功能,例如图2中的模块101~106。
示例性的,所述计算机可读指令40可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器20中,并由所述处理器30执行,以完成本申请。 所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,所述指令段用于描述所述计算机可读指令40在所述计算机设备1中的执行过程。例如,所述计算机可读指令40可以被分割成图2中的检测模块101、提取模块102、第一确定模块103、获取模块104及第二确定模块105及更新模块106。各模块具体功能参见实施例二。
所述计算机设备1可以是桌上型计算机、笔记本、掌上电脑、手机、平板电脑及云端服务器等计算设备。本领域技术人员可以理解,所述示意图仅仅是计算机设备1的示例,并不构成对计算机设备1的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述计算机设备1还可以包括输入输出设备、网络接入设备、总线等。
所称处理器30可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者所述处理器30也可以是任何常规的处理器等,所述处理器30是所述计算机设备1的控制中心,利用各种接口和线路连接整个计算机设备1的各个部分。
所述存储器20可用于存储所述计算机可读指令40和/或模块/单元,所述处理器30通过运行或执行存储在所述存储器20内的计算机可读指令和/或模块/单元,以及调用存储在存储器20内的数据,实现所述计算机设备1的各种功能。所述存储器20可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据计算机设备1的使用所创建的数据(比如音频数据)等。此外,存储器20可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。
所述计算机设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性可读存储介质中,所述计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,计算机可读指 令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述非易失性可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。
在本申请所提供的几个实施例中,应该理解到,所揭露的计算机设备和方法,可以通过其它的方式实现。例如,以上所描述的计算机设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
另外,在本申请各个实施例中的各功能单元可以集成在相同处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在相同单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。计算机设备权利要求中陈述的多个单元或计算机设备也可以由同一个单元或计算机设备通过软件或者硬件来实现。第一,第二等词语用来表示名称,而并不表示任何特定的顺序。
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。

Claims (20)

  1. 一种界面消息刷新方法,其特征在于,所述方法包括:
    检测是否触发消息刷新指令;
    若检测到所述消息刷新指令被触发,则获取消息列表并从所述消息列表中提取新消息;
    根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息;
    获取所述历史消息及所述新消息在所述会话窗口的位置标识;
    根据所述新消息的位置标识确定所述新消息的待显示位置;及
    调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
  2. 如权利要求1所述的界面消息刷新方法,其特征在于,所述新消息包括消息内容、用户标识符、消息发送时间或消息接收时间。
  3. 如权利要求1或2所述的界面消息刷新方法,其特征在于,所述预设显示规则包括:会话窗口的可显示区域的长度与宽度、消息字体的长度与宽度、各条消息的长度、宽度及行数、每一行信息之间的间距。
  4. 如权利要求1或2所述的界面消息刷新方法,其特征在于,所述历史消息为所述会话窗口在刷新前显示的部分或者全部会话消息。
  5. 如权利要求1或2所述的界面消息刷新方法,其特征在于,所述检测是否触发消息刷新指令的步骤之前包括:
    建立消息发送控件与消息接收控件;及
    当所述消息发送控件或所述消息接收控件插入一条新消息时,触发一次所述消息刷新指令。
  6. 如权利要求5所述的界面消息刷新方法,其特征在于,所述将所述待显示位置的内容更新为所述新消息的步骤包括:
    判断所述新消息是否属于发送方消息;及
    若所述新消息属于所述发送方消息,则利用所述消息发送控件将所述待显示位置的内容更新为所述新消息。
  7. 如权利要求6所述的界面消息刷新方法,其特征在于,所述判断所述新消息是否属于发送方消息的步骤之后还包括:
    若所述新消息不属于所述发送方消息,判断所述新消息是否属于接收方消息;及
    若所述新消息属于所述接收方消息,则利用所述消息接收控件将所述待显示位置的内容更新为所述新消息。
  8. 一种界面消息刷新装置,其特征在于,所述装置包括:
    检测模块,用于检测是否触发消息刷新指令;
    提取模块,用于在所述消息刷新指令被触发时,获取消息列表并从所述消息列表中提取新消息;
    第一确定模块,用于根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息;
    获取模块,用于获取所述历史消息及所述新消息在所述会话窗口的位置标识;
    第二确定模块,用于根据所述新消息的位置标识确定所述新消息的待显示位置;及
    更新模块,用于调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
  9. 一种计算机设备,其特征在于,所述计算机设备包括处理器和存储器,所述存储器用于存储计算机可读指令,所述处理器执行所述计算机可读指令以实现以下步骤:
    检测是否触发消息刷新指令;
    若检测到所述消息刷新指令被触发,则获取消息列表并从所述消息列表中提取新消息;
    根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息;
    获取所述历史消息及所述新消息在所述会话窗口的位置标识;
    根据所述新消息的位置标识确定所述新消息的待显示位置;及
    调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
  10. 如权利要求9所述的计算机设备,其特征在于,所述新消息包括消息内容、用户标识符、消息发送时间或消息接收时间。
  11. 如权利要求9或10所述的计算机设备,其特征在于,所述预设显示规则包括:会话窗口的可显示区域的长度与宽度、消息字体的长度与宽度、各条消息的长度、宽度及行数、每一行信息之间的间距,所述历史消息为所述会话窗口在刷新前显示的部分或者全部会话消息。
  12. 如权利要求9或10所述的计算机设备,其特征在于,在所述检测是否触发消息刷新指令的步骤之前,所述处理器执行所述计算机可读指令还用以实现以下步骤:
    建立消息发送控件与消息接收控件;及
    当所述消息发送控件或所述消息接收控件插入一条新消息时,触发一次所述消息刷新指令。
  13. 如权利要求12所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令以实现所述将所述待显示位置的内容更新为所述新消息时,包括以下步骤:
    判断所述新消息是否属于发送方消息;及
    若所述新消息属于所述发送方消息,则利用所述消息发送控件将所述待显示位置的内容更新为所述新消息。
  14. 如权利要求13所述的计算机设备,其特征在于,在所述判断所述新消息是否属于发送方消息的步骤之后,所述处理器执行所述计算机可读指令还用以实现以下步骤:
    若所述新消息不属于所述发送方消息,判断所述新消息是否属于接收方消息;及
    若所述新消息属于所述接收方消息,则利用所述消息接收控件将所述待显示位置的内容更新为所述新消息。
  15. 一种非易失性可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现以下步骤:
    检测是否触发消息刷新指令;
    若检测到所述消息刷新指令被触发,则获取消息列表并从所述消息列表中提取新消息;
    根据预设显示规则确定刷新后在会话窗口显示的历史消息以及待显示的新消息;
    获取所述历史消息及所述新消息在所述会话窗口的位置标识;
    根据所述新消息的位置标识确定所述新消息的待显示位置;及
    调整所述历史消息的显示位置,并将所述待显示位置的内容更新为所述新消息。
  16. 如权利要求15所述的存储介质,其特征在于,所述新消息包括消息内容、用户标识符、消息发送时间或消息接收时间。
  17. 如权利要求15或16所述的存储介质,其特征在于,所述预设显示规则包括:会话窗口的可显示区域的长度与宽度、消息字体的长度与宽度、各条消息的长度、宽度及行数、每一行信息之间的间距,所述历史消息为所述会话窗口在刷新前显示的部分或者全部会话消息。
  18. 如权利要求15或16所述的存储介质,其特征在于,在所述检测是否触发消息刷新指令的步骤之前,所述计算机可读指令被处理器执行还用以实现以下步骤:
    建立消息发送控件与消息接收控件;及
    当所述消息发送控件或所述消息接收控件插入一条新消息时,触发一次所述消息刷新指令。
  19. 如权利要求18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行以实现所述将所述待显示位置的内容更新为所述新消息时,包括以下步骤:
    判断所述新消息是否属于发送方消息;及
    若所述新消息属于所述发送方消息,则利用所述消息发送控件将所述待显示位置的内容更新为所述新消息。
  20. 如权利要求19所述的存储介质,其特征在于,在所述判断所述新消息是否属于发送方消息的步骤之后,所述计算机可读指令被所述处理器执行还用以实现以下步骤:
    若所述新消息不属于所述发送方消息,判断所述新消息是否属于接收方消息;及
    若所述新消息属于所述接收方消息,则利用所述消息接收控件将所述待显示位置的内容更新为所述新消息。
PCT/CN2019/118972 2019-06-05 2019-11-15 界面消息刷新方法、装置、计算机设备及可读存储介质 WO2020244159A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910488464.4A CN110377376B (zh) 2019-06-05 2019-06-05 界面消息刷新方法、装置、计算机装置及可读存储介质
CN201910488464.4 2019-06-05

Publications (1)

Publication Number Publication Date
WO2020244159A1 true WO2020244159A1 (zh) 2020-12-10

Family

ID=68249851

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118972 WO2020244159A1 (zh) 2019-06-05 2019-11-15 界面消息刷新方法、装置、计算机设备及可读存储介质

Country Status (2)

Country Link
CN (1) CN110377376B (zh)
WO (1) WO2020244159A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800333A (zh) * 2020-06-11 2020-10-20 腾讯科技(深圳)有限公司 会话消息处理方法、装置、计算机可读存储介质及设备
CN113946403A (zh) * 2021-11-16 2022-01-18 网易(杭州)网络有限公司 数据展示方法、装置、存储介质及电子设备

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110377376B (zh) * 2019-06-05 2022-06-17 平安科技(深圳)有限公司 界面消息刷新方法、装置、计算机装置及可读存储介质
CN110855549A (zh) * 2019-10-28 2020-02-28 维沃移动通信有限公司 一种消息显示方法及终端设备

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248150A1 (en) * 2005-04-29 2006-11-02 International Business Machines Corporation Methods and apparatus for managing and distinguishing instant messaging sessions and threads
CN101025671A (zh) * 2006-02-24 2007-08-29 腾讯科技(深圳)有限公司 在消息窗体中显示新消息的方法
CN107577395A (zh) * 2017-09-11 2018-01-12 竞技世界(北京)网络技术有限公司 基于Qt开发框架的聊天内容显示方法及装置
CN109408162A (zh) * 2018-09-03 2019-03-01 平安普惠企业管理有限公司 一种显示页面的方法及终端
CN110377376A (zh) * 2019-06-05 2019-10-25 平安科技(深圳)有限公司 界面消息刷新方法、装置、计算机装置及可读存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150121179A1 (en) * 2013-10-25 2015-04-30 Palo Alto Research Center Incorporated System and method for creating graphically rich messages incorporating shared docments
CN106469054B (zh) * 2015-08-21 2021-09-21 小米科技有限责任公司 通知消息控制方法、装置及终端
CN105242924A (zh) * 2015-09-25 2016-01-13 联想(北京)有限公司 控制方法及应用所述控制方法的电子设备
CN106933547B (zh) * 2015-12-29 2020-12-01 阿里巴巴集团控股有限公司 全局信息获取及处理的方法、装置和更新系统
US10067731B2 (en) * 2016-01-05 2018-09-04 Quirklogic, Inc. Method and system for representing a shared digital virtual “absolute” canvas
US10270726B2 (en) * 2017-02-24 2019-04-23 Satori Worldwide, Llc Selective distribution of messages in a scalable, real-time messaging system
CN109818853A (zh) * 2019-02-19 2019-05-28 北京达佳互联信息技术有限公司 消息处理方法、装置、服务器、电子设备及计算机可读存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060248150A1 (en) * 2005-04-29 2006-11-02 International Business Machines Corporation Methods and apparatus for managing and distinguishing instant messaging sessions and threads
CN101025671A (zh) * 2006-02-24 2007-08-29 腾讯科技(深圳)有限公司 在消息窗体中显示新消息的方法
CN107577395A (zh) * 2017-09-11 2018-01-12 竞技世界(北京)网络技术有限公司 基于Qt开发框架的聊天内容显示方法及装置
CN109408162A (zh) * 2018-09-03 2019-03-01 平安普惠企业管理有限公司 一种显示页面的方法及终端
CN110377376A (zh) * 2019-06-05 2019-10-25 平安科技(深圳)有限公司 界面消息刷新方法、装置、计算机装置及可读存储介质

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111800333A (zh) * 2020-06-11 2020-10-20 腾讯科技(深圳)有限公司 会话消息处理方法、装置、计算机可读存储介质及设备
CN113946403A (zh) * 2021-11-16 2022-01-18 网易(杭州)网络有限公司 数据展示方法、装置、存储介质及电子设备
CN113946403B (zh) * 2021-11-16 2023-08-22 网易(杭州)网络有限公司 数据展示方法、装置、存储介质及电子设备

Also Published As

Publication number Publication date
CN110377376A (zh) 2019-10-25
CN110377376B (zh) 2022-06-17

Similar Documents

Publication Publication Date Title
WO2020244159A1 (zh) 界面消息刷新方法、装置、计算机设备及可读存储介质
CN108431797B (zh) 电子文档的存储器节约的版本控制
US10191890B2 (en) Persistent viewports
US10409901B2 (en) Providing collaboration communication tools within document editor
CN112311656B (zh) 消息聚合、展示方法、装置、电子设备和计算机可读介质
CN112162965B (zh) 一种日志数据处理的方法、装置、计算机设备及存储介质
US8200768B2 (en) Deferred reading of email database in mobile environments
CN107835979B (zh) 智能音频路由管理
WO2022161431A1 (zh) 显示方法、装置及电子设备
US20140372369A1 (en) Managing Changes to Shared Electronic Documents Using Change History
KR102676789B1 (ko) 미응답 메시지를 수집하는 방법, 시스템, 및 비-일시적인 컴퓨터 판독가능한 기록 매체
CN113368492A (zh) 渲染的方法、装置
US20130288800A1 (en) Game processing server apparatus
CN111651700A (zh) 消息展示方法、装置、电子设备及存储介质
JPWO2013094361A1 (ja) ソーシャル・メデイアにおけるコミュニティを検出する方法、コンピュータ・プログラム、コンピュータ
US20180091613A1 (en) Electronic device and method thereof for managing notifications
CN109685595A (zh) 基于数据分析的推送方法、装置、移动终端及存储介质
CN113342759A (zh) 内容共享方法、装置、设备以及存储介质
CN112860762A (zh) 用于检测时间段重叠的方法和装置
US20190349324A1 (en) Providing rich preview of communication in communication summary
US11855945B2 (en) Method, computer device, and non-transitory computer-readable recording medium to pick and display message in messaging-based social network service
US20220237365A1 (en) Method and system for providing mini-map in chatroom
CN110881001B (zh) 一种电子红包检测方法、系统及终端设备
US10372436B2 (en) Systems and methods for maintaining operating consistency for multiple users during firmware updates
CN107315612B (zh) 终端控制方法、装置、计算机装置及存储介质

Legal Events

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

Ref document number: 19931925

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19931925

Country of ref document: EP

Kind code of ref document: A1