Patentable/Patents/US-20260252302-A1
US-20260252302-A1

Projection Display Method and Electronic Device

PublishedAugust 27, 2026
Assigneenot available in USPTO data we have
Technical Abstract

A first electronic device displays a first interface including first content, where the first interface further includes a status bar and/or a navigation bar of the first electronic device. A second electronic device displays a first projection window including the first content, where the first projection window further includes any one of the status bar, the navigation bar, and a title bar of a projection application. The first electronic device switches from displaying the first interface to displaying a second interface, where the second interface includes second content, and the second interface does not include the status bar and the navigation bar. The second electronic device switches from displaying the first projection window to displaying a second projection window, where the second projection window includes the second content, and the second projection window does not include the status bar, the navigation bar, and the title bar.

Patent Claims

Legal claims defining the scope of protection, as filed with the USPTO.

1

displaying, by the first electronic device, a first interface comprising first content, wherein the first interface further comprises a status bar of the first electronic device and/or a navigation bar of the first electronic device; displaying, by the second electronic device, a first projection window comprising the first content, wherein the first projection window further comprises one or more of a status bar of a projection application, a navigation bar of the projection application, or a title bar of the projection application; switching, by the first electronic device, from displaying the first interface to displaying a second interface, wherein the second interface comprises second content, and the second interface does not comprise the status bar of the first electronic device nor the navigation bar of the first electronic device; and switching, by the second electronic device, from displaying the first projection window to displaying a second projection window, wherein the second projection window comprises the second content, and the second projection window does not comprise the status bar of the projection application, the navigation bar of the projection application, nor the title bar of the projection application. . A projection display method, applied to a system comprising a first electronic device and a second electronic device, wherein the first electronic device is connected to the second electronic device, and the method comprises:

2

claim 1 sending, by the first electronic device, the second content to the second electronic device; collecting, by the first electronic device, first status data of the first electronic device, and sending, by the first electronic device, the first status data to the second electronic device, wherein the first status data indicates that the first electronic device hides the status bar of the first electronic device and the navigation bar of the first electronic device; and receiving, by the second electronic device, the first status data and the second content; displaying, by the second electronic device based on the first status data, the second projection window that comprises the second content but does not comprise the status bar of the projection application, the navigation bar of the projection application, nor the title bar of the projection application. wherein the displaying, by the second electronic device, the second projection window comprises: . The method according to, wherein after the switching, by the first electronic device, from displaying the first interface to displaying the second interface, and before the switching, by the second electronic device, from displaying the first projection window to displaying the second projection window, the method further comprises:

3

claim 1 sending, by the first electronic device, the first content to the second electronic device; collecting, by the first electronic device, second status data of the first electronic device, and sending, by the first electronic device, the second status data to the second electronic device, wherein the second status data indicates that the first electronic device does not hide the status bar of the first electronic device and the navigation bar of the first electronic device; and receiving, by the second electronic device, the second status data and the first content; displaying, by the second electronic device based on the second status data, the first projection window comprising the first content, the status bar of the projection application, the navigation bar of the projection application, and the title bar of the projection application. wherein the displaying, by the second electronic device, the first projection window comprising the first content comprises: . The method according to, wherein after the displaying, by the first electronic device, the first interface comprising first content, and before the displaying, by the second electronic device, the first projection window comprising the first content, the method further comprises:

4

claim 2 collecting, by the first electronic device, status data of the first electronic device when performing landscape/portrait mode switching; or collecting, by the first electronic device, status data of the first electronic device when receiving a first preset operation of a user; or collecting, by the first electronic device, status data of the first electronic device when a display interface of the first electronic device is switched from an interface of an application to an interface of another application; or periodically collecting, by the first electronic device, status data of the first electronic device; wherein the status data of the first electronic device is the first status data or the second status data, wherein the first status data indicates that the first electronic device hides the status bar of the first electronic device and the navigation bar of the first electronic device, and the second status data indicates that the first electronic device does not hide the status bar of the first electronic device and the navigation bar of the first electronic device. . The method according to, wherein the method further comprises:

5

claim 2 collecting, by the first electronic device, the status data of the first electronic device after receiving a first message from the second electronic device; wherein the status data of the first electronic device is status data of the virtual display that is generated when the first electronic device adapts to the screen size of the second electronic device, and the status data of the virtual display is the first status data or the second status data, wherein the first status data indicates that the first electronic device hides the status bar of the first electronic device and the navigation bar of the first electronic device, and the second status data indicates that the first electronic device does not hide the status bar of the first electronic device and the navigation bar of the first electronic device; when the second electronic device performs landscape/portrait mode switching, and the first message indicates the first electronic device to update a projection interface of the virtual display in response to the landscape/portrait mode switching of the second electronic device; or when the second electronic device receives a second preset operation, and the first message indicates the first electronic device to update a projection interface of the virtual display in response to the second preset operation; and wherein the first message is sent: wherein the first message is further used to trigger the first electronic device to collect the status data of the virtual display. . The method according to, wherein the first electronic device displays the first content or the second content on a virtual display that is generated when the first electronic device adapts to a screen size of the second electronic device, and the method further comprises:

6

claim 4 wherein at least one of the first interface, the second interface, a setting interface of the first electronic device, or a notification bar of the first electronic device comprises a preset function switch; wherein the preset function switch is used to start or close a preset function, and the preset function is a function of synchronizing the status data of the first electronic device to the second electronic device by the first electronic device; and receiving, by the first electronic device, an enabling operation performed by the user on the preset function switch. wherein before the collecting status data of the first electronic device, the method further comprises: . The method according to,

7

claim 4 wherein the first status data comprises an event identifier and information about a first event, and the second status data comprises the event identifier and information about a second event; wherein the event identifier indicates functions or roles of first status information and second status information, and the functions or roles of the first status information and the second status information are: indicating to the second electronic device that the first electronic device hides or displays the status bar of the first electronic device and the navigation bar of the first electronic device; and wherein the information about the first event indicates an event of hiding the status bar of the first electronic device and the navigation bar of the first electronic device during projection from the first electronic device to the second electronic device, and the information about the second event indicates an event of displaying the status bar of the first electronic device and the navigation bar of the first electronic device during projection from the first electronic device to the second electronic device. . The method according to,

8

claim 1 the first content and the second content are interface images of a video application; or the first content and the second content are interface images of a game application. . The method according to, wherein:

9

claim 1 wherein the first interface further comprises third content, and the first electronic device displays the first content and the third content in two windows of the first interface on split screens, wherein that the first interface comprises the status bar of the first electronic device and/or the navigation bar of the first electronic device is specifically: each of the two windows of the first interface comprises the status bar of the first electronic device and/or the navigation bar of the first electronic device; and wherein the first projection window further comprises the third content, and the second electronic device displays the first content and the third content in two windows of the first projection window on split screens, wherein each of the two windows of the first projection window comprises any one of the status bar of the projection application, the navigation bar of the projection application, and the title bar of the projection application. . The method according to,

10

claim 1 wherein the second interface further comprises fourth content, and the first electronic device displays the second content and the fourth content in two windows of the second interface on split screens, wherein that the second interface does not comprise the status bar of the first electronic device and the navigation bar of the first electronic device is specifically: at least one of the two windows of the second interface does not comprise the status bar of the first electronic device and the navigation bar of the first electronic device; and wherein the second projection window further comprises the fourth content, and the second electronic device displays the second content and the fourth content in two windows of the second projection window on split screens, wherein neither of the two windows of the second projection window comprises the status bar of the projection application, the navigation bar of the projection application, and the title bar of the projection application. . The method according to,

11

a first electronic device; and a second electronic device, wherein the first electronic device is connected to the second electronic device; wherein the first electronic device is configured to display a first interface comprising first content, wherein the first interface further comprises a status bar of the first electronic device and/or a navigation bar of the first electronic device; wherein the second electronic device is configured to display a first projection window comprising the first content, wherein the first projection window further comprises one or more of a status bar of a projection application, a navigation bar of the projection application, or a title bar of the projection application; wherein the first electronic device is further configured to switch from displaying the first interface to displaying a second interface, wherein the second interface comprises second content, and the second interface does not comprise the status bar of the first electronic device nor the navigation bar of the first electronic device; and wherein the second electronic device is further configured to switch from displaying the first projection window to displaying a second projection window, wherein the second projection window comprises the second content, and the second projection window does not comprise the status bar of the projection application, the navigation bar of the projection application, nor the title bar of the projection application. . A projection system, comprising:

12

claim 11 the first electronic device is further configured to: after the switching from displaying the first interface to displaying a second interface, send the second content to the second electronic device, collect first status data of the first electronic device, and send the first status data to the second electronic device, wherein the first status data indicates that the first electronic device hides the status bar of the first electronic device and the navigation bar of the first electronic device; and the second electronic device is configured to: receive the first status data and the second content, and display, based on the first status data, the second projection window that comprises the second content but does not comprise the status bar of the projection application, the navigation bar of the projection application, and the title bar of the projection application. . The projection system according to, wherein:

13

claim 11 the first electronic device is further configured to: after displaying a first interface comprising first content, send the first content to the second electronic device, collect second status data of the first electronic device, and send the second status data to the second electronic device, wherein the second status data indicates that the first electronic device does not hide the status bar of the first electronic device and the navigation bar of the first electronic device; and the second electronic device is configured to: receive the second status data and the first content, and display, based on the second status data, the first projection window comprising the first content, the status bar of the projection application, the navigation bar of the projection application, and the title bar of the projection application. . The projection system according to, wherein:

14

claim 12 collect status data of the first electronic device when performing landscape/portrait mode switching; or collect status data of the first electronic device when receiving a first preset operation of a user; or collect status data of the first electronic device when a display interface of the first electronic device is switched from an interface of an application to an interface of another application; or periodically collect status data of the first electronic device wherein the status data of the first electronic device is the first status data or the second status data, wherein the first status data indicates that the first electronic device hides the status bar of the first electronic device and the navigation bar of the first electronic device, and the second status data indicates that the first electronic device does not hide the status bar of the first electronic device and the navigation bar of the first electronic device. . The projection system according to, wherein the first electronic device is further configured to:

15

claim 12 the first electronic device displays the first content or the second content on a virtual display that is generated when the first electronic device adapts to a screen size of the second electronic device; the first electronic device is further configured to: collect the status data of the first electronic device after receiving a first message from the second electronic device; the status data of the first electronic device is status data of the virtual display that is generated when the first electronic device adapts to the screen size of the second electronic device; the status data of the virtual display is the first status data or the second status data, wherein the first status data indicates that the first electronic device hides the status bar of the first electronic device and the navigation bar of the first electronic device, and the second status data indicates that the first electronic device does not hide the status bar of the first electronic device and the navigation bar of the first electronic device; the first message is sent when the second electronic device performs landscape/portrait mode switching, and the first message indicates the first electronic device to update a projection interface of the virtual display in response to the landscape/portrait mode switching of the second electronic device, or the first message is sent when the second electronic device receives a second preset operation; the first message indicates the first electronic device to update a projection interface of the virtual display in response to the second preset operation; and the first message is further used to trigger the first electronic device to collect the status data of the virtual display. . The projection system according to, wherein:

16

claim 14 at least one of the first interface, the second interface, a setting interface of the first electronic device, or a notification bar of the first electronic device comprises a preset function switch; the preset function switch is used to start or close a preset function, and the preset function is a function of synchronizing the status data of the first electronic device to the second electronic device by the first electronic device; and the first electronic device is further configured to: before collecting status data of the first electronic device, receive an enabling operation performed by the user on the preset function switch. . The projection system according to, wherein:

17

claim 14 the first status data comprises an event identifier and information about a first event, and the second status data comprises the event identifier and information about a second event; the event identifier indicates functions or roles of first status information and second status information, and the functions or roles of the first status information and the second status information are: indicating to the second electronic device that the first electronic device hides or displays the status bar of the first electronic device and the navigation bar of the first electronic device; and the information about the first event indicates an event of hiding the status bar of the first electronic device and the navigation bar of the first electronic device during projection from the first electronic device to the second electronic device, and the information about the second event indicates an event of displaying the status bar of the first electronic device and the navigation bar of the first electronic device during projection from the first electronic device to the second electronic device. . The projection system according to, wherein:

18

claim 11 the first content and the second content are interface images of a video application; or the first content and the second content are interface images of a game application. . The projection system according to, wherein:

19

claim 11 wherein the first interface further comprises third content, and the first electronic device displays the first content and the third content in two windows of the first interface on split screens, wherein that the first interface comprises a status bar of the first electronic device and/or a navigation bar of the first electronic device of the first electronic device is specifically: each of the two windows of the first interface comprises the status bar of the first electronic device and/or the navigation bar of the first electronic device; and wherein the first projection window further comprises the third content, and the second electronic device displays the first content and the third content in two windows of the first projection window on split screens, wherein each of the two windows of the first projection window comprises any one of the status bar of the projection application, the navigation bar of the projection application, and the title bar of the projection application. . The projection system according to,

20

claim 11 wherein the second interface further comprises fourth content, and the first electronic device displays the second content and the fourth content in two windows of the second interface on split screens, wherein that the second interface does not comprise the status bar of the first electronic device and the navigation bar of the first electronic device is specifically: at least one of the two windows of the second interface does not comprise the status bar of the first electronic device and the navigation bar of the first electronic device; and wherein the second projection window further comprises the fourth content, and the second electronic device displays the second content and the fourth content in two windows of the second projection window on split screens, wherein neither of the two windows of the second projection window comprises the status bar of the projection application, the navigation bar of the projection application, and the title bar of the projection application. . The projection system according to,

Detailed Description

Complete technical specification and implementation details from the patent document.

This application is a continuation of U.S. patent application Ser. No. 18/340,684, filed on Jun. 23, 2023, which is a continuation of International Application No. PCT/CN2021/136691, filed on Dec. 9, 2021, which claims priority to Chinese Patent Application No. 202011567127.3, filed on Dec. 25, 2020. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.

This application relates to the field of communication technologies, and in particular, to a projection display method and an electronic device.

With the development of electronic technologies and the mobile internet, a user may simultaneously own more electronic devices such as a mobile phone, a tablet computer, a personal computer (PC), and a smart home device (such as a television). A plurality of electronic devices of the user may be connected to each other for use. For example, the mobile phone of the user may be connected to the tablet computer, and screen content of the mobile phone may be projected on the tablet computer for display, showing advantages of a large screen.

In the foregoing example, the mobile phone projects a screen on the tablet computer. To improve visual experience of the user when using the mobile phone, when the mobile phone displays a user interface (UI) of an application, a status bar and a navigation bar of the mobile phone may be hidden, to implement an immersive display effect, so that the UI interface of the application occupies the entire screen of the mobile phone. However, when the tablet computer receives projection from the mobile phone, the screen content of the mobile phone that is displayed on the tablet computer cannot implement the foregoing immersive display effect. For example, the screen content of the mobile phone that is displayed on the tablet computer may include content of the status bar and the navigation bar of the mobile phone, and may further include a title bar of a projection application used to implement the foregoing projection function.

In other words, in the foregoing solution of projection from the mobile phone to the tablet computer, although the immersive display effect may be implemented on a mobile phone side, the immersive display effect cannot be implemented on the tablet computer, that is, immersive display effect synchronization between the mobile phone and the tablet computer cannot be implemented.

This application provides a projection display method and an electronic device, to implement immersive display effect synchronization between a projecting device and a projected device in a projection scenario.

According to a first aspect, this application provides a projection display method. The method is applied to a system including a first electronic device and a second electronic device, and the first electronic device is connected to the second electronic device.

The method may include: The first electronic device displays a first interface including first content, where the first interface further includes a status bar and/or a navigation bar of the first electronic device. The second electronic device displays a first projection window including the first content, where the first projection window further includes any one of the status bar, the navigation bar, and a title bar of a projection application. To be specific, when the first electronic device displays the first interface in a “non-immersive display” manner, the second electronic device may alternatively display a projection window (namely, the first projection window) of the first interface in the “non-immersive display” manner.

In addition, the first electronic device may switch from displaying the first interface to displaying a second interface, where the second interface includes second content, and the second interface does not include the status bar and the navigation bar. The second electronic device may switch from displaying the first projection window to displaying a second projection window, where the second projection window includes the second content, and the second projection window does not include the status bar, the navigation bar, and the title bar. To be specific, when the first electronic device switches from displaying the first interface in the “non-immersive display” manner to displaying the second interface in an “immersive display” manner, the second electronic device may alternatively display a projection window (namely, the second projection window) of the second interface in the “immersive display” manner.

In conclusion, according to the method in this application, immersive display effect synchronization between a projecting device (that is, the first electronic device) and a projected device (that is, the second electronic device) can be implemented in a projection scenario.

In a possible design manner of the first aspect, after the first electronic device switches from displaying the first interface to displaying the second interface, and before the second electronic device switches from displaying the first projection window to displaying the second projection window, the method in this application may further include: The first electronic device sends the second content to the second electronic device. The first electronic device collects first status data of the first electronic device, and sends the first status data to the second electronic device. The first status data indicates that the first electronic device hides the status bar and the navigation bar. The second electronic device may receive the first status data and the second content. In other words, the first electronic device may collect status data of the first electronic device, and indicate, to the second electronic device by using the status data of the first electronic device, whether the first electronic device hides the status bar and the navigation bar.

In this way, the second electronic device may display, based on the first status data, the second projection window that includes the second content but does not include the status bar, the navigation bar, and the title bar. The first status data indicates that the first electronic device hides the status bar and the navigation bar. Therefore, to implement status synchronization between the second electronic device and the first electronic device, the second electronic device may hide the status bar, the navigation bar, and the title bar, and display, in the “immersive display” manner, the second projection window that does not include the status bar, the navigation bar, and the title bar.

In another possible design manner of the first aspect, after the first electronic device displays the first interface including the first content, and before the second electronic device displays the first projection window including the first content, the method in this application further includes: The first electronic device sends the first content to the second electronic device. The first electronic device collects second status data of the first electronic device, and sends the second status data to the second electronic device. The second status data indicates that the first electronic device does not hide the status bar and the navigation bar. In other words, the first electronic device may collect status data of the first electronic device, and indicate, to the second electronic device by using the status data of the first electronic device, whether the first electronic device hides the status bar and the navigation bar.

In this way, the second electronic device may display, based on the second status data, the first projection window that includes the first content, the status bar, the navigation bar, and the title bar. The second status data indicates that the first electronic device does not hide the status bar and the navigation bar. Therefore, to implement status synchronization between the second electronic device and the first electronic device, the second electronic device may not hide the status bar, the navigation bar, and the title bar, and display, in the “non-immersive display” manner, the first projection window that includes the status bar, the navigation bar, and the title bar.

In another possible design manner of the first aspect, after the first electronic device switches from displaying the first interface to displaying the second interface, the first electronic device may alternatively switch from an immersive display state to a non-immersive display state. In other words, the first electronic device may switch from hiding the status bar and the navigation bar to not hiding (that is, displaying) the status bar and the navigation bar. In addition, the first electronic device may alternatively indicate the second electronic device to switch from the immersive display state to the non-immersive display state.

In another possible design manner of the first aspect, in a physical display projection scenario, the first electronic device may trigger the first electronic device to collect the status data of the first electronic device. This design manner describes a trigger condition or a trigger occasion for collecting, by the first electronic device, the status data of the first electronic device in the physical display projection scenario.

Specifically, the method in this application may include: collecting the status data of the first electronic device when the first electronic device performs landscape/portrait mode switching; or collecting the status data of the first electronic device when the first electronic device receives a first preset operation of a user; or collecting the status data of the first electronic device when a display interface of the first electronic device is switched from an interface of an application to an interface of another application; or the first electronic device periodically collects the status data of the first electronic device. The status data of the first electronic device is the first status data or the second status data.

In another possible design manner of the first aspect, in a virtual display projection scenario, the first electronic device displays the first content or the second content on a virtual display that is generated when the first electronic device adapts to a screen size of the second electronic device.

In the virtual display projection scenario, the second electronic device may trigger the first electronic device to collect the status data of the first electronic device. This design manner describes a trigger condition or a trigger occasion for collecting, by the first electronic device, the status data of the first electronic device in the virtual display projection scenario.

Specifically, the method in this application may further include: After receiving a first message from the second electronic device, the first electronic device collects the status data of the first electronic device. The status data of the first electronic device is status data of the virtual display. The status data of the virtual display is the first status data or the second status data.

The first message is sent when the second electronic device performs landscape/portrait mode switching, and the first message indicates the first electronic device to update a projection interface of the virtual display in response to the landscape/portrait mode switching of the second electronic device; or the first message is sent when the second electronic device receives a second preset operation, and the first message indicates the first electronic device to update a projection interface of the virtual display in response to the second preset operation.

The first message is further used to trigger the first electronic device to collect the status data of the virtual display.

In another possible design manner of the first aspect, at least one of the first interface, the second interface, a setting interface of the first electronic device, or a notification bar of the first electronic device includes a preset function switch. The preset function switch is used to start or close a preset function. The preset function is a function of synchronizing the status data of the first electronic device to the second electronic device by the first electronic device.

Before the first electronic device collects the status data of the first electronic device, the method in this application further includes: The first electronic device receives an enabling operation performed by the user on the preset function switch.

In this design manner, in a process in which the first electronic device projects a screen to the second electronic device, when the first electronic device meets the foregoing trigger condition or trigger occasion, the first electronic device cannot collect the status data of the first electronic device. Instead, the method in this application can be performed only after the preset function switch is started, and the foregoing trigger condition or trigger occasion is met.

In another possible design manner of the first aspect, the status data (for example, the first status data or the second status data) transmitted by the first electronic device to the second electronic device is specifically an immersive data structure. The data structure may include at least: an immersive event identifier tag_immersive and an immersive event value_immersive. Therefore, the second electronic device parses the immersive status data (that is, the immersive data structure) to obtain the immersive event identifier tag_immersive and the immersive event value_immersive. The immersive event identifier tag_immersive may be referred to as an event identifier for short. The immersive event value_immersive may include a first event and a second event.

Specifically, the first status data includes an event identifier and information about a first event, and the second status data includes the event identifier and information about the second event.

The event identifier indicates functions or roles of first status information and second status information, and the functions or roles of the first status information and the second status information are: indicating to the second electronic device that the first electronic device hides or displays the status bar and the navigation bar.

The information about the first event indicates an event of hiding the status bar and the navigation bar during projection from the first electronic device to the second electronic device, and the information about the second event indicates an event of displaying the status bar and the navigation bar during projection from the first electronic device to the second electronic device.

In another possible design manner of the first aspect, the first content and the second content are interface images of a video application; or the first content and the second content are interface images of a game application. In other words, the method in this application is applicable to a process in which the first electronic device projects a screen to the second electronic device in a game scenario or a video scenario.

In another possible design manner of the first aspect, the first electronic device and the second electronic device may implement multi-window projection. Specifically, the first interface further includes third content. The first electronic device may display the first content and the third content in two windows of the first interface on split screens. That the first interface includes a status bar and/or a navigation bar of the first electronic device is specifically: each of the two windows of the first interface includes the status bar and/or the navigation bar.

Correspondingly, the first projection window further includes the third content. The second electronic device may display the first content and the third content in two windows of the first projection window on split screens. Each of the two windows of the first projection window includes any one of the status bar, the navigation bar, and the title bar.

In this design manner, the first electronic device displays two windows (such as a window A and a window B) in the “non-immersive display” manner, that is, both the window A and the window B are in the non-immersive display state. In this case, the second electronic device may alternatively display, in the “non-immersive display” manner, two windows (for example, the window A and the window B) projected by the first electronic device. The first electronic device and the second electronic device may implement non-immersive state synchronization.

In another possible design manner of the first aspect, the first electronic device and the second electronic device may implement multi-window projection. Specifically, the second interface further includes fourth content, and the first electronic device may display the second content and the fourth content in two windows of the second interface on split screens. That the second interface does not include the status bar and the navigation bar is specifically: at least one of the two windows of the second interface does not include the status bar and the navigation bar.

Correspondingly, the second projection window further includes the fourth content, and the second electronic device may display the second content and the fourth content in two windows of the second projection window on split screens. Neither of the two windows of the second projection window includes the status bar, the navigation bar, and the title bar.

In this design manner, the first electronic device displays at least one of the two windows (such as the window A and the window B) in the “immersive display” manner, that is, at least one of the window A and the window B is in the immersive display state. In this case, the second electronic device may display, in the “immersive display” manner, the two windows (for example, the window A and the window B) projected by the first electronic device. The first electronic device and the second electronic device may implement immersive state synchronization.

According to a second aspect, this application provides a projection display method. The method may be applied to a first electronic device, and the first electronic device is connected to a second electronic device. In this method, the first electronic device may display a first interface including first content, where the first interface further includes a status bar and/or a navigation bar of the first electronic device. The first electronic device projects the first content to the second electronic device, and sends second status data, where the second status data indicates that the first electronic device does not hide the status bar and the navigation bar. The first electronic device may alternatively switch from displaying the first interface to displaying a second interface, where the second interface includes second content, and the second interface does not include the status bar and the navigation bar. The first electronic device projects the second content to the second electronic device, and sends first status data, where the first status data indicates that the first electronic device hides the status bar and the navigation bar.

It may be understood that for beneficial effects that can be achieved by the method according to any one of the second aspect and the possible design manners provided in the foregoing, refer to the beneficial effects in any one of the first aspect and the possible design manners of the first aspect. Details are not described herein again.

In a possible design manner of the second aspect, the method in this application may further include: collecting status data of the first electronic device when the first electronic device performs landscape/portrait mode switching. Alternatively, collecting status data of the first electronic device when the first electronic device receives a first preset operation of a user. Alternatively, collecting status data of the first electronic device when a display interface of the first electronic device is switched from an interface of an application to an interface of another application. Alternatively, the first electronic device periodically collects status data of the first electronic device.

The status data of the first electronic device is the first status data or the second status data.

In another possible design manner of the second aspect, the first electronic device displays the first content or the second content on a virtual display that is generated when the first electronic device adapts to a screen size of the second electronic device. The method in this application may further include: After receiving a first message from the second electronic device, the first electronic device collects the status data of the first electronic device.

The status data of the first electronic device is status data of the virtual display. The status data of the virtual display is the first status data or the second status data. The first status data indicates that the first electronic device hides the status bar and the navigation bar, and the second status data indicates that the first electronic device does not hide the status bar and the navigation bar.

The first message is sent when the second electronic device performs landscape/portrait mode switching, and the first message indicates the first electronic device to update a projection interface of the virtual display in response to the landscape/portrait mode switching of the second electronic device; or the first message is sent when the second electronic device receives a second preset operation, and the first message indicates the first electronic device to update a projection interface of the virtual display in response to the second preset operation. The first message is further used to trigger the first electronic device to collect the status data of the virtual display.

In another possible design manner of the second aspect, at least one of the first interface, the second interface, a setting interface of the first electronic device, or a notification bar of the first electronic device includes a preset function switch. The preset function switch is used to start or close a preset function, and the preset function is a function of synchronizing the status data of the first electronic device to the second electronic device by the first electronic device. Before collecting the status data of the first electronic device, the method in this application further includes: The first electronic device receives an enabling operation performed by the user on the preset function switch.

In another possible design manner of the second aspect, the first status data includes an event identifier and information about a first event, and the second status data includes the event identifier and information about a second event. The event identifier indicates functions or roles of first status information and second status information, and the functions or roles of the first status information and the second status information are: indicating to the second electronic device that the first electronic device hides or displays the status bar and the navigation bar.

The information about the first event indicates an event of hiding the status bar and the navigation bar during projection from the first electronic device to the second electronic device, and the information about the second event indicates an event of displaying the status bar and the navigation bar during projection from the first electronic device to the second electronic device.

In another possible design manner of the second aspect, the first content and the second content are interface images of a video application; or the first content and the second content are interface images of a game application.

In another possible design manner of the second aspect, the first interface further includes third content, and the first electronic device displays the first content and the third content in two windows of the first interface on split screens. That the first interface includes a status bar and/or a navigation bar of the first electronic device is specifically: each of the two windows of the first interface includes the status bar and/or the navigation bar.

In another possible design manner of the second aspect, the second interface further includes fourth content, and the first electronic device displays the second content and the fourth content in two windows of the second interface on split screens. That the second interface does not include the status bar and the navigation bar is specifically: at least one of the two windows of the second interface does not include the status bar and the navigation bar. According to a third aspect, this application provides a projection display method. The method may be applied to a second electronic device, and the second electronic device is connected to a first electronic device. In the method, the second electronic device may receive first content and second status information from the first electronic device. The second status data indicates that the first electronic device does not hide a first status bar and a navigation bar. The second electronic device displays a first projection window including the first content, where the first projection window further includes any one of the status bar, the navigation bar, and a title bar of a projection application. The second electronic device may alternatively receive second content and first status information from the first electronic device, where the first status data indicates that the first electronic device hides the status bar and the navigation bar. The second electronic device may switch from displaying the first projection window to displaying a second projection window. The second projection window includes the second content, and the second projection window does not include the status bar, the navigation bar, and the title bar.

It may be understood that for beneficial effects that can be achieved by the method according to any one of the third aspect and the possible design manners provided in the foregoing, refer to the beneficial effects in any one of the first aspect and the possible design manners of the first aspect. Details are not described herein again.

In a possible design manner of the third aspect, the method in this application may further include: sending a first message to the first electronic device when the second electronic device performs landscape/portrait mode switching. The first message indicates the first electronic device to update, in response to the landscape/portrait mode switching, a projection interface of a virtual display that is generated when the first electronic device adapts to a screen size of the second electronic device. Alternatively, the second electronic device sends a first message to the first electronic device when receiving a second preset operation. The first message indicates the first electronic device to update, in response to the second preset operation, a projection interface of a virtual display that is generated when the first electronic device adapts to a screen size of the second electronic device.

The first message is further used to trigger the first electronic device to collect status data of the first electronic device, where the status data of the first electronic device is status data of the virtual display. The status data of the first electronic device is the first status data or the second status data.

In another possible design manner of the third aspect, the first status data includes an event identifier and information about a first event, and the second status data includes the event identifier and information about a second event.

The event identifier indicates functions or roles of first status information and second status information, and the functions or roles of the first status information and the second status information are: indicating to the second electronic device that the first electronic device hides or displays the status bar and the navigation bar.

The information about the first event indicates an event of hiding the status bar and the navigation bar during projection from the first electronic device to the second electronic device, and the information about the second event indicates an event of displaying the status bar and the navigation bar during projection from the first electronic device to the second electronic device.

In another possible design manner of the third aspect, the first content and the second content are interface images of a video application; or the first content and the second content are interface images of a game application.

In another possible design manner of the third aspect, the first projection window further includes third content projected by the first electronic device, and the second electronic device displays the first content and the third content in two windows of the first projection window on split screens. Each of the two windows of the first projection window includes any one of the status bar, the navigation bar, and the title bar.

In another possible design manner of the third aspect, the second projection window further includes fourth content projected by the first electronic device, and the second electronic device displays the second content and the fourth content in two windows of the second projection window on split screens. Neither of the two windows of the second projection window includes the status bar, the navigation bar, and the title bar.

According to a fourth aspect, this application provides an electronic device. The electronic device is a first electronic device, and the first electronic device is connected to a second electronic device. The first electronic device includes: a communication module, a display, a memory, and one or more processors. The communication module, the display, the memory, and the processor are coupled. The memory is configured to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the first electronic device performs the method performed by the first electronic device in any one of the first aspect, the second aspect, and the possible design manners.

According to a fifth aspect, this application provides an electronic device. The electronic device is a second electronic device, and the second electronic device is connected to a first electronic device. The second electronic device includes: a communication module, a display, a memory, and one or more processors. The communication module, the display, the memory, and the processor are coupled. The memory is configured to store computer program code. The computer program code includes computer instructions. When the processor executes the computer instructions, the second electronic device performs the method performed by the second electronic device in any one of the first aspect, the third aspect, and the possible design manners.

According to a sixth aspect, this application provides a chip system. The chip system is applied to an electronic device that includes a display, a memory, and a communication module. The chip system includes one or more interface circuits and one or more processors. The interface circuit and the processor are connected to each other through a line. The interface circuit is configured to receive a signal from the memory of the electronic device, and send the signal to the processor, where the signal includes computer instructions stored in the memory. When the processor executes the computer instructions, the electronic device performs the method according to any one of the first aspect, the second aspect, the third aspect, and the possible design manners.

According to a seventh aspect, this application provides a computer storage medium. The computer storage medium includes computer instructions. When the computer instructions run on an electronic device, the electronic device is enabled to perform the method according to any one of the first aspect, the second aspect, or the third aspect, and the possible design manners.

According to an eighth aspect, this application provides a computer program product. When the computer program product runs on a computer, the computer is enabled to perform the method according to any one of the first aspect, the second aspect, or the third aspect and the possible design manners.

It may be understood that beneficial effects that can be achieved by the electronic device according to the fourth aspect and the fifth aspect, the chip system according to the sixth aspect, the computer storage medium according to the seventh aspect, and the computer program product according to the eighth aspect provided, refer to beneficial effects in any one of the first aspect and the possible design manners of the first aspect. Details are not described herein again.

The terms “first” and “second” mentioned below are merely intended for a purpose of description, and shall not be understood as an indication or implication of relative importance or implicit indication of the number of indicated technical features. Therefore, a feature limited by “first” or “second” may explicitly or implicitly include one or more features. In description of this application, unless otherwise stated, “a plurality of” means two or more than two.

For ease of understanding, the terms “immersive display” and “non-immersive display” in embodiments of this application are described herein with reference to the accompanying drawings.

In some embodiments of this application, when an electronic device displays a UI interface of an application in a “non-immersive display” manner, a display of the electronic device may not only display UI interface content of the application, but also may include a status bar and a navigation bar of the electronic device.

1 FIG.A 1 FIG.A 100 102 101 103 For example, a mobile phone shown indisplays a video interfacein the “non-immersive display” manner in a portrait mode. As shown in, a display of the mobile phone not only displays UI interface contentof a video application, but also includes a status barand a navigation barof the mobile phone.

1 FIG.B 1 FIG.B 110 112 111 113 For another example, a mobile phone shown indisplays a video interfacein the “non-immersive display” manner in a landscape mode. As shown in, a display of the mobile phone not only displays UI interface contentof a video application, but also includes a status barand a navigation barof the mobile phone.

101 103 111 113 1 FIG.A 1 FIG.B It should be noted that, when the electronic device displays the UI interface of the application in the “non-immersive display” manner, the status bar and the navigation bar of the electronic device are visible to a user. For example, the status barand the navigation barshown in, and the status barand the navigation barshown inare visible to the user.

In some other embodiments of this application, when an electronic device displays a UI interface of an application in the “non-immersive display” manner, a display of the electronic device may not only display UI interface content of the application, but also may include a status bar of the electronic device. In this embodiment, in a “non-immersive display state”, the electronic device may hide the navigation bar.

1 FIG.D 1 FIG.D 1 FIG.D 1 FIG.A 130 102 101 100 100 101 103 Specifically, for some electronic devices, even in the “non-immersive display state”, the navigation bar is invisible to the user. For example, as shown in, a mobile phone displays a video interfacein a “non-immersive display” manner. As shown in, a display of the mobile phone not only displays the UI interface contentof the video application, but also includes the status barof the mobile phone, but does not include a navigation bar. The mobile phone may display the navigation bar of the mobile phone only when the mobile phone responds to a preset gesture input by the user. For example, in response to the preset gesture shown in, the mobile phone may display the video interfaceshown in. The video interfaceincludes not only the status bar, but also the navigation barof the mobile phone. In the following embodiment, an example in which the electronic device hides the status bar and the navigation bar in the “non-immersive display state” is used to describe the method in this embodiment of this application.

When the electronic device displays the UI interface of the application in an “immersive display” manner, the electronic device may hide the status bar and the navigation bar. The UI interface content of the application may be displayed on the display of the electronic device, and the status bar and the navigation bar of the electronic device are not displayed.

1 FIG.C 1 FIG.C 120 For example, the mobile phone shown indisplays a video interfacein an “immersive display” manner in a landscape mode. As shown in, UI interface content of a video application may be displayed on a display of the mobile phone, but a status bar and a navigation bar of the mobile phone are not displayed. Some electronic devices may also display an application interface in the “immersive display” manner in the portrait mode, which is not shown in the accompanying drawings.

1 FIG.C It should be noted that, when the electronic device displays the UI interface of the application in the “immersive display” manner, the status bar and the navigation bar of the electronic device are invisible to the user. For example, as shown in, the status bar and the navigation bar of the mobile phone are invisible to the user. In this embodiment of this application, when the electronic device displays the UI interface of the application in the “non-immersive display” manner, the electronic device may be referred to as being in the “non-immersive display state”. When the electronic device displays the UI interface of the application in the “immersive display” manner, the electronic device may be referred to as being in the “immersive display state”.

In this embodiment of this application, a mobile phone is used as an example to describe the status bar and the navigation bar of the electronic device.

Status bar: Located on the top of a screen of the mobile phone, the status bar may include a mobile network identifier, a wireless network identifier, a mobile phone battery level identifier, time information, and the like of the mobile phone. For example, the mobile network identifier may be a 4G identifier, a 5G identifier, or the like. The wireless network identifier may be a wireless fidelity (Wi-Fi) identifier and/or a Bluetooth identifier, or the like.

1 FIG.A 1 FIG.B 1 FIG.A 1 FIG.B 1 FIG.A 1 FIG.B Navigation Bar: It is a shortcut button bar at the bottom of the screen of the mobile phone. It is usually displayed at the bottom of the screen of the mobile phone in a form of virtual buttons. By default, the navigation bar includes three buttons: Back button, Home button, and Recent button. The Back button is used to return to a previous interface, the Home button is used to return to a desktop, and the Recent button is used to display a recently used application. For example, the Back button may be a triangular virtual button in the navigation bar shown inor, the Home button may be a circular virtual button in the navigation bar shown inor, and the Recent button may be a rectangular virtual button in the navigation bar shown inor.

2 FIG.A 2 FIG.B 200 201 202 201 202 201 202 201 202 201 202 201 201 202 An embodiment of this application provides a projection system. As shown inor, the projection systemmay include a remote deviceand a local device. The remote deviceis a first electronic device, and the local deviceis a second electronic device. The remote deviceand the local devicemay establish a connection in a wired or wireless manner. Based on the established connection, the remote deviceand the local devicemay be used together. Specifically, the remote devicemay be used as a projecting device, and the local deviceis a projected device. The remote devicemay project, by using a projection application, screen content of the remote deviceonto the local devicefor display.

201 202 201 202 201 202 2 FIG.A 2 FIG.B In specific implementation, the remote devicemay be a device that includes a display, such as a mobile phone, a tablet computer, a handheld computer, a PC, a cellular phone, a personal digital assistant (PDA), a wearable device (such as a smartwatch), or a smart home device (such as a television), a vehicle-mounted computer, a game console, and an augmented reality (AR)/virtual reality (VR) device. The local devicemay be a device that includes a display, such as a tablet computer, a laptop computer, a PC, a smart television, or a projector. For example, as shown in, the remote devicemay be a mobile phone, and the local devicemay be a laptop computer. For another example, as shown in, the remote devicemay be a mobile phone, and the local devicemay be a tablet computer.

202 201 202 201 202 201 201 202 201 2 FIG.A 2 FIG.B Generally, the local deviceis a large-screen device, and a screen size of the remote deviceis smaller. For example, a screen size of the local device(for example, the laptop computer) shown inis greater than a screen size of the remote device(for example, the mobile phone). For another example, a screen size of the local device(such as the tablet computer) shown inis greater than the screen size of the remote device(such as the mobile phone). In this way, the remote deviceprojects screen content onto the local devicefor display, and this cannot only reduce impact of a limitation of the screen size of the remote deviceon user visual experience, but also reflect an advantage of a large screen.

201 202 201 202 201 202 In this embodiment, when the remote deviceestablishes a connection with the local devicein a wireless manner, a wireless communication protocol used may be a Wi-Fi protocol, a Bluetooth protocol, a ZigBee protocol, a near field communication (NFC) protocol, various cellular network protocols, or the like. This is not specifically limited herein. A wired connection between the remote deviceand the local devicemay include: a universal serial bus (USB) connection and high-definition multimedia interface (HDMI). In the following embodiment, an example in which the remote deviceestablishes a connection with the local devicein a wireless manner is used to describe the method in the embodiment of this application.

The remote device and the local device may be touchscreen devices, or may be non-touchscreen devices. In this embodiment, both the remote device and the local device are terminals that can run an operating system, install an application, and have a display (or a display screen). Operating systems of the remote device and the local device may be an Android system, an ios system, a windows system, a mac system, a Linux system, or the like. This is not specifically limited in this embodiment. The operating systems of the remote device and the local device may be the same or may be different.

1 FIG.A 1 FIG.B 1 FIG.C 2 FIG.B 2 FIG.A In some current solutions, not only a non-immersive display effect can be implemented on a remote device, but also an immersive display effect can be implemented. For example, as shown inor, the mobile phone displays the UI interface of the video application in the “non-immersive display” manner. For another example, as shown inor, the mobile phone displays the UI interface of the video application in the “immersive display” manner. As shown in, the mobile phone displays a UI interface of a game application in the “immersive display” manner.

201 202 201 202 However, in a process in which the remote deviceprojects a screen to the local device, when the remote devicedisplays the UI interface of the application in the “immersive display” manner, the local devicecannot display the UI interface of the application in the “immersive display” manner.

2 FIG.A 2 FIG.A 201 202 For example, as shown in, the remote device(for example, the mobile phone) projects a screen to the local device(for example, the laptop computer). In other words, the mobile phone and the laptop computer can achieve multi-screen collaboration. As shown in, the mobile phone displays a UI interface of a game application in the “immersive display” manner. A display of the mobile phone displays the UI interface of the game application, but does not display a status bar and a navigation bar of the mobile phone.

2 FIG.A 2 FIG.A 210 211 212 213 214 When the mobile phone displays the UI interface of the game application in the “immersive display” manner, the laptop computer shown incannot display the UI interface of the game application in the “immersive display” manner. As shown in, a projection windowof the laptop computer displays not only a UI interfaceof the game application projected by the mobile phone, but also a status bar, a navigation bar, and a title barof a projection application. The laptop computer does not achieve an immersive display effect during projection.

2 FIG.B 2 FIG.B 201 202 For another example, as shown in, the remote device(for example, the mobile phone) projects a screen to the local device(for example, the tablet computer). As shown in, the mobile phone displays the UI interface of the video application in the “immersive display” manner. A display of the mobile phone displays the UI interface of the video application, but does not display the status bar and the navigation bar of the mobile phone.

2 FIG.B 2 FIG.B 220 221 222 223 224 When the mobile phone displays the UI interface of the video application in the “immersive display” manner, the tablet computer shown incannot display the UI interface of the video application in the “immersive display” manner. As shown in, a projection windowof the tablet computer not only displays a UI interfaceof the video application projected by the mobile phone, but also displays a status bar, a navigation bar, and a title barof a projection application. The tablet computer does not achieve an immersive display effect during projection.

201 202 202 201 201 201 201 An embodiment of this application provides a projection display method. The method may be applied to the foregoing projection system. According to the method, in a process in which the remote deviceprojects a screen to the local device, synchronization of the immersive display effect between the local deviceand the remote devicecan be achieved. In other words, when the remote deviceis in the “immersive display state”, the local devicemay also enter the “immersive display state”, and display a projection interface of the remote devicein the “immersive display” manner.

It should be noted that, the projection in this embodiment of this application may include physical display projection and virtual display projection. The following embodiments describe in detail the physical display projection and the virtual display projection, and specific applications of the method in embodiments of this application in a virtual display projection scenario.

202 201 In a physical display projection scenario, display content of a projection window displayed by the local deviceis the same as content of a display interface of the remote device.

2 FIG.A 2 FIG.B 2 1 FIG.C- 2 2 FIG.C- 210 202 201 220 202 201 230 202 201 For example, as shown in, display content of the projection windowdisplayed by the laptop computer (that is, the local device) is the same as content of the display interface of the mobile phone (that is, the remote device). For another example, as shown in, display content of the projection windowdisplayed by the tablet computer (that is, the local device) is the same as content of the display interface of the mobile phone (that is, the remote device). For another example, as shown inand, display content of a projection windowdisplayed by the tablet computer (that is, the local device) is the same as content of the display interface of the mobile phone (that is, the remote device).

202 201 The physical display projection in this embodiment of this application may specifically include the following three situations. In each situation, content displayed on the projection window displayed by the local deviceis the same as content of the display interface of the remote device.

201 202 202 201 The remote deviceprojects a screen to the local devicein a landscape mode, and the local devicedisplays the projection window of the remote devicein a small window.

2 FIG.A 2 FIG.A 210 210 For example, as shown in, the mobile phone is in the landscape mode, and the mobile phone projects a screen to the laptop computer. In, the laptop computer displays the projection windowof the mobile phone in the small window, and the display content of the projection windowis the same as the content of the display interface of the mobile phone.

202 201 202 202 210 2 FIG.A It should be noted that, that the local devicedisplays the projection window of the remote devicein a small window specifically refers to: The projection window occupies a part of a screen of the local device, and the other part of the screen displays the UI interface of the local device. For example, as shown in, a part of the screen of the laptop computer is used to display the projection window, and the other part of the screen is used to display a desktop of the laptop computer.

202 201 202 201 202 201 201 202 201 202 It should be noted that, the screen size of the local devicemay be different from the screen size of the remote device. As a result, a height-to-width ratio of the screen of the local deviceis also different from a height-to-width ratio of the screen of the remote device. Therefore, if the local devicedisplays projection content of the remote devicein full screen according to the height-to-width ratio of the screen of the remote device, a problem of distortion of the projection content may occur. In the physical display projection scenario, the local devicedisplays the projection window of the remote devicein the small window, so that a problem of distortion of the projection content in the projection window displayed by the local devicemay be avoided, and user visual experience in a projection process may be ensured.

201 202 202 201 The remote deviceprojects a screen to the local devicein a landscape mode, and the local devicedisplays the projection window of the remote devicein a full window.

2 FIG.B 2 FIG.B 220 220 For example, as shown in, the mobile phone is in the landscape mode, and the mobile phone projects a screen to the tablet computer. In, the tablet computer displays a projection windowof the mobile phone in the full window, and display content of the projection windowis the same as content of a display interface of the mobile phone.

202 201 202 220 2 FIG.B It should be noted that, that the local devicedisplays the projection window of the remote devicein a full window specifically refers to: The projection window occupies the entire screen of the local device. For example, as shown in, the entire screen of the tablet computer is used to display the projection window.

202 201 202 201 202 201 201 202 201 It should be noted that, although a screen size of the local devicemay be different from a screen size of the remote device, a height-to-width ratio of the screen of the local devicemay be close to a height-to-width ratio of the screen of the remote device. For example, a height-to-width ratio of a screen of the tablet computer is close to a height-to-width ratio of a screen of the mobile phone. Therefore, even if the local devicedisplays projection content of the remote devicein full screen according to the height-to-width ratio of the screen of the remote device, a problem of distortion of the projection content may not occur. Therefore, in the physical display projection scenario, the local devicemay display the projection window of the remote devicein the full window, and this can ensure user visual experience in a projection process.

201 202 202 201 The remote deviceprojects a screen to the local devicein a portrait mode, and the local devicedisplays the projection window of the remote devicein a small window.

2 1 FIG.C- 2 2 FIG.C- 2 1 FIG.C- 2 2 FIG.C- 2 1 FIG.C- 2 2 FIG.C- 230 230 230 231 232 233 234 For example, as shown inand, the mobile phone is in the portrait mode, and the mobile phone projects a screen to the tablet computer. Inand, the tablet computer displays a projection windowof the mobile phone in the small window, and display content of the projection windowis the same as content of a display interface of the mobile phone. As shown inand, a projection windowincludes a UI interfaceof the video application projected by the mobile phone, but also displays a status bar, a navigation bar, and a title barof the projection application.

201 202 201 202 It should be noted that, in the physical display projection scenario, when the remote deviceis in the portrait mode, the local devicedisplays the projection window of the remote devicein the small window, so that a problem of distortion of projection content in the projection window displayed by the local devicemay be avoided, and user visual experience in a projection process may be ensured.

202 201 In a virtual display projection scenario, display content of the projection window displayed by the local deviceis different from content of the display interface of the remote device.

2 FIG.D 2 FIG.D 240 240 For example, as shown in, the mobile phone is in the portrait mode, and the mobile phone projects a screen to the tablet computer. In, the tablet computer displays a projection windowof the mobile phone in full window, and the mobile phone displays a main interface. Display content of the projection windowis different from content of the display interface of the mobile phone.

230 236 236 236 240 240 2 1 FIG.C- 2 2 FIG.C- 2 FIG.D 2 FIG.D The projection windowshown inandincludes a “zoom-in button”. The “zoom-in button”is used to trigger the tablet computer to display a video playback interface in full screen. In response to a tapping operation performed by the user on the “zoom-in button”, the tablet computer may send a request instruction to the mobile phone. After receiving the request instruction, the mobile phone may adapt a screen size of the tablet computer, generate a virtual display, generate (for example, draw and render) new projection data based on the virtual display, and transmit the projection data to the tablet computer. After receiving the projection data, the tablet computer may display the projection windowshown in. However, a physical screen size of the mobile phone cannot adapt to the projection data generated based on the virtual display. Therefore, the mobile phone may not display display content of the projection window. In this case, the mobile phone may display the main interface, or the mobile phone may display any one of one or more applications that have recently run and are not closed. For example, as shown in, the mobile phone may display the main interface.

When the user uses an electronic device, the electronic device may be in a landscape mode or in the portrait mode. In this embodiment of this application, the landscape mode and the portrait mode of the electronic device are described herein. A display (including a folded screen in an expanded state) of the electronic device may include four sides. The four sides include two sides that are parallel and equal to each other and that are longer, and may be referred to as long sides of the display. The four sides further include two shorter sides that are parallel and equal to each other, and may be referred to as short sides of the display.

In the landscape mode, a long side of the display of the electronic device is parallel to a horizontal plane (for example, an included angle between the long side of the display and the horizontal plane is 0), or an included angle between the long side of the display and the horizontal plane is less than or equal to a preset value. In the portrait mode, a long side of the display of the electronic device is basically perpendicular to a horizontal plane, or an included angle between the long side of the display and the horizontal plane is greater than a preset value. The preset value is less than or equal to 45 degrees, and a specific value of the preset value may be set according to an actual application scenario. For example, the preset value may be 20 degrees.

In the landscape mode, the display of the electronic device is basically in a horizontal bar shape. A height of the display of the electronic device is less than a width, and an aspect ratio (that is, a ratio of height to width) of the display is less than 1. In the portrait mode, the display of the electronic device is basically in a vertical bar shape. A height of the display of the electronic device is greater than a width, and an aspect ratio (that is, a ratio of height to width) of the display is greater than 1.

The height of the display is a length of a side whose included angle between the display and the horizontal plane is larger, and the width of the display is a length of a side whose included angle between the display and the horizontal plane is smaller. The height of the display may also be understood as a longitudinal length of the display, the width of the display may also be understood as a transverse length of the display, and the aspect ratio of the display may also be understood as an aspect ratio (that is, a ratio of a longitudinal length to a transverse length) of the display.

300 300 The following describes embodiments of this application in detail with reference to the accompanying drawings. A hardware structure of a remote device (such as an electronic device) is described by using an example in which the remote device is a mobile phone. For the hardware structure of the local device, refer to detailed description of the electronic devicein this embodiment of this application. Details are not described herein again in this embodiment of this application.

3 FIG. 300 310 320 321 330 340 341 342 350 360 370 370 370 370 370 380 390 391 392 393 394 395 As shown in, the electronic devicemay include: a processor, an external memory interface, an internal memory, a universal serial bus (universal serial bus, USB) interface, a charging management module, a power management module, a battery, an antenna 1, an antenna 2, a mobile communication module, and a wireless communication module, an audio module, a speakerA, a receiverB, a microphoneC, a headset jackD, a sensor module, a button, a motor, an indicator, a camera, a display, and a subscriber identity module (SIM) card interfaceand the like.

380 The sensor modulemay include sensors such as a pressure sensor, a gyroscope sensor, a barometric pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, an optical proximity sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, and a bone conduction sensor.

300 300 It may be understood that the structure shown in this embodiment does not constitute a specific limitation on the electronic device. In some other embodiments, the electronic devicemay include more or fewer components than those shown in the figure, or some components may be combined, or some components may be split, or different component arrangements may be used. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

310 310 The processormay include one or more processing units, for example: The processormay include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, and a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), or the like. Different processing units may be independent components, or may be integrated into one or more processors.

300 The controller may be a nerve center and a command center of the electronic device. The controller may generate an operation control signal based on instruction operation code and a time sequence signal, to complete control of instruction reading and instruction execution.

310 310 310 310 310 310 A memory may be further disposed in the processor, and is configured to store instructions and data. In some embodiments, the memory in the processoris a cache. The memory may store instructions or data just used or cyclically used by the processor. If the processorneeds to use the instructions or the data again, the processormay directly invoke the instructions or the data from the memory. This avoids repeated access, reduces waiting time of the processor, and improves system efficiency.

310 In some embodiments, the processormay include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, a universal serial bus (USB) interface, and/or the like.

300 300 It may be understood that an interface connection relationship between the modules shown in this embodiment is merely used as an example for description, and does not constitute a limitation on a structure of the electronic device. In some other embodiments, the electronic devicemay alternatively use different interface connection manners or a combination of a plurality of interface connection manners in the foregoing embodiment.

340 340 330 340 300 342 340 341 The charging management moduleis configured to receive charging input from a charger. The charger may be a wireless charger, or may be a wired charger. In some embodiments of wired charging, the charging management modulemay receive charging input of the wired charger through the USB interface. In some embodiments of wireless charging, the charging management modulemay receive a wireless charging input by using a wireless charging coil of the electronic device. When charging the battery, the charging management modulemay alternatively supply power to the electronic device by using the power management module.

341 342 340 310 341 342 340 310 321 394 393 360 341 341 310 341 340 The power management moduleis configured to connect the battery, the charging management module, and the processor. The power management modulereceives input from the batteryand/or the charging management module, and supplies power to the processor, the internal memory, the external memory, the display, the camera, the wireless communication module, and the like. The power management modulemay be further configured to monitor a parameter such as a battery capacity, a battery cycle count, or a battery health status (electric leakage or impedance). In some other embodiments, the power management modulemay also be disposed in the processor. In some other embodiments, the power management moduleand the charging management modulemay also be disposed in a same component.

300 350 360 A wireless communication function of the electronic devicemay be implemented through the antenna 1, the antenna 2, the mobile communication module, the wireless communication module, the modem processor, the baseband processor, and the like.

300 The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic devicemay be configured to cover one or more communication frequency bands. Different antennas may be further multiplexed, to improve antenna utilization. For example: The antenna 1 may be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna may be used in conjunction with a tuning switch.

350 300 350 350 The mobile communication modulemay provide a wireless communication solution that is applied to the electronic deviceand includes a 2G/3G/4G/5G or the like. The mobile communication modulemay include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication modulemay receive an electromagnetic wave through the antenna 1, perform processing such as filtering or amplification on the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation.

350 350 310 350 310 The mobile communication modulemay further amplify a signal modulated by the modem processor, and convert the signal into an electromagnetic wave for radiation through the antenna 1. In some embodiments, at least some functional modules in the mobile communication modulemay be disposed in the processor. In some embodiments, at least some functional modules in the mobile communication modulemay be disposed in a same device as at least some modules in the processor.

370 370 394 310 350 The modem processor may include a modulator and a demodulator. The modulator is configured to modulate a to-be-sent low-frequency baseband signal into a medium- and high-frequency signal. The demodulator is configured to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. Then, the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal is processed by the baseband processor and then transmitted to the application processor. The application processor outputs a sound signal through the audio device (not limited to the speakerA and receiverB), or displays an image or video through the display. In some embodiments, the modem processor may be a standalone device. In some other embodiments, the modem processor may be independent of the processor, and is disposed in a same component as the mobile communication moduleor another functional module.

360 300 The wireless communication modulemay provide a wireless communication solution that includes a wireless local area network (WLAN) (for example, a wireless fidelity (Wi-Fi) network), Bluetooth (BT), a global navigation satellite system (GNSS), frequency modulation (FM), a near field communication (NFC) technology, an infrared (IR) technology, or the like and that is applied to the electronic device.

360 360 310 360 310 The wireless communication modulemay be one or more components integrating at least one communication processor module. The wireless communication modulereceives an electromagnetic wave through the antenna 2, performs frequency modulation and filtering processing on an electromagnetic wave signal, and sends a processed signal to the processor. The wireless communication modulemay further receive a to-be-sent signal from the processor, perform frequency modulation and amplification on the signal, and convert the signal into an electromagnetic wave for radiation through the antenna 2.

300 350 360 300 In some embodiments, the antenna 1 of the electronic deviceis coupled to the mobile communication module, and the antenna 2 is coupled to the wireless communication module, so that the electronic devicecan communicate with a network and another device by using a wireless communication technology. The wireless communication technology may include a global system for mobile communications (GSM), a general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, a GNSS, a WLAN, NFC, FM, an IR technology, and/or the like. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a BeiDou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a satellite based augmentation system (SBAS).

300 394 394 310 The electronic deviceimplements a display function by using a GPU, the display, the application processor, or the like. The GPU is a microprocessor for image processing, and is connected to the displayand the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processormay include one or more GPUs that execute program instructions to generate or change display information.

394 394 The displayis configured to display an image, a video, or the like. The displayincludes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), or the like.

300 393 394 The electronic devicemay implement an image shooting function by using the ISP, the camera, the video codec, the GPU, the display, the application processor, or the like.

393 393 The ISP is configured to process data fed back by the camera. For example, during photographing, a shutter is opened, light is transmitted to a photosensitive element of the camera by using a lens, an optical signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, and converts the electrical signal into an image visible to naked eyes. The ISP may alternatively perform algorithm optimization on image noise, luminance, and skin tone. The ISP may alternatively perform parameter optimization on exposure and color temperature of a shooting scene. In some embodiments, the ISP may be disposed in the camera.

393 300 393 The camerais configured to capture a still image or video. An object is projected to the photosensitive element by generating an optical image through the lens. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard format such as RGB or YUV. In some embodiments, the electronic devicemay include one or N cameras, where N is a positive integer greater than 1.

300 The digital signal processor is configured to process digital signals, and may process other digital signals in addition to digital image signals. For example, when the electronic deviceselects a frequency, the digital signal processor is configured to perform Fourier transform on frequency energy and the like.

300 300 The video codec is used to compress or decompress digital video. The electronic devicemay support one or more video codecs. In this way, the electronic devicemay play or record videos in a plurality of encoding formats, for example, moving picture experts group (MPEG)-1, MPEG-2, MPEG-3, and MPEG-4.

300 The NPU is a neural network (NN) computing processor, quickly processes input information by referring to a structure of a biological neural network, for example, by referring to a mode of transmission between human brain neurons, and may further continuously perform self-learning. Applications such as intelligent cognition of the electronic devicemay be implemented by using the NPU, for example, image recognition, facial recognition, speech recognition, and text understanding.

320 300 310 320 The external memory interfacemay be configured to connect to an external memory card, for example, a Micro SD card, to expand a storage capability of the electronic device. The external memory card communicates with the processorthrough the external memory interface, to implement a data storage function. For example, files such as music and a video are stored in the external memory card.

321 310 300 321 310 321 321 The internal memorymay be configured to store computer-executable program code, and the executable program code includes instructions. The processorexecutes various functional applications and data processing of the electronic deviceby running the instructions stored in the internal memory. For example, in this embodiment of this application, the processormay execute the instructions stored in the internal memory. The internal memorymay include a program storage area and a data storage area.

300 321 The program storage area may store an operating system, an application (for example, a voice playing function or an image playing function) required by at least one function, and the like. The data storage area may store data (such as audio data and a phone book) created when the electronic deviceis used, and the like. In addition, the internal memorymay include a high-speed random access memory, and may further include a non-volatile memory, for example, at least one magnetic disk storage device, a flash memory, or a universal flash storage (UFS).

300 370 370 370 370 370 The electronic devicemay implement an audio function, such as music playing or recording, by using the audio module, the speakerA, the receiverB, the microphoneC, the headset jackD, the application processor, and the like.

394 394 394 300 394 The touch sensor, also known as the “touch panel”. The touch sensor may be disposed on the display, and the touch sensor and the displayform a touchscreen, which is also referred to as a “touchscreen”. The touch sensor is configured to detect a touch operation performed on or near the touch sensor. The touch sensor may transfer the detected touch operation to the application processor, to determine a touch event type. The displaymay provide a visual output related to the touch operation. In some other embodiments, the touch sensor may alternatively be disposed on a surface of the electronic device, and a location of the touch sensor is different from that of the display.

300 300 In this embodiment of this application, the electronic devicemay detect, by using the touch sensor, a touch operation input by a user on the touchscreen, and collect one or more of a touch location, a touch area, a touch direction, touch time, and the like of the touch operation on the touchscreen. In some embodiments, the electronic devicemay determine the touch location of the touch operation on the touchscreen by combining the touch sensor and the pressure sensor.

390 390 300 300 The buttonincludes a power-on button, a volume button, and the like. The buttonmay be a mechanical button, or can be a touch button. The electronic devicemay receive a key input, and generate a key signal input related to a user setting and function control of the electronic device.

391 391 394 391 The motormay generate a vibration prompt. The motormay be configured to provide an incoming call vibration prompt and touch vibration feedback. For example, touch operations performed on different applications (such as photographing and audio playing) may correspond to different vibration feedback effects. For touch operations performed on different areas of the display, the motormay also correspond to different vibration feedback effects. Different application scenarios (for example: time reminder, information receiving, alarm clock, game, or the like) may also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.

392 395 395 395 300 300 395 The indicatormay be an indicator light, and may be configured to indicate a charging status and a power change, or may be configured to indicate a message, a missed call, a notification, or the like. The SIM card interfaceis configured to connect to a SIM card. The SIM card may be inserted into the SIM card interfaceor removed from the SIM card interface, to implement contact and separation from the electronic device. The electronic devicemay support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interfacemay support a nano-SIM card, a micro-SIM card, a SIM card, and the like.

300 All methods in the following embodiments may be implemented in the electronic devicehaving the foregoing hardware structure.

300 201 200 201 202 The software system of the electronic device(such as a remote deviceor a local device) may use a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In this embodiment of this application, an Android system with the layered architecture is used as an example to describe a software structure of the remote deviceor the local device.

4 FIG.A 4 FIG.B 4 FIG.A 4 FIG.B 201 202 201 400 401 402 202 410 411 412 andare a block diagram of software structures of a remote deviceand a local deviceaccording to an embodiment of this application. In a layered architecture, software may be divided into several layers, and each of the layers has a clear role and task. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into three layers: an application layer (Application), an application framework layer (Framework), and a kernel layer (Kernel, also referred to as a driver layer) from top to bottom. For example, as shown inand, the remote devicemay include an application layer, a framework layer, and a driver layer. The local devicemay include an application layer, a framework layer, and a driver layer.

400 410 4 FIG.A 4 FIG.B Application layer: may include a range of application packages. For example, the application layerand the application layershown inandmay include: common applications, applications related to projection management, and an application of system (System) UI.

300 201 202 201 202 201 202 The common applications may be applications, such as Camera, Gallery, Calendar, Phone, Map, Navigation, WLAN, Bluetooth, Music, Videos, Messages, and Launcher. The application of system UI may include a navigation bar, a status bar, and the like of the electronic device(for example, the remote deviceor the local device). Applications related to projection management may include a device connection application and a projection display application. The device connection application is used to manage a wired or wireless connection between cross-devices (such as the remote deviceand the local device) for implementing projection. The projection display application is used to display projection content or a projection interface projected by the remote deviceto the local device.

4 FIG.A 4 FIG.B The framework layer (Framework) provides an application programming interface (application programming interface, API) and a programming framework for an application at the application layer. As shown inand, the framework layer may provide a basic framework, a cross-device management framework, and a data management module.

201 201 202 201 202 202 201 202 201 The basic framework is responsible for basic capabilities such as a window display module, a layer management module, an immersive state collection module, and an immersive state restoration module. The immersive state collection module may collect a status of the remote device, for example, an immersive display state or a non-immersive display state. The remote devicemay indicate, to the local deviceby using “immersive status data”, the status of the remote device, such as the immersive display state or the non-immersive display state. Immersive state restoration means that the local devicemay restore a display manner of the local devicebased on the “immersive status data” from the remote device, so that the status of the local deviceis consistent with the status of the remote device.

201 202 201 202 201 202 201 4 FIG.A 4 FIG.B The cross-device connection management framework is configured to manage a connection protocol (for example, a Wi-Fi connection protocol or a Bluetooth connection protocol) between cross-devices (such as the remote deviceand the local device). The data management module is configured to manage data communication between the remote deviceand the local devicein a cross-device scenario (for example, a multi-screen collaboration scenario). For example, as shown inand, the data management module may be configured to manage a-projection data and b-immersive status data that are transmitted by the remote deviceto the local device. The a-projection data may include projected audio and video data and layer data, and the audio and video data and the layer data may also be referred to as screen image data. The b-immersive status data indicates the status of the remote device, for example, the immersive display state or the non-immersive display state.

201 202 201 202 201 202 4 FIG.A 4 FIG.B The driver layer may provide capabilities such as device discovery, device authentication, and device connection between the remote deviceand the local device. For example, as shown inand, the remote deviceand the local devicemay perform A-device discovery and B-authentication connection, to establish a connection (for example, a wired or wireless connection) between the remote deviceand the local device. The a-projection data and the b-immersive status data may be transmitted by using a connection established by the driver layer.

5 FIG. In conclusion, as shown in, the method in this embodiment of this application may include the following four procedures: (1) “Discovery, authentication, connection, and projection” procedure; (2) “Remote device status collection” procedure; (3) “Remote-local status data transmission” procedure; (4) “Status synchronization of the local device” procedure

202 201 201 202 The local deviceand the remote devicemay perform the foregoing (2) “Remote device status collection” procedure and (3) “Remote-local status data transmission” procedure and (4) “Status synchronization of the local device” procedure in a process in which the remote deviceprojects a screen to the local device.

201 202 201 202 201 202 201 201 201 202 202 202 201 4 FIG.A 4 FIG.B 4 FIG.A 4 FIG.B The remote deviceand the local devicemay perform the “discovery, authentication, and connection” procedure in the foregoing (1) “Discovery, authentication, connection, and projection” procedure by using the driver layer. An application, a data management module at a framework layer, and a driver layer related to projection management in the remote deviceand the local devicemay support the remote deviceand the local devicein performing the “projection” procedure in the foregoing (1) “Discovery, authentication, connection, and projection” procedure. The basic framework at the framework layer of the remote devicemay execute (2) “Remote device status collection” procedure to perform immersive display state collection, and obtain immersive status data of the remote device(b-immersive status data as shown inand). The remote deviceand the local devicemay perform, by using the connection established at the driver layer, (3) “Remote-local status data transmission” procedure, to transmit the immersive status data and the a-projection data shown inand. The basic framework at the framework layer of the local devicemay perform (4) “Status synchronization of the local device” procedure, to perform immersive state restoration, so that the state of the local deviceis consistent with the state of the remote device.

201 202 For example, in the following embodiment, an example in which the remote deviceis a mobile phone, the local deviceis a tablet computer, and the mobile phone projects a picture of a video application to the tablet computer is used, and a synchronization process of an immersive display state or a non-immersive display state of the tablet computer and the mobile phone is described with reference to the foregoing physical display projection scenario.

600 600 601 602 603 611 611 601 601 601 611 601 6 FIG.A 6 FIG.A In a process in which the mobile phone projects a screen to the tablet computer, the mobile phone may display a first interfaceshown in. The first interfacenot only includes first content (for example, a UI interface image of a video application), but also includes a status barand a navigation barof the mobile phone. The mobile phone is in a non-immersive display state. The mobile phone may transmit second projection data (a-projection data shown in) to the tablet computer. The second projection data includes first content, and the first contentis a mirror image of the first content. The mobile phone may take a screenshot of the first contentor send, in a streaming mode, the first contentdisplayed by the mobile phone to the tablet computer, and the tablet computer presents the display content of the mobile phone in a projection window (for example, a first projection window). Content (for example, the first content) presented in the projection window (for example, the first projection window) and the first contentare mirrored.

6 FIG.A 6 FIG.A 6 FIG.A 6 FIG.A 6 FIG.A 610 610 611 612 613 614 In this case, the mobile phone may collect second status data of the mobile phone (b-immersive status data 1 as shown in). The b-immersive status data 1 shown inmay be: An event 1 indicating that the mobile phone is in a non-immersive display state during projection is used to indicate to the tablet computer that the mobile phone does not hide the status bar and the navigation bar, and that the mobile phone is in the non-immersive display state. The mobile phone may send the second status data (b-immersive status data 1 as shown in) to the tablet computer. After receiving the second status data, the tablet computer may display a projection interface of the mobile phone in a “non-immersive display” manner. For example, the tablet computer may display the first projection windowshown in. The first projection windownot only includes the first content (for example, a UI interface image of a video application), but also includes a status bar, a navigation bar, and a title bar. The tablet is in the non-immersive display state. The mobile phone and the tablet computer shown inare in the same state in a projection process, and both are in the non-immersive display state.

620 620 620 631 631 620 620 620 631 620 6 FIG.B In a process in which the mobile phone projects a screen to the tablet computer, the mobile phone may alternatively display a second interface. The second interfaceincludes second content (for example, a UI interface image of a video application), but does not include the status bar and the navigation bar of the mobile phone. In other words, the mobile phone hides the status bar and the navigation bar of the mobile phone, and the mobile phone is in an immersive display state. The mobile phone may transmit first projection data (a-projection data shown in) to the tablet computer. The first projection data includes second content, and the second contentis a mirror image of the second content. The mobile phone may take a screenshot of the second contentor send, in a streaming mode, the second contentdisplayed by the mobile phone to the tablet computer, and the tablet computer presents the display content of the mobile phone in a projection window (for example, a second projection window). Content (for example, the second content) presented in the projection window (for example, the second projection window) and the second contentare mirrored.

6 FIG.B 6 FIG.B 6 FIG.B 6 FIG.B 630 630 631 In this case, the mobile phone may collect first status data (b-immersive status data 2 as shown in) of the mobile phone. The b-immersive status data 2 shown inmay be: An event 2 indicating that the mobile phone is in an immersive display state during projection is used to indicate to the tablet computer that the mobile phone hides the status bar and the navigation bar, and that the mobile phone is in the immersive display state. The mobile phone may alternatively transmit first status data to the tablet computer. After receiving the second status data, the tablet computer may display a projection interface of the mobile phone in an “immersive display” manner. For example, the tablet computer may display a second projection windowshown in. The second projection windowincludes second content (for example, a UI interface image of a video application), but does not include a title bar, a navigation bar, and a status bar of a projection application. In other words, the tablet computer hides the title bar, the navigation bar, and the status bar, and the tablet computer is in the immersive display state. The mobile phone and the tablet computer shown inare in the same state in a projection process, and both are in the immersive display state.

201 202 5 FIG. For ease of understanding, in the following embodiments, an example in which the remote deviceis a mobile phone and the local deviceis a tablet computer is used to describe the method in embodiments of this application with reference to a physical display projection scenario. The following embodiment describes the four procedures shown inin detail, to describe the method in embodiments of this application.

When a user wants to project screen content of the mobile phone to the tablet computer for display, the user may enable a projection function of the mobile phone, to trigger the mobile phone to discover a surrounding projecting device (such as a tablet computer), and establish a connection to the projecting device to implement the projection function.

201 202 For example, the connection between the mobile phone and the tablet computer may be a wireless connection or a wired connection. For example, the foregoing wireless connection may be any connection such as a Wi-Fi connection, a Bluetooth connection, or an NFC connection. For example, the wired connection may be a USB connection. In the following embodiment, an example in which the remote deviceand the local deviceestablish a Wi-Fi connection in a wireless manner is used to describe the method in this embodiment of this application.

The user may enable the projection function of the mobile phone by using a projection setting interface of the mobile phone, to trigger the mobile phone to perform the foregoing “Discovery, authentication, connection, and projection” procedure, to implement the projection function.

701 701 702 702 702 702 703 703 704 703 702 7 FIG.A 7 FIG.A 7 FIG.B For example, the mobile phone may display a projection setting interfaceshown in. The projection setting interfaceincludes a projection switch button. As shown in, the projection switch buttonis in an off state. The mobile phone may receive an enabling operation (for example, a tapping operation) performed by a user on the projection switch button. In response to the tapping operation performed by the user on the projection switch button, the mobile phone may search for or discover a surrounding wireless device by using Wi-Fi, to support the mobile phone in using a “mobile phone projection” function. For example, the mobile phone may display a projection setting interfaceshown in. The projection setting interfaceincludes search prompt information, for example, “Searching for an available device . . . ”. In the projection setting interface, the projection switch buttonis in an on state.

705 705 706 707 706 7 FIG.C After the mobile phone finds a wireless device around it (For example, the mobile phone receives a Probe Response frame sent by another wireless device), the mobile phone may display an available device listshown inon the projection setting interface. The device listincludes an optionof a wireless device (such as a tablet computer) found by the mobile phone and an optionof a wireless device (such as a living room television). In response to a tapping operation performed by the user on the optionof the tablet computer, after authentication is passed between the mobile phone and the tablet computer, a Wi-Fi connection may be established, and then a screen is projected to the tablet computer.

For detailed descriptions of the foregoing (1) “Discovery, authentication, connection, and projection” procedure, refer to a specific method in which a mobile phone and a tablet computer perform the procedure in a conventional technology. Details are not described herein in this embodiment of this application.

The mobile phone may collect immersive status data of the mobile phone, and the immersive status data indicates that the mobile phone is in an immersive display state or a non-immersive display state.

It should be understood that if a display interface of the mobile phone does not include the status bar and the navigation bar, it indicates that the mobile phone is in the immersive display state; or if a display interface of the mobile phone includes the status bar and the navigation bar, it indicates that the mobile phone is in the non-immersive display state. It can be learned that the mobile phone may identify the immersive display state or the non-immersive display state of the mobile phone by determining whether the display interface of the mobile phone includes the status bar and the navigation bar.

For example, in a process of projecting a screen from a mobile phone to a tablet computer, that collecting a trigger condition or a trigger occasion of immersive status data of the mobile phone may include at least one of the following four implementations.

When the mobile phone is switched from a landscape mode to a portrait mode, immersive status data of the mobile phone is collected. When the mobile phone is switched from a portrait mode to a landscape mode, immersive status data of the mobile phone is collected.

8 FIG.A Generally, when the mobile phone is in the portrait mode, there is a high probability that the mobile phone displays a UI interface of an application in a “non-immersive display” manner, that is, the mobile phone is in the non-immersive display state. For example, as shown in, the mobile phone is in a portrait mode, the mobile phone displays a UI interface of a video application in a “non-immersive display” manner, and the mobile phone is in a non-immersive display state.

8 FIG.A 8 FIG.B 8 FIG.B After the mobile phone switches from the portrait mode to a landscape mode, the mobile phone may automatically display the UI interface of the application in an “immersive display” manner, that is, the mobile phone switches from the non-immersive display state to the immersive display state. In other words, when the mobile phone switches from the portrait mode to the landscape mode, the mobile phone may automatically switch from the non-immersive display state to the immersive display state. For example, after the mobile phone switches from the portrait mode shown into the landscape mode shown in, as shown in, the mobile phone displays the UI interface of the video application in the “immersive display” manner. In other words, the mobile phone switches from the non-immersive display state to the immersive display state.

8 FIG.B 8 FIG.A 8 FIG.A It is assumed that the mobile phone displays the UI interface of the application in the “immersive display” manner in the landscape mode, that is, the mobile phone is in the immersive display state. When the mobile phone switches from the landscape mode to the portrait mode, the mobile phone may automatically display the UI interface of the application in the “non-immersive display” manner, that is, the mobile phone switches from the immersive display state to the non-immersive display state. In other words, when the mobile phone switches from the landscape mode to the portrait mode, the mobile phone may automatically switch from the immersive display state to the non-immersive display state. For example, after the mobile phone switches from the landscape mode shown into the portrait mode shown in, as shown in, the mobile phone displays the UI interface of the video application in the “non-immersive display” manner. In other words, the mobile phone switches from the immersive display state to the non-immersive display state.

In conclusion, when switching between the landscape mode and the portrait mode, the mobile phone may automatically switch between the immersive display state and the non-immersive display state. In other words, when the mobile phone performs landscape/portrait mode switching, immersive status data of the mobile phone may change. Therefore, in this embodiment of this application, the mobile phone collects the immersive status data of the mobile phone when performing landscape/portrait mode switching, and may collect changed immersive status data. In this way, the mobile phone may perform (3) “Remote-local status data transmission” procedure to transmit latest immersive status data of the mobile phone to the tablet computer.

When receiving a first preset operation of the user, the mobile phone collects immersive status data of the mobile phone. The first preset operation may trigger the mobile phone to switch from the immersive display state to the non-immersive display state, or switch from the non-immersive display state to the immersive display state.

The first preset operation may be a user operation entered on a UI interface of an application displayed on the mobile phone. The first preset operation may trigger the mobile phone to switch from the immersive display state to the non-immersive display state, or switch from the non-immersive display state to the immersive display state.

8 FIG.A 9 FIG.A 801 801 801 801 For example, as shown in, the UI interface of the video application displayed by the mobile phone includes an “extended” button. The “extended” buttonis configured to trigger the mobile phone to display a video playback picture of the video application in full screen. The foregoing first preset operation may be a tapping operation performed by the user on the “extended” button. In response to the tapping operation performed by the user on the “extended” button, as shown in, the mobile phone may display a video playback picture of the video application in full screen. In other words, the mobile phone may display the UI interface of the video application in an “immersive display” manner.

8 FIG.B 9 FIG.B 9 FIG.B 9 FIG.B For another example, as shown in, the mobile phone displays the UI interface of the video application in the “immersive display” manner, and the mobile phone is in the immersive display state. The foregoing first preset operation may be a tapping operation performed by the user on any position in the UI interface displayed by the mobile phone. In response to the tapping operation, the mobile phone may display a UI interface of a video application shown in. As shown in, the UI interface displayed by the mobile phone includes a status bar and a navigation bar. Therefore, the mobile phone shown indisplays the UI interface of the video application in a “non-immersive display” manner, and the mobile phone is in a non-immersive display state.

In conclusion, the first preset operation in the foregoing example may trigger the mobile phone to switch from the immersive display state to the non-immersive display state, or switch from the non-immersive display state to the immersive display state. In other words, after the mobile phone receives the first preset operation, immersive status data of the mobile phone may change. Therefore, in this embodiment of this application, when receiving the first preset operation, the mobile phone collects the immersive status data of the mobile phone, and may collect changed immersive status data. In this way, the mobile phone may perform (3) “Remote-local status data transmission” procedure to transmit latest immersive status data of the mobile phone to the tablet computer.

The mobile phone can collect immersive status data of the mobile phone when the mobile phone switches between interfaces (That is, a display interface of the mobile phone is switched from a UI interface of an application to a UI interface of another application).

When displaying the UI interface of the application, the mobile phone may receive a message from another device (for example, text messages or chat messages from instant messaging applications), and may receive a call from another device. In this case, interface switching may occur on the mobile phone, and immersive status data of the mobile phone may change.

8 FIG.B 10 FIG.A 8 FIG.B 10 FIG.B 1001 1001 1002 1002 1005 For example, as shown in, the mobile phone displays the UI interface of the video application in the “immersive display” manner, and the mobile phone is in the immersive display state. The mobile phone receives a call from another device (For example, a mobile phone number is 180****7522), an incoming call notification messageshown inmay be displayed. The incoming call notification messageincludes an “Answer” buttonand a “Hang up” button. In response to a tapping operation performed by the user on the “Hang up” button, the mobile phone may display the UI interface of the video application shown in. In response to a tapping operation performed by the user on the “Answer” button, the mobile phone may display a display interfaceshown in, and the mobile phone performs interface switching.

8 FIG.B 10 FIG.B 1005 Alternatively, in some other embodiments, as shown in, the mobile phone displays the UI interface of the video application in the “immersive display” manner, and the mobile phone is in the immersive display state. The mobile phone receives a call from another device (For example, a mobile phone number is 180****7522), the display interfaceshown inmay be directly displayed, and the mobile phone performs interface switching.

10 FIG.A 10 FIG.B 10 FIG.A 10 FIG.B 1005 A display interface shown indoes not include the status bar and the navigation bar of the mobile phone, and the mobile phone is in the immersive display state. As shown in, the display interfaceincludes not only a call interface of a telephone application, but also the status bar and the navigation bar of the mobile phone. The mobile phone is in the non-immersive display state. In other words, the mobile phone switches from the immersive display state shown into the non-immersive display state shown in, and immersive status data of the mobile phone changes.

10 FIG.B 8 FIG.B 10 FIG.B 8 FIG.B 1006 1006 1006 The display interface shown inincludes a “Hang up” button. In response to a tapping operation performed by the user on the “Hang up” button, the mobile phone may also perform interface switching. For example, in response to the tapping operation performed by the user on the “Hang up” button, as shown in, the mobile phone may display the UI interface of the video application in the “immersive display” manner. In other words, the mobile phone switches from the non-immersive display state shown into the immersive display state shown in, and the immersive status data of the mobile phone changes.

8 FIG.B 11 FIG.A 11 FIG.B 1101 1101 1103 For another example, as shown in, the mobile phone displays the UI interface of the video application in the “immersive display” manner, and the mobile phone is in the immersive display state. After receiving a new message from another device, the mobile phone may display a new message notificationshown in. In response to a tapping operation performed by the user on the new message notification, the mobile phone may display a display interfaceshown in, and the mobile phone performs interface switching.

11 FIG.A 11 FIG.B 11 FIG.A 11 FIG.B 1103 A display interface shown indoes not include a status bar and a navigation bar of the mobile phone, and the mobile phone is in an immersive display state. As shown in, the display interfaceincludes not only a call interface of a telephone application, but also the status bar and the navigation bar of the mobile phone. The mobile phone is in the non-immersive display state. In other words, the mobile phone switches from the immersive display state shown into the non-immersive display state shown in, and immersive status data of the mobile phone changes.

1103 1104 1104 1104 11 FIG.B 8 FIG.B 11 FIG.B 8 FIG.B The display interfaceshown inincludes a “Return to video” button. In response to a tapping operation performed by the user on the “Return to video” button, the mobile phone may also perform interface switching. For example, in response to the tapping operation performed by the user on the “Return to video” button, as shown in, the mobile phone may display the UI interface of the video application in an “immersive display” manner. In other words, the mobile phone switches from the non-immersive display state shown into the immersive display state shown in, and the immersive status data of the mobile phone changes.

In conclusion, when interface switching occurs on the mobile phone, the mobile phone may be triggered to switch from the immersive display state to the non-immersive display state, or to switch from the non-immersive display state to the immersive display state. That is, when interface switching occurs on the mobile phone, the immersive status data of the mobile phone may change. Therefore, in this embodiment of this application, when interface switching occurs on the mobile phone, the immersive status data of the mobile phone is collected, and changed immersive status data may be collected. In this way, the mobile phone may perform (3) “Remote-local status data transmission” procedure to transmit latest immersive status data of the mobile phone to the tablet computer.

1002 1006 1101 1104 10 FIG.A 10 FIG.B 11 FIG.A 11 FIG.B It should be noted that, the first preset operation in the foregoing implementation (2) may further include: the tapping operation performed by the user on the “Answer” buttonshown in, the tapping operation performed by the user on the “Hang up” buttonshown in, the tapping operation performed by the user on the new message notificationshown in, and the tapping operation performed by the user on the “Return to video” buttonshown in.

Generally, the foregoing first preset operation may trigger interface switching on the mobile phone. Therefore, in this embodiment of this application, that the mobile phone collects the immersive status data of the mobile phone may be triggered by the foregoing first preset operation, or may be triggered by interface switching on the mobile phone. This is not limited in this embodiment of this application.

The mobile phone periodically collects immersive status data of the mobile phone after a projection starts.

Periodicity duration in which the mobile phone periodically collects the immersive status data of the mobile phone may be preconfigured in the mobile phone, or may be set by a user in the mobile phone.

4 FIG.A 4 FIG.B 12 FIG. In this embodiment of this application, in a process of projecting a screen from a mobile phone to a tablet computer, when the mobile phone meets the foregoing trigger condition or trigger occasion, the mobile phone may collect the immersive status data of the mobile phone. In this embodiment of this application, with reference to the software architecture shown inand, a specific manner in which the mobile phone collects the immersive status data of the mobile phone is described by using an example. For example, as shown in, a mobile phone may perform the following step a to step c, to implement the foregoing (2) “Remote device status collection” procedure.

401 400 Step a: An immersive state collection module of a framework layerregisters monitoring with a window display module, and requests the window display module to monitor whether an application of an application layeris in an immersive display state.

401 400 400 For example, when the mobile phone starts to project a screen to the tablet computer, the immersive state collection module of the framework layermay register monitoring with the window display module, and request the window display module to monitor whether the application of the application layeris in the immersive display state. In addition, in a process in which the mobile phone projects a screen to the tablet computer, the window display module may continuously monitor whether the application at the application layeris in the immersive display state.

400 400 400 400 400 A display state of the application at the application layermay include: the immersive display state and a non-immersive display state. That the application at the application layeris in the immersive display state specifically means: The mobile phone displays a UI interface of the application at the application layerin an “immersive display” manner. In this case, the mobile phone is in the immersive display state. That the application at the application layeris in the non-immersive display state specifically means: The mobile phone displays a UI interface of the application at the application layerin a “non-immersive display” manner. In this case, the mobile phone is in the non-immersive display state.

400 Step b: The window display module detects that the display status of the application at the application layerchanges.

401 400 In a process of projecting a screen from the mobile phone to the tablet computer, when the mobile phone meets the foregoing trigger condition or trigger occasion, the window display module of the framework layermay detect that the display status of the application at the application layerchanges.

400 12 FIG. For example, in this embodiment of this application, a principle of “the window display module detects that the display status of the application at the application layerchanges” in step b is described herein by using an example in which the mobile phone switches from the non-immersive display state to the immersive display state. Specifically, as shown in, step b may include step b-1, step b-2, and step b-3.

400 401 Step b-1: The application of the application layerrequests the immersive display state from the window display module of the framework layer.

400 In a process in which the mobile phone projects a screen to the tablet computer, when the mobile phone meets the foregoing trigger condition or trigger occasion, the application at the application layermay request the immersive display state from the window display module.

400 Step b-2: After receiving the request of the application, the window display module sends a hiding instruction to a system UI of the application layer.

The hiding instruction indicates the system UI to hide a navigation bar and a status bar.

Step b-3: After receiving the hiding instruction, the system UI hides the navigation bar and status bar.

After the navigation bar and the status bar are hidden by the system UI, the mobile phone may enter the immersive display state, that is, the mobile phone switches from the non-immersive display state to the immersive display state.

Step c: The window display module notifies the immersive state collection module: current display state of the system UI (for example, the immersive display state).

After the window display module sends the hiding instruction to the system UI, or when the window display module sends the hiding instruction to the system UI, the window display module may alternatively perform step c. In this way, the immersive state collection module may learn of the current display state of the system UI in time. For example, the system UI is hidden, and the mobile phone enters the immersive display state.

400 401 400 In some other embodiments, the mobile phone may alternatively switch from the immersive display state to the non-immersive display state. In this embodiment, step b-1 may be replaced with “the application of the application layerrequests a non-immersive display state from the window display module of the framework layer”. The foregoing step b-2 may be replaced with “after receiving the request of the application, the window display module sends, to the system UI of the application layer, an instruction (referred to as a display instruction) for not hiding the navigation bar and the status bar.” The display instruction indicates the system UI to display the navigation bar and the status bar, that is, not to hide the navigation bar and the status bar. The foregoing step b-3 may be replaced with “After receiving the display instruction, the system UI displays the navigation bar and the status bar, that is, does not hide the navigation bar and the status bar”.

In conclusion, after step c, the immersive state collection module may collect the immersive status data of the mobile phone. The immersive status data indicates that the mobile phone is in the immersive display state or the non-immersive display state.

After collecting the immersive status data of the mobile phone, the mobile phone may transmit the immersive status data of the mobile phone to the tablet computer.

4 FIG.A 4 FIG.B 13 FIG.A 13 FIG.B In this embodiment of this application, with reference to the software architecture shown inand, a specific manner of transmitting the immersive status data by the mobile phone to the tablet computer is described herein by using an example. For example, as shown inand, a mobile phone may perform the following step 1 to step 4, to implement the foregoing (3) “Remote-local status data transmission” procedure.

1301 1302 Step 1: An immersive state collection moduleof the mobile phone sends collected immersive status data to a data management module.

1302 After receiving the immersive status data, the data management modulemay convert the immersive status data into an immersive data structure. The data structure may include at least: an immersive event identifier tag_immersive; and an immersive event value_immersive.

6 FIG.A 6 FIG.A The immersive event identifier tag_immersive may be used to indicate a function or role of the immersive data structure. Specifically, the immersive event identifier tag_immersive may indicate that the immersive data structure is used to indicate a status of the mobile phone. The immersive event value_immersive may be any one of the following events: (1) An event 1 indicating that the mobile phone is in the non-immersive display state in a projection process (namely, the event 1 shown in), where the event 1 is used to indicate, to the tablet computer, that “the mobile phone is in the non-immersive display state”. (2) An event 2 indicating that the mobile phone is in the immersive display state in a projection process (namely, the event 2 shown in), where the event 2 is used to indicate, to the tablet computer, that “the mobile phone is in the immersive display state”.

402 Step 2: A driver layerencapsulates the foregoing immersive data structure into a projection transmission protocol between the mobile phone and the tablet computer.

In one case, a wireless connection is established between the mobile phone and the tablet computer. In this case, the projection transmission protocol is a wireless projection transmission protocol. For example, the wireless projection transmission protocol may be a Huawei cast+protocol. Certainly, the wireless projection transmission protocol may alternatively be any protocol such as a Miracast protocol, an AirPlay protocol, or a Digital Living Network Alliance (DIGITAL LIVING NETWORK ALLIANCE, DLNA) protocol.

In another case, a wired connection is established between the mobile phone and the tablet computer. In this case, the projection transmission protocol is a wired projection transmission protocol.

For example, when the foregoing wired connection is a USB connection, the mobile phone and the tablet computer may establish a connection by using a remote network driver interface specification (Rndis). The wired projection transmission protocol may be a Huawei cast+protocol. Certainly, the wired projection transmission protocol may also be any protocol such as a Miracast protocol or an HDMI protocol.

It should be noted that, because a data volume of the foregoing immersive status data (namely, the immersive data structure) is small, it may be encapsulated into any protocol such as Huawei cast+protocol and mirrocast protocol for transmission, or may be encapsulated into another user-defined transmission protocol for independent transmission. A projection transmission protocol used to transmit the immersive status data is not limited in this embodiment of this application.

402 Step 3: The driver layertransmits the immersive data structure to the tablet computer by using the connection established between the mobile phone and the tablet computer.

13 FIG.A 13 FIG.B 13 FIG.A 13 FIG.B 13 FIG.A 13 FIG.B For example, the mobile phone may transmit the immersive status data of the mobile phone to the tablet computer by using the connection (for example, the wired connection or the wireless connection) established between the mobile phone and the tablet computer. For example, the wired connection may be a USB connection, and the wireless connection may be any connection such as a Bluetooth connection or a Wi-Fi connection. The USB connection may correspond to a USB channel shown inand, the Bluetooth connection may correspond to a Bluetooth channel shown inand, and the Wi-Fi connection may correspond to a Wi-Fi channel shown inand.

412 1303 Step 4: After the tablet computer receives the immersive data structure, a driver layersends the immersive data structure to the data management module.

201 202 After receiving the immersive status data (for example, the immersive data structure) from the mobile phone (for example, the remote device), the tablet computer (that is, the local device) may adjust a status of the tablet computer according to the immersive status data, so that the status of the tablet computer is consistent with a state indicated by the immersive status data.

8 FIG.A 802 For example, as shown in, in a process of projecting a screen from the mobile phone to the tablet computer, the mobile phone is in the non-immersive display state, and the tablet computer (for example, a projection windowof the tablet computer) is also in the non-immersive display state. The tablet computer is in the same state as the mobile phone.

8 FIG.A 8 FIG.B 8 FIG.A 8 FIG.B 8 FIG.B 8 FIG.A 8 FIG.B 8 FIG.B With reference to the foregoing implementation (1), after the mobile phone switches from the portrait mode shown into the landscape mode shown in, the mobile phone may switch from the non-immersive display state shown into the immersive display state shown in, and executes the foregoing (2) “Remote device status collection” procedure to collect immersive status data 2 of the mobile phone. The immersive status data 2 indicates that the mobile phone is in the immersive display state. Then, the mobile phone may perform (3) “Remote-local status data transmission” procedure. As shown in, the mobile phone may transmit the immersive status data 2 to the tablet computer. Finally, after receiving the immersive status data 2, the tablet computer may perform “Status synchronization of the local device” procedure, to switch from the non-immersive display state shown into the immersive display state shown in. As shown in, both the tablet computer and the mobile phone are in the immersive display state, and the tablet computer is in the same state as the mobile phone.

8 FIG.B 8 FIG.A 8 FIG.B 8 FIG.A 8 FIG.A 8 FIG.B 8 FIG.A 8 FIG.A For another example, with reference to the foregoing implementation (1), after the mobile phone switches from the landscape mode shown into the portrait mode shown in, the mobile phone may switch from the immersive display state shown into the non-immersive display state shown in, and executes the foregoing (2) “Remote device status collection” procedure to collect immersive status data 1 of the mobile phone. The immersive status data 1 indicates that the mobile phone is in the non-immersive display state. Then, the mobile phone may perform (3) “Remote-local status data transmission” procedure. As shown in, the mobile phone may transmit the immersive status data 1 to the tablet computer. Finally, after receiving the immersive status data 1, the tablet computer may perform “Status synchronization of the local device” procedure, to switch from the immersive display state shown into the non-immersive display state shown in. As shown in, both the tablet computer and the mobile phone are in the non-immersive display state, and the tablet computer is in the same state as the mobile phone.

801 801 8 FIG.A 8 FIG.A 9 FIG.A 9 FIG.A 8 FIG.A 9 FIG.A 9 FIG.A For another example, the mobile phone may receive the tapping operation (namely, the first preset operation) performed by the user on the “extended” buttonshown in. With reference to the foregoing implementation (2), in response to the tapping operation performed by the user on the “extended” button, the mobile phone may switch from the non-immersive display state shown into the immersive display state shown in, and executes the foregoing (2) “Remote device status collection” procedure to collect immersive status data 2 of the mobile phone. The immersive status data 2 indicates that the mobile phone is in the immersive display state. Then, the mobile phone may perform (3) “Remote-local status data transmission” procedure. As shown in, the mobile phone may transmit the immersive status data 2 to the tablet computer. Finally, after receiving the immersive status data 2, the tablet computer may perform “Status synchronization of the local device” procedure, to switch from the non-immersive display state shown into the immersive display state shown in. As shown in, both the tablet computer and the mobile phone are in the immersive display state, and the tablet computer is in the same state as the mobile phone.

8 FIG.A 9 FIG.A It should be noted that, the reason why the mobile phone switches from the non-immersive display state shown into the immersive display state shown inis as follows: The mobile phone receives the first preset operation instead of switching from the portrait mode to the landscape mode. In other words, the mobile phone may be triggered to switch from the non-immersive display state to the immersive display state, or to switch from the immersive display state to the non-immersive display state when the mobile phone performs landscape/portrait mode switching and receives the first preset operation. If the mobile phone performs landscape/portrait mode switching and the mobile phone receives the first preset operation, the mobile phone may be triggered to perform the foregoing (2) “Remote device status collection” procedure.

10 FIG.A For another example, as shown in, in a process of projecting a screen from the mobile phone to the tablet computer, the mobile phone is in the immersive display state, and the tablet computer is also in the immersive display state. The tablet computer is in the same state as the mobile phone.

1002 1002 10 FIG.A 10 FIG.A 10 FIG.A 10 FIG.B With reference to the foregoing implementation (2), the mobile phone may receive the tapping operation performed by the user on the “Answer” buttonshown in. In response to the tapping operation performed by the user on the “Answer” buttonshown in, the mobile phone may switch from the immersive display state shown into the non-immersive display state shown in, and perform the foregoing (2) “Remote device status collection” procedure, and collect the immersive status data 1 of the mobile phone.

1002 10 FIG.A 10 FIG.A 10 FIG.B Alternatively, with reference to the foregoing implementation (3), in response to the tapping operation performed by the user on the “Answer” buttonshown in, a display interface of the mobile phone is switched from the UI interface of the video application shown into the call interface shown in. In response to interface switching of the mobile phone, the mobile phone may perform the foregoing (2) “Remote device status collection” procedure to collect the immersive status data 1 of the mobile phone.

10 FIG.B 10 FIG.A 10 FIG.B 10 FIG.B 10 FIG.B 1007 1007 Then, the mobile phone may perform (3) “Remote-local status data transmission” procedure. As shown in, the mobile phone may transmit the immersive status data 1 to the tablet computer. Finally, after receiving the immersive status data 1, the tablet computer may perform “Status synchronization of the local device” procedure, to switch from the immersive display state shown into the non-immersive display state shown in. As shown in, a projection windowdisplayed on the tablet computer includes a title bar, a navigation bar, and a status bar, and the projection windowis in the non-immersive display state. In conclusion, as shown in, both the tablet computer and the mobile phone are in the non-immersive display state, and the tablet computer is in the same state as the mobile phone.

1006 1006 10 FIG.B 10 FIG.B 10 FIG.B 8 FIG.B For another example, with reference to the foregoing implementation (2), the mobile phone may receive the tapping operation performed by the user on the “Hang up” buttonshown in. In response to the tapping operation performed by the user on the “Hang up” buttonshown in, the mobile phone may switch from the non-immersive display state shown into the immersive display state shown in, perform the foregoing (2) “Remote device status collection” procedure, and collect the immersive status data 2 of the mobile phone.

1006 1005 10 FIG.B 10 FIG.B 8 FIG.B Alternatively, with reference to the foregoing implementation (3), in response to the tapping operation performed by the user on the “Hang up” buttonshown in, the display interface of the mobile phone is switched from the call interfaceshown into the UI interface of the video application shown in. In response to interface switching of the mobile phone, the mobile phone may perform the foregoing (2) “Remote device status collection” procedure to collect the immersive status data 2 of the mobile phone.

8 FIG.B 10 FIG.B 8 FIG.B 8 FIG.B Then, the mobile phone may perform (3) “Remote-local status data transmission” procedure. As shown in, the mobile phone may transmit the immersive status data 2 to the tablet computer. Finally, after receiving the immersive status data 2, the tablet computer may perform “Status synchronization of the local device” procedure, to switch from the non-immersive display state shown into the immersive display state shown in. As shown in, both the tablet computer and the mobile phone are in the immersive display state, and the tablet computer is in the same state as the mobile phone.

11 FIG.A For another example, as shown in, in a process of projecting a screen from the mobile phone to the tablet computer, the mobile phone is in the immersive display state, and the tablet computer is also in the immersive display state. The tablet computer is in the same state as the mobile phone.

1101 1101 11 FIG.A 11 FIG.A 11 FIG.A 11 FIG.B With reference to the foregoing implementation (2), the mobile phone may receive a tapping operation performed by the user on a new message notificationshown in. In response to the tapping operation performed by the user on the new message notificationshown in, the mobile phone may switch from the immersive display state shown into the non-immersive display state shown in, perform the foregoing (2) “Remote device status collection” procedure, and collect the immersive status data 1 of the mobile phone.

1101 1104 11 FIG.A 11 FIG.A 11 FIG.B Alternatively, with reference to the foregoing implementation (3), in response to the tapping operation performed by the user on the new message notificationshown in, the display interface of the mobile phone is switched from the UI interface of the video application shown into a chat interfaceshown in. In response to interface switching of the mobile phone, the mobile phone may perform the foregoing (2) “Remote device status collection” procedure to collect the immersive status data 1 of the mobile phone.

11 FIG.B 11 FIG.A 11 FIG.B 11 FIG.B 11 FIG.B 1106 1106 Then, the mobile phone may perform (3) “Remote-local status data transmission” procedure. As shown in, the mobile phone may transmit the immersive status data 1 to the tablet computer. Finally, after receiving the immersive status data 1, the tablet computer may perform “Status synchronization of the local device” procedure, to switch from the immersive display state shown into the non-immersive display state shown in. As shown in, a projection windowdisplayed on the tablet computer includes a title bar, a navigation bar, and a status bar, and the projection windowis in the non-immersive display state. In conclusion, as shown in, both the tablet computer and the mobile phone are in the immersive display state, and states of the tablet computer and the mobile phone are consistent.

1105 1105 11 FIG.B 10 FIG.B 11 FIG.B 8 FIG.B For another example, with reference to the foregoing implementation (2), the mobile phone may receive the tapping operation performed by the user on the “Return to video” buttonshown in. In response to the tapping operation performed by the user on the “Return to video” buttonshown in, the mobile phone may switch from the non-immersive display state shown into the immersive display state shown in, perform the foregoing (2) “Remote device status collection” procedure, and collect the immersive status data 2 of the mobile phone.

1105 1104 11 FIG.B 11 FIG.B 8 FIG.B Alternatively, with reference to the foregoing implementation (3), in response to the tapping operation performed by the user on the “Return to video” buttonshown in, the display interface of the mobile phone is switched from the chat interfaceshown into the UI interface of the video application shown in. In response to interface switching of the mobile phone, the mobile phone may perform the foregoing (2) “Remote device status collection” procedure to collect the immersive status data 2 of the mobile phone.

8 FIG.B 11 FIG.B 8 FIG.B 8 FIG.B Then, the mobile phone may perform (3) “Remote-local status data transmission” procedure. As shown in, the mobile phone may transmit the immersive status data 2 to the tablet computer. Finally, after receiving the immersive status data 2, the tablet computer may perform “Status synchronization of the local device” procedure, to switch from the non-immersive display state shown into the immersive display state shown in. As shown in, both the tablet computer and the mobile phone are in the immersive display state, and states of the tablet computer and the mobile phone are consistent.

14 FIG. 1401 1403 For example, as shown in, the foregoing (4) “Status synchronization of the local device” procedure may include the following steps: S-S

1401 S: A tablet computer receives and parses immersive status data.

It can be learned from the foregoing embodiment that: The immersive status data transmitted by the mobile phone to the tablet computer is specifically an immersive data structure. The data structure may include at least: an immersive event identifier tag_immersive and an immersive event value_immersive. Therefore, the tablet computer parses the immersive status data (that is, the immersive data structure) to obtain the immersive event identifier tag_immersive and the immersive event value_immersive. The immersive event identifier tag_immersive may be referred to as an event identifier for short. The immersive event value_immersive may include a first event and a second event.

The immersive event identifier tag_immersive may be used to indicate a function or role of the immersive data structure. Specifically, the immersive event identifier tag_immersive may indicate that the immersive data structure is used to indicate a status of the mobile phone. Therefore, the tablet computer may determine, based on the immersive event identifier tag_immersive obtained through parsing, that the immersive event value_immersive indicates the status of the mobile phone.

6 FIG.A 6 FIG.B 1402 The immersive event value_immersive may be any one of the following events: (1) A second event, that is, an event 1 in a non-immersive display state in a projection process of the mobile phone (that is, the event 1 shown in). (2) The first event is an event 2 (that is, the event 2 shown in) in which the mobile phone is in an immersive display state in a projection process. The event 1 is used to indicate, to the tablet computer, that “the mobile phone is in the non-immersive display state”, and the event 2 is used to indicate, to the tablet computer, that “the mobile phone is in the immersive display state”. Therefore, the tablet computer may perform Sto determine, according to the immersive event value_immersive obtained through parsing, whether the mobile phone is in the immersive display state or the non-immersive display state.

1402 S: The tablet computer determines whether the immersive status data indicates that the mobile phone is in the immersive display state.

1403 Specifically, if the immersive status data indicates that the mobile phone is in the immersive display state, the tablet computer performs S. If the immersive status data indicates that the mobile phone is in the non-immersive display state, (4) “Status synchronization of the local device” procedure ends.

1403 S: The tablet computer hides the navigation bar, the status bar, and the title bar.

4 FIG.A 4 FIG.B 15 FIG. In this embodiment of this application, with reference to the software architecture shown inand, an example in which the immersive data structure indicates that the mobile phone is in the immersive state is used to describe a specific manner of performing status synchronization by the tablet computer. As shown in, a mobile phone may perform the following step I to step VI, to implement the foregoing (4) “Status synchronization of the local device” procedure.

1302 Step I: After obtaining the immersive event identifier tag_immersive by parsing, a data management modulesends the immersive data structure to an immersive state restoration module.

The immersive state restoration module may parse an immersive event value_immersive in the immersive data structure. When it is identified that the mobile phone is in the immersive display state, a projection management application (a projection application for short) may be controlled to hide the title bar. Specifically, after step I, you can perform step II.

Step II: The immersive state restoration module parses the immersive event value_immersive in the immersive data structure, identifies that the mobile phone is in the immersive display state, and sends an immersive instruction to the projection application.

1401 1402 The immersive instruction indicates the projection management application to hide the title bar. Sand Smay include step I and step II.

Step III: The projection management application hides the title bar.

Step IV: The projection management application requests an immersive display state from a window display module.

For example, the projection management application may send a hiding request to the window display module, to request the window display module to hide a status bar and a navigation bar.

Step V: The window display module sends a hiding instruction to a system UI. The hiding instruction indicates the system UI to hide the status bar and the navigation bar.

Step VI: The system UI hides the status bar and the navigation bar.

1403 Smay include step III and step VI.

201 202 202 201 In the method provided in this embodiment of this application, in a process in which a remote device(for example, a mobile phone) projects a screen to a local device(for example, a tablet computer), the mobile phone may not only transmit projection data to the tablet computer, but also transmit immersive status data to the tablet computer. The immersive status data may indicate a status of the mobile phone, for example, an immersive display state or a non-immersive display state. In this way, the tablet computer may adjust a status of the tablet computer based on the immersive status data, to implement immersive display effect synchronization between the local deviceand the remote device. In this way, when the mobile phone is in the “immersive display state”, the tablet computer may also enter the “immersive display state”, and display a projection interface of the mobile phone in an “immersive display” manner.

In some other embodiments, in a process of projecting a screen from the mobile phone to the tablet computer, when the mobile phone meets a trigger condition or a trigger occasion in any one of the foregoing implementations (1) to (4), the foregoing (2) “Remote device status collection” procedure, (3) “Remote-local status data transmission” procedure, and (4) “Status synchronization of the local device” procedure cannot be performed. Instead, the method in this embodiment of this application can be performed only after a preset function switch is started, when the foregoing trigger condition or trigger occasion is met. The preset function switch is used to trigger the mobile phone to start the preset function, that is, a function of synchronizing the immersive status data of the mobile phone to the tablet computer by the mobile phone.

For example, the mobile phone may start the foregoing preset function in any one of the following implementations, that is, a function of synchronizing the immersive status data of the mobile phone to the tablet computer by the mobile phone.

Implementation (a): The projection interface of the mobile phone may include the preset function switch. The preset function switch may be displayed in a switch control at a fixed position in the projection interface. Alternatively, the preset function switch may be a floating window, a floating button, or a floating icon displayed on the projection interface.

16 FIG. 1601 1601 For example, as shown in, a projection interface of a mobile phone includes a preset function switch, for example, a “synchronous switch”. In response to a turning-on operation of a user on the “synchronous switch”, the mobile phone may start a preset function.

The preset function switch displayed on the projection interface of the mobile phone or the projection window of the tablet computer in a manner of the floating window, the floating button, or the floating icon may be translucent. In this way, visual interference caused by the preset function switch to the user can be reduced, and use experience of the user can be improved.

Implementation (b): A setting interface of the mobile phone may include the foregoing preset function switch. The mobile phone may receive a turning-on operation performed by the user on the preset function switch in the setting interface, and start the preset function.

17 FIG. 1701 1702 1702 For example, as shown in, a setting interfaceof the mobile phone includes a preset function switch, for example, a “Projection status synchronization” switch. In response to a turning-on operation of the user on the “Projection status synchronization” switch, the mobile phone may start the preset function.

1701 17 FIG. The setting interfaceshown infurther includes an “airplane mode” switch, a “WLAN” option, a “Bluetooth” option, a “mobile network” option, and the like of the mobile phone. For specific functions of these switches and options, refer to detailed descriptions of each switch and option on the setting interface in a conventional technology. Details are not described herein again.

Implementation (c): A notification bar of the mobile phone may include the foregoing preset function switch. The mobile phone starts the preset function in response to the operation of starting the preset function that is entered by the user on the notification bar of the mobile phone.

1801 1801 1802 1802 18 FIG. For example, the mobile phone may display a notification barshown inin response to a pull-down operation performed by the user on the top of a display (such as a touchscreen) of the mobile phone. The notification barincludes the preset function switch, for example, a “Projection status synchronization” switch. In response to a turning-on operation of the user on the “Projection status synchronization” switch, the mobile phone may start the preset function.

1801 18 FIG. The notification barshown infurther includes an “airplane mode” switch, a “WLAN” option, a “Bluetooth” option, a “mobile network” option, a “flashlight” switch, and the like of the mobile phone. For specific functions of these switches and options, refer to detailed descriptions of each switch and option on the notification bar in a conventional technology. Details are not described herein again.

It should be understood that after the mobile phone starts the preset function, when the mobile phone meets the trigger condition or trigger occasion in any one of the foregoing implementations (1) to (4), the foregoing (2) “Remote device status collection” procedure, (3) “Remote-local status data transmission” procedure, and (4) “Status synchronization of the local device” procedure can be performed.

Certainly, a projection window, a notification bar, and a setting interface of the tablet computer may also include the preset function switch. The preset function switch is used to trigger the mobile phone to start the preset function in a virtual display projection scenario (for example, a function of the mobile phone synchronizing the immersive status data of the mobile phone to the tablet computer). For a principle of starting the preset function of the mobile phone through interaction between the tablet computer and the mobile phone in the virtual display projection scenario, refer to the detailed descriptions in the following embodiment. Details are not described herein again.

In this embodiment, the mobile phone or the tablet computer may start the preset function of the mobile phone in any one of the foregoing implementation. In this way, when the mobile phone meets the trigger condition or the trigger occasion in this embodiment of this application, the mobile phone may perform the method in this embodiment of this application, to implement status synchronization between the tablet computer and the mobile phone.

It should be noted that, the foregoing embodiment describes a solution of implementing status synchronization between the tablet computer and the mobile phone in a process in which the mobile phone projects a screen to the tablet computer in a single window in a physical display projection scenario. In this embodiment of this application, the mobile phone may alternatively project a screen to the tablet computer in a plurality of windows (for example, dual windows). In a process in which the mobile phone projects a screen to the tablet computer by using the plurality of windows, status synchronization between the tablet computer and the mobile phone is implemented.

(1) That the mobile phone projects a screen to the tablet computer in a single window specifically refers to: In a process of projecting a screen from the mobile phone to the tablet computer, a display of the mobile phone displays only one window, and one interface of one application is displayed in the window. In addition, a projection window of the tablet computer also displays one interface of the application.

6 FIG.A 6 FIG.B 8 FIG.A 19 FIG.A 19 FIG.B 610 630 802 For example, as shown in, the mobile phone displays a playback interface of a video application in the single window. A projection windowof the tablet computer displays a playback interface of the video application in the single window. For another example, as shown in, the mobile phone displays a playback interface of a video application in the single window. A projection windowof the tablet computer displays a playback interface of the video application in the single window. For another example, as shown in, the mobile phone displays a playback interface of a video application in the single window. A projection windowof the tablet computer displays a playback interface of the video application in the single window. For another example, as shown inor, the mobile phone displays a single window A. The tablet computer also displays the single window A. The window A is used to display an interface of an application, for example, an interface of a video application or an interface of a game application.

19 FIG.A 19 FIG.B In this embodiment of this application, in a process in which the mobile phone projects a screen to the tablet computer in the single window, status synchronization between the tablet computer and the mobile phone can be implemented. For example, as shown in, when the mobile phone is in a non-immersive display state, the tablet computer is also in the non-immersive display state. For another example, as shown in, when the mobile phone is in an immersive display state, the tablet computer is also in the immersive display state.

(2) That the mobile phone projects a screen to the tablet computer in a plurality of windows specifically refers to: In a process in which the mobile phone projects a screen to the tablet computer, the mobile phone displays the plurality of windows on split screens, and the plurality of windows display a plurality of interfaces. Each window corresponds to one interface. The plurality of interfaces may be interfaces of a same application, or may be interfaces of different applications. In addition, a projection interface of the tablet computer may alternatively display the plurality of interfaces on split screens.

20 FIG.A 20 FIG.B 20 FIG.C In the following embodiments, the method in this embodiment of this application is described by using an example in which the foregoing plurality of windows are dual windows. For example, as shown in,, or, the mobile phone displays a window A and a window B. The tablet also displays the window A and the window B. The window A and the window B may be two windows of one application, or may be two windows of different applications. This is not limited in this embodiment of this application.

20 FIG.A 20 FIG.C 20 FIG.B 1 2 In the method provided in this embodiment of this application, in a process in which the mobile phone projects a screen to the tablet computer by using a plurality of windows, status of each window may be different or may be the same. For example, as shown in, both the window A and the window B displayed on the mobile phone are in a non-immersive display state. As shown in, both the window A and the window B displayed on the mobile phone are in an immersive display state. For another example, as shown in, the window A displayed on a mobile phoneis in the non-immersive state, and the window B is in the immersive display state. The window A displayed on a mobile phoneis in the immersive display state, and the window B is in the non-immersive display state.

Regardless of whether the window A and the window B of the mobile phone are in the immersive display state or the non-immersive display state, status synchronization between the tablet computer and the mobile phone can be implemented by using the method in this embodiment of this application. In the following embodiment, a specific method for implementing status synchronization between the tablet computer and the mobile phone in a process of projection from the mobile phone to the tablet computer in dual windows is described.

The mobile phone may collect immersive status data A of the window A, and collect immersive status data B of the window B. Then, the mobile phone may transmit the immersive status data A and the immersive status data B to the tablet computer. For a method for collecting and transmitting the immersive status data of each window by the mobile phone to the tablet computer, refer to the method for collecting and transmitting the immersive status data of a single window to the tablet computer by the mobile phone in a projection process in a single window. Details are not described herein in this embodiment of this application.

After receiving the immersive status data A and the immersive status data B, the tablet computer may adjust a status of the tablet computer based on the immersive status data A and the immersive status data B, to implement status synchronization (that is, immersive display effect synchronization) between the tablet computer and the mobile phone. For example, the window A and the window B are displayed on split screens, and the window A and the window B that are displayed on split screens are projected to the tablet computer.

In one case, if the mobile phone displays the window A and the window B in a “non-immersive display” manner, that is, both the window A and the window B are in the non-immersive display state, the tablet computer may display, in the “non-immersive display” manner, the window A and the window B projected by the mobile phone.

20 FIG.A Specifically, the mobile phone may display first content and third content in two windows of a first interface on split screens. For example, the window A displays the first content, and the window B displays the third content. If the immersive status data A indicates that the window A of the mobile phone is in the non-immersive display state (for example, the window A includes a status bar and/or a navigation bar), and the immersive status data B indicates that the window B of the mobile phone is in the non-immersive display state (for example, the window B includes the status bar and/or the navigation bar), the tablet computer may display the window A and the window B on split screens in the “non-immersive display” manner. For example, as shown in, both the window A and the window B of the mobile phone are in the non-immersive display state, and the tablet computer displays the window A and the window B on split screens in a first projection window in the “non-immersive display” manner. The tablet computer displays the first content in the window A, and displays the third content in the window B.

In one case, if the mobile phone displays at least one of the window A and the window B in an “immersive display” manner, that is, at least one of the window A and the window B is in the immersive display state, the tablet computer may display the window A and the window B projected by the mobile phone in an “immersive display” manner.

Specifically, the mobile phone may display second content and fourth content in two windows of a second interface on split screens. For example, the window A displays the second content, and the window B displays the fourth content. If at least one of the window A and the window B of the mobile phone is in the immersive display state, the tablet computer may display the second content and the fourth content in two windows of a second projection window on split screens.

20 FIG.B For example, if the immersive status data A indicates that the window A of the mobile phone is in the non-immersive display state, the immersive status data B indicates that the window B of the mobile phone is in the immersive display state; or the immersive status data A indicates that the window A of the mobile phone is in the immersive display state, and the immersive status data B indicates that the window B of the mobile phone is in the non-immersive display state, the tablet computer may display the window A and the window B on split screens in the “immersive display” manner. For example, as shown in, both the window A and the window B of the mobile phone are in the immersive display state, and the tablet computer displays the window A and the window B on split screens in the “immersive display” manner.

20 FIG.C For another example, if the immersive status data A indicates that the window A of the mobile phone is in the immersive display state, and the immersive status data B indicates that the window B of the mobile phone is in the immersive display state, the tablet computer may display the window A and the window B on split screens in the “immersive display” manner. For example, as shown in, both the window A and the window B of the mobile phone are in the immersive display state, and the tablet computer displays the window A and the window B on split screens in the “immersive display” manner.

20 FIG.B 20 FIG.C 20 FIG.B 20 FIG.C 20 FIG.B 20 FIG.C It should be noted that,andshow the immersive display state and the non-immersive display state of a split-screen window (such as the window A or the window B) in a black-and-white filling manner.anddo not show a presentation manner of a status bar and a navigation bar on a display of the mobile phone when the mobile phone displays a split-screen window in the “non-immersive display” manner.andalso do not show a presentation manner of a status bar, a navigation bar, and a title bar on a display of a tablet computer when the tablet computer displays a split-screen window in the “non-immersive display” manner. For example, in a process of projecting a screen from a mobile phone to a tablet computer in a plurality of windows, the mobile phone displays the window A or the window B in “non-immersive display”. In the non-immersive display state, the mobile phone may separately display the navigation bar and the status bar on both the window A and the window B. In other words, the display of the mobile phone may include two navigation bars and two status bars. Alternatively, in the non-immersive display state, the mobile phone may display only one navigation bar and one status bar. For example, the status bar may be displayed at a position near the top of the mobile phone above the window A and the window B. The navigation bar may be displayed near the rear of the phone below the window A and the window B.

In conclusion, refer to Table 1. Table 1 shows a mapping relationship between a window state and an immersive attribute of a remote device (for example, a mobile phone), and a mapping relationship between a window state and an immersive attribute of a local device (for example, a tablet computer).

TABLE 1 Local device (Such as Remote device a tablet computer) (Such as a mobile phone) System Window Window Window immersive state immersive attributes state attributes Full Screen Immersive Full Screen Immersive Full Screen Non-immersive Full Screen Non- immersive Split screen Window A Window B Split screen Non- Non- Non- immersive immersive immersive Split screen Window A Window B Split screen Immersive Immersive Immersive Split screen Window A Window B Split screen Immersive Immersive Non- immersive Split screen Window A Window B Split screen Immersive Non- Immersive immersive

As shown in Table 1, when a window state of the mobile phone is full screen (that is, the mobile phone displays a single window in full screen), if the window immersive attribute of the single window is “immersive”, a window state of the tablet computer is also full screen (that is, the tablet computer displays the foregoing single window in full screen), and a system immersive attribute of the tablet computer is also “immersive”. That is, both the mobile phone and the tablet computer are in an immersive display state.

As shown in Table 1, when a window state of the mobile phone is full screen (that is, the mobile phone displays a single window in full screen), if the window immersive attribute of the single window is “non-immersive”, a window state of the tablet computer is also full screen (that is, the tablet computer displays the foregoing single window in full screen), and a system immersive attribute of the tablet computer is also “non-immersive”. That is, both the mobile phone and the tablet computer are in a non-immersive display state.

As shown in Table 1, a window state of the mobile phone is split-screen (For example, the mobile phone displays the window A and the window B on split screens), if window immersive attributes of both the window A and the window B are “non-immersive”, a window state of the tablet computer is also split screen (that is, the tablet computer displays the window A and the window B on split screens), and a system immersive attribute of the tablet computer is also “non-immersive”. That is, both the mobile phone and the tablet computer are in a non-immersive display state.

As shown in Table 1, a window state of the mobile phone is split-screen (For example, the mobile phone displays the window A and the window B on split screens), if a window immersive attribute of at least one of the window A and the window B are “immersive”, a window state of the tablet computer is also split screen (that is, the tablet computer displays the window A and the window B in split screen), and a system immersive attribute of the tablet computer is also “immersive”. That is, both the mobile phone and the tablet computer are in an immersive display state.

In this embodiment of this application, in a process in which the mobile phone projects a screen to the tablet computer in a single window or a plurality of windows, status synchronization between the tablet computer and the mobile phone can be implemented.

In the following embodiments, the method in this embodiment of this application is described with reference to a virtual display projection scenario. It can be learned from the description of the “virtual display projection scenario” in the foregoing embodiment that: In the virtual display projection scenario, content displayed on a projection window displayed by a local device (for example, a tablet computer) is different from content displayed on a display interface of a remote device (a mobile phone).

Specifically, the local device (for example, the mobile phone) may adapt to a screen size of the remote device (for example, the tablet computer), generate a virtual display, generate (for example, draw and render) new projection data based on the virtual display, and transmit the projection data to the tablet computer. However, a physical screen size of the mobile phone cannot adapt to the projection data generated based on the virtual display. Therefore, the mobile phone may not display the display content of the projection window of the tablet computer. In this case, the mobile phone may display a main interface, or the mobile phone may display any one of one or more applications that have recently run and are not closed.

In the virtual display projection scenario, the tablet computer may receive an operation performed by a user on the projection window. In response to the operation performed by the user on the projection window, the tablet computer may send a request instruction to the mobile phone. The request instruction is used to request the mobile phone to generate and transmit projection data corresponding to the operation to the tablet computer. After receiving the request instruction, the mobile phone may generate, based on the virtual display, the projection data corresponding to the operation, and transmit the projection data to the tablet computer. After receiving the projection data, the tablet computer may display a corresponding projection window. However, the display interface of the mobile phone may not change.

It should be noted that, in the virtual display projection scenario, the status synchronization between the tablet and the mobile phone specifically refers to: Display content of the virtual display generated when the mobile phone adapts to the screen size of the tablet computer is the same as the display content of the projection window of the tablet computer. However, the virtual display is invisible to the user.

8 FIG.A 21 FIG. 21 FIG. 21 FIG. 803 803 803 803 1 1 For example, as shown in, a UI interface of a video application displayed by the tablet computer includes an “extended” button. The “extended” buttonis configured to trigger the tablet computer to display a video playback picture of the video application in full screen. The tablet computer may receive a tapping operation performed by the user on the “extended” button. In response to the tapping operation performed by the user on the “extended” button, the tablet computer may send a request instructionto the mobile phone. After receiving the request instruction, the mobile phone may generate projection data 1 shown in the virtual display shown in, and transmit the projection data 1 to the tablet computer. After receiving the projection data 1, the tablet computer may display the projection window shown in. However, as shown in, the mobile phone still displays the main interface.

It should be noted that, in a physical display projection scenario, a remote device (such as a mobile phone) controls a local device (such as a tablet computer). However, in a virtual display projection scenario, the local device (such as the tablet computer) controls the remote device (such as the mobile phone). Therefore, the virtual display projection scenario may mean the following: In the physical display projection scenario, the local device (such as the tablet computer) reversely controls the remote device (such as the mobile phone).

In the virtual display projection scenario, the method in this embodiment of this application may also include the following steps: (1) “Discovery, authentication, connection, and projection” procedure; (2) “Remote device status collection” procedure; (3) “Remote-local status data transmission” procedure; (4) “Status synchronization of the local device” procedure

In the virtual display projection scenario, the tablet computer may trigger the mobile phone to perform the foregoing (2) “Remote device status collection” procedure. Specifically, in a process of projecting a screen from a mobile phone to a tablet computer, that collecting a trigger condition or a trigger occasion of immersive status data of the mobile phone may include not only the foregoing implementation (1) to the implementation (4), but also an implementation (5).

After receiving a first message from the tablet computer, the mobile phone collects immersive status data of the virtual display.

In one aspect, when switching from a landscape mode to a portrait mode, the tablet computer may send a first message-1 to the mobile phone, where the first message-1 indicates the tablet computer to switch from the landscape mode to the portrait mode. After receiving the first message-1, the mobile phone may generate projection data in a non-immersive display state based on the virtual display, and the virtual display enters the non-immersive display state. The first message-1 is further used to trigger the mobile phone to collect immersive status data 1 of the virtual display. The immersive status data 1 indicates that the virtual display of the mobile phone is in the non-immersive display state.

In another aspect, when switching from the portrait mode to the landscape mode, the tablet computer sends a first message-2 to the mobile phone, where the first message-2 indicates the tablet computer to switch from the portrait mode to the landscape mode. After receiving the first message-2, the mobile phone may generate projection data in an immersive display state based on the virtual display, and the virtual display enters the immersive display state. The first message-2 is further used to trigger the mobile phone to collect immersive status data 2 of the virtual display. The immersive status data 2 indicates that the virtual display of the mobile phone is in the immersive display state.

In still another aspect, when receiving a second preset operation of the user, the tablet computer may send a preset message (for example, a first message-3) to the mobile phone. The first message-3 is used to trigger the mobile phone to generate, based on the virtual display, projection data corresponding to the second preset operation, and transmit the projection data to the tablet computer. The first message-3 is further used to trigger the mobile phone to collect immersive status data of the virtual display.

8 FIG.A 22 FIG. 22 FIG. 803 803 803 803 For example, as shown in, a UI interface of a video application displayed by the tablet computer includes an “extended” button. The “extended” buttonis configured to trigger the tablet computer to display a video playback picture of the video application in full screen. The foregoing second preset operation may be a tapping operation performed by the user on the “extended” button. In response to the tapping operation performed by the user on the “extended” button, the tablet computer may display a projection window shown in. However, as shown in, the mobile phone still displays a main interface.

1004 1003 1008 1007 1103 1102 1107 1107 10 FIG.A 10 FIG.B 11 FIG.A 11 FIG.B The second preset operation may be any user operation that is received by the tablet computer and that is used to trigger the tablet computer to switch from an immersive display state to a non-immersive display state or switch from a non-immersive display state to an immersive display state. For example, the second preset operation may alternatively be a tapping operation performed by the user on the “Answer” buttonin the incoming call notification messageshown in. For another example, the second preset operation may be a tapping operation performed by the user on the “Hang up” buttonin the projection windowshown in. For another example, the second preset operation may be a tapping operation performed by the user on a new message notificationin the projection windowshown in. For another example, the second preset operation may be a tapping operation performed by the user on the “Return to video” buttonin the projection windowshown in.

16 FIG. 1602 It should be noted that, in the virtual display projection scenario, the user may enable a preset function in a process of projection from the mobile phone to the tablet computer by using a preset function switch in the mobile phone or the tablet computer. The projection window, the setting interface, or the notification bar of the tablet computer may include the foregoing preset function switch. For example, as shown in, the projection window of the tablet computer includes the preset function switch, for example, a “synchronous switch”.

In some other embodiments, in the virtual display projection scenario, the local device (for example, the tablet computer) may also trigger the remote device (for example, the mobile phone) to project a screen to the tablet computer in a plurality of windows (for example, dual windows). Different from the physical display projection scenario, the mobile phone does not display projection interfaces of the plurality of windows.

8 FIG.A 23 FIG.A 23 FIG.B 23 FIG.C 23 FIG.A 23 FIG.B 23 FIG.C 804 804 804 804 2301 2301 2303 2302 For example, as shown in, a UI interface of a video application displayed by the tablet computer includes an “extended” icon. The “extended” iconis used to trigger the tablet computer to display a video playback picture of the video application on split screens. In response to a tapping operation performed by the user on the “extended” icon, the tablet computer may send a second message to the mobile phone. The second message is used to request the mobile phone to generate, based on the virtual display, projection data of a split-screen display interface triggered by the tapping operation on the “extended” icon. For example, the mobile phone may generate projection data corresponding to a virtual display shown in,, and, and send the projection data to the tablet computer. After receiving the projection data, the tablet computer may display a projection windowshown in,, and. The projection windowincludes: a windowthat displays a home page of a video application and a windowthat displays a playback interface of the video application.

23 FIG.A 23 FIG.B 23 FIG.C 21 FIG. 21 FIG. 21 FIG. 23 FIG.A 23 FIG.B 23 FIG.C 21 FIG. 2301 2304 2302 2301 2305 2305 2305 2305 As shown in,, and, the projection windowof the tablet computer includes a title bar. Therefore, the tablet computer is in a non-immersive display state. The windowthat is in the projection windowand that is used to display the playback interface of the video application further includes an “extended” button. The tablet computer may receive a tapping operation (that is, a second preset operation) performed by the user on the “extended” button. In response to the tapping operation performed by the user on the “extended” button, the tablet computer may send a third message to the mobile phone. The third message is used to request the mobile phone to generate, based on the virtual display, projection data of a full-screen display interface triggered by the tapping operation on the “extended” button. For example, the mobile phone may generate projection data corresponding to a virtual display shown in, and send the projection data to the tablet computer. After receiving the projection data, the tablet computer may display a projection window shown in. However, the mobile phone still displays the main interface shown in. In this way, the tablet computer switches from the non-immersive display state shown in,, andto the immersive display state shown in.

2305 2305 21 FIG. 9 FIG.A In some other embodiments, because of the tapping operation performed by the user on the “extended” button, the tablet computer may be triggered to switch from split-screen interfaces of a plurality of windows to a single-window full-screen interface. For example, in response to the tapping operation performed by the user on the “extended” button, the tablet computer may display a projection window shown in. A physical screen size of the mobile phone may be difficult to adapt to multi-window projection data generated based on the virtual display. However, the mobile phone may display the projection data of the single window in the landscape mode. For example, the mobile phone may display the UI interface of the video application shown in.

2305 23 FIG.A 23 FIG.B 23 FIG.C 9 FIG.A Based on this, in response to the tapping operation performed by the user on the “extended” buttonshown in,, and, as shown in, the mobile phone may display the UI interface of the video application in an “immersive display” manner, and indicates the tablet computer to display a corresponding projection window in an “immersive display” manner.

According to the method provided in this embodiment of this application, in a virtual display projection scenario in which the mobile phone projects a screen to the tablet computer by using a plurality of windows, immersive display state synchronization between the tablet computer and the mobile phone may also be implemented.

It should be noted that, during multi-screen collaboration between the local device and the remote device, the local device may display a projection window of the remote device in a full window or a small window. Regardless of whether the local device displays the projection window in full window or small window, if the projection window displayed on the local device displays any of a status bar, a navigation bar, and a title bar, the local device is in the non-immersive display state. If the status bar, navigation bar, and title bar are not displayed on the projection window of the local device, the local device is in the “immersive display state”.

2 FIG.A 24 FIG. 210 210 212 213 214 2401 2401 For example, as shown in, a laptop computer displays a projection windowin a small window. The projection windowincludes a status bar, a navigation bar, and a title bar. Therefore, the laptop computer is in the “non-immersive display state”. For another example, as shown in, a laptop computer displays a projection windowin a small window. The projection windowdoes not include a status bar, a navigation bar, and a title bar. Therefore, the laptop computer is in an “immersive display state”.

2 FIG.B 6 FIG.B 6 FIG.B 220 220 222 223 224 630 630 For another example, as shown in, the tablet computer displays the projection windowin a full window. The projection windowincludes a status bar, a navigation bar, and a title bar. Therefore, the tablet computer is in the “non-immersive display state”. As shown in, the tablet computer displays a projection windowin a full window. The projection windowdoes not include a status bar, a navigation bar, and a title bar. Therefore, the tablet computer shown inis in the “immersive display state”.

100 1 FIG. In some other embodiments of this application, an electronic device is provided. The electronic device may include: the foregoing touchscreen, a memory, and one or more processors. The touchscreen, the memory, and the processor are coupled. The memory is configured to store computer program code. The computer program code includes computer instructions. When the processor executes computer instructions, the electronic device may perform functions or steps performed by the mobile phone in the foregoing method embodiments. For a structure of the electronic device, refer to the structure of the electronic deviceshown in.

In some other embodiments of this application, a display apparatus is provided. The apparatus may be applied to an electronic device including the foregoing touchscreen. The apparatus is configured to perform functions or steps performed by the mobile phone in the foregoing method embodiments.

25 FIG. 2501 2502 2501 2502 2502 2502 2501 2502 2501 2501 An embodiment of this application further provides a chip system. As shown in, the chip system includes at least one processorand at least one interface circuit. The processorand the interface circuitmay be connected to each other through a line. For example, the interface circuitmay be configured to receive a signal from another apparatus (for example, a memory of an electronic device). For another example, the interface circuitmay be configured to send a signal to another apparatus (for example, the processor). For example, the interface circuitmay read instructions stored in the memory, and send the instructions to the processor. When the instructions are executed by the processor, the electronic device is enabled to perform the steps in the foregoing embodiment. Certainly, the chip system may further include another discrete device. This is not specifically limited in this embodiment of this application.

An embodiment of this application further provides a computer storage medium. The computer storage medium includes computer instructions. When the computer instructions run on the foregoing electronic device, the electronic device is enabled to perform functions or steps performed by the mobile phone in the foregoing method embodiments.

An embodiment of this application further provides a computer program product. When the computer program product runs on a computer, the computer is enabled to perform functions or steps performed by the mobile phone in the foregoing method embodiments.

The foregoing descriptions about implementations allow a person skilled in the art to understand that, for the purpose of convenient and brief description, division of the foregoing functional modules is taken as an example for illustration. In actual application, the foregoing functions can be allocated to different functional modules and implemented according to a requirement, that is, an inner structure of an apparatus is divided into different functional modules to implement 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 embodiments are merely examples. For example, the module or unit division is merely logical function division and there may be another 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. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in an electronic form, a mechanical form, or another form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may be one or more physical units, may be located in one place, or may be distributed on different places. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

In addition, functional units in the embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in a form of hardware, or may be implemented in a form of a software functional unit.

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 embodiments of this application essentially, or the part contributing to a conventional technology, 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 to perform all or some of the steps of the methods described in embodiments of this application. The foregoing storage medium includes: any medium that can store program code, a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.

The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Classification Codes (CPC)

Cooperative Patent Classification codes for this invention. Click any code to explore related patents in that topic.

Patent Metadata

Filing Date

October 23, 2025

Publication Date

August 27, 2026

Inventors

Decai Huang
Can Zhou
Bo Wang

Want to explore more patents?

Browse 5M+ US patents with plain-English claim translations and AI-generated analysis.

Citation & reuse

Analysis on this page is generated by Patentable — an AI-powered patent intelligence platform. AI-generated summaries, explanations, and analysis may be reused with attribution and a visible link back to the canonical URL below. Patent abstracts and claims are USPTO public domain.

Cite as: Patentable. “PROJECTION DISPLAY METHOD AND ELECTRONIC DEVICE” (US-20260252302-A1). https://patentable.app/patents/US-20260252302-A1

© 2026 Patentable. All rights reserved.

Patentable is a research and drafting-assistant tool, not a law firm, and does not provide legal advice. Documents we generate are drafts for review by a licensed patent attorney.

PROJECTION DISPLAY METHOD AND ELECTRONIC DEVICE — Decai Huang | Patentable