Display method, terminal device and storage medium
By clearing and refreshing the cache in the terminal device and reloading the display content, the problem of inconsistent screen projection information after the system language is changed is solved, and normal display and information synchronization after the terminal device language is switched are achieved.
Patent Information
- Application Number
- CN202211123542.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-09-15
AI Technical Summary
When the terminal device uses the connection function, after the user changes the system language of the device being projected, the system language of the projection information is inconsistent with the changed system language, causing the touch point area of the projection screen to not be displayed normally.
By clearing the cache of the target contact area when the first terminal device responds to the language change instruction, sending a message to the second terminal to instruct the second terminal to resend the changed display request, and refreshing the cache according to the received new display parameters to ensure that the display parameters are consistent with the The system language is consistent.
It achieves the normal display of the contact area after the terminal device language is switched, ensuring information synchronization and consistency of display parameters.
Smart Images

Figure CN116737289B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of terminal devices, and in particular to a display method, a terminal device and a storage medium. Background Art
[0002] With the development of terminal technology, the information exchange function between multiple terminal devices has become increasingly important. Among them, the continuation function can display the information of an application (for example, a memo application) in one terminal device on a preset touch area on another terminal device through screen projection, thereby realizing information synchronization between the two terminal devices.
[0003] In the related art, when using the continue function, if the user changes the system language of the terminal device being projected, after the change is completed, since the system language used in the projected information is inconsistent with the changed system language, the touch area of the projected terminal device that displays the projected information will not be displayed normally. Summary of the invention
[0004] The present application provides a display method, a terminal device, and a storage medium, which are applied to the field of terminal technology to ensure normal display of a touch area after the terminal device switches the language.
[0005] In the first aspect, the present application provides a display method, which is applied to a first terminal. The method provided by the present application includes: in response to a language change instruction, clearing the first display parameter in the cache corresponding to the target touch area of the multi-task display interface of the first terminal, the language change instruction is used to indicate that the system language of the first terminal is switched from the first language to the second language, and the target touch area is used to synchronously display the information of the target application of the second terminal projected to the first terminal. Secondly, the first terminal sends a first message to the second terminal, the first message is used to instruct the second terminal to resend the display request of the target touch area, and the first message contains the indication information of the second language. Thirdly, the first terminal receives the display request of the target touch area sent by the second terminal, the display request contains the second display parameter, and the second display parameter is the display parameter after changing to the second language. Finally, the first terminal refreshes the cache corresponding to the target touch area according to the second display parameter, and reloads the display content of the target touch area on the multi-task interface according to the cache corresponding to the target touch area.
[0006] The display method provided by the present application, when the system language of the first terminal being projected is changed, sends a first message to the second terminal to instruct the second terminal to resend the display request of the target touch area generated after the system language is changed to the first terminal, so that the first terminal can refresh the cache corresponding to the display parameters to reload the display content of the target touch area. In this way, it can be ensured that the display parameters corresponding to the target touch area are consistent with the system language, so that the normal display of the touch area can be achieved after the terminal device switches the language.
[0007] In a possible implementation, refreshing the cache corresponding to the target contact area according to the second display parameter includes: calling a connection service process of the first terminal, sending the second display parameter to a content providing process of the first terminal, the connection service process being used to transmit information between the first terminal and the second terminal, and the content providing process being used to distribute information received by the first terminal to each process of the first terminal; calling the content providing process to send the second display parameter to a connection information management process of the first terminal, the connection information management process being used to process the second display parameter; and calling the connection information management process to refresh the cache of the target contact area according to the second display parameter.
[0008] In this way, through the interaction between the various service processes in the first terminal device, the connection information management process refreshes the cache of the target contact area based on the updated second display parameters, thereby reloading the display content of the target contact area, thereby ensuring that the display parameters corresponding to the target contact area are consistent with the system language, thereby achieving normal display of the contact area.
[0009] In a possible implementation, before calling the connection information management process to refresh the cache of the target contact area according to the second display parameter, the method also includes: calling the connection information management process to compare the first display parameter and the second display parameter; calling the connection information management process to refresh the cache of the target contact area according to the second display parameter includes: if the first display parameter and the second display parameter are not the same, calling the connection information management process to refresh the cache of the target contact area according to the second display parameter.
[0010] In this way, before refreshing the cache of the target contact area, the first display parameter and the second display parameter can be compared. When the first display parameter and the second display parameter are consistent, the cache of the target contact area is no longer refreshed. When the first display parameter and the second display parameter are consistent, the cache of the target contact area is refreshed, thereby saving computing power.
[0011] In a possible implementation, before calling the connection information management process to refresh the cache of the target contact area according to the second display parameter, the method further includes: calling the connection information management process, verifying the second display parameter according to preset display parameter verification information, and determining the verification result of the second display parameter; if the verification result of the second display parameter is abnormal, calling the connection information management process to send first feedback information to the content providing process, wherein the first feedback information is used to indicate that the loading of the target contact area has failed.
[0012] In a possible implementation, after calling the connection information management process, verifying the second display parameter according to the preset display parameter verification information, and determining the verification result of the second display parameter, the method further includes: if there is no abnormality in the verification result of the second display parameter and the target contact area reloads the display content, calling the connection information management process to send second feedback information to the content providing process, and the second feedback information is used to indicate that the target contact area is added successfully.
[0013] In a possible implementation manner, sending the first message to the second terminal includes: calling the connection information management process to send the first message to the connection service process; calling the connection service process to send the first message to the second terminal.
[0014] In a possible implementation, after clearing the first display parameter in the cache of the target touch area of the multi-tasking display interface of the first terminal, the method further includes: initializing the multi-tasking display interface and loading the initialization display parameters of the target touch area in the cache corresponding to the target touch area.
[0015] In a possible implementation manner, the displayed content includes at least one of the following: an icon of the target application, a title of text content in the target application, a device type of the second terminal, and a device name of the second terminal.
[0016] In a possible implementation manner, the first message is carried in broadcast information.
[0017] In a second aspect, the present application further provides a display method, applied to a second terminal, the method comprising:
[0018] receiving a first message sent by a first terminal, the first message being used to instruct the second terminal to resend a display request for a target touch point area of a multitasking display interface of the first terminal, the first message including indication information of a second language to be switched by the first terminal;
[0019] determining a second display parameter of the target touch point area according to the instruction information in the second language;
[0020] A display request for the target touch area is sent to the first terminal, where the display request includes the second display parameter.
[0021] In a third aspect, the present application also provides a terminal device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.
[0022] The terminal device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the terminal device executes the method of the first aspect or the second aspect.
[0023] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the method of the first aspect or the second aspect is implemented.
[0024] In a fifth aspect, an embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect or the second aspect.
[0025] In a sixth aspect, an embodiment of the present application provides a chip, the chip including a processor, the processor being used to call a computer program in a memory to execute the method described in the first aspect or the second aspect.
[0026] It should be understood that the second to fifth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A schematic diagram of a display interface provided in an embodiment of the present application;
[0028] Figure 2 A schematic diagram of an application scenario of a display method provided in an embodiment of the present application;
[0029] Figure 3 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0030] Figure 4 A signaling interaction diagram of a display method provided in an embodiment of the present application;
[0031] Figure 5 A schematic diagram of another display interface provided in an embodiment of the present application;
[0032] Figure 6 A signaling interaction diagram of a display method provided in an embodiment of the present application;
[0033] Figure 7 A schematic diagram of a display method provided in an embodiment of the present application;
[0034] Figure 8 A schematic diagram of the structure of a display device provided in an embodiment of the present application;
[0035] Fig. 9 A schematic diagram of the structure of another display device provided in an embodiment of the present application;
[0036] Fig.10 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;
[0037] Fig.11 A schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION
[0038] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.
[0039] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0040] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0041] With the development of terminal technology, the information exchange function between multiple terminal devices has become increasingly important. Among them, the continuation function can display the information of an application (for example, a memo application) in one terminal device on a preset touch area on another terminal device through screen projection, thereby realizing information synchronization between the two terminal devices.
[0042] The following first describes the connection function involved in the embodiment of the present application.
[0043] Figure 1 A schematic diagram of a display interface provided in an embodiment of the present application. Figure 1 The multi-task display interface of the terminal device is shown. In the multi-task display interface, pages of multiple tasks running on the terminal device can be displayed. The task can be an application or a function of the terminal device (for example, a setting function). The pages of the multiple tasks can be arranged horizontally or vertically in the multi-task display interface ( Figure 1 When the terminal device uses the connection function and serves as the terminal to be projected, such as Figure 1 The multi-tasking display interface shown may display a touch area, which contains information about the application in use sent by the terminal that initiates the screen projection.
[0044] It should be understood that the above-mentioned touch point area can be a floating box on the multi-task display interface that displays a certain type of specific information.
[0045] It should be understood that the embodiments of the present application do not limit the type of application being used. For example, the application being used may be a memo application, a timer application, and the like.
[0046] In some embodiments, the information of the application in use displayed in the above-mentioned contact area can be updated in real time according to the application in use of the terminal that initiates the screen projection, that is, the information of the application in use sent by the terminal that initiates the screen projection is sent in real time according to a preset time interval. For example, if the application is a memo application. When the user uses the memo to edit the title "Test" on the terminal that initiates the screen projection, the theme "Test" will be displayed on the contact area of the multitasking interface of the projected end, thereby realizing information synchronization between the two terminal devices.
[0047] In the related art, when using the continue function, if the user changes the system language of the terminal device being projected, after the change is completed, since the terminal device that sends the projection information cannot know that the system language of the terminal device being projected has changed, at this time, the system language used in the sent projection information is inconsistent with the changed system language, which will cause the touch area of the terminal device being projected to display the projection information to be unable to display normally.
[0048] To solve the above problems, the embodiments of the present application provide a display method, a terminal device, and a storage medium. When the system language of the first terminal being projected is changed, a first message is sent to the second terminal to instruct the second terminal to resend the display request of the target touch area generated after the system language is changed to the first terminal, so that the first terminal can refresh the cache corresponding to the display parameters to reload the display content of the target touch area. In this way, it can be ensured that the display parameters corresponding to the target touch area are consistent with the system language, so that the normal display of the touch area can be achieved after the terminal device switches the language.
[0049] The application scenarios of the display method involved in this application are described below.
[0050] Figure 2 A schematic diagram of an application scenario of a display method provided in an embodiment of the present application. Figure 2 As shown, the display method provided in the embodiment of the present application can be applied in the scenario where the connection function is used between terminal devices. When the second terminal 102 runs an application, it can connect with the terminal device 101 to send the information of the running application to the first terminal 101, so that the first terminal 101 displays the information of the application running on the second terminal 102 in the preset contact area.
[0051] It should be noted that the above application scenarios do not constitute a limitation of the present disclosure. The display method provided by the present disclosure can be applied not only in the scenario of the connection function, but also in any scenario of screen projection display.
[0052] It is understandable that the terminal device may be a device with a camera assembly and an optical sensor, such as a smart phone, a laptop computer, or a tablet computer. The embodiments of the present application do not limit the specific technology and specific device form used by the terminal device.
[0053] In order to better understand the embodiment of the present application, the structure of the terminal device of the embodiment of the present application is introduced below. Figure 3 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application.
[0054] Reference Figure 3 The terminal device may include multiple subsystems that cooperate to perform, coordinate or monitor one or more operations or functions of the terminal device. The terminal device includes a display 220, a processor 230, a camera component 240, an optical sensor 250, a speaker 260, a wireless communication module 270 and a memory 280.
[0055] The wireless communication function of the terminal device can be implemented through an antenna, a wireless communication module 270, a modem processor, and a baseband processor. The antenna is used to transmit and receive electromagnetic wave signals. The antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization rate of the antenna.
[0056] The wireless communication module 270 can provide wireless communication solutions for application in terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), ultra wide band (UWB) connections, etc.
[0057] Processor 230 may be implemented as any electronic device capable of processing, receiving or sending data or instructions. For example, the processor may be a microprocessor, a central processing unit, an application specific integrated circuit, a field programmable gate array, a digital signal processor, an analog circuit, a digital circuit, or a combination of these devices. The processor may be a single-threaded or multi-threaded processor. The processor may be a single-core or multi-core processor.
[0058] During use, the processor 230 may be configured to access a memory storing instructions. The instructions may be configured to cause the processor to execute, coordinate or monitor one or more operations or functions of the terminal device.
[0059] The display 220 may be located behind the input surface 220, or may be integrated therewith. The display 220 may be communicatively coupled to the processor 230. The processor 230 may use the display 220 to present information to the user. In many cases, the processor 230 uses the display 220 to present an interface with which the user can interact.
[0060] The camera component 240 is connected to the processor 230 of the terminal device, and the camera component 240 can take images or videos in response to instructions sent by the processor 230.
[0061] The optical sensor 250 is provided on the terminal device and connected to the processor 230 of the terminal device. The optical sensor 250 is used to collect the ambient brightness around the terminal device and report the ambient brightness to the processor 230 in real time so that the processor 230 can perform exposure control on the camera assembly based on the ambient brightness.
[0062] The speaker 260, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal device can listen to music or emit ultrasonic waves through the speaker 260. In the embodiment of the present application, a speaker 260 can be set on both sides of the terminal device so that the terminal device can determine the direction of the discovered device relative to the terminal device.
[0063] The memory 280 can be used to store computer executable program codes, and the executable program codes include instructions. For example, the memory can be implemented as a random access memory, a read-only memory, a flash memory, a removable memory, other types of storage elements, or a combination of such devices. The memory 280 may include a program storage area and a data storage area. The memory 280 may store data in the data storage area. For example, the memory 280 stores information such as the identity information of the device establishing the short-range communication connection, and the time of connection.
[0064] It can be understood that the above display method can be implemented by the display device provided by the embodiment of the present disclosure, and the display device can be part or all of a certain device, such as the above terminal device. The following takes the terminal device as an example, and combines specific embodiments to explain in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be repeated in some embodiments.
[0065] Figure 4This is a signaling interaction diagram of a display method provided in an embodiment of the present application. Figure 4 As shown, the first terminal in the display method provided in this embodiment is the terminal to which the screen is projected, and the second terminal is the terminal that initiates the screen projection. The display method is used to update the display interface when the system language is changed, and the display method includes:
[0066] Step 301: In response to a language change instruction, a first terminal clears a first display parameter in a cache corresponding to a target touch point area of a multitasking display interface of the first terminal.
[0067] The language change instruction is used to instruct to switch the system language of the first terminal from the first language to the second language, and the target contact area is used to synchronously display information of the target application projected from the second terminal to the first terminal.
[0068] In the present application, screen projection can be performed between the first terminal and the second terminal, and the second terminal can send a display request of the target touch area to the first terminal, thereby sending the information of the target application to the first terminal, so that the first terminal can display the information of the target application in the target touch area of the multi-task display interface. At this time, if the user outputs a language change instruction to switch the system language of the first terminal from the first language to the second language, then correspondingly, the first terminal can clear the first display parameter in the cache corresponding to the target touch area of the multi-task display interface of the first terminal in response to the language change instruction, so as to re-display the target touch area.
[0069] The above-mentioned screen projection can be a continuation function, etc., which is not limited in the present embodiment of the application. The above-mentioned target application can be set arbitrarily according to the actual situation. For example, it can be a memo application. The target touch area for displaying the information of the target application can be as follows: Figure 1 It is shown as being located in the lower area of the multi-task display interface, and may also be located in the upper area of the multi-task display interface, which is not limited in this embodiment of the present application.
[0070] It should be understood that the embodiments of the present application do not limit the first language and the second language, and both can be English, Simplified Chinese, etc. Exemplarily, the language change instruction can indicate that the system language is changed from Simplified Chinese to English, or it can indicate that the system language is changed from English to Simplified Chinese. In some embodiments, the user can trigger the language change instruction by touching the screen, and in other embodiments, the user can also trigger the language change instruction by voice.
[0071] For example, Figure 5 A schematic diagram of another display interface provided in an embodiment of the present application, such as Figure 5 As shown, when the user changes the voice of the operating system, the display interface can be switched to Figure 5The "Language and Region" setting interface shown in the figure is triggered by clicking the control corresponding to the changed language to switch the system language of the first terminal from the first language to the second language. For example, if the first language before the change is English, the user can change the system language from English to Simplified Chinese by clicking the control corresponding to Simplified Chinese.
[0072] In the present application, if the target contact area of the multi-tasking display interface displays information of the target application projected from the second terminal to the first terminal, then when the system language of the first terminal is changed, the information of the target application is inconsistent with the changed system language. At this time, the terminal device can clear the first display parameter in the cache corresponding to the target contact area of the multi-tasking display interface of the first terminal, thereby clearing the display content of the target contact area to avoid display abnormalities.
[0073] It should be understood that the embodiment of the present application does not limit the display parameters, which are used to indicate that the target touch area displays the information of the target application. Exemplarily, the display parameters may include the display content of the target touch area, the language of the display content, the format of the display content, etc., which are not limited in the embodiment of the present application. The above-mentioned first display parameter may be the display parameter currently stored in the cache.
[0074] It should be noted that, since the display request of the target contact area is sent from the second terminal to the first terminal once every preset time when the screen is projected, the display parameters in the display request of the target contact area will be updated in the cache in real time for the target contact area to use when displaying. By clearing the first display parameters currently stored in the cache, the display content of the target contact area can be quickly cleared to avoid display abnormalities.
[0075] In some embodiments, after clearing the first display parameter in the cache of the target touch area of the multitasking display interface of the first terminal, the first terminal may initialize the multitasking display interface and load the initialization display parameter of the target touch area into the cache corresponding to the target touch area.
[0076] It should be understood that the embodiments of the present application do not impose any restrictions on how to initialize the multi-tasking display interface, and the commonly used multi-tasking display interface initialization method can be used. The embodiments of the present application do not impose any restrictions on the above-mentioned initialization display parameters. For example, the above-mentioned initialization display parameters can indicate that the display content of the target touch area is blank.
[0077] Step 302: The first terminal sends a first message to the second terminal, where the first message is used to instruct the second terminal to resend a display request for the target touch area, and the first message includes instruction information in a second language.
[0078] In the present application, when the first terminal receives a language change instruction and clears the first display parameter in the cache corresponding to the target contact area of the multi-tasking display interface of the first terminal, a first message can be sent to the second terminal to indicate the changed second language of the second terminal and instruct the second terminal to resend the display request for the target contact area.
[0079] It should be understood that the embodiments of the present application do not limit how the first terminal sends the first message to the second terminal. In some embodiments, the first terminal may call the connection information management process to send the first message to the connection service process. Subsequently, the first terminal calls the connection service process to send the first message to the second terminal.
[0080] Among them, the handoff information management process (HandoffTipManager) is used to process display parameters such as the second display parameters. For example, when the handoff service process receives the display parameters sent by the second terminal, it can perform preset processing on the display parameters, for example, it can include: checking whether the display parameters are correct, comparing the cached display parameters with the newly taken over display parameters, etc.
[0081] The connection service process is used to transmit information between the first terminal and the second terminal. For example, when the first terminal and the second terminal establish a connection for screen projection, the first terminal can receive a display request for the target touch area sent by the second terminal through the connection service process, or send a first message to the second terminal, thereby realizing information interaction between the first terminal and the second terminal.
[0082] Step 303: The second terminal determines a second display parameter of the target touch point area according to the instruction information in the second language.
[0083] In this step, after receiving the first message, the second terminal may determine the second display parameter of the target touch point area based on the indication information of the second language in the first message.
[0084] It should be understood that the embodiments of the present application do not limit how the second terminal determines the second display parameters of the target touch area. In some embodiments, the second terminal can update the language of the display content of the target touch area based on the indication information of the second language, and translate the display content of the target touch area, thereby determining the second display parameters of the target touch area.
[0085] Step 304: The second terminal sends a display request for the target touch area to the first terminal, where the display request includes a second display parameter, and the second display parameter is a display parameter after being changed to the second language.
[0086] Step 305: The first terminal refreshes the cache corresponding to the target touch point area according to the second display parameter.
[0087] In this step, after the first terminal receives the display request of the target touch area sent by the second terminal, the first terminal may extract the second display parameter in the display request, thereby refreshing the cache corresponding to the target touch area.
[0088] It should be understood that the embodiments of the present application do not limit how the first terminal refreshes the cache corresponding to the target touch area according to the second display parameter. In some embodiments, the first terminal may first call the connection service process of the first terminal to send the second display parameter to the content providing process of the first terminal. Subsequently, the first terminal may call the content providing process to send the second display parameter to the connection information management process of the first terminal. Finally, the first terminal may call the connection information management process to refresh the cache of the target touch area according to the second display parameter.
[0089] Among them, the connection service process is used to transmit information between the first terminal and the second terminal. Exemplarily, when the first terminal and the second terminal establish a connection and perform screen projection. The first terminal can receive a display request for the target touch area sent by the second terminal through the connection service process, or send a first message to the second terminal, thereby realizing information interaction between the first terminal and the second terminal. The content providing process is used to distribute the information received by the first terminal to each process of the first terminal.
[0090] The handoff information management process (HandoffTipManager) is used to process display parameters such as the second display parameters. For example, when the handoff service process receives the display parameters sent by the second terminal, it can perform preset processing on the display parameters, for example, it can include: checking whether the display parameters are correct, comparing the cached display parameters with the newly taken over display parameters, etc.
[0091] In some embodiments, before calling the connection information management process to refresh the cache of the target contact area according to the second display parameter, the first terminal may call the connection information management process to compare the first display parameter and the second display parameter. If the first display parameter and the second display parameter are not the same, the connection information management process is called to refresh the cache of the target contact area according to the second display parameter. If the first display parameter and the second display parameter are not the same, the cache of the target contact area is not refreshed.
[0092] In other embodiments, before calling the connection information management process to refresh the cache of the target contact area according to the second display parameter, the first terminal may also call the connection information management process to verify the second display parameter according to the preset display parameter verification information to determine the verification result of the second display parameter. If the verification result of the second display parameter is abnormal, the connection information management process is called to send first feedback information to the content providing process, and the first feedback information is used to indicate that the target contact area has failed to load. If the verification result of the second display parameter is normal and the target contact area reloads the display content, the connection information management process is called to send second feedback information to the content providing process, and the second feedback information is used to indicate that the target contact area has been successfully added.
[0093] The verification information may be specifically set according to actual conditions, for example, it may include parameters such as the range of font size of the displayed content, the preset type of displayed content, etc.
[0094] Step 306: The first terminal reloads the display content of the target touch area on the multitasking interface according to the cache corresponding to the target touch area.
[0095] In this step, after the first terminal refreshes the cache corresponding to the target touch area according to the second display parameter, the display content of the target touch area can be reloaded on the multitasking interface according to the cache corresponding to the target touch area.
[0096] The displayed content includes at least one of the following: an icon of the target application, a title of the text content in the target application, a device type of the second terminal, and a device name of the second terminal.
[0097] The display method provided by the present application, when the system language of the first terminal being projected is changed, sends a first message to the second terminal to instruct the second terminal to resend the display request of the target touch area generated after the system language is changed to the first terminal, so that the first terminal can refresh the cache corresponding to the display parameters to reload the display content of the target touch area. In this way, it can be ensured that the display parameters corresponding to the target touch area are consistent with the system language, so that the normal display of the touch area can be achieved after the terminal device switches the language.
[0098] Based on the above embodiment, the interaction between various processes when the first terminal caches the corresponding comfortable target touch point area is described below. Figure 6 A signaling interaction diagram of a display method provided in an embodiment of the present application. Figure 7 A schematic diagram of a display method provided in an embodiment of the present application is shown in FIG. Figure 6 and Figure 7 As shown, the display method includes:
[0099] Step 401: After the desktop process is stopped, the connection information management process of the first terminal sends a first message to the connection service process of the first terminal.
[0100] Step 402: The service process continues to send the first message to the second terminal.
[0101] Step 403: The second terminal sends a display request for the target touch area to the connection service process, where the display request includes a second display parameter.
[0102] Step 404: The follow-up service process sends the second display parameter to the content providing process of the first terminal.
[0103] Step 405: The content providing process sends the second display parameter to the connection information management process.
[0104] Step 406: The connection information management process verifies the second display parameter according to the preset display parameter verification information to determine whether the verification result of the second display parameter is abnormal.
[0105] If yes, execute step S408, if no, execute step S407.
[0106] Step 407: The connection information management process sends first feedback information to the content providing process, where the first feedback information is used to indicate that the target touch point area fails to load.
[0107] Step 408: The connection information management process compares the first display parameter and the second display parameter to determine whether the first display parameter and the second display parameter are the same.
[0108] If yes, execute step S409, if no, execute step S407.
[0109] Step 409: The connection information management process refreshes the cache corresponding to the target touch point area according to the second display parameter.
[0110] Step 410: The connection information management process sends second feedback information to the content providing process, where the second feedback information is used to indicate that the target touch area is added successfully.
[0111] The display method provided by the present application, when the system language of the first terminal being projected is changed, sends a first message to the second terminal to instruct the second terminal to resend the display request of the target touch area generated after the system language is changed to the first terminal, so that the first terminal can refresh the cache corresponding to the display parameters to reload the display content of the target touch area. In this way, it can be ensured that the display parameters corresponding to the target touch area are consistent with the system language, so that the normal display of the touch area can be achieved after the terminal device switches the language.
[0112] A person of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, etc., various media that can store program codes.
[0113] Figure 8 This is a schematic diagram of the structure of a display device provided in an embodiment of the present application. The display device can be implemented by software, hardware, or a combination of both, and can be, for example, the first terminal in the above embodiment to execute the display method on the first terminal side in the above embodiment. Figure 8 The display device 500 includes: a clearing module 501, a first sending module 502, a first receiving module 503 and a refreshing module 504.
[0114] a clearing module 501, configured to clear the first display parameter in the cache corresponding to the target touch area of the multitasking display interface of the first terminal in response to a language change instruction, wherein the language change instruction is used to instruct to switch the system language of the first terminal from the first language to the second language, and the target touch area is used to synchronously display information of the target application of the second terminal projecting the screen to the first terminal;
[0115] A first sending module 502, configured to send a first message to a second terminal, wherein the first message is used to instruct the second terminal to resend a display request for a target touch point area, and the first message includes instruction information in a second language;
[0116] A first receiving module 503 is used to receive a display request of a target touch area sent by a second terminal, wherein the display request includes a second display parameter, and the second display parameter is a display parameter after changing to a second language;
[0117] The refresh module 504 is used to refresh the cache corresponding to the target touch area according to the second display parameter; and reload the display content of the target touch area on the multi-task interface according to the cache corresponding to the target touch area.
[0118] In some optional implementations, the refresh module 504 is specifically used to call the continuation service process of the first terminal, send the second display parameter to the content providing process of the first terminal, the continuation service process is used to transmit information between the first terminal and the second terminal, and the content providing process is used to distribute the information received by the first terminal to each process of the first terminal; call the content providing process to send the second display parameter to the continuation information management process of the first terminal, and the continuation information management process is used to process the second display parameter; call the continuation information management process to refresh the cache of the target contact area according to the second display parameter.
[0119] In some optional implementations, the refresh module 504 is further used to call the connection information management process to compare the first display parameter and the second display parameter; if the first display parameter and the second display parameter are different, the connection information management process is called to refresh the cache of the target contact area according to the second display parameter.
[0120] In some optional embodiments, the refresh module 504 is also used to call the connection information management process, verify the second display parameter according to the preset display parameter verification information, and determine the verification result of the second display parameter; if the verification result of the second display parameter is abnormal, the connection information management process is called to send the first feedback information to the content providing process, and the first feedback information is used to indicate that the target contact area has failed to load.
[0121] In some optional embodiments, the refresh module 504 is also used to call the connection information management process to send second feedback information to the content providing process if the verification result of the second display parameter is normal and the target contact area reloads the display content, and the second feedback information is used to indicate that the target contact area is added successfully.
[0122] In some optional implementations, the first sending module 502 is specifically configured to call a connection information management process to send the first message to a connection service process; and call the connection service process to send the first message to the second terminal.
[0123] In some optional implementations, the clearing module 501 is specifically used to initialize the multi-task display interface and load the initialization display parameters of the target touch area into the cache corresponding to the target touch area.
[0124] In some optional implementations, the displayed content includes at least one of the following: an icon of the target application, a title of text content in the target application, a device type of the second terminal, and a device name of the second terminal.
[0125] In some optional implementations, the first message is carried in broadcast information.
[0126] Need to explain, Figure 8 The positioning device for the marking hole provided in the exemplary embodiment can be used to execute the method on the first terminal side provided in any of the above-mentioned embodiments. The specific implementation method and technical effect are similar and will not be described in detail here.
[0127] Fig. 9 This is a schematic diagram of the structure of another display device provided in an embodiment of the present application. The display device can be implemented by software, hardware, or a combination of both, and can be, for example, the first terminal in the above embodiment to execute the display method on the first terminal side in the above embodiment. Fig. 9The display device 600 includes: a second receiving module 601, a processing module 602 and a second sending module 603.
[0128] A second receiving module 601 is used to receive a first message sent by a first terminal, where the first message is used to instruct the second terminal to resend a display request of a target touch point area of a multitasking display interface of the first terminal, and the first message includes indication information of a second language to be switched by the first terminal;
[0129] A processing module 602 is used to determine a second display parameter of the target touch point area according to the instruction information in the second language;
[0130] The second sending module 603 is used to send a display request of the target touch area to the first terminal, where the display request includes a second display parameter.
[0131] Need to explain, Fig. 9 The display device provided in the exemplary embodiment can be used to execute the method on the second terminal side provided in any of the above embodiments. The specific implementation method and technical effect are similar and will not be described in detail here.
[0132] Fig.10 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application is shown in FIG. Fig.10 As shown, the terminal device includes a processor 701, a communication line 704 and at least one communication interface ( Fig.10 In the example, the communication interface 703 is used as an example for explanation), the terminal device can be the above-mentioned display device.
[0133] The processor 701 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.
[0134] Communications link 704 may include circuitry to transmit information between the above-described components.
[0135] The communication interface 703 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0136] Possibly, the terminal device may further include a memory 702 .
[0137] The memory 702 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 704. The memory may also be integrated with the processor.
[0138] The memory 702 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 701. The processor 701 is used to execute the computer-executable instructions stored in the memory 702, thereby realizing the exposure control method provided in the embodiment of the present application.
[0139] Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.
[0140] In a specific implementation, as an embodiment, the processor 701 may include one or more CPUs, such as Figure 5 CPU0 and CPU1 in.
[0141] In a specific implementation, as an embodiment, the terminal device may include multiple processors, such as Figure 5 701 and processor 705 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0142] For example, Fig.11 A schematic diagram of the structure of a chip provided in an embodiment of the present application. The chip 80 includes one or more (including two) processors 810 and a communication interface 830 .
[0143] In some implementations, the memory 840 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set thereof.
[0144] In the embodiment of the present application, the memory 840 may include a read-only memory and a random access memory, and provide instructions and data to the processor 810. A portion of the memory 840 may also include a non-volatile random access memory (NVRAM).
[0145] In the embodiment of the present application, the memory 840, the communication interface 830 and the memory 840 are coupled together through the bus system 820. The bus system 820 may include a power bus, a control bus and a status signal bus in addition to a data bus. Fig.11 Various buses are labeled as bus system 820 .
[0146] The method described in the above embodiment of the present application can be applied to the processor 810, or implemented by the processor 810. The processor 810 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware or software instructions in the processor 810. The above processor 810 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates, transistor logic devices or discrete hardware components. The processor 810 can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0147] The steps of the method disclosed in the embodiment of the present application can be directly embodied as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. Among them, the software module can be located in a mature storage medium in the field such as a random access memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable read only memory (EEPROM). The storage medium is located in the memory 840, and the processor 810 reads the information in the memory 840 and completes the steps of the above method in combination with its hardware.
[0148] In the above embodiments, the instructions stored in the memory for execution by the processor may be implemented in the form of a computer program product, wherein the computer program product may be pre-written in the memory, or may be downloaded and installed in the memory in the form of software.
[0149] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.
[0150] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.
[0151] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.
[0152] The above combinations should also be included in the scope of computer-readable media. The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A display method, characterized in that: Applied to a first terminal, the method includes: In response to a language change instruction, clearing a first display parameter in a cache corresponding to a target touch area of a multitasking display interface of the first terminal, wherein the language change instruction is used to instruct to switch a system language of the first terminal from a first language to a second language, and the target touch area is used to synchronously display information of a target application projected from the second terminal to the first terminal; Sending a first message to the second terminal, where the first message is used to instruct the second terminal to resend a display request for the target touch area, and the first message includes instruction information in the second language; receiving a display request for the target touch area sent by the second terminal, wherein the display request includes a second display parameter, and the second display parameter is a display parameter after being changed to the second language; wherein the display parameter is used to instruct the target touch area to display information of the target application; Refreshing the cache corresponding to the target touch area according to the second display parameter; Reload the display content of the target touch area on the multi-tasking interface according to the cache corresponding to the target touch area; the display content includes at least one of the following: an icon of the target application, a title of the text content in the target application, a device type of the second terminal, and a device name of the second terminal.
2. The method according to claim 1, characterized in that The refreshing of the cache corresponding to the target touch point area according to the second display parameter includes: calling a connection service process of the first terminal, and sending the second display parameter to a content providing process of the first terminal, wherein the connection service process is used to transmit information between the first terminal and the second terminal, and the content providing process is used to distribute the information received by the first terminal to each process of the first terminal; calling the content providing process to send the second display parameter to the connection information management process of the first terminal, wherein the connection information management process is used to process the second display parameter; The connection information management process is called to refresh the cache of the target contact area according to the second display parameter.
3. The method according to claim 2, characterized in that Before calling the connection information management process to refresh the cache of the target touch point area according to the second display parameter, the method further includes: calling the connection information management process to compare the first display parameter with the second display parameter; The calling of the connection information management process to refresh the cache of the target contact area according to the second display parameter includes: If the first display parameter and the second display parameter are different, the connection information management process is called to refresh the cache of the target contact area according to the second display parameter.
4. The method according to claim 2, characterized in that: Before calling the connection information management process to refresh the cache of the target touch point area according to the second display parameter, the method further includes: Calling the connection information management process, verifying the second display parameter according to preset display parameter verification information, and determining a verification result of the second display parameter; If the verification result of the second display parameter is abnormal, the connection information management process is called to send first feedback information to the content providing process, where the first feedback information is used to indicate that the target touch point area fails to load.
5. The method according to claim 4, characterized in that After calling the connection information management process, verifying the second display parameter according to preset display parameter verification information, and determining the verification result of the second display parameter, the method further includes: If the verification result of the second display parameter is normal and the target touch area reloads the display content, the connection information management process is called to send second feedback information to the content providing process, where the second feedback information is used to indicate that the target touch area is loaded successfully.
6. The method according to claim 2, characterized in that The sending the first message to the second terminal includes: Calling the connection information management process and sending the first message to the connection service process; The connection service process is called to send a first message to the second terminal.
7. The method according to claim 1, characterized in that After clearing the first display parameter in the cache of the target touch point area of the multi-task display interface of the first terminal, the method further includes: The multi-task display interface is initialized and initialization display parameters of the target touch area are loaded into a buffer corresponding to the target touch area.
8. The method according to claim 1, characterized in that: The first message is carried in broadcast information.
9. A display method, characterized in that: Applied to the second terminal, the method includes: receiving a first message sent by the first terminal after clearing the first display parameter in the cache corresponding to the target touch area of the multitasking display interface of the first terminal in response to the language change instruction, the first message being used to instruct the second terminal to resend a display request for the target touch area of the multitasking display interface of the first terminal, the first message including indication information of the second language to be switched by the first terminal; the target touch area being used to synchronously display information of a target application projected from the second terminal to the first terminal; Determining a second display parameter of the target touch point area according to the instruction information in the second language; wherein the display parameter is used to instruct the target touch point area to display information of the target application; A display request for the target touch area is sent to the first terminal, wherein the display request includes the second display parameter, so that the first terminal refreshes the cache corresponding to the target touch area according to the second display parameter, and reloads the display content of the target touch area on the multitasking interface according to the cache corresponding to the target touch area, wherein the display content includes at least one of the following: an icon of the target application, a title of the text content in the target application, a device type of the second terminal, and a device name of the second terminal.
10. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the terminal device executes the method according to any one of claims 1 to 9.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the computer is caused to perform the method according to any one of claims 1 to 9.
12. A computer program product, characterized in that The invention comprises a computer program which, when being executed, causes a computer to execute the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Equipment interaction method and system, equipment and computer readable storage medium
CN113835802A
