Patent Description:
This application relates to the field of terminal technologies, and in particular, to an electronic device, an inter-device screen coordination method, and a medium.

With development of communication technologies between electronic devices, a user may more conveniently project an interface on the electronic device to another electronic device. Display styles such as a font size, a font style, a background pattern, a background color, and a control attribute between various electronic devices may be different. When an interface of an electronic device is projected to another electronic device that has a different style, display style incoordination exists.

For example, as shown in (a) and (b) in <FIG>, when multi-screen coordination display is performed between a mobile phone <NUM> and a tablet computer <NUM>, a user may start a multi-screen coordination display function of the mobile phone <NUM> by tapping a multi-screen coordination key in a drop-down menu of the mobile phone <NUM>. As shown in (c) in <FIG>, after the user determines that a coordination object is the tablet computer <NUM>, the mobile phone <NUM> communicates with the tablet computer <NUM> by using a wireless communication function. As shown in (d) in <FIG>, a display interface <NUM> of the tablet computer <NUM> mirrors a display interface <NUM> of the mobile phone <NUM>, which is similar to projecting a window of the mobile phone <NUM> to the display interface <NUM> of the tablet computer <NUM>. It may be learned from (d) in <FIG> that a font style of the tablet computer <NUM> is Song typeface and a background color is white, while a font style of a character in the current display interface <NUM> of the mobile phone <NUM> is regular script, and a "ripple" background pattern (for example, a background color is pink or blue, and a ripple is on the background pattern) is used. Therefore, after the display interface <NUM> of the mobile phone <NUM> is projected on the display interface <NUM> of the tablet computer <NUM>, there is a problem of style incoordination with the display interface <NUM> of the tablet computer <NUM>.

<CIT> discloses a method and system that modifies a user interface (UI) of a portable device in communication with an interface device, where the UI is projected by a human-machine interface of the interface device to a user. The UI is modified by the portable device prior to being output to the interface device based on customized style information provided by the interface device. The interface device may be a vehicle interface device such as a head unit or infotainment system, and the portable device may be a smart phone, media player, or other computing device capable of displaying graphical information.

<CIT> discloses a projection screen display method and electronic equipment, relating to the technical field of terminals, and aims at enabling target equipment to arrange display content sent by source equipment according to equipment characteristics of the target equipment so as to improve the display effect of projection screen display among multiple pieces of equipment and the user experience. The method comprises the steps that first electronic equipment displays a first display interface; the first electronic equipment receives a screen projection instruction that a user projects the first display interface to second electronic equipment; in response to the screen projection instruction, the first electronic equipment determines one or more first target controls in the first display interface; and the first electronic equipment sends a first message to the second electronic equipment, the first message comprises a drawing instruction of the first target control, so that the second electronic equipment draws a first screen projection interface according to the drawing instruction of the first target control, and the first screen projection interface comprises the first target control.

This application aims to provide an electronic device, an inter-device screen coordination method, and a medium according to the appended claims. According to the method in this application, the electronic device modifies a display style of to-be-projected display content according to a display style of a to-be-projected device, and then performs screen projection, so that the display style of to-be-projected display content is consistent with the display style of the to-be-projected device for coordination display.

A first aspect of this application provides an inter-device screen coordination method, applied to a screen coordination system including a first electronic device and a second electronic device, where the method includes: establishing, by the first electronic device, a multi-screen coordination connection to the second electronic device; displaying, by the first electronic device, a first interface, where the first interface includes first content, and the first interface has a first display parameter; displaying, by the second electronic device, a second interface, where the second interface includes second content, and the second interface has a second display parameter; receiving, by the first electronic device, the second display parameter sent by the second electronic device, and generating the third interface based on the received second display parameter, wherein the third interface comprises the first content and has the second display parameter; sending, by the first electronic device, the third interface to the second electronic device; and in response to the received third interface, displaying, by the second electronic device, a fourth interface, where the fourth interface includes the second content and a first window, the first window includes the first content, and the first content in the first window has the second display parameter, wherein the third interface is an invisible view in the first electronic device or the third interface is generated on an invisible virtual screen of the first electronic device.

That is, in this embodiment of this application, when the first electronic device projects the first interface to the second electronic device for coordination display, the third interface whose display content is the same as that of the first interface but whose display parameter is the same as that of the second interface of the second electronic device is generated, so that when the second electronic device simultaneously displays the second content of the second electronic device and the first content (in the first window) projected by the first electronic device on the fourth interface, display styles of the two are consistent.

For example, the first electronic device may be a mobile phone, and the second electronic device may be a smartwatch. The first interface herein may be a display interface of the mobile phone. The display interface includes a contact icon, a contact name, and the like, that is, the first content. In addition, a font of a character in the display interface of the mobile phone is regular script, and a background color is pink, that is, the first display parameter. The second interface herein may be a display interface of the smartwatch, and the display interface includes: date, time, and the like, that is, the second content. In addition, a font of a character in the display interface of the smartwatch is STCaiyun, and a background color is white, that is, the second display parameter. Herein, the third interface may be a projection interface that is generated by the mobile phone for screen projection to the second electronic device. The mobile phone modifies the font style in the third interface from regular script to STCaiyun and modifies the background color to white, that is, modifies them to the second display parameter, and then projects the third interface to the display interface of the smartwatch. The fourth interface herein may be a display interface of the smartwatch, and the first window is a local screen projection region in the display interface of the smartwatch. After the smartwatch receives the third interface of the mobile phone, in addition to displaying date, time, and the like in the display interface, the smartwatch further displays the third interface, that is, a contact icon, a contact name, reminder content, a cancel key, a switch to voice key, and the like, in the local screen projection region, that is, the first content. In addition, a font of a character in the first content is STCaiyun, and a background color is white, that is, the second display parameter.

In a possible implementation of the first aspect, a display parameter includes at least one of a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, and a control attribute; and the display parameter includes the first display parameter and the second display parameter.

In a possible implementation of the first aspect, the second display parameter includes a display style identifier, the display style identifier is corresponding to a display style of the second interface, and corresponding to different display style identifiers, at least one of a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, and a control attribute of the second interface of the second electronic device is different.

That is, in this embodiment of this application, the display parameter may be a parameter that specifically represents a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, or a control attribute, or may be an identifier corresponding to a different font style, font size, font color, icon color, icon size, background color, background pattern, control attribute, or the like, for example, a display style identifier ID1 corresponding to a display parameter A, a corresponding font Song typeface, a font color black, a background color white, while a display style identifier ID2 corresponding to a display parameter B, corresponding font regular script, font color light gray, and background color black.

As stated above, the method includes: receiving, by the first electronic device, the second display parameter sent by the second electronic device, and generating the third interface based on the received second display parameter, where the third interface includes the first content and has the second display parameter.

That is, in embodiments of this application, the first electronic device generates a third interface whose display content is the same as that of the first interface of the first electronic device, but whose display style is the same as that of the second interface of the second electronic device, and then projects the third interface to the second electronic device.

In a possible implementation of the first aspect, the first electronic device generates the third interface in the following manner: the first electronic device sets a font size in the third interface to be the same as a font size in the second interface of the second electronic device, reduces a quantity of characters in the third interface, and modifies an attribute of at least one control in the third interface to be invisible.

In a possible implementation of the first aspect, a font size of the first window is greater than a font size of the first interface and is the same as a font size of the second interface of the second electronic device; a quantity of characters in the first window is less than a quantity of characters in the first interface; and an attribute of at least one control of the first content in the first interface is visible, and the attribute of the at least one control of the first content in the first window is invisible. For example, if the display style of the second interface of the second electronic device is an elder-person mode or a simplified mode, and the first electronic device is not in an elder-person mode, compared with the first interface of the first electronic device, after the display style of the first display content in the first window is adjusted to the elder-person mode or the simplified mode of the second electronic device, the font becomes large, and the corresponding quantity of characters decreases after the font becomes large.

In a possible implementation of the first aspect, the first electronic device generates the third interface in the following manner: the first electronic device adjusts a background color in the third interface to be the same as a background color in the second interface of the second electronic device, and adjusts a color of a character and an icon in the third interface to be different from the background color.

In a possible implementation of the first aspect, a background color of the first window is the same as a background color of the second content in the second interface or a fourth interface of the second electronic device, and a color of a character and an icon in the first window is different from the background color.

For example, if a display style of the second interface of the second electronic device is a dark color mode, that is, a background color of the second electronic device is a dark color, a character and an icon thereof are light colors, and a background color of the first interface of the first electronic device is a light color, and a character and an icon are dark colors. During screen projection, a background color of the third interface generated by the first electronic device also changes to a dark color, and after projection to the second electronic device, a background color of the first display content in the first window is also a dark color, and colors corresponding to a character and an icon are also changed to light colors.

As stated above, the third interface is an invisible view in the first electronic device or the third interface is generated on an invisible virtual screen of the first electronic device.

In a possible implementation of the first aspect, a size of the third interface is less than a size of a screen of the first electronic device, and the third interface and the first interface are simultaneously displayed on the screen of the first electronic device.

That is, in this embodiment of this application, the first electronic device may generate the third interface in a picture-in-picture manner.

In a possible implementation of the first aspect, the first electronic device further obtains a size of the first window from the second electronic device, and a size of the third interface generated by the first electronic device is the same as the size of the first window.

That is, in this embodiment of this application, the second electronic device displays the third interface in a local screen projection region in the display interface of the second electronic device.

For example, the first electronic device herein may be a mobile phone, and the second electronic device is a smartwatch. The third interface is a window created by the mobile phone, and the window and the display interface of the mobile phone are displayed at the same time. A size of the window may be a size of a local screen projection region obtained by the mobile phone from the smartwatch.

In a possible implementation of the first aspect, the first electronic device further obtains a size of the first window from the second electronic device; and.

when a size of the third interface generated by the first electronic device is different from the size of the first window, the first electronic device sends the third interface whose size is reduced or enlarged to be the same as the size of the first window to the second electronic device.

That is, in this embodiment of this application, the first electronic device may reduce or enlarge the third interface, and then send the third interface to the second electronic device. The second electronic device displays the third interface in a local screen projection region of the screen, that is, the first window.

For example, after the mobile phone obtains the size of the first window from the smartwatch, the mobile phone determines that the size of the first window is less than a size of a screen projection interface of the mobile phone. After reducing the screen projection interface, the mobile phone sends the screen projection interface to the smartwatch.

In a possible implementation of the first aspect, the screen coordination system further includes a third electronic device, and the method further includes: further establishing, by the first electronic device, a multi-screen coordination connection to the third electronic device, and displaying, by the third electronic device, a fifth interface, where the fifth interface includes third content, and the fifth interface has a third display parameter; sending, by the first electronic device, a sixth interface to the third electronic device; and in response to the received sixth interface, displaying, by the third electronic device, a seventh interface, where the seventh interface includes the third content and a second window, the second window includes the first content, and the first content in the second window has the third display parameter.

That is, the first electronic device may simultaneously project the first interface to the second electronic device and the third electronic device, and separately correspond to display styles of the second electronic device and the third electronic device, and correspondingly generate the third interface and the seventh interface, so that when the first content is displayed on the second electronic device and the third electronic device, the display style is the same as those of the second electronic device and the third electronic device.

In a possible implementation of the first aspect, the sixth interface includes the first content and has a third display parameter.

In a possible implementation of the first aspect, when the user determines to modify the display style, the first electronic device generates and sends a third interface to the second electronic device. In addition, when the user determines not to modify the display style, the first electronic device sends the first interface to the second electronic device, and the second electronic device displays an eighth interface in response to the received first interface, where the eighth interface includes the second content and a third window, and the third window includes the first interface.

That is, in this embodiment of this application, the user may determine whether to modify a display style in a multi-screen coordination display process to perform screen projection.

In a possible implementation of the first aspect, the first interface of the first electronic device includes at least one of a display desktop, a left slide display interface, a drop-down menu, and an application display interface of the first electronic device.

A second aspect of this application provides an inter-device screen coordination method, including: establishing, by a first electronic device, a multi-screen coordination connection to a second electronic device; displaying, by the first electronic device, a first interface, where the first interface includes first content, and the first interface has a first display parameter; receiving, by the first electronic device, a second display parameter sent by the second electronic device, where the second electronic device has a second interface, the second interface includes second content, and the second interface has the second display parameter; generating, by the first electronic device, a third interface according to the second display parameter; and sending, by the first electronic device, the third interface to the second electronic device, where the third interface includes the first content and has the second display parameter, wherein the third interface is an invisible view in the first electronic device or the third interface is generated on an invisible virtual screen of the first electronic device.

In a possible implementation of the second aspect, a display parameter includes at least one of a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, and a control attribute; and the display parameter includes the first display parameter and the second display parameter.

In a possible implementation of the second aspect, the second display parameter includes a display style identifier corresponding to a display style of the second interface of the second electronic device, and corresponding to different display style identifiers, at least one of a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, and a control attribute of the second interface of the second electronic device is different.

In a possible implementation of the second aspect, the third interface includes the first content and has the second display parameter.

In a possible implementation of the second aspect, a font size of the first interface of the first electronic device is less than a font size of a first window of the second electronic device, and a quantity of characters of the first interface is greater than a quantity of characters of the first window; and an attribute of at least one control of the first content in the first interface is visible, and the attribute of the at least one control of the first content in the first window is invisible.

In a possible implementation of the second aspect, a background color of the first interface on the first electronic device is different from a background color of a first window in a fourth interface on the second electronic device.

In a possible implementation of the second aspect, the screen coordination system further includes a third electronic device, where the third electronic device displays a fifth interface, the fifth interface includes third content, the fifth interface has a third display parameter, and the method further includes: establishing, by the first electronic device, a multi-screen coordination connection to the third electronic device; and sending, by the first electronic device, a sixth interface to the third electronic device, so that the sixth interface causes the third electronic device to display a seventh interface, where the seventh interface includes third content and a second window, the second window includes the first content, and the first content in the second window has a third display parameter.

In a possible implementation of the second aspect, the sixth interface includes the first content and has the third display parameter.

In a possible implementation of the second aspect, when the user determines to modify the display style, the first electronic device generates and sends a third interface to the second electronic device. In addition, when the user determines not to modify the display style, the first electronic device sends the first interface to the second electronic device, where the first interface causes the second electronic device to display an eighth interface, the eighth interface includes the second content and the third window, and the third window includes the first interface.

In a possible implementation of the second aspect, the first interface of the first electronic device includes at least one of a display desktop, a left slide display interface, a drop-down menu, and an application display interface of the first electronic device.

A third aspect of this application provides an electronic device, including: a memory, storing instructions; and a processor, where the processor is coupled to the memory. When program instructions stored in the memory are executed by the processor, the electronic device performs the inter-device screen coordination method provided in the first aspect or the second aspect.

A fourth aspect of this application provides a readable medium, where the readable medium stores instructions, and when the instructions run on the readable medium, the readable medium performs the inter-device screen coordination method provided in the first aspect or the second aspect.

Embodiments of this application are further described in detail below with reference to the accompanying drawings.

To resolve a problem that display styles of two electronic devices in the foregoing screen projection process are inconsistent, this application provides a screen projection solution. In the screen projection solution in the embodiments of this application, an electronic device modifies a display style of to-be-projected display content according to a display style of a screen-projected device, and then performs screen projection. A display style of the electronic device may be represented by using a display parameter, where the display parameter includes at least one of a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, and a control attribute. A display interface described in this application has a display parameter, which may mean that display content on the display interface is displayed according to a specific parameter.

<FIG> shows a screen coordination system according to some embodiments of this application.

Specifically, as shown in <FIG>, the screen coordination system includes a first electronic device <NUM>, a second electronic device <NUM>, and a server <NUM>. The first electronic device <NUM> can separately perform wireless communication with the second electronic device <NUM> and the server <NUM>. When the first electronic device <NUM> projects a screen to the second electronic device <NUM>, the first electronic device <NUM> may obtain a display parameter of a current display interface <NUM> of the second electronic device <NUM> from the second electronic device <NUM>. Then, the first electronic device <NUM> generates a projection interface <NUM>, and display content of the projection interface <NUM> is the same as display content of a display interface <NUM> currently displayed on the first electronic device <NUM>. However, the first electronic device <NUM> adjusts, according to the obtained display parameter of the second electronic device <NUM>, a display parameter of the projection interface <NUM> to be the same as that sent by the second electronic device <NUM>, so that a display style of the projection interface <NUM> is consistent with a display style of the display interface <NUM> of the second electronic device <NUM>. Then, the first electronic device projects the display style-adjusted projection interface <NUM> to the second electronic device <NUM>, and in this process, an original display style of the current display interface <NUM> of the first electronic device <NUM> may not be changed.

It may be understood that, in some embodiments of this application, the display parameter may include parameters such as a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, and a control attribute that are of a character being used in the display interface <NUM> of the second electronic device <NUM>. Details are described in the following. It may be understood that, for some electronic devices, such as a mobile phone or a tablet computer, a font style, a font size, a font color, an icon color, an icon size, a background color, a background pattern, a control attribute, or the like may also be included in a theme mode, for example, an elderly-person mode (simplified mode), a dark mode, or the like. The control herein may include an icon, a key, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, and the like that are on the display interface <NUM> of the first electronic device <NUM>. The control attribute may include a size, a position, an arrangement order, whether to display, and the like of the control.

When the first electronic device <NUM> does not have a display function represented by the display parameter of the second electronic device <NUM>, for example, when the first electronic device <NUM> does not have a display function corresponding to a parameter such as a font size, a font style, a background pattern, or a background color in the display parameter, the first electronic device <NUM> may further obtain the foregoing missing display function by using the server <NUM>. The server <NUM> may be configured to store and update a display function, and send the stored or updated display function to the first electronic device <NUM> in response to a request of the first electronic device <NUM>.

As shown in <FIG>, the server <NUM> may collect and update the display function. For example, the server <NUM> may collect, from each electronic device (such as each second electronic device <NUM>) or from each font size, font style, background pattern, background color, and control attribute, or a developer of a theme mode, various display functions included in different display styles (for example, a developer registers or uploads a font size, a font style, a background pattern, a background color, a control attribute, and a theme mode in an application store of the server <NUM>; in another example, the server <NUM> requests each electronic device to report a font size, a font style, a background pattern, a background color, a control attribute, and a theme mode that are stored in the electronic device). The server <NUM> may further send, to the first electronic device <NUM> based on a request of the first electronic device <NUM> or in a manner of periodically pushing, a newly collected display style parameter such as a font size, a font style, a background pattern, a background color, a control attribute, and a theme mode.

In addition, it may be understood that, in this embodiment of this application, a local screen projection region of the first electronic device <NUM> in the second electronic device <NUM> may be a local screen projection region that is in a screen of the second electronic device <NUM> and that has a same size as the display interface <NUM> or the screen of the first electronic device <NUM>. For example, the display interface on the mobile phone is projected to a local screen projection region of a tablet computer whose screen size is greater than that of the mobile phone. Alternatively, the display interface of the electronic device may be reduced and projected to the second electronic device <NUM>, for example, in an application scenario in which a region in which the second electronic device <NUM> receives screen projection or the screen size of the second electronic device <NUM> may be smaller than the size of the display interface <NUM> of the first electronic device <NUM>. In addition, the first electronic device <NUM> may also simultaneously project the display interface <NUM> on the screen to a plurality of second electronic devices <NUM>, and separately adapt to a display style of each second electronic device <NUM> for screen projection.

<FIG> respectively show a plurality of screen projection scenarios. In the scenario shown in <FIG>, for example, the first electronic device <NUM> is the mobile phone <NUM>, and the second electronic device <NUM> is the tablet computer <NUM>. The mobile phone <NUM> performs the foregoing multi-screen coordination display with the tablet computer <NUM>. That is, the mobile phone <NUM> displays the display interface <NUM> in a local screen projection region of the display interface <NUM> on the tablet computer <NUM>. A size of the local screen projection region is the same as the size of the current display interface <NUM> of the mobile phone <NUM>. During screen projection, the mobile phone <NUM> may obtain the display parameter of the display interface <NUM> of the tablet computer <NUM>, adjust the display parameter of the display interface <NUM> according to the obtained display parameter of the tablet computer <NUM>, so as to adjust the display style of the display interface <NUM>. For example, in <FIG>, the mobile phone <NUM> may generate a projection interface <NUM> in a non-display mode (that is, invisible to a user). Display content of the projection interface <NUM> is the same as that of the display interface <NUM>, and a font style of the projection interface <NUM> is modified from regular script to Song typeface, a background color is modified from pink to white, a background pattern is modified from a ripple pattern to a no ripple pattern, and the current display interface <NUM> in the screen of the mobile phone <NUM> is kept unchanged. Finally, the display-style-modified projection interface <NUM> is projected to the local screen projection region of the tablet computer <NUM>. It may be learned from <FIG> that the display style of the projection interface <NUM> of the mobile phone <NUM> displayed on the display interface <NUM> of the tablet computer <NUM> is consistent with the display style of the display interface <NUM> of the tablet computer <NUM>.

In the scenario shown in <FIG>, for example, the first electronic device <NUM> and the second electronic device <NUM> are respectively the mobile phone <NUM> and the tablet computer <NUM>. In addition, the mobile phone <NUM> performs multi-screen coordination display with the tablet computer <NUM>. An instant messaging application (Application, APP) is displayed on the current display interface <NUM> of the mobile phone, and a display style of the current display interface <NUM> of the tablet computer <NUM> is an elderly-person mode (simplified mode). After the display parameter obtained by the mobile phone <NUM> from the tablet computer <NUM> indicates the elder-person mode, the mobile phone <NUM> may create a projection interface <NUM> (invisible to the user in a non-display mode) whose display content is the same as that of the current display interface <NUM> of the mobile phone <NUM>; and corresponding to the elder-person mode, the mobile phone <NUM> adjusts a font size of a character in the projection interface <NUM> to be larger, modifies a font style from regular script to Song typeface, modifies a background color from pink to white, modifies a background pattern from a ripple pattern to a no ripple pattern, and simplifies display content of the current instant messaging APP. For example, a search bar <NUM> in the instant messaging APP in the projection interface <NUM> is set to not to be displayed, and at the same time, a content preview of the "work group" in a communication column <NUM> is set to not to be displayed (it may be understood that in another embodiment, text content in the work group may be reduced), and finally, the display-style-modified projection interface <NUM> is projected to a local screen projection region of the tablet computer <NUM>. It may be learned from <FIG> that the display style of the projection interface <NUM> of the mobile phone <NUM> displayed on the display interface <NUM> of the tablet computer <NUM> is consistent with the display style of the display interface <NUM> of the tablet computer <NUM>.

<FIG> is similar to the scenario shown in <FIG>, except that the display style of the tablet computer <NUM> is a dark mode. When the mobile phone <NUM> obtains, from the tablet computer <NUM>, a display parameter indicating a dark color mode or an obtained display parameter includes a background color, an icon color, a font color, and the like, the mobile phone <NUM> may also create a projection interface <NUM> (invisible to the user in the non-display mode) whose display content is the same as that of the current display interface <NUM> of the mobile phone <NUM>; and corresponding to the dark color mode, the mobile phone <NUM> sets text content of the instant messaging APP in the projection interface <NUM> and an icon in the communication column <NUM> to a light color, such as white, and changes the background color to the same dark color as the display interface <NUM> of the tablet computer <NUM>. Finally, the display-style-modified projection interface <NUM> is projected to the local screen projection region of the tablet computer <NUM>. It may be learned from <FIG> that the display style of the projection interface <NUM> of the mobile phone <NUM> displayed on the display interface <NUM> of the tablet computer <NUM> is consistent with the display style of the display interface <NUM> of the tablet computer <NUM>.

In the scenario shown in <FIG>, for example, the first electronic device <NUM> is a mobile phone, and the second electronic device <NUM> is a smartwatch. A screen of the smartwatch <NUM> is smaller than a screen of the mobile phone <NUM> or a size of the display interface <NUM> on the mobile phone <NUM>. When the mobile phone <NUM> projects the display interface <NUM> to a local screen projection region of the display interface <NUM> of the smartwatch <NUM>, the display interface <NUM> may be reduced at an equal proportion, and then sent to the smartwatch <NUM> for display. Specifically, during screen projection, the mobile phone <NUM> obtains a display parameter of the smartwatch <NUM> and size information of a local screen projection region that is used by the smartwatch <NUM> for screen projection, and the mobile phone <NUM> adjusts the display parameter of the display interface <NUM> according to the display parameter of the watch <NUM>, so as to adjust a display style of the display interface <NUM>. For example, as shown in <FIG>, a font in the display interface <NUM> of the smartwatch <NUM> is Song typeface, and a font in the display interface <NUM> of the mobile phone <NUM> is regular script. According to the font parameter in the display parameter, the mobile phone <NUM> may modify the font style in the generated projection interface <NUM> from regular script to Song typeface, and then reduce the projection interface <NUM> at an equal proportion according to the obtained size information of the local screen projection region and project the projection interface <NUM> to the local screen projection region of the display interface <NUM> of the smartwatch <NUM>. It can be learned from <FIG> that the display style of the projection interface <NUM> of the mobile phone <NUM> displayed on the display interface <NUM> of the smartwatch <NUM> is consistent with a display style of the display interface <NUM> of the smartwatch <NUM>. In addition, it may be understood that, after generating the projection interface <NUM>, the mobile phone <NUM> may also directly send the projection interface <NUM> to the smartwatch <NUM>. The smartwatch <NUM> reduces the projection interface <NUM> according to the size of the local screen projection region that is used by the smartwatch <NUM> for screen projection, and displays the projection interface <NUM> on the display interface <NUM> of the smartwatch <NUM>.

In the scenario shown in <FIG>, a scenario in which a display interface of the first electronic device <NUM> is simultaneously projected to a plurality of second electronic devices <NUM> is disclosed. For example, the display interface <NUM> of the mobile phone <NUM> is simultaneously projected to a smartwatch <NUM>-<NUM> and an in-vehicle infotainment <NUM>-<NUM>. As shown in <FIG>, during screen projection, the mobile phone <NUM> may receive respective corresponding display parameters from the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>, and then create, according to the display parameters of the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>, a first projection interface <NUM> and a second projection interface <NUM> that are respectively corresponding to the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>, and project the created first projection interface <NUM> and second projection interface <NUM> to the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>, respectively. Specifically, as shown in <FIG>, a font of a character in the display interface <NUM> of the mobile phone <NUM> is regular script, and a background color is pink. A font of a character in the display interface <NUM> of the smartwatch <NUM>-<NUM> is STCaiyun, and a background color is white. A font of a character in a display interface <NUM> of the in-vehicle infotainment <NUM>-<NUM> is Song typeface, and a background color is white. Therefore, when the first projection interface <NUM> is generated, the mobile phone modifies the font style in the first projection interface <NUM> from regular script to STCaiyun, modifies the background color to white, and then projects the display-style-modified first projection interface <NUM> to the local screen projection region of the display interface <NUM> of the smartwatch <NUM>-<NUM> in an equal proportion scaling manner. In addition, the mobile phone <NUM> may modify the font style in the second projection interface <NUM> from regular script to Song typeface, and then project the display-style-modified second projection interface <NUM> to the local screen projection region of the display interface <NUM> of the in-vehicle infotainment <NUM>-<NUM>. It may be learned from <FIG> that, after screen projection, display styles of the first projection interface <NUM> and the second projection interface <NUM> that are respectively displayed by the two electronic devices are respectively consistent with the display styles of the display interface <NUM> and the display interface <NUM> of the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>.

The first electronic device <NUM> and the second electronic device <NUM> in this application may be various computing devices that can communicate with each other. For example, the first electronic device <NUM> and the second electronic device <NUM> each may include but are not limited to a laptop computer, a desktop computer, a tablet computer, a mobile phone, a server, a wearable device, a head-mounted display, a mobile e-mail device, an in-vehicle infotainment device, a portable game console, a portable music player, a reader device, a television that is embedded or coupled with one or more processors, or another electronic device that can access a network.

In the following description, for ease of description, the technical solution of this application is described by using an example in which the first electronic device <NUM> is the mobile phone <NUM>, and the second electronic device <NUM> is the tablet computer <NUM>. For ease of description, the following uses multi-screen coordination display between the mobile phone <NUM> and the tablet computer <NUM> as an example for description. However, it may be understood that the screen projection solution in this application is applicable to a screen projection function between any electronic devices.

<FIG> is a schematic structural diagram of the mobile phone <NUM> or the tablet computer <NUM>.

As shown in <FIG>, the mobile phone <NUM> or the tablet computer <NUM> may include a processor <NUM>, an external memory interface <NUM>, an internal memory <NUM>, a universal serial bus (universal serial bus, USB) interface <NUM>, a charging management module <NUM>, a power management module <NUM>, a battery <NUM>, an antenna <NUM>, an antenna <NUM>, a wireless communication module <NUM>, an audio module <NUM>, a sensor module <NUM>, a key <NUM>, a camera <NUM>, a display interface <NUM>, and a subscriber identity module (subscriber identification module, SIM) card interface <NUM>.

It may be understood that a structure shown in this embodiment of the present invention does not constitute a specific limitation on the mobile phone <NUM> and the tablet computer <NUM>. In some other embodiments of this application, the mobile phone <NUM> and the tablet computer <NUM> may include more or fewer components than those shown in the figure, or combine some components, or split some components, or have different component arrangements. The components shown in the figure may be implemented by hardware, software, or a combination of software and hardware.

The processor <NUM> may include one or more processing units, and a memory may be further disposed in the processor <NUM> to store an instruction and data. If the processor <NUM> needs to use the instruction or the data again, the instruction or the data may be directly invoked from the memory.

The USB interface <NUM> is a USB-compliant interface, and may be specifically a mini USB interface, a micro USB interface, a USB Type C interface, or the like.

The charging management module <NUM> is configured to receive a charging input from a charger. The power management module <NUM> is configured to connect to the battery <NUM>, the charging management module <NUM>, and the processor <NUM>. A wireless communication function of each of the mobile phone <NUM> and the tablet computer <NUM> may be implemented by using the antenna <NUM>, the antenna <NUM>, the mobile communication module <NUM>, the wireless communication module <NUM>, the modem processor, the baseband processor, and the like.

The antenna <NUM> and the antenna <NUM> are configured to transmit or receive an electromagnetic wave signal.

The mobile communication module <NUM> can provide a solution for wireless communication including <NUM>/<NUM>/<NUM>/<NUM> and the like to be applied to the mobile phone <NUM> and the tablet computer <NUM>.

The wireless communication module <NUM> can provide a solution for wireless communication including a wireless local area network (wireless local area networks, WLAN) (such as a Wi-Fi network), Bluetooth (bluetooth, BT), a global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), a near field communication technology (near field communication, NFC), an infrared technology (infrared, IR) and the like to be applied to the mobile phone <NUM> and the tablet computer <NUM>. The wireless communication module <NUM> may be one or more devices that integrate at least one communication processing module.

It may be understood that, in this embodiment of the present invention, the mobile phone <NUM> and the tablet computer <NUM> may communicate with the tablet computer <NUM> and the server <NUM> by using the mobile communication module <NUM> or the wireless communication module <NUM>. Multi-screen coordination display is performed between the mobile phone <NUM> and the tablet computer <NUM>, and after a multi-screen coordination display request is sent to the tablet computer <NUM>, a window of the mobile phone <NUM> is displayed on the tablet computer <NUM>. In addition, the mobile phone <NUM> may further obtain a display parameter from the tablet computer <NUM>, and obtain a missing display function from the server <NUM>.

The mobile phone <NUM> implements a display function by using the GPU, the display screen <NUM>, the application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen <NUM> and the AP. The GPU is configured to perform mathematical and geometric calculation, and is configured to render graphics. The processor <NUM> may include one or more GPUs, and execute program instructions to generate or change display information.

The display screen <NUM> is configured to display an image, a video, and the like. The display screen <NUM> includes a display panel. In some embodiments, the mobile phone <NUM> and the tablet computer <NUM> may each include one or N display screens <NUM>, where N is a positive integer greater than <NUM>.

The mobile phone <NUM> can implement a photographing function by using the ISP, the camera <NUM>, the video codec, the GPU, the display screen <NUM>, the application processor, and the like.

The external memory interface <NUM> may be configured to connect to an external storage card such as a micro SD card, to extend a storage capability of the mobile phone <NUM>. The external storage card communicates with the processor <NUM> by using the external memory interface <NUM>, to implement a data storage function, for example, storing a file such as a music or a video in the external storage card.

The internal memory <NUM> may be configured to store computer executable program code, and the executable program code includes instructions. The internal memory <NUM> may include a program storage area and a data storage area. The program storage area may store an operating system, an application required by at least one function (such as a voice playing function and an image playing function), and the like. The data storage area may store data (such as audio data and an address book) created during use of the mobile phone <NUM>, and the like. In addition, the internal memory <NUM> may include a high-speed random access memory, and may further include a non-volatile memory, for example, at least one disk storage device, a flash memory device, or a universal flash storage (universal flash storage, UFS). The processor <NUM> executes various functional applications and data processing of the mobile phone <NUM> and the tablet computer <NUM> by running an instruction stored in the internal memory <NUM> and/or an instruction stored in the memory disposed in the processor. For example, in this embodiment of the present invention, the internal memory <NUM> may be configured to store a display parameter.

The mobile phone <NUM> and the tablet computer <NUM> can implement an audio function, for example, music playback and recording, by using the audio module <NUM>, the speaker 170A, the phone receiver 170B, the microphone 170C, the headset interface 170D, the application processor, and the like, for example, music playing and audio recording.

The audio module <NUM> is configured to convert digital audio information into an analog audio signal for output, and is also configured to convert analog audio input into a digital audio signal. The audio module <NUM> may be further configured to encode and decode an audio signal.

The key <NUM> includes a power key, a volume key, and the like. The key <NUM> may be a mechanical key, or a touch-type key. The mobile phone <NUM> may receive key input, generate key signal input related to a user setting and function control of the mobile phone <NUM>.

The SIM card interface <NUM> is configured to connect to a SIM card.

<FIG> is a schematic structural diagram of a screen coordination system of a mobile phone <NUM>.

As shown in <FIG>, the mobile phone <NUM> may include a display system service <NUM>. The display system service <NUM> is used to obtain display content of a view system of the mobile phone <NUM>. The display content may be an application interface, or may be a view, for example, a view of a main interface of the mobile phone.

The display system service <NUM> is a program, a routine, or a process that executes a specified system function, so as to support another program, especially a bottom-layer (close to hardware) program. For example, in this embodiment of the present invention, the display system service <NUM> shown in <FIG> may be used to: manage a current display interface and a projection interface that run on the mobile phone, and set a display parameter such as a font size, a font style, a background pattern, a background color, and a control or a theme mode for the current display interface and the projection interface of the mobile phone <NUM>. When a user opens the current display interface on the mobile phone, the display system service <NUM> may read the display parameter and another application resource from a memory of the mobile phone to configure the current display interface. When a consistency display mode is enabled on the mobile phone, a display style of the current display interface of the mobile phone <NUM> is font size <NUM>, font style <NUM>, background pattern <NUM>, and background color <NUM>. The display system service <NUM> may create a projection interface whose display content is the same as that of the current display interface. By using the display parameter such as font size <NUM>, font style <NUM>, background pattern <NUM>, and background color <NUM> obtained from the tablet computer <NUM>, the display style of the projection interface is modified.

The following describes the screen projection technical solution of this application with reference to <FIG> and <FIG> to <FIG>.

It may be understood that an example in which the instant messaging APP is displayed on the display interface <NUM> of the mobile phone <NUM> is used for description herein, and the instant messaging APP herein is merely exemplary. The technical solutions of this application are applicable to display interfaces of various applications including system applications on the mobile phone <NUM>, and are not limited herein. In addition, the display interface <NUM> may further be a display desktop of the mobile phone <NUM>, a drop-down menu of the mobile phone <NUM>, an interface displayed after a left slide on the mobile phone <NUM>, or the like.

Specifically, referring to the scenarios shown in <FIG>, as shown in <FIG> and <FIG>, a process in which the mobile phone <NUM> projects the current display interface <NUM> to the tablet computer <NUM> includes the following steps:.

The mobile phone <NUM> establishes a communication connection to the tablet computer <NUM>, and sends a multi-screen collaboration request to the tablet computer <NUM>.

For example, the mobile phone <NUM> may communicate with the tablet computer <NUM> in a wireless communication manner such as Bluetooth, Wi-Fi, or NFC. In some embodiments, the mobile phone <NUM> may alternatively be communicatively connected to the tablet computer <NUM> in a wired communication manner. For example, the mobile phone <NUM> is communicatively connected to the tablet computer <NUM> by using a data cable and a universal serial bus (Universal Serial Bus, USB) interface.

Before or after the communication connection is established between the mobile phone <NUM> and the tablet computer <NUM>, the user may enable the multi-screen coordination function of the mobile phone <NUM>, as shown in (a) and (b) in <FIG>. After the user enables the multi-screen coordination display function of the mobile phone <NUM>, the user may choose to send a multi-screen coordination display request to the tablet <NUM> that is communicatively connected to the mobile phone <NUM>.

The mobile phone <NUM> determines whether a consistency display mode is enabled. If it is enabled, the mobile phone <NUM> enters S604. If it is not enabled, enter S603.

The mobile phone <NUM> may configure a corresponding parameter for enabling/disabling the consistency display mode. For example, the mobile phone <NUM> configures the consistency display mode as a parameter name consistenceDisplayMode by using the display system service <NUM>, configures a parameter value corresponding to enabling of the consistency display mode as <NUM>, and configures a parameter value corresponding to disabling of the consistency display mode as <NUM>, where the parameter and the parameter values are stored in the memory of the mobile phone <NUM>. When the mobile phone <NUM> sends a multi-screen coordination display request to the tablet computer, the mobile phone <NUM> queries the parameter consistenceDisplayMode and the parameter value corresponding to the parameter. If it is found that the parameter value corresponding to the consistenceDisplayMode is <NUM>, the mobile phone <NUM> determines that the consistency display mode is enabled. If it is found that the parameter value corresponding to the consistenceDisplayMode is <NUM>, the mobile phone <NUM> determines that the consistency display mode is not enabled.

In some embodiments of this application, as shown in <FIG>, the mobile phone <NUM> may configure, in system settings of the mobile phone <NUM>, an option <NUM> for enabling or disabling the consistency display mode. The user may tap the enable/disable option <NUM> to enable/disable the consistency display mode.

In some other embodiments of this application, as shown in <FIG>, the user may alternatively configure enabling/disabling of the consistency display mode by using a key disposed on the mobile phone <NUM>. For example, a side key <NUM> for enabling/disabling the consistency display mode is disposed on the mobile phone <NUM>, and the user may toggle the side key <NUM> to enable/disable the consistency display mode.

It may be understood that, when the mobile phone <NUM> sends a multi-screen coordination display request to the tablet computer <NUM>, if the mobile phone <NUM> has not enabled the consistency display mode, the mobile phone <NUM> may prompt the user whether to enable the consistency display mode. After the user acknowledges that the consistency display mode is enabled, the mobile phone <NUM> enables the consistency display mode. For example, as shown in <FIG>, when multi-screen coordination display is performed between the mobile phone <NUM> and the tablet computer <NUM>, if the mobile phone <NUM> has not enabled the consistency display mode, a prompt box <NUM> pops up on the screen of the mobile phone <NUM> to prompt the user whether to enable the consistency display mode. If the user selects yes, the mobile phone <NUM> enables the consistency display mode. Otherwise, the mobile phone <NUM> does not enable the consistency display mode.

Multi-screen collaboration is established between the mobile phone <NUM> and the tablet computer <NUM>. The first electronic device <NUM> may obtain a display parameter of the current display interface <NUM> of the second electronic device <NUM> from the second electronic device <NUM>. When the first electronic device determines that a display style of the display interface <NUM> currently displayed on the screen of the first electronic device is inconsistent with a display style of the display interface <NUM>, the first electronic device <NUM> may pop up a prompt box to prompt the user whether to enable the consistency display mode.

The mobile phone <NUM> projects the unmodified display interface <NUM> to a local screen projection region of the display interface <NUM> of the tablet computer <NUM>.

For example, as shown in <FIG> and <FIG>, the mobile phone <NUM> projects the display interface <NUM> whose display style is not modified to the local screen projection region of the display interface <NUM> of the tablet computer <NUM>.

The mobile phone <NUM> sends an instruction for obtaining a display parameter of the tablet computer <NUM> to the tablet computer <NUM>, and determines whether the tablet computer <NUM> returns the display parameter.

If the tablet computer <NUM> returns the display parameter, perform S606. Otherwise, perform S605.

It may be understood that, in some embodiments, the display parameter sent by the tablet computer <NUM> to the mobile phone <NUM> may include a font size, a font style, a background pattern, a background color, a control attribute, and another specific display style parameter, for example, a background pattern: ripple, a font style: Song typeface, a font size: large, a search bar: invisible (for example, in the elderly-person mode shown in <FIG>, the search bar <NUM> is invisible).

However, in some other embodiments, the display parameter sent by the tablet computer <NUM> to the mobile phone <NUM> may include only one identifier, and the mobile phone <NUM> stores a display style parameter corresponding to each identifier. For example, as shown in the following Table <NUM>, a background pattern corresponding to identifier <NUM> is ripple, a font style is Song typeface, and a background color is white without shading. A font style corresponding to identifier <NUM> is regular script, a font size is <NUM>, and a background color is black. A font style corresponding to identifier <NUM> is STXinwei.

As shown in the following Table <NUM>, different display parameters have different types, names, and identifiers, and correspond to different parameters.

The mobile phone <NUM> prompts whether to continue screen projection if the consistency display function cannot be completed.

For example, as shown in <FIG>, after the mobile phone <NUM> sends an instruction for obtaining the display parameter of the tablet computer <NUM> to the tablet computer <NUM>, if the mobile phone <NUM> does not receive the display parameter returned by the tablet computer <NUM>, in this case, a prompt box <NUM> may pop up on the screen of the mobile phone <NUM> to prompt the user whether to continue to perform multi-screen coordination display while the consistency display function cannot be completed. If the user selects yes, perform S603. The mobile phone <NUM> projects the display interface <NUM> whose display style is not modified to the tablet computer <NUM>. If the user selects no, the mobile phone <NUM> ends screen projection, that is, ends the operation of projecting the display interface <NUM> to the tablet computer <NUM>, and prompts the user that multi-screen coordination display ends, that is, performs S610 to end multi-screen coordination display.

It may be understood that, in some other embodiments, if the user selects no, the mobile phone <NUM> may further repeatedly perform S604, and the mobile phone <NUM> may again send an instruction for obtaining the display parameter of the tablet computer <NUM> to the tablet computer <NUM>.

In addition, it may be understood that, in some other embodiments, after establishing a communication connection to the tablet computer <NUM>, the mobile phone <NUM> may send an instruction for obtaining the display parameter to the tablet computer <NUM>. The mobile phone <NUM> does not need to send the obtaining instruction until the consistency display mode is enabled.

In addition, it may be further understood that, in some other embodiments, after the mobile phone <NUM> is communicatively connected to the tablet computer <NUM>, the tablet computer <NUM> may actively send a display parameter to the mobile phone <NUM>, and the mobile phone <NUM> does not need to send an instruction for obtaining the display parameter to the tablet computer <NUM>.

The mobile phone <NUM> determines, by using the display system service <NUM> based on the obtained display parameter, whether the mobile phone <NUM> has a display function corresponding to the display parameter.

If the mobile phone has these functions, the mobile phone creates a display-style-modified projection interface <NUM> to enter S608. If some display functions are not available, configuration files corresponding to the display functions need to be downloaded from the server to enter S607.

For example, after obtaining the display parameter, the mobile phone <NUM> may search, by using the display system service <NUM>, the memory of the mobile phone <NUM> for a configuration file of a display function corresponding to the display parameter. For example, if the display parameter obtained by the mobile phone <NUM> from the tablet computer <NUM> includes a background pattern "ripple", the display system service <NUM> of the mobile phone <NUM> may search the memory of the mobile phone <NUM> for a configuration file of the background pattern "ripple".

The mobile phone <NUM> obtains, from the server <NUM>, a configuration file corresponding to a display function not available on the mobile phone <NUM>.

For example, if the display parameter received by the mobile phone <NUM> includes the following display style parameters: a background pattern "ripple" and a font "STXinwei", where the memory of the mobile phone <NUM> does not store the font "STXinwei", the mobile phone <NUM> may send an obtaining request to the server <NUM>, and receive a configuration file of the font "STXinwei" from the server <NUM>, so as to be used in subsequent processing.

The mobile phone <NUM> creates a projection interface <NUM> whose display content is the same as that of the current display interface <NUM>, and modifies a display style of the projection interface <NUM> based on the obtained display parameter.

It may be understood that the mobile phone <NUM> may create the projection interface <NUM> in various manners. For example, the mobile phone <NUM> may generate the projection interface <NUM> in a form of creating an invisible view (View), creating a virtual screen, or picture-in-picture. When the projection interface <NUM> is created, display content of the instant messaging APP on the projection interface is enabled to be consistent with that of the instant messaging APP on the current display interface <NUM> of the mobile phone <NUM>. Specific technical details of creating the projection interface <NUM> and modifying the display style are described in detail below.

The mobile phone <NUM> projects the projection interface <NUM> to a local screen projection region of the display interface <NUM> of the tablet computer <NUM>, and the tablet computer <NUM> displays the projection interface <NUM> in the local screen projection region.

In S601 to S608, the request sent/returned between the mobile phone <NUM> and the tablet computer <NUM> and between the mobile phone <NUM> and the server <NUM> may be a socket request (socket request). The socket request is used to perform bidirectional communication between different electronic devices and between applications of different electronic devices in a wireless network or a wired network.

The following describes several manners of creating the projection interface <NUM> in S608.

The projection interface <NUM> herein may be an invisible view of the current display interface <NUM> created by the mobile phone <NUM> by using the display system service <NUM>. The mobile phone <NUM> sets the projection interface <NUM> to be invisible. After creation, display content of the projection interface <NUM> is consistent with display content of the current display interface <NUM> of the mobile phone <NUM>. Then, the mobile phone <NUM> modifies the display style of the projection interface <NUM> based on the obtained display parameter of the tablet computer <NUM> by using the display system service <NUM>. For example, the mobile phone <NUM> modifies, by using the display system service <NUM>, display parameters such as a font size, a font style, a background pattern, a background color, a control attribute, or a theme mode of the instant messaging APP in the projection interface <NUM>.

<FIG> describe specific technical details in which when the consistency display mode is enabled, the mobile phone <NUM> creates an invisible view of the current display interface <NUM> of the mobile phone <NUM> to obtain the projection interface <NUM>, and modifies the display style of the projection interface <NUM> based on the current display style of the tablet computer <NUM>.

As shown in <FIG>, the instant messaging APP displayed on the current display interface <NUM> of the mobile phone <NUM> includes a plurality of controls, for example, a title bar <NUM>, a search bar <NUM>, and a communication column <NUM>. The communication column <NUM> displays two communication objects, which are respectively "commute record" and "work group". Each communication object further includes an object icon and communication content. In <FIG>, a background color <NUM> of the instant messaging APP is set to light gray, and a background color <NUM> of communication content of each communication object in the communication column <NUM> is set to dark gray.

The mobile phone <NUM> obtains the display parameter from the tablet computer <NUM>, where the display parameter includes: a background color is white. The mobile phone <NUM> creates the projection interface <NUM> that is the same as the display interface <NUM>, and modifies the background color <NUM> of the instant messaging APP in the projection interface <NUM> and the background color <NUM> of the communication content part of the communication object in the communication column <NUM> to white. Finally, the mobile phone <NUM> projects the display-style-modified projection interface <NUM> to the display interface <NUM> of the tablet computer <NUM>.

Referring to <FIG>, in addition to the title bar <NUM>, the search bar <NUM>, and the communication column <NUM>, the instant messaging APP displayed on the current display interface <NUM> of the mobile phone <NUM> further sets a background pattern <NUM> of "ripple". The mobile phone <NUM> obtains the display parameter from the tablet computer <NUM>, where the display parameter includes: a background pattern is a default background pattern. The mobile phone <NUM> creates the projection interface <NUM> that is the same as the display interface <NUM>, modifies the background pattern in the instant messaging APP in the projection interface <NUM> to the default background pattern, that is, removes the "ripple" background pattern <NUM>, and then projects the display-style-modified projection interface <NUM> to the display interface <NUM> of the tablet computer <NUM>.

Finally, referring to <FIG>, different from <FIG> and <FIG>, in <FIG>, the instant messaging APP displayed on the current display interface <NUM> of the mobile phone <NUM> includes a title bar <NUM>, a search bar <NUM>, and a communication column <NUM>, where a font style <NUM> of a character is regular script, and a font style of the tablet computer <NUM> is Song typeface. Therefore, after the mobile phone <NUM> modifies the font style <NUM> of the character in the created projection interface <NUM> to Song typeface, the mobile phone <NUM> projects the display-style-modified projection interface <NUM> to the display interface <NUM> of the tablet computer <NUM>.

In some other embodiments, the mobile phone <NUM> may create, on a virtual screen, a projection interface <NUM> that has the same display content as the current display interface <NUM>, and project the display-style-modified projection interface <NUM> to the display interface <NUM> of the tablet computer <NUM>.

For example, the mobile phone <NUM> may create a virtual screen. The mobile phone <NUM> creates and modifies the projection interface <NUM> based on the display parameter such as a font size, a font style, a font color, an icon size, an icon color, a background pattern, a background color, and a control attribute obtained from the tablet computer <NUM>, and displays the projection interface <NUM> on the virtual screen. A screen size, resolution, and pixel density of the virtual screen may be the same as those of the current display interface <NUM> of the mobile phone <NUM>. For example, in an Android system, the mobile phone <NUM> may create a virtual screen by using a createVirtualDisplay (String, int, int, int, int, Surface, int) of the Android system display system service DisplayManager by using a screen size, resolution, pixel density, and the like of the current display interface <NUM> as parameters. In addition, in some embodiments, in order not to affect the display interface <NUM> on the mobile phone <NUM>, the virtual screen is set to be invisible to the user. In an example not forming part of the invention, to enable the user to determine whether a modified style of the display interface meets a requirement of the user, the virtual screen is set to be visible to the user. After the user acknowledges the modification, the projection interface <NUM> is sent to the tablet computer <NUM>.

In addition to the foregoing forms of creating the projection interface <NUM> by creating an invisible view and a virtual screen, as shown in <FIG>, a window <NUM> may be created in a picture-in-picture manner in the mobile phone <NUM>, and the display-style-modified projection interface <NUM> is displayed in the window <NUM>. The window <NUM> is displayed simultaneously with the original display interface <NUM>, and then the newly created window <NUM> is projected to the display interface <NUM> of the smartwatch <NUM>.

In the foregoing embodiment in which the mobile phone <NUM> is projected to the tablet computer <NUM>, the size of the local screen projection region of the tablet computer <NUM> that is used to receive screen projection is greater than or equal to the size of the screen of the mobile phone <NUM>, and differently, as shown in <FIG>, a scenario in which an electronic device (for example, the mobile phone <NUM>) with a relatively large screen size is projected to an electronic device (for example, a smartwatch) with a relatively small screen size exists.

<FIG> and <FIG> shows that, the mobile phone <NUM> and the smartwatch <NUM> implement a multi-screen coordination display function in the scenario shown in <FIG>. Specifically, as shown in <FIG> and <FIG>, the method includes the following steps.

The mobile phone <NUM> establishes a communication connection to the smartwatch <NUM>, and sends a multi-screen coordination request to the smartwatch <NUM>.

The mobile phone <NUM> determines whether a consistency display mode is enabled. If it is enabled, the mobile phone <NUM> enters S1304. If it is not enabled, enter S1303.

The mobile phone <NUM> projects the unmodified display interface <NUM> to a local screen projection region of the display interface <NUM> of the smartwatch <NUM>.

The mobile phone <NUM> sends an instruction for obtaining a display parameter of the smartwatch <NUM> to the smartwatch <NUM>, and determines whether the tablet computer <NUM> returns the display parameter.

S1305: The mobile phone <NUM> prompts whether to continue screen projection if the consistency display function cannot be completed. If the user selects no, the mobile phone <NUM> ends screen projection, that is, ends the operation of projecting the display interface <NUM> to the smartwatch <NUM>, and prompts the user that multi-screen coordination display ends, that is, performs S1310 to end multi-screen coordination display.

The mobile phone <NUM> determines, by using the display system service <NUM> based on the obtained display parameter, whether the mobile phone <NUM> has a display function corresponding to the display parameter. If the mobile phone has these display functions, the mobile phone creates a display-style-modified projection interface <NUM> to enter S1308. If some display functions are not available, configuration files corresponding to the display functions need to be downloaded from the server to enter S1307.

The mobile phone <NUM> obtains, from the server <NUM>, a configuration file corresponding to a display function not available on the mobile phone <NUM>.

S1301 to S1307 are the same as S601 to S607 described in <FIG> and <FIG>.

The mobile phone <NUM> creates a projection interface <NUM> whose display content is the same as that of the current display interface <NUM>, and modifies a display style of the projection interface <NUM> based on the obtained display parameter.

For example, a font style of the display interface <NUM> of the mobile phone <NUM> is regular script, and the display parameter returned by the smartwatch <NUM> includes a font style Song typeface, and the mobile phone <NUM> modifies the font style of the projection interface <NUM> to regular script. In some other embodiments, the display parameter may further include another display style parameter such as a font size, a font style, a background pattern, a background color, and a control. For a specific process herein, references may be made to the foregoing modification of the display style and creation of the projection interface.

The mobile phone <NUM> projects the projection interface <NUM> to a local screen projection region of the display interface <NUM> of the smartwatch <NUM>, and the smartwatch <NUM> displays the projection interface <NUM> in a reduced manner according to a size of the local screen projection region.

For example, a screen width and height of the smartwatch <NUM> are respectively <NUM> and <NUM>, the size of the local screen projection region in the screen of the smartwatch <NUM> is <NUM> in width and <NUM> in height, and a width and a height of the mobile phone <NUM> are respectively <NUM> and <NUM>. After the mobile phone <NUM> projects the projection interface <NUM> to the local screen projection region of the display interface <NUM> of the smartwatch <NUM>, the width and the height of the projection interface <NUM> may be scaled to <NUM> and <NUM> according to the width and the height of the local screen projection region of the display interface <NUM> of the smartwatch <NUM>.

That the smartwatch <NUM> displays the projection interface <NUM> in a reduced manner according to the size of the local screen projection region as described in S1309 may be completed at the mobile phone <NUM>. For example, when the mobile phone <NUM> obtains the display parameter from the smartwatch <NUM>, the mobile phone <NUM> may further simultaneously obtain the size of the local screen projection region of the display interface <NUM> of the smartwatch <NUM>. Then, the mobile phone <NUM> may create a projection interface <NUM> that has a same size as the local screen projection region of the smartwatch <NUM>. After the display style of the projection interface <NUM> is modified, the projection interface <NUM> that has a same size as the local screen projection region of the smartwatch <NUM> is projected to the smartwatch <NUM>.

It may be understood that in another embodiment, in addition to reducing the projection interface <NUM> and then projecting it to the second electronic device <NUM>, the mobile phone <NUM> may further enlarge the projection interface <NUM> and then project it.

For example, when the second electronic device <NUM> is a smart television <NUM>, a screen width and height of the smart television <NUM> are <NUM> and <NUM> respectively, a size of a local screen projection region in the screen of the smart television <NUM> is <NUM> in width and <NUM> in height, and the width and the height of the mobile phone <NUM> are <NUM> and <NUM> respectively. After the mobile phone <NUM> projects the projection interface <NUM> to the screen of the smart television <NUM>, the width and the height of the projection interface <NUM> may be scaled to <NUM> and <NUM> according to the width and the height of the local screen projection region in the screen of the smart television <NUM>.

In addition, the mobile phone <NUM> may further project the display interface <NUM> to a plurality of second electronic devices <NUM>. In this case, the mobile phone <NUM> creates a plurality of projection interfaces for the display interface <NUM>, and separately projects the plurality of projection interfaces to the plurality of second electronic devices <NUM>. To distinguish between the plurality of projection interfaces, when the projection interfaces are created, the mobile phone <NUM> configures one projection interface Id (Display Id) for each projection interface. In this way, the mobile phone <NUM> searches for and manages the projection interfaces by using the projection interface IDs of the projection interfaces when the mobile phone <NUM> performs screen projection on the plurality of second electronic devices <NUM>.

Referring to <FIG>, the following describes a process in which the mobile phone <NUM> projects the display interface <NUM> to the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>. A difference from the process described in <FIG> and <FIG> lies in that the mobile phone <NUM> needs to simultaneously create the first projection interface <NUM> and the second projection interface <NUM> of the display interface <NUM>. As shown in <FIG> and <FIG>, the method specifically includes the following steps.

The mobile phone <NUM> communicates with the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>, and sends a multi-screen coordination request to the smartwatch <NUM> and the in-vehicle infotainment <NUM>-<NUM>.

The mobile phone <NUM> determines whether a consistency display mode is enabled. If it is enabled, the mobile phone <NUM> enters S1404. If it is not enabled, enter S1403.

The mobile phone <NUM> projects the unmodified display interface <NUM> to the display interface <NUM> of the smartwatch <NUM>-<NUM> and a local screen projection region of the display interface <NUM> of the in-vehicle infotainment <NUM>-<NUM>.

The mobile phone <NUM> sends an instruction for obtaining a display parameter to the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>- <NUM>, and determines whether the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM> return the display parameter.

S1405: The mobile phone <NUM> prompts whether to continue screen projection if the consistency display function cannot be completed. If the user selects no, the mobile phone <NUM> ends screen projection, that is, ends the operation of projecting the display interface <NUM> to the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>, and prompts the user that multi-screen coordination display ends, that is, performs S1410 to end multi-screen coordination display.

The mobile phone <NUM> determines, by using the display system service <NUM> based on the obtained display parameter, whether the mobile phone <NUM> has a display function corresponding to the display parameter. If the mobile phone has these functions, the mobile phone creates a display-style-modified first projection interface <NUM> and second projection interface <NUM> to enter S1408. If some display functions are not available, configuration files corresponding to the display functions need to be downloaded from the server to enter S1407.

The mobile phone <NUM> obtains, from the server <NUM>, a configuration file corresponding to a display function not available on the mobile phone <NUM>.

S1401 to S1407 are the same as S601 to S607 described in <FIG> and <FIG>.

The mobile phone <NUM> separately creates a first projection interface <NUM> and a second projection interface <NUM> that have the same display content as the current display interface <NUM>, and separately modifies a display style of the first projection interface <NUM> and that of the second projection interface <NUM> based on different display parameters of the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM>.

For example, the display parameters of the smartwatch <NUM>-<NUM> and the in-vehicle infotainment <NUM>-<NUM> may be as follows: A background color is white, a font style is Song typeface, and in this case, a display style of the display interface <NUM> of the mobile phone <NUM> is: A background color is gray and a font style is regular script, the mobile phone <NUM> separately creates the first projection interface <NUM> and the second projection interface <NUM> by using the display system service <NUM>, the first projection interface <NUM> is configured to be projected to the smartwatch <NUM>-<NUM>, and the second projection interface <NUM> is configured to be projected to the in-vehicle infotainment <NUM>-<NUM>. The mobile phone <NUM> collectively modifies, by using the display system service <NUM>, the display style of the first projection interface <NUM> and that of the second projection interface <NUM> to that a background color is white, and a font style is Song typeface.

The mobile phone <NUM> projects the first projection interface <NUM> to the local screen projection region of the display interface <NUM> of the smartwatch <NUM>, and projects the second projection interface <NUM> into the local screen projection region of the display interface <NUM> of the in-vehicle infotainment <NUM>-<NUM>.

<FIG> is another method flowchart of screen coordination display in the screen coordination system shown in <FIG> according to some other embodiments of this application. Specifically, as shown in <FIG>, the method includes the following steps.

A first electronic device establishes a multi-screen coordination connection to a second electronic device.

For a manner of establishing the multi-screen coordination connection, refer to S601 for the process of establishing the multi-screen coordination connection between the mobile phone <NUM> and the tablet computer <NUM>, for example, the first electronic device may be the mobile phone <NUM>, and the second electronic device may be the tablet computer <NUM>. The mobile phone <NUM> communicates with the tablet computer <NUM>, and sends a multi-screen collaboration request to the tablet computer <NUM>.

In addition, it may be understood that the second electronic device may alternatively be the smartwatch <NUM>-<NUM> or the in-vehicle infotainment <NUM>-<NUM> in <FIG>.

The first electronic device displays a first interface, where the first interface includes first content, and the first interface has a first display parameter.

For example, as shown in <FIG>, the first interface herein may be the display interface <NUM> of the mobile phone <NUM>, and the display interface <NUM> includes a title bar, a search bar, a communication column, and the like, that is, the first content. In addition, a font of a character in the display interface <NUM> is regular script, a background color is pink, and a background pattern is ripple, that is, the first display parameter.

In another example, as shown in <FIG>, the first content in the display interface <NUM> of the mobile phone <NUM> may also include a contact icon, a contact name, reminder content, a cancel key, a switch to voice key, and the like. In this case, the first display parameter includes parameters for example, a font is regular script, and a background color is pink in the display interface <NUM>.

The second electronic device displays a second interface, where the second interface includes second content, and the second interface has a second display parameter.

For example, as shown in <FIG>, the second interface herein may be the display interface <NUM> of the tablet computer <NUM>, and the display interface <NUM> includes: settings, power consumption ranking, and the like, that is, the second content. In addition, a font of a character in the display interface <NUM> is Song typeface, and a background color is white, that is, the second display parameter.

In another example, as shown in <FIG>, the second interface may alternatively be the display interface <NUM> of the smartwatch <NUM>-<NUM>, including date, time, and the like, that is, the second content. In this case, the second display parameter includes that a font of a character is STCaiyun, and a background color is white in the display interface <NUM> of the smartwatch <NUM>-<NUM>. The second interface may alternatively be the display interface <NUM> of the in-vehicle infotainment <NUM>-<NUM>, and the display interface <NUM> includes: music play information, music play progress, a music play key, and the like, that is, the second content. In this case, the second display parameter includes that a font of a character is Song typeface, and a background color is white in the display interface <NUM> of the in-vehicle infotainment <NUM>-<NUM>.

It may be understood that a sequence from step S1501 to step S1503 is not limited to a sequence shown in the figure, and may be any sequence. For example, the sequence may be a sequence of S1502, S1503, and S1501, or may be a sequence of S1501, S1503, and S1502, or S1501, S1503, and S1502 may be performed simultaneously.

The first electronic device sends a third interface to the second electronic device.

For example, as shown in <FIG>, the third interface may be the projection interface <NUM> generated by the mobile phone <NUM>. The mobile phone <NUM> modifies the font style in the projection interface <NUM> from regular script to Song typeface, modifies the background color to white, modifies the background pattern from a ripple pattern to a ripple-free pattern, that is, modifies them to the second display parameter, and then projects the projection interface <NUM> to the display interface <NUM> of the tablet computer <NUM>.

In another example, as shown in <FIG>, the third interface may be the first projection interface <NUM> generated by the mobile phone <NUM>. The mobile phone <NUM> uses the second display parameter, for example, the font of the character is STCaiyun, and the background color is white. The first projection interface <NUM> is modified. The third interface may alternatively be the second projection interface <NUM> generated by the mobile phone <NUM>. The mobile phone <NUM> uses the second display parameter, for example, the font of the character is Song typeface, the background color is white, and the second projection interface <NUM> is modified.

In response to the received third interface, the second electronic device displays a fourth interface, where the fourth interface includes the second content and a first window, the first window includes the first content, and the first content in the first window has the second display parameter.

For example, as shown in <FIG>, the fourth interface herein is the display interface <NUM> of the tablet computer <NUM>, and the first window is the local screen projection region in the display interface <NUM> of the tablet computer <NUM>. After receiving the projection interface <NUM> of the mobile phone <NUM>, the tablet computer <NUM> further displays the projection interface <NUM>, that is, the title bar, the search bar, the communication column, and the like, in addition to the display settings, the power consumption ranking, and the like, in the display interface <NUM>, that is, the first content. In addition, the font of the character in the first content is Song typeface, and the background color is white, and there is no background pattern, that is, the second display parameter.

In another example, as shown in <FIG>, the fourth interface herein may be the display interface <NUM> of the smartwatch <NUM>-<NUM>. After receiving the first projection interface <NUM> of the mobile phone <NUM>, the smartwatch <NUM>-<NUM> uses the second display parameter on the display interface <NUM>, for example, the font of the character is STCaiyun, the background color is white, and the first projection interface <NUM> that includes the first content is displayed.

The fourth interface herein may alternatively be the display interface <NUM> of the in-vehicle infotainment <NUM>-<NUM>. After receiving the second projection interface <NUM> of the mobile phone <NUM>, the in-vehicle infotainment <NUM>-<NUM> uses the second display parameter in the display interface <NUM>, for example, the font is Song typeface, the background color is white, and the second projection interface <NUM> that includes the first content is displayed.

<FIG> is a block diagram of a software structure of a mobile phone <NUM> according to an embodiment of the present invention.

In the layered architecture, software is divided into several layers, and each layer has a clear role and task. The layers communicate with each other by using a software interface. In some embodiments, the Android system is divided into four layers, namely, an application layer, an application framework layer, an Android runtime (Android runtime) and a system library, and a kernel layer from top to bottom.

As shown in <FIG>, the application packages may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS message.

The window manager is configured to manage a window program. The window manager may obtain a size of the display screen, determine whether there is a status bar, lock the screen, take a screenshot, and the like.

The content provider is configured to store and obtain data and make the data accessible to an application. The data may include a video, an image, an audio, calls that are made and received, a browsing history and bookmarks, an address book, and the like.

The view system may be the display system service <NUM> of the mobile phone <NUM>, and is configured to manage and modify a display style of an application of the mobile phone <NUM>. The view system obtains, according to the display style parameter included in the display parameter obtained by the mobile phone <NUM> from the tablet computer <NUM>, a display function corresponding to the display style parameter, and is configured to configure an application of the mobile phone <NUM>.

The phone manager is configured to provide a communication function of the mobile phone <NUM>, for example, call status management (including connected and hang-up).

The resource manager provides various resources such as a localized character string, an icon, an image, a layout file, and a video file for an application.

In this embodiment of the present invention, the resource manager may be further configured to store an overlay configuration file.

The notification manager enables an application to display notification information in the status bar that may be used to convey a message of a notification type, where the message may disappear automatically after a short stay without user interaction. For example, the notification manager is configured to notify a user of download completion or remind a user of a message. The notification manager may alternatively display a notification in a form of a chart or a scroll bar text in a status bar at the top of the system, for example, a notification of an application run in the background, or may display a notification in a form of a dialog window on the screen. For example, text information is prompted for in the status bar, an announcement is produced, the electronic device vibrates, or the indicator light blinks.

The Android runtime includes a core library and a virtual machine.

The core library includes two parts: one is a function that needs to be called by a java language, and the other is a core library of Android.

The application layer and the application framework layer are run in the virtual machine. The virtual machine executes java files of the application layer and the application framework layer as binary files. The virtual machine is configured to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

The system library may include a plurality of function modules, for example, a surface manager (surface manager), a media library (Media Libraries), a three-dimensional graphics processing library (for example, OpenGL ES), and a 2D graphics engine (for example, SGL).

The media library supports playback and recording in a plurality of commonly used audio and video formats, and static image files. The media library may support a plurality of audio and video coding formats, such as: MPEG4, H. <NUM>, MP3, AAC, AMR, JPG, PNG, and the like.

The three-dimensional graphics processing library is configured to implement drawing of three-dimensional graphics, image rendering, synthesis, layer processing, and the like.

The 2D graphics engine is a drawing engine for 2D graphics.

Through the descriptions of the implementations, a person skilled in the art may understand that, for the purpose of convenient and brief description, only division of the foregoing function modules is used as an example for description. In the practical application, the functions may be allocated to and completed by different function modules according to requirements. That is, an internal structure of the device is divided into different functional modules, to complete all or some of the functions described above.

In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the described apparatus embodiment is merely exemplary. For example, the module or the unit division is merely a logical function division and may be other division during actual implementation. For example, a plurality of units or components may be combined or integrated into another apparatus, or some features may be ignored or not performed. The indirect couplings or communication connections between the apparatuses or units may be implemented in electric, mechanical, or other forms.

The units described as separate parts may or may not be physically separate, and components displayed as units may be one or more physical units, that is, may be located in one position, or may be distributed on different positions.

When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such an understanding, the technical solutions of the embodiments of this application essentially, or the part contributing to the prior art, or all or some of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a device (which may be a single-chip microcomputer, a chip, or the like) or a processor (processor) to perform all or some of the steps of the methods described in the embodiments of this application. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (read only memory, ROM), a random access memory (random access memory, RAM), a magnetic disk, a compact disc, or the like.

Claim 1:
An inter-device screen coordination method, applied to a screen coordination system comprising a first electronic device (<NUM>) and a second electronic device (<NUM>), comprising:
establishing (S1501), by the first electronic device (<NUM>), a multi-screen coordination connection to the second electronic device (<NUM>);
displaying (S1502), by the first electronic device (<NUM>), a first interface (<NUM>), wherein the first interface (<NUM>) comprises first content, and the first interface (<NUM>) has a first display parameter;
displaying (S1503), by the second electronic device (<NUM>), a second interface (<NUM>), wherein the second interface (<NUM>) comprises second content, and the second interface has a second display parameter;
receiving, by the first electronic device, the second display parameter sent by the second electronic device (<NUM>), and generating the third interface based on the received second display parameter, wherein the third interface comprises the first content and has the second display parameter;
sending (S1504), by the first electronic device (<NUM>), the third interface to the second electronic device (<NUM>); and
in response to the received third interface, displaying (S1505), by the second electronic device (<NUM>), a fourth interface (<NUM>), wherein the fourth interface (<NUM>) comprises the second content and a first window, the first window comprises the first content, and the first content in the first window has the second display parameter;
the method characterised in that the third interface is an invisible view in the first electronic device (<NUM>) or the third interface is generated on an invisible virtual screen of the first electronic device (<NUM>).