Message display method and device, electronic equipment and readable storage medium
By storing conversation messages in electronic devices and determining the display time based on the operation speed, the problem of social messages interrupting tasks is solved, improving task smoothness and user experience.
Patent Information
- Application Number
- CN202311230160.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-09-22
AI Technical Summary
When users are using electronic devices to perform gaming or video playback tasks, conversational messages from social applications disrupt the flow of the task and degrade the user experience.
When a user performs a task, the session message is stored in the storage space, and a non-critical moment is determined based on the user's operation speed on the display interface. The message is displayed at that moment to avoid interrupting the task process.
It improves the smoothness and convenience for users to perform tasks through electronic devices, ensuring that message display does not affect the normal progress of tasks.
Smart Images

Figure CN117156043B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application belongs to the technical field of communication, and particularly relates to a message display method and device, an electronic device and a readable storage medium. BACKGROUND
[0002] At present, various entertainment applications, such as game applications, video applications, etc., can be installed in an electronic device. However, in the process that a user uses the entertainment applications in the electronic device to perform a game task, a video playing task, etc., the progress of the user performing the task is often interrupted by conversation messages received by a social application in the electronic device. In this way, in the process that the user uses the electronic device, the fluency of the user performing the game task, the video playing task, etc. through the electronic device is reduced, and the convenience of the user using the electronic device is reduced. SUMMARY
[0003] The purpose of the embodiments of the present application is to provide a message display method and device, an electronic device and a readable storage medium, which can improve the fluency of a user performing a game task, a video playing task, etc. through an electronic device, and improve the convenience of the user using the electronic device.
[0004] In a first aspect, the embodiments of the present application provide a message display method, which comprises: in the case that a first task is started or run, storing a conversation message received by an electronic device into a first storage space; determining a first time according to an operation speed of a user on a display interface of the electronic device in the process of the first task; and displaying the conversation message stored in the first storage space at the first time.
[0005] In a second aspect, the embodiments of the present application provide a message display device, which comprises: a storage unit, configured to store a conversation message received by an electronic device into a first storage space in the case that a first task is started or run; a processing unit, configured to determine a first time according to an operation speed of a user on a display interface of the electronic device in the process of the first task; and a display unit, configured to display the conversation message stored in the first storage space at the first time.
[0006] In a third aspect, the embodiments of the present application provide an electronic device, which comprises a processor and a memory. The memory stores programs or instructions that can be run on the processor. When the programs or instructions are executed by the processor, the steps of the message display method according to the first aspect are implemented.
[0007] In a fourth aspect, the embodiments of the present application provide a readable storage medium, which stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the message display method according to the first aspect are implemented.
[0008] In a fifth aspect, an embodiment of the present application provides a chip, which comprises a processor and a communication interface, the communication interface and the processor being coupled, and the processor being configured to run programs or instructions to implement the steps of the message display method according to the first aspect.
[0009] In a sixth aspect, an embodiment of the present application provides a computer program product stored in a storage medium, which is executed by at least one processor to implement the steps of the message display method according to the first aspect.
[0010] In the message display method provided by the embodiment of the present application, in the case of starting or running a first task, a session message received by an electronic device is stored in a first storage space; a first time is determined according to an operation speed of a user on a display interface of the electronic device in a process of the first task; and the session message stored in the first storage space is displayed at the first time. Through the above message display method, in the process of the user using the electronic device, in the case that the user executes a first task such as a game task or a video playing task by using the electronic device, a session message received by the electronic device in the process of executing the first task is stored in the first storage space. Further, the electronic device determines a first time of displaying the message according to the operation speed of the user on the display interface of the electronic device in the process of the first task, and displays the session message stored in the first storage space at the first time. In this way, in the case that the user executes a first task such as a game task or a video playing task by using the electronic device, the session message received by the electronic device in the process of the first task is displayed at a specific time, i.e., the first time, based on the operation of the user on the display interface of the electronic device, so that the session message does not affect the execution process of the first task, the fluency of the user executing the first task by using the electronic device is improved, and the convenience of the user using the electronic device is improved. BRIEF DESCRIPTION OF DRAWINGS
[0011] Figure 1 A flowchart of the message display method provided by the embodiment of the present application is shown in FIG. 1;
[0012] Figure 2 A schematic diagram of an operation interface of the message display method provided by the embodiment of the present application is shown in FIG. 2;
[0013] Figure 3 A schematic diagram of the message display method provided by the embodiment of the present application is shown in FIG. 3;
[0014] Figure 4 A structural block diagram of the message display device provided by the embodiment of the present application is shown in FIG. 4;
[0015] Figure 5 A structural block diagram of the electronic device provided by the embodiment of the present application is shown in FIG. 5;
[0016] Figure 6A hardware structure schematic diagram of an electronic device provided by an embodiment of the present application is shown. DETAILED DESCRIPTION
[0017] The technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all of them. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art are within the scope of protection of the present application.
[0018] The terms "first", "second", and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than that illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and are not limited in number, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in an "or" relationship.
[0019] The message display method provided by the embodiments of the present application will be described in detail below with reference to the drawings, through specific embodiments and their application scenarios.
[0020] As shown in Figure 1 The message display method provided by the embodiments of the present application can include the following S102 to S106:
[0021] S102: In the case of starting or running a first task, store a session message received by an electronic device to a first storage space.
[0022] The message display method proposed by the embodiments of the present application is executed by an electronic device, which can be specifically a smart phone, a tablet computer, a notebook computer, a smart watch, and the like, without specific limitation here.
[0023] Among them, the electronic device is installed with entertainment applications such as game applications, video applications, etc., and the above-mentioned first task can be specifically a game task, a video playing task, etc., without specific limitation here.
[0024] Further, the electronic device is installed with social applications, chat applications, etc., and the electronic device stores the session messages received by the social applications, chat applications, etc. installed therein to the first storage space without directly showing them to the user during the execution of the first task.
[0025] In actual application process, the electronic device can display the second control in the display interface of the electronic device in the process that the electronic device executes the first task, and the first storage space is the storage space of the second control. In the process that the electronic device executes the first task, the second control receives and stores the conversation message received by the social application, the chat application and other applications installed in the electronic device in the process that the electronic device executes the first task.
[0026] The second control can be displayed in the display interface of the electronic device, and the second control can also be hidden and displayed at the edge of the display interface. In actual application process, the second control can be a floating ball, a floating window and the like, which is not limited here.
[0027] Specifically, in the message display method provided by the embodiments of the present application, when the user opens the entertainment application installed in the electronic device and executes the first task through the electronic device, the electronic device starts the floating ball function of the electronic device, and displays the second control in the display interface. And in the process that the electronic device executes the first task, the electronic device receives and records the conversation message received by the social application, the chat application and other applications in the second control. Specifically, the second control records the source application information, the sender information and the message content of the conversation message after receiving the conversation message. The source application information of the conversation message includes the name information of the source application of the conversation message, and the sender information includes the nickname information and the avatar information of the sender of the conversation message.
[0028] S104: determining the first time according to the operation speed of the user on the display interface of the electronic device in the process of the first task.
[0029] The operation speed is the APM (Actions Per Minute) of the user on the display interface of the electronic device.
[0030] Specifically, in the message display method provided by the embodiments of the present application, after the electronic device starts or runs the first task, the electronic device also calculates the operation speed of the user on the display interface at a first interval period, and stores the APM value calculated each time for a first time length.
[0031] In actual application process, the electronic device can calculate the operation speed of the user on the display interface of the electronic device according to the following formula (1).
[0032] APM=((T A +T B +…+T N )÷T×a+M×b)×60÷T, (1)
[0033] Wherein, APM represents the operation speed of the user to the display interface of the electronic device calculated each time; T represents the first interval period, that is, the calculation interval length of the APM value, that is, the time interval between each two times of calculating the APM value; T A represents the time length of the finger A sliding or long pressing the display interface within the first interval period; T B represents the time length of the finger B sliding or long pressing the display interface within the first interval period; T N represents the time length of the finger N sliding or long pressing the display interface within the first interval period; M represents the number of times of the user clicking the display interface of the electronic device within the first interval period; a and b are both weight coefficients, and a+b=1.
[0034] On this basis, in the message display method provided by the embodiments of the present application, in the process of the electronic device executing the first task, the electronic device also calculates the operation speed of the user to the display interface of the electronic device in real time according to the first interval period, and determines the first time point at which the operation speed of the user to the display interface is smaller in the process of the electronic device executing the first task, that is, determines the non-key point time point in the first task according to the operation speed of the user to the display interface.
[0035] S106: Display the conversation messages stored in the first storage space at the first time point.
[0036] Wherein, the above-mentioned first time point is the non-key point time point in the process of executing the first task, and the operation speed of the user to the display interface is slower at the first time point.
[0037] Specifically, in the message display method provided by the embodiments of the present application, in the process of the electronic device executing the first task, the electronic device stores the conversation messages received in the process of executing the first task to the first storage space, and calculates the operation speed of the user to the display interface in real time, and then displays the conversation messages stored in the first storage space to the user at the non-key point time point in the first task, that is, at the first time point at which the operation speed of the user to the display interface is smaller. In this way, according to the operation speed of the user to the display interface of the electronic device, the conversation messages are displayed to the user at the non-key point time point in the first task, which avoids interrupting the execution process of the conversation messages in the first task, and improves the fluency of the user executing the first task through the electronic device.
[0038] Exemplarily, as Figure 3 shown, in the process of the user executing the game task through the electronic device, the APM curve of the user to the display interface of the electronic device is as Figure 3As shown. At this time, in the process that the user performs the game task through the electronic device, for the task period with a higher APM value such as the team battle period, the electronic device only displays the second control in the display interface of the electronic device and receives and stores the session message received by the electronic device through the second control, and for the task period with a lower APM value such as the early development period or the wild monster brushing period, the electronic device displays the detailed content of the session message received by the second control to the user, so that the user can view and reply the message.
[0039] The message display method provided by the embodiments of the present application stores the session message received by the electronic device into the first storage space in the case of starting or running the first task; determines the first time according to the operation speed of the user on the display interface of the electronic device in the process of the first task; and displays the session message stored in the first storage space at the first time. Through the above message display method, in the process that the user uses the electronic device, in the case that the user performs the first task such as a game task or a video playing task through the electronic device, the session message received by the electronic device in the process of performing the first task is stored into the first storage space. Further, the electronic device determines the first time of displaying the message according to the operation speed of the user on the display interface of the electronic device in the process of the first task, and displays the session message stored in the first storage space at the first time. In this way, in the case that the user performs the first task such as a game task or a video playing task through the electronic device, the session message received by the electronic device in the process of performing the first task is displayed at the first time according to the operation of the user on the display interface of the electronic device, so that the session message does not affect the execution process of the first task, improves the fluency of the user in performing the first task through the electronic device, and improves the convenience of the user in using the electronic device.
[0040] In the embodiments of the present application, S104 can specifically include the following S104a-S104d:
[0041] S104a: determining the speed threshold according to the operation speed of the user on the display interface in the first period.
[0042] The first period is a historical period for calculating the APM value, and the period length of the first period can be specifically the first length, that is, the period length of the first period can be the storage length of the APM value calculated each time.
[0043] Specifically, in the message display method provided in the embodiments of the present application, in the process of the electronic device executing the first task, the electronic device calculates the operation speed of the user on the display interface of the electronic device at a first interval period, and stores the operation speed value, i.e., the APM value, calculated each time for a first time length. On this basis, the electronic device dynamically determines the speed threshold of the operation speed according to the operation speed of the user on the display interface. Specifically, when the electronic device determines the speed threshold, the electronic device takes the time point of calculating the speed threshold as a reference point, obtains the operation speed, i.e., the APM data, calculated in the first period before the time point, and further dynamically calculates the speed threshold of the current time point based on the APM data calculated in the first period.
[0044] S104b: Obtain the operation speed of the user on the display interface in the second period.
[0045] The second period is a historical period of calculating the APM value, and the period length of the second period can be specifically a second time length, which is less than the first time length, i.e., the first period contains the second period.
[0046] S104c: In the case where the operation speed in the second period is less than the speed threshold, obtain the operation speed of the user on the display interface at a second time.
[0047] The second time is located after the second period. In actual application, the second time can be spaced from the second period by the first interval period, and the second time can also be the real-time time at which the user executes the first task through the electronic device, which is not limited here.
[0048] S104d: In the case where the operation speed at the second time is less than the speed threshold, and the operation speed at the second time is less than the maximum value of the operation speed in the second period, determine the second time as the first time.
[0049] Specifically, in the message display method provided in the embodiments of the present application, in the process of the electronic device executing the first task, in the process of the electronic device dynamically calculating the speed threshold of the operation speed, the electronic device takes the time point of calculating the speed threshold as a reference point, and obtains the operation speed of the user on the display interface in the second period before the time point. On this basis, in the case where the APM value calculated each time in the second period is less than the dynamically determined speed threshold, the electronic device calculates the operation speed of the user on the display interface at the second time again. Further, in the case where the operation speed at the second time is less than the speed threshold, and the operation speed at the second time is not the maximum value of the operation speed in the second period, i.e., the operation speed at the second time is less than the APM value calculated each time in the second period, it is determined that the second time is the non-critical point time of the first task, i.e., the first time.
[0050] In the above embodiments provided in the present application, in the process of determining the first time according to the operation speed of the user on the display interface of the electronic device in the first task, the speed threshold is determined according to the operation speed of the user on the display interface in the first period; the operation speed of the user on the display interface in the second period is obtained, and the first period includes the second period; in the case that the operation speed in the second period is less than the speed threshold, the operation speed of the user on the display interface in the second time is obtained, and the second time is located after the second period; in the case that the operation speed in the second time is less than the speed threshold, and the operation speed in the second time is less than the maximum value of the operation speed in the second period, the second time is determined as the first time. In this way, the speed threshold is dynamically determined based on the operation speed of the user on the display interface, and the non-critical point time of the first task, that is, the first time, is determined based on the size comparison result of the operation speed of the user on the display interface and the speed threshold, which ensures the accuracy of the determination of the first time, so that when the conversation message is displayed to the user at the first time, the conversation message will not interrupt the task process of the first task, and the smoothness of the user executing the first task through the electronic device is improved.
[0051] In the embodiments of the present application, S104a can specifically include S108-S112 as follows:
[0052] S108: performing normalization processing on the plurality of operation speed values in the first period.
[0053] It can be understood that the upper limit value of the operation speed of the user on the display interface of the electronic device is different according to different tasks executed by the electronic device, for example, in the process that the user executes a game task through the electronic device, when the user uses an attack-type game character, the operation speed of the user on the display interface of the electronic device, that is, the APM value, can be as high as 270, and when the user uses an auxiliary-type game character, the operation speed of the user on the display interface of the electronic device, that is, the APM value, can be as high as 120 at most.
[0054] Therefore, in the message display method provided in the embodiments of the present application, in the process that the electronic device dynamically calculates the speed threshold based on the APM data calculated in the first period, the electronic device sets the minimum value of the plurality of operation speed values in the first period to 0 and the maximum value to 1, and performs normalization processing on the plurality of operation speed values in the first period, so as to eliminate the difference of the upper limit value of the operation speed of the user on the display interface of the electronic device when the electronic device executes different tasks, and facilitate subsequent unified data processing.
[0055] S110: sorting the plurality of operation speed values after normalization processing in the order of increasing operation speed values.
[0056] Specifically, in the message display method provided in the embodiments of the present application, after the electronic device performs normalization processing on the plurality of operation speed values in the first time period, the electronic device sorts the plurality of operation speed values after the normalization processing in the first time period in ascending order of operation speed values, that is, in ascending order of operation speed values.
[0057] S112: determining the operation speed value at the Nth percentile in the plurality of operation speed values as the speed threshold.
[0058] wherein N is a positive real number.
[0059] Further, the Nth percentile is a statistical term, and the Nth percentile indicates that the cumulative frequency of the statistical data at the Nth percentile reaches N%, among all statistical data, N% of the statistical data is less than the statistical data corresponding to the Nth percentile, and (100-N)% of the statistical data is greater than the statistical data corresponding to the Nth percentile.
[0060] wherein the statistical data corresponding to the Nth percentile is referred to as the Nth percentile number, and if a group of data is sorted in ascending order and the corresponding cumulative percentage is calculated, the value of the data corresponding to a certain percentile is referred to as the percentile number of the percentile. For example, n observation values are arranged in ascending order, and the value at the p% position is referred to as the pth percentile number. The median of n observation values is the 50th percentile number.
[0061] Further, taking n observation values as an example, the calculation method of the pth percentile number is as follows: the n observation values are arranged in ascending order; the index i = np% is calculated; if i is not an integer, i is rounded up, and the i-th observation value in the n observation values is determined as the pth percentile number, [i] represents the value of i after rounding up, such as [0.8] = 1; if i is an integer, the average of the i-th observation value and the i+1-th observation value in the n observation values is determined as the pth percentile number.
[0062] For example, the 50th percentile number of 23 observation values is calculated, the 23 observation values are arranged in ascending order, the index i = 23 x 50% = 11.5 is calculated, 11.5 is rounded up to obtain 12, and the 12th observation value in the 23 observation values is the 50th percentile number of the 23 observation values.
[0063] Alternatively, taking n observation values as an example, the calculation method of the pth percentile number is as follows: the n observation values are arranged in ascending order, X(j) represents the j-th observation value in the n observation values after sorting; the index j+g = (n+1)p% is calculated, wherein j is the integer part and g is the decimal part; if = 0, the pth percentile number = X(j); if ≠ 0, the pth percentile number = g X(j+1) + (1-g)X(j).
[0064] For example, to calculate the 50th percentile of 23 observations, arrange the 23 observations in ascending order of value, and calculate the exponent j + g = (23 + 1) × 50% = 12. At this time, j = 12, g = 0, and the 12th observation among the 23 observations is the 50th percentile of the 23 observations.
[0065] Specifically, in the message display method provided in this application embodiment, during the process of the electronic device dynamically calculating the speed threshold based on the APM data calculated within the first time period, the electronic device normalizes multiple operation speed values within the first time period and sorts the normalized operation speed values in ascending order. Based on this, the electronic device determines the operation speed value located at the Nth percentile among the multiple operation speed values as the speed threshold; that is, the electronic device determines the Nth percentile among the multiple operation speed values as the speed threshold.
[0066] In practical applications, N can be any value from 0 to 50, such as 20, 30, 40, etc. Those skilled in the art can set the value of N according to the actual situation, and no specific restrictions are imposed here.
[0067] For example, such as Figure 3 As shown, during the user's game task via electronic device, the device detects and calculates the APM (Actions Per Minute) value of the user's interaction with the device's display interface at 2-second intervals, obtaining a total of 23 APM values within 46 seconds. These 23 APM values are then normalized, sorted in ascending order, and the 50th percentile of these 23 APM values is determined as the speed threshold. Specifically, the normalized value corresponding to the 12th APM value is used as the speed threshold. Figure 3 As shown, the 23 APM values are sorted from smallest to largest. The 12th APM value is 120, and its corresponding normalized value is 0.4. Therefore, the speed threshold is 0.4.
[0068] In the above embodiment provided by the present application, in the process of determining the speed threshold according to the operation speed of the user on the display interface in the first period, the plurality of operation speed values in the first period are normalized, the plurality of normalized operation speed values are sorted in ascending order of operation speed value, and the operation speed value at the Nth percentile of the plurality of operation speed values is determined as the speed threshold, where N is a positive real number. In this way, on the one hand, the operation speed value is normalized before the speed threshold is calculated, which ensures the uniformity of subsequent data processing, and on the other hand, the Nth percentile of the plurality of operation speed values is determined as the speed threshold, which ensures the accuracy of the determination of the speed threshold, and thus improves the accuracy of the subsequent first time determination.
[0069] In the embodiment of the present application, after S106, the message display method can specifically include S114 and S116 as follows:
[0070] S114: detecting the operation speed of the user on the display interface according to the first interval period.
[0071] The first interval period represents the calculation interval of the APM value, that is, the time interval between two calculations of the APM value, and the first interval period is less than the length of the second period.
[0072] In actual application, the first interval period can be specifically 1 second, 2 seconds, 3 seconds, etc. Those skilled in the art can set the specific value of the first interval period according to the time, which is not limited here.
[0073] S116: hiding the conversation message when it is detected that the operation speed of the user on the display interface is greater than the speed threshold.
[0074] Specifically, in the message display method provided by the embodiment of the present application, the electronic device displays the conversation message stored in the first storage space at the first time and continues for a third time. Within the third time, the electronic device continues to detect the operation speed of the user on the display interface according to the first interval period. On this basis, within the third time, once the electronic device detects that the operation speed of the user on the display interface is greater than the speed threshold, the electronic device hides the previously displayed conversation message until the next first task non-critical point in time, and then re-displays the conversation message.
[0075] The third time can be specifically 5 seconds, 8 seconds, 10 seconds, etc. Those skilled in the art can set the specific value of the third time according to the time, which is not limited here.
[0076] The above embodiments provided in the application, at the first time, after displaying the conversation message stored in the first storage space, the operation speed of the user on the display interface is detected according to a first interval period, and the first interval period is less than the length of the second time period; in the case that the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden. In this way, in the process of displaying the conversation message, once the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden, which avoids interrupting the execution process of the first task by the conversation message, and improves the fluency of the user in executing the first task through the electronic device.
[0077] In the embodiments of the application, S106 can specifically include S106a described below, and after S106a, the message display method can specifically further include S118 and S120 described below:
[0078] S106a: display the conversation message stored in the first storage space in the first window.
[0079] The first window includes a first control, and the first control is used for the user to reply to the message. In actual application, the first control can be specifically a voice reply control, a text reply control, etc., which is not limited here.
[0080] Specifically, in the message display method provided in the embodiments of the application, in the process that the electronic device executes the first task, at the first time, which is at a non-critical point of the first task, the first window is displayed, and the conversation message stored in the first storage space is displayed in the first window. Specifically, the nickname information and the avatar information of the sender of the conversation message and the detailed content of the conversation message are displayed in the first window.
[0081] In addition, in actual application, the first window further includes a delete control, and the user can delete the conversation message by single-clicking the delete control. The conversation message deleted by the user will not be displayed to the user again.
[0082] S118: receive a first input of the user on the first control.
[0083] The first input is a touch input of the user on the first control, which can be specifically a single-click input, a long-press input, a double-click input, a sliding input, an input along a preset track, etc. The specific form of the first input can be set by the person skilled in the art according to the actual situation, which is not limited here.
[0084] S120: in response to the first input, record the reply message input by the user, and send the reply message to the sender of the conversation message based on the deep link corresponding to the conversation message.
[0085] The second control can also be used to generate a deep link that can directly jump to a specified chat page of a specified application.
[0086] On this basis, in the message display method provided in the embodiments of the present application, after displaying the conversation messages stored in the first storage space in the first window, the electronic device can receive and respond to a first input of the first control in the first window by the user, record a voice reply message or a text reply message input by the user, and put the reply message of the user into a generated deep link, send the reply message of the user to the sender of the conversation message through background running based on the deep link corresponding to the conversation message. In this way, based on the deep link, the reply message of the user is quickly sent to the sender of the conversation message through background running, without page jumping, reducing the time for the user to reply the message, and ensuring the smoothness of the execution of the first task.
[0087] In addition, after the electronic device sends the reply message of the user to the sender of the conversation message, the replied conversation message will not be deleted, but will be hidden in the second control. After a period of time, the replied conversation message will be deleted.
[0088] Exemplarily, as shown in Figure 2 After the user opens the game interface 202 of the electronic device and starts the game task, the electronic device displays the second control 204 in the game interface 202, and the second control 204 is used to receive and store the conversation messages received by the electronic device during the execution of the game task. At the same time, the second control 204 calculates the APM value of the display interface of the electronic device in the game process of the user in real time, and determines the non-critical point of the game task, i.e., the first time, according to the APM value of the display interface of the electronic device. At the first time, the electronic device displays the first window 206, and displays the conversation messages 208 received by the second control 204 and the nickname information and avatar information of the sender of the conversation messages 208 in the first window 206. The first window displays a delete control 214, and the user can delete the conversation messages 208 by a single click input on the delete control 214.
[0089] Further, as shown in Figure 2 The first window displays a voice reply control 210, and the electronic device can receive and respond to a single click input of the voice reply control 210 by the user, start the recording function, record the voice reply message of the user, and put the voice reply message of the user into a generated deep link, and send the voice reply message of the user to the sender of the conversation message through background running based on the deep link corresponding to the conversation message. After the electronic device starts the recording function, the user can close the recording function of the electronic device by clicking the voice reply control 210 again, or the electronic device automatically closes the recording function after waiting for a fourth time length, such as 10 seconds.
[0090] Further, as shown in Figure 2 The electronic device can receive and respond to a user's single-click input on the text reply control 212, start the input method function, record the user's input text reply message, and place the user's text reply message in the generated deep link. Based on the deep link corresponding to the conversation message, the user's voice reply message is sent to the sender of the conversation message through background running.
[0091] The above embodiments provided by the present application display the conversation messages stored in the first storage space in the first window, and the first window includes a first control. The first input of the user on the first control is received. In response to the first input, the reply message input by the user is recorded, and the reply message is sent to the sender of the conversation message based on the deep link corresponding to the conversation message. In this way, based on the deep link, the reply message of the user is quickly sent to the sender of the conversation message through background running, without the need to jump to a page, reducing the time of the user's reply message, and ensuring the smoothness of the execution of the first task.
[0092] The message display method provided by the embodiments of the present application can be executed by the message display device. In the embodiments of the present application, the message display device is taken as an example to execute the above message display method, and the message display device provided by the embodiments of the present application is described.
[0093] As shown in Figure 4 The message display device 400 provided by the embodiments of the present application can include the following storage unit 402, processing unit 404 and display unit 406.
[0094] The storage unit 402 is configured to store the conversation message received by the electronic device into the first storage space in the case of starting or running the first task.
[0095] The processing unit 404 is configured to determine the first time according to the operation speed of the user on the display interface of the electronic device in the process of the first task.
[0096] The display unit 406 is configured to display the conversation message stored in the first storage space at the first time.
[0097] According to the message display apparatus 400 provided in the embodiments of the present application, in the case of starting or running the first task, the session message received by the electronic device is stored in the first storage space; the first time is determined according to the operation speed of the user on the display interface of the electronic device in the process of the first task; and the session message stored in the first storage space is displayed at the first time. According to the above message display apparatus 400, in the process of using the electronic device by the user, in the case that the user performs the first task such as a game task or a video playing task by using the electronic device, the session message received by the electronic device in the process of performing the first task is stored in the first storage space. Further, the electronic device determines the first time of displaying the message according to the operation speed of the user on the display interface in the process of the first task, and displays the session message received by the second control at the first time. In this way, in the case that the user performs the first task such as a game task or a video playing task by using the electronic device, the session message received by the electronic device in the process of the first task is displayed at the specific time, i.e., the first time, based on the operation of the user on the display interface of the electronic device, so that the session message does not affect the execution process of the first task, the fluency of the user in performing the first task by using the electronic device is improved, and the convenience of the user in using the electronic device is improved.
[0098] In the embodiments of the present application, the processing unit 404 is specifically configured to: determine a speed threshold according to the operation speed of the user on the display interface in the first period; obtain the operation speed of the user on the display interface in the second period, the first period containing the second period; in the case that the operation speed in the second period is less than the speed threshold, obtain the operation speed of the user on the display interface at the second time, the second time being located after the second period; in the case that the operation speed at the second time is less than the speed threshold, and the operation speed at the second time is less than the maximum value of the operation speed in the second period, determine the second time as the first time.
[0099] In the above embodiments provided in the present application, in the process of determining the first time according to the operation speed of the user on the display interface of the electronic device in the first task, the speed threshold is determined according to the operation speed of the user on the display interface in the first period; the operation speed of the user on the display interface in a second period is obtained, and the first period contains the second period; in the case that the operation speed in the second period is less than the speed threshold, the operation speed of the user on the display interface in a second time is obtained, and the second time is located after the second period; in the case that the operation speed in the second time is less than the speed threshold, and the operation speed in the second time is less than the maximum value of the operation speed in the second period, the second time is determined as the first time. In this way, the speed threshold is dynamically determined based on the operation speed of the user on the display interface, and the non-critical point time of the first task, that is, the first time, is determined based on the size comparison result of the operation speed of the user on the display interface and the speed threshold, which ensures the accuracy of the determination of the first time, thereby ensuring that the conversation message will not interrupt the task process of the first task when the conversation message is displayed to the user at the first time, and improving the fluency of the user in executing the first task through the electronic device.
[0100] In the embodiments of the present application, the processing unit 404 is specifically configured to: perform normalization processing on the plurality of operation speed values in the first period; sort the plurality of operation speed values after the normalization processing in the order of increasing operation speed values; and determine the operation speed value located at the Nth percentile in the plurality of operation speed values as the speed threshold, wherein N is a positive real number.
[0101] In the above embodiments provided in the present application, in the process of determining the speed threshold according to the operation speed of the user on the display interface in the first period, the plurality of operation speed values in the first period are normalized; the plurality of operation speed values after the normalization processing are sorted in the order of increasing operation speed values; and the operation speed value located at the Nth percentile in the plurality of operation speed values is determined as the speed threshold, wherein N is a positive real number. In this way, on the one hand, the operation speed values are normalized before calculating the speed threshold, which ensures the uniformity of subsequent data processing, and on the other hand, the Nth percentile in the plurality of operation speed values is determined as the speed threshold, which ensures the accuracy of the determination of the speed threshold, and further improves the accuracy of the subsequent determination of the first time.
[0102] In the embodiments of the present application, at the first time, after displaying the conversation message stored in the first storage space, the processing unit 404 is further configured to: detect the operation speed of the user on the display interface according to the first interval period, and the first interval period is less than the time length of the second period; in the case that the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden.
[0103] In the above embodiments provided in the present application, at the first time, after displaying the conversation message stored in the first storage space, the operation speed of the user on the display interface is detected according to a first interval period, and the first interval period is less than the length of the second time period; in a case where the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden. In this way, in the process of displaying the conversation message, once the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden, which avoids interrupting the execution process of the first task by the conversation message, and improves the fluency of the user in executing the first task through the electronic device.
[0104] In the embodiments of the present application, the display unit 406 is specifically configured to display the conversation message stored in the first storage space in the first window, and the first window includes the first control. The message display device 400 further includes a receiving unit 408 configured to receive the first input of the user on the first control. The processing unit 404 is further configured to record the reply message input by the user in response to the first input, and send the reply message to the sender of the conversation message based on the deep link corresponding to the conversation message.
[0105] In the above embodiments provided in the present application, the conversation message stored in the first storage space is displayed in the first window, and the first window includes the first control. The first input of the user on the first control is received. In response to the first input, the reply message input by the user is recorded, and the reply message is sent to the sender of the conversation message based on the deep link corresponding to the conversation message. In this way, based on the deep link, the reply message of the user is quickly sent to the sender of the conversation message through background running, without page jumping, which reduces the time of the user's reply message and ensures the fluency of the execution of the first task.
[0106] The message display apparatus 400 in the embodiments of the present application can be an electronic device, or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a Mobile Internet Device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and the like, or a server, a Network Attached Storage (NAS), a personal computer (PC), a television (TV), a cash register, a self-service machine, or the like. The embodiments of the present application are not limited in this regard.
[0107] The message display apparatus 400 in the embodiments of the present application can be an apparatus with an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, and the embodiments of the present application are not limited in this regard.
[0108] The message display apparatus 400 provided in the embodiments of the present application can implement the method embodiments of the present application, and the details are not described herein again to avoid repetition. Figure 1 The message display apparatus 400 provided in the embodiments of the present application can implement the method embodiments of the present application, and the details are not described herein again to avoid repetition.
[0109] Optionally, as shown in Figure 5 The embodiments of the present application also provide an electronic device 500, which includes a processor 502 and a memory 504. The memory 504 stores programs or instructions executable on the processor 502. When the programs or instructions are executed by the processor 502, each step of the message display method embodiments described above is implemented, and the same technical effects are achieved. To avoid repetition, the details are not described herein again.
[0110] It should be noted that the electronic device in the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.
[0111] Figure 6 To implement the hardware structure of an electronic device according to an embodiment of the present application.
[0112] The electronic device 600 includes, but is not limited to, a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc.
[0113] Those skilled in the art can understand that the electronic device 600 can further include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 610 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than the figure, or combine certain components, or different component arrangements, which are not described here.
[0114] The memory 609 is configured to store, in a case where a first task is started or run, a session message received by the electronic device into a first storage space.
[0115] The processor 610 is configured to determine a first time according to a speed of operation of a display interface of the electronic device by a user in a process of the first task.
[0116] The display unit 606 is further configured to display, at the first time, the session message stored in the first storage space.
[0117] In the embodiments of the present application, in a case where a first task is started or run, a session message received by the electronic device is stored into a first storage space; a first time is determined according to a speed of operation of a display interface of the electronic device by a user in a process of the first task; and at the first time, the session message stored in the first storage space is displayed. In the embodiments of the present application, in a process of using the electronic device by the user, in a case where the user performs a first task such as a game task or a video playing task by the electronic device, a session message received by the electronic device in a process of performing the first task is stored into the first storage space. Further, the electronic device determines a first time of displaying the message according to the speed of operation of the display interface of the electronic device by the user in the process of the first task, and displays the session message received by the second control at the first time. In this way, in a case where the user performs a first task such as a game task or a video playing task by the electronic device, the session message received by the electronic device in the process of the first task is displayed at a specific time, i.e., the first time, based on the operation of the display interface of the electronic device by the user, so that the session message does not affect the execution process of the first task, and the fluency of performing the first task by the user through the electronic device is improved, and the convenience of using the electronic device by the user is improved.
[0118] Optionally, the processor 610 is specifically configured to: determine the speed threshold according to the operation speed of the user on the display interface in a first time period; obtain the operation speed of the user on the display interface in a second time period, the first time period containing the second time period; in a case where the operation speed in the second time period is less than the speed threshold, obtain the operation speed of the user on the display interface at a second time, the second time being located after the second time period; in a case where the operation speed at the second time is less than the speed threshold and the operation speed at the second time is less than the maximum value of the operation speed in the second time period, determine the second time as the first time.
[0119] In the above embodiments provided in the present application, in the process of determining the first time according to the operation speed of the user on the display interface in the first time period, the speed threshold is determined according to the operation speed of the user on the display interface in the first time period; the operation speed of the user on the display interface in a second time period is obtained, the first time period containing the second time period; in a case where the operation speed in the second time period is less than the speed threshold, the operation speed of the user on the display interface at a second time is obtained, the second time being located after the second time period; in a case where the operation speed at the second time is less than the speed threshold and the operation speed at the second time is less than the maximum value of the operation speed in the second time period, the second time is determined as the first time. In this way, the speed threshold is dynamically determined based on the operation speed of the user on the display interface, and the first time of the non-key point of the first task is determined based on the size comparison result of the operation speed of the user on the display interface and the speed threshold, which ensures the accuracy of the determination of the first time, thereby ensuring that the conversation message will not interrupt the task process of the first task when the conversation message is displayed to the user at the first time, and improving the fluency of the user in executing the first task through the electronic device.
[0120] In the embodiments of the present application, the processor 610 is specifically configured to: perform normalization processing on a plurality of operation speed values in the first time period; sort the plurality of operation speed values after the normalization processing in the order of increasing operation speed values; and determine the operation speed value located at the Nth percentile in the plurality of operation speed values as the speed threshold, where N is a positive real number.
[0121] In the above embodiments provided in the present application, in the process of determining the speed threshold according to the operation speed of the user on the display interface in the first time period, normalization processing is performed on a plurality of operation speed values in the first time period; the plurality of operation speed values after the normalization processing are sorted in the order of increasing operation speed values; and the operation speed value located at the Nth percentile in the plurality of operation speed values is determined as the speed threshold, where N is a positive real number. In this way, on the one hand, the operation speed values are normalized before calculating the speed threshold, which ensures the uniformity of subsequent data processing, and on the other hand, the Nth percentile in the plurality of operation speed values is determined as the speed threshold, which ensures the accuracy of the determination of the speed threshold, and further improves the accuracy of the subsequent determination of the first time.
[0122] In the embodiments of the present application, at the first time, after displaying the conversation message stored in the first storage space, the processor 610 is further configured to detect the operation speed of the user on the display interface according to a first interval period, the first interval period being less than the length of the second period; and in a case where it is detected that the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden.
[0123] The above-mentioned embodiments provided in the present application, at the first time, after displaying the conversation message stored in the first storage space, the operation speed of the user on the display interface is detected according to a first interval period, the first interval period being less than the length of the second period; and in a case where it is detected that the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden. In this way, during the process of displaying the conversation message, once the operation speed of the user on the display interface is greater than the speed threshold, the conversation message is hidden, which avoids interrupting the execution process of the first task by the conversation message, and improves the fluency of the user in executing the first task through the electronic device.
[0124] In the embodiments of the present application, the display unit 606 is specifically configured to display the conversation message stored in the first storage space in the first window, the first window comprising the first control; the user input unit 607 is configured to receive the first input of the user on the first control; and the processor 610 is further configured to, in response to the first input, record the reply message input by the user, and send the reply message to the sender of the conversation message based on the deep link corresponding to the conversation message.
[0125] The above-mentioned embodiments provided in the present application, the conversation message stored in the first storage space is displayed in the first window, the first window comprising the first control; the first input of the user on the first control is received; in response to the first input, the reply message input by the user is recorded, and the reply message is sent to the sender of the conversation message based on the deep link corresponding to the conversation message. In this way, based on the deep link, the reply message of the user is quickly sent to the sender of the conversation message through background running, without the need to jump to a page, which reduces the time for the user to reply the message and ensures the fluency of the execution of the first task.
[0126] It should be understood that in the embodiments of the present application, the input unit 604 can include a graphics processor (GPU) 6041 and a microphone 6042. The graphics processor 6041 processes image data of a still picture or a video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 606 can include a display panel 6061, which can be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also referred to as a touch screen. The touch panel 6071 can include two parts of a touch detection device and a touch controller. The other input devices 6072 can include, but are not limited to, a physical keyboard, function keys (such as volume control keys, on-off keys, and the like), a trackball, a mouse, a joystick, and the like, which will not be described here.
[0127] The memory 609 can be used to store software programs and various data. The memory 609 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by at least one function (such as a sound playing function, an image playing function, and the like), and the like. In addition, the memory 609 can include a volatile memory or a non-volatile memory, or the memory 609 can include both volatile and non-volatile memories. The non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synch link dynamic random access memory (SLDRAM), and a direct memory bus random access memory (Direct Rambus RAM, DRRAM). The memory 609 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0128] The processor 610 can include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes a wireless communication signal, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 610.
[0129] The embodiment of the present application further provides a readable storage medium, and the readable storage medium stores a program or an instruction. The program or the instruction is executed by a processor to realize each process of the message display method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described herein.
[0130] The processor is a processor in the electronic device in the above-mentioned embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like.
[0131] The embodiment of the present application further provides a chip, and the chip includes a processor and a communication interface. The communication interface is coupled with the processor. The processor is configured to execute a program or an instruction to realize each process of the message display method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described herein.
[0132] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system-level chip, a system chip, a chip system, or a system-on-chip chip, and the like.
[0133] The embodiment of the present application provides a computer program product. The program product is stored in a storage medium. The program product is executed by at least one processor to realize each process of the message display method embodiment, and the same technical effects can be achieved. To avoid repetition, details are not described herein.
[0134] It should be noted that, in the present document, the terms "comprises", "comprising", or any other variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but can include other elements not expressly listed or inherent to such process, method, article, or apparatus. An element proceeded by "comprises... a" does not, without more constraints, exclude the presence of additional identical elements in the process, method, article, or apparatus that comprises the element. Furthermore, it is to be understood that the method and apparatus of the present application can be carried out by more than one process, method, article, or apparatus either simultaneously, concurrently, or with intermediate steps missing or added. Also, the features described in relation to one example can be combined with features described in relation to other examples.
[0135] From the above description of the embodiments, it is apparent that the above-described method of the embodiments can be implemented by means of software and the requisite general- purpose hardware platform, and of course, can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), including a number of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method of each embodiment of the present application.
[0136] The embodiments of the present application are described above in conjunction with the drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, rather than limiting. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope of protection of the claims, and all such forms are within the scope of protection of the present application.
Claims
1. A message display method characterized by, The method comprises: storing a session message received by the electronic device to a first storage space in a case where a first task is started or run; determining a speed threshold according to a speed of operation of a display interface by a user in a first time period; obtaining a speed of operation of the display interface by the user in a second time period, the first time period containing the second time period; in a case where the speed of operation in the second time period is less than the speed threshold, obtaining a speed of operation of the display interface by the user at a second time, the second time being after the second time period; in a case where the speed of operation at the second time is less than the speed threshold and the speed of operation at the second time is less than a maximum value of the speed of operation in the second time period, determining the second time as a first time; displaying the session message stored in the first storage space at the first time.
2. The message display method according to claim 1, wherein The method further comprises: normalizing a plurality of speed of operation values in the first time period; sorting the plurality of speed of operation values after normalization in an order of increasing speed of operation value; determining a speed of operation value at an Nth percentile of the plurality of speed of operation values as the speed threshold, where N is a positive real number.
3. The message display method according to claim 1, wherein The method further comprises: detecting a speed of operation of the display interface by the user at a first interval period, the first interval period being less than a length of the second time period; in a case where the speed of operation of the display interface by the user is detected to be greater than the speed threshold, hiding the session message.
4. The message display method according to any one of claims 1 to 3, characterized by, The method further comprises: displaying the session message stored in the first storage space in a first window, the first window comprising a first control. The method further comprises: receiving a first input of the first control by the user; in response to the first input, recording a reply message input by the user and sending the reply message to a sender of the session message based on a deep link corresponding to the session message.
5. A message display device, characterized by comprising: The method comprises: a storage unit configured to store a session message received by the electronic device to a first storage space in a case where a first task is started or run; a processing unit configured to determine a speed threshold according to a speed of operation of a display interface by a user in a first time period, obtain a speed of operation of the display interface by the user in a second time period, the first time period containing the second time period, in a case where the speed of operation in the second time period is less than the speed threshold, obtain a speed of operation of the display interface by the user at a second time, the second time being after the second time period, in a case where the speed of operation at the second time is less than the speed threshold and the speed of operation at the second time is less than a maximum value of the speed of operation in the second time period, determine the second time as a first time. a display unit, configured to display the session message stored in the first storage space at the first time point.
6. The message display device according to claim 5, wherein The processing unit is specifically configured to: normalize a plurality of operation speed values in the first time period; sort the plurality of operation speed values in ascending order of operation speed values after normalization; determine the operation speed value at the Nth percentile of the plurality of operation speed values as the speed threshold, wherein N is a positive real number.
7. The message display device according to claim 5, wherein After displaying the session message stored in the first storage space at the first time point, the processing unit is further configured to: detect the operation speed of the user on the display interface according to a first interval period, the first interval period being less than the length of the second time period; hide the session message when it is detected that the operation speed of the user on the display interface is greater than the speed threshold.
8. The message display device according to any one of claims 5 to 7, wherein, The display unit is specifically configured to: display the session message stored in the first storage space in a first window, the first window comprising a first control; The message display device further comprises: a receiving unit configured to receive a first input of the user on the first control; The processing unit is further configured to record a reply message input by the user and send the reply message to the sender of the session message based on the deep link corresponding to the session message in response to the first input.
9. An electronic device, comprising: A processor and a memory, the memory stores programs or instructions executable on the processor, and the programs or instructions are executed by the processor to implement the steps of the message display method according to any one of claims 1 to 4.
10. A readable storage medium, characterized by, The readable storage medium stores programs or instructions, and the programs or instructions are executed by the processor to implement the steps of the message display method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Prompt message display method and electronic equipment
CN113198176A
Message interaction method, terminal and computer readable storage medium
CN114124870A
Message display method and message display device
CN115348226A