WO2024067601A1 - 切换窗口的方法和电子设备 - Google Patents

切换窗口的方法和电子设备 Download PDF

Info

Publication number
WO2024067601A1
WO2024067601A1 PCT/CN2023/121614 CN2023121614W WO2024067601A1 WO 2024067601 A1 WO2024067601 A1 WO 2024067601A1 CN 2023121614 W CN2023121614 W CN 2023121614W WO 2024067601 A1 WO2024067601 A1 WO 2024067601A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
state
screen
tablet
display
Prior art date
Application number
PCT/CN2023/121614
Other languages
English (en)
French (fr)
Inventor
徐杰
胡靓
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024067601A1 publication Critical patent/WO2024067601A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Definitions

  • Embodiments of the present application relate to the field of electronic technology, and more specifically, to a method for switching windows and an electronic device.
  • the display interface of one electronic device When users use electronic devices, they often need to display the display interface of one electronic device on another electronic device. For example, when a mobile phone is projected onto a tablet, the display interface of the mobile phone can be displayed on the tablet.
  • the mobile phone serves as the projection device and the tablet serves as the projected device.
  • the screen projection window of the mobile phone may block part of the tablet display content, so the user can minimize the tablet to display the screen projection window, and then display the screen projection window again when needed, so as not to affect the user's use of the tablet.
  • the screen projection window switching process requires frequent user operations, which affects the user experience.
  • the embodiments of the present application provide a method for switching windows and an electronic device, so that when a change in the state of an electronic device is detected, the display screen of the projected electronic device can be used as an extended screen of another electronic device being projected, and the other electronic device being projected can display an extended screen icon instead of a specific projection window, so as to reduce some of the user's operations, thereby improving the user experience.
  • a method for switching windows is provided, which is applied to a first electronic device, wherein the first electronic device is in a scenario of screen projection to a second electronic device, and a first display interface displayed by the second electronic device is an interface for screen projection by the first electronic device to the second electronic device, and the method comprises: the first electronic device determines that the first electronic device or the second electronic device switches from a first state to a second state, wherein the electronic device that has not switched states is in the second state; the first electronic device pauses screen projection to the second electronic device and the first electronic device displays the first display interface, or the first electronic device displays the first display interface based on the first projection data received from the second electronic device.
  • the first data may be data of a screen projection from the first electronic device to the second electronic device.
  • the first display interface may be a display interface of a screen projection window.
  • the first electronic device after the first electronic device projects the screen to the second electronic device, when the first electronic device determines that the first electronic device or the second electronic device switches from the first state to the second state (for example, switches from the normal state to the bracket state), the electronic device that has not switched the state is also in the second state at this time, then the first electronic device can automatically pause the screen projection to the second electronic device and display the first display interface of the screen projection to the second electronic device. In other words, visually, the display screen of the first electronic device can serve as an extended screen of the second electronic device.
  • This technical solution can automatically pause the screen projection when the state of the electronic device changes, avoiding manual operation by the user, and the display screen of the first electronic device can serve as an extended screen of the second electronic device, which can bring a wider visual effect to the user and enhance the user experience. Furthermore, the first electronic device pauses the screen projection, thereby saving power consumption and bandwidth.
  • the first electronic device when the state of an electronic device changes, can continue to project the screen to the second electronic device, receive the first data sent by the second electronic device, and display the first display interface based on the first data, so that the projection window can be conveniently switched to the first electronic device for display.
  • the projection window is switched back to the second electronic device, there is no need to reload the projection data because the projection is not interrupted, thereby reducing the delay.
  • the method before the first electronic device displays the first display interface and pauses screen projection to the second electronic device, the method also includes: determining whether the display screen of the first electronic device is lit; if it is determined that the display screen is not lit, lighting the display screen.
  • the screen after the first electronic device projects its screen onto the second electronic device, the screen can be turned off to save power.
  • the first electronic device detects that the state of the first electronic device or the second electronic device has changed, it can first determine whether the display screen of the first electronic device is lit. If not, the display screen is lit to display the first display interface. This technical solution can light up the display screen when needed, thereby saving power. Save power consumption of electronic devices.
  • the method also includes: sending first indication information to the second electronic device, the first indication information being used to instruct the first electronic device to switch from the first state to the second state.
  • the indication information of the state change is sent to the second electronic device, thereby facilitating the second electronic device to execute the switching strategy.
  • the first electronic device determines that the second electronic device switches from a first state to a second state, including: receiving second indication information sent by the second electronic device; when the second indication information indicates that the second electronic device switches from the first state to the second state, determining that the second electronic device switches from the first state to the second state.
  • the first electronic device can also determine that the state of the second electronic device has changed by receiving indication information sent by the second electronic device to indicate that the state of the second electronic device has changed, so that the first electronic device can execute the strategy of switching windows.
  • the first state and/or the second state is a physical form of the electronic device.
  • the first state and the second state are the physical forms of the electronic device, which can be understood as the first state and the second state are the postures of the electronic device.
  • the electronic device is placed on a desktop, or placed on an object at a certain angle, or held in the hand of a user for use, etc.
  • the second state is a bracket state, and the bracket state is used to indicate that the electronic device is in a relatively stable state, or the bracket state is a state in which the electronic device is placed on the bracket;
  • the first state is a normal state, and the normal state is used to indicate that the electronic device is in a relatively unstable state, or the normal state is a state in which the electronic device is not placed on the bracket.
  • the support state can be used to indicate that the electronic device is in a relatively stable state, for example, the electronic device is placed in a fixed posture, or is placed on another object at a certain angle, or the electronic device is in a state of being placed on a support.
  • the normal state can be used to indicate that the electronic device is in a relatively unstable state, for example, the electronic device is held in the hand of the user for use, and it does not have a fixed posture. At this time, the posture of the electronic device is in an unstable state, or the electronic device is not placed on the support.
  • the second state is that the angle of the first direction of the first electronic device is greater than a first preset angle and less than or equal to a second preset angle, and within a preset time, the range of change of the angle is less than a first preset value;
  • the first state is that the angle is less than or equal to the first preset angle or greater than the second preset angle, and within the preset time, the range of change of the angle is greater than the second preset value.
  • the second state may also be understood as the first electronic device being placed on the bracket of the first electronic device.
  • the method also includes: within the preset time, the first electronic device determines that the change range of the angle is greater than or equal to the first preset value and less than or equal to the second preset value; the first electronic device determines that the first electronic device is in a third state, and in the third state, the first electronic device continues to display the first display interface.
  • the first state may be a normal state
  • the second state may be a support state
  • the third state may be an intermediate state
  • the electronic device can switch smoothly between the bracket state and the normal state, avoiding the electronic device switching the projection window due to some accidental touches or jitters, thereby providing a certain degree of fault tolerance for users and improving the user experience.
  • the cursor of the second electronic device can be moved to a display screen of the first electronic device.
  • the first electronic device after the first electronic device pauses projecting the screen to the second electronic device, the first electronic device can serve as an extended screen of the second electronic device, and the user can control the first electronic device with the mouse.
  • the method also includes: the first electronic device determines that the second electronic device switches from the second state to the first state; the first electronic device turns off the display screen and continues to project the screen to the second electronic device.
  • the first electronic device when it is determined that the second electronic device switches back to the first state from the second state, the first electronic device can automatically restore the state.
  • the screen projection to the second electronic device is restored, so that the projection window can be redisplayed in the second electronic device.
  • turning off the screen of the first electronic device can further save power consumption.
  • the method also includes: the first electronic device determines that the first electronic device switches from the second state to the first state; the first electronic device continues to display the first display interface and continues to project the screen to the second electronic device.
  • the screen projection to the second electronic device can be automatically restored, so that the screen projection window can be redisplayed in the second electronic device.
  • the first electronic device continues to display the first display interface, which does not affect the user's use of the first electronic device.
  • the method further includes: the first electronic device determines that no image of the user is acquired when the camera is turned on.
  • the screen when the first electronic device turns on the camera but fails to acquire the image of the user, the screen can be turned off to save power consumption.
  • the first electronic device suspends screen projection to the second electronic device and displays the first display interface, or the first electronic device displays the first display interface according to the first data received from the second electronic device, including:
  • the first electronic device pauses screen projection to the second electronic device and displays the first display interface, or the first electronic device displays the first display interface based on the first data received from the second electronic device.
  • the distance between the first electronic device and the second electronic device should be within a preset distance range, thereby avoiding the user being troubled by switching the screen projection state when the user is holding the first electronic device far away from the second electronic device.
  • a method for switching windows is provided, which is applied to a second electronic device, where the second electronic device is in a scenario where the screen is projected by a first electronic device, and the method includes: the second electronic device determines that the second electronic device or the first electronic device switches from a first state to a second state, wherein the electronic device that has not switched states is in the second state; the second electronic device displays a first icon, and the first icon is used to indicate that the display screen of the first electronic device serves as an extended screen of the second electronic device.
  • the electronic device that has not switched the state is also in the second state.
  • the second electronic device can display a first icon indicating that the display screen of the first electronic device is used as an extended screen of the second electronic device.
  • the projection window in the second electronic device is automatically closed, and only the first icon needs to be displayed in the second electronic device, and the first electronic device can be used as an extended screen of the second electronic device, giving users a wider visual effect and improving the user experience.
  • screen extension icon can also be called an extension icon, an expansion icon, etc., which is not limited in the embodiments of the present application.
  • the second electronic device displays a first icon, including: if the first display interface of the first electronic device is displayed in the display interface of the second electronic device as a projection window, the second electronic device closes the first display interface and displays the first icon; if the first display interface of the first electronic device is displayed in the display interface of the second electronic device as a projection icon, the second electronic device changes the projection icon to the first icon.
  • the first icon may be a screen extension icon.
  • the second electronic device when the second electronic device displays the first icon, if the display interface of the first electronic device is displayed in the second electronic device in the form of a projection window, the second electronic device can close the projection window and display the first icon; if the display interface of the first electronic device has been minimized in the second electronic device, the second electronic device can change the minimized projection icon to the first icon.
  • This technical solution can make the second electronic device finally display the first icon to remind the user that it is currently in the extension mode.
  • the first display interface can be reproduced and displayed in the second electronic device in the form of a projection window.
  • the second electronic device determines that the first electronic device switches from a first state to a second state, including: receiving first indication information sent by the first electronic device, the first indication information being used to instruct the first electronic device to switch from the first state to the second state; and determining that the first electronic device switches from the first state to the second state based on the first indication information.
  • the second electronic device can also determine that the state of the first electronic device has changed by receiving the indication information sent by the first electronic device to indicate that the state of the first electronic device has changed, so that the second electronic device can perform the window switching. strategy.
  • the method also includes: sending second indication information to the first electronic device, and the second indication information is used to instruct the second electronic device to switch from the first state to the second state.
  • the second electronic device when the second electronic device determines that its own state has changed, it sends indication information of the state change to the first electronic device, thereby facilitating the first electronic device to determine that the screen projection needs to be paused.
  • the method also includes: the second electronic device sends first screen projection data to the first electronic device, and the first data is used to control the first electronic device to display a first display interface, wherein the first data is data projected from the first electronic device to the second electronic device.
  • the projection window can be conveniently switched to the first electronic device for display, so that when the projection window is switched back to the second electronic device, there is no need to reload the projection data because the projection is not interrupted, thereby reducing the delay.
  • the method also includes: if the second electronic device determines that the first display interface is displayed in full screen form in the display interface of the second electronic device, when the second electronic device determines that the second electronic device or the first electronic device switches from the first state to the second state, the second electronic device continues to display the first display interface.
  • the second electronic device when it is determined that one of the first electronic device or the second electronic device changes from a normal state to a stand state, the second electronic device can continue to display a maximized or full-screen projection window, thereby avoiding affecting the user's immersive experience.
  • the first state and/or the second state is a physical form of the electronic device.
  • the second state is a bracket state, and the bracket state is used to indicate that the electronic device is in a relatively stable state, or the bracket state is a state in which the electronic device is placed on the bracket;
  • the first state is a normal state, and the normal state is used to indicate that the electronic device is in a relatively unstable state, or the normal state is a state in which the electronic device is not placed on the bracket.
  • the second state is that the angle of the first direction of the second electronic device is greater than a first preset angle and less than or equal to a second preset angle, and within a preset time, the range of change of the angle is less than a first preset value;
  • the first state is that the angle is less than or equal to the first preset angle or greater than the second preset angle, and within the preset time, the range of change of the angle is greater than the second preset value.
  • the second state may also be understood as the second electronic device being placed on a bracket of the second electronic device.
  • the method also includes: within the preset time, the second electronic device determines that the change range of the angle is greater than or equal to the first preset value and less than or equal to the second preset value; the second electronic device determines that the second electronic device is in a third state, and in the third state, the second electronic device continues to display the first icon.
  • the first state may be a normal state
  • the second state may be a support state
  • the third state may be an intermediate state
  • the electronic device can switch smoothly between the stand state and the normal state, avoiding the electronic device switching to the projection state due to some accidental touches or jitters, thereby providing a certain degree of fault tolerance for users and improving the user experience.
  • the cursor of the second electronic device can be moved to the display screen of the first electronic device.
  • the first electronic device after the first electronic device pauses screen projection, the first electronic device can be used as an extended screen of the second electronic device, and the user can control the first electronic device with the mouse, thereby improving the user experience.
  • the method also includes: the second electronic device determines that the second electronic device or the first electronic device switches from the second state to the first state; the second electronic device closes the first icon and displays the first display interface in the form of a projection window; or the second electronic device changes the first icon to the projection icon.
  • the first electronic device resumes screen projection to the second electronic device, that is, the projection window is redisplayed in the second electronic device, and the second electronic device can restore the projection window to its original state, thereby helping to improve the user experience.
  • the method further includes: the second electronic device turns on the camera Determine whether the image of the user is acquired; if the image is not acquired, turn off the screen of the second electronic device.
  • the second electronic device can turn on the camera to determine whether the image of the user is acquired.
  • the screen can be turned off to save power consumption.
  • the second electronic device displays the first icon, including: when it is determined that the distance between the second electronic device and the first electronic device is less than or equal to a preset distance, the second electronic device displays the first icon.
  • the distance between the first electronic device and the second electronic device should be within a preset distance range, thereby avoiding the user being troubled by switching the screen projection state when the user is holding the first electronic device far away from the second electronic device.
  • a system comprising a first electronic device and a second electronic device, wherein the first electronic device and the second electronic device have a screen projection relationship, wherein the first electronic device is configured to display a first display interface and pause screen projection to the second electronic device when it is determined that the first electronic device or the second electronic device switches from a first state to a second state, wherein the first display interface is a display interface of the first electronic device projecting the screen to the second electronic device, and the electronic device that has not switched states is in the second state; and the second electronic device is configured to display a first icon when it is determined that the first electronic device or the second electronic device switches from the first state to the second state, and the first icon is used to indicate that the display screen of the first electronic device serves as an extended screen of the second electronic device.
  • the first electronic device after the first electronic device projects the screen to the second electronic device, when it is determined that the first electronic device or the second electronic device switches from the first state to the second state, the first electronic device can display the first display interface and suspend the screen projection to the second electronic device; the second electronic device displays the first icon, and the first icon is used to indicate that the display screen of the first electronic device is used as the extended screen of the second electronic device.
  • This technical solution can automatically suspend the screen projection when it detects that the state of the electronic device has changed, and use the display screen of the projecting electronic device as the extended screen of the other electronic device being projected, so as to reduce some operations of the user, thereby improving the user experience.
  • an electronic device comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the method of switching windows as described in the first aspect and any possible implementation thereof to be executed.
  • an electronic device comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, which, when executed by the one or more processors, enable the method of switching windows as described in the second aspect and any possible implementation thereof to be executed.
  • a system comprising the electronic device as described in the third aspect and the electronic device as described in the fourth aspect.
  • a device for switching windows comprising a module for implementing the method for switching windows as described in the first aspect to the second aspect and any possible implementation manner thereof.
  • a chip comprising a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method of switching windows as described in the first aspect to the second aspect and any possible implementation thereof is executed.
  • a computer-readable storage medium stores computer instructions.
  • the window switching method described in the first aspect to the second aspect and any possible implementation thereof is executed.
  • a computer program product comprising a computer program code, and when the computer program code runs on a computer, the window switching method as described in the first aspect to the second aspect and any possible implementation thereof is executed.
  • FIG. 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the software structure of the electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of a set of GUIs provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another set of GUIs provided in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of switching of an electronic device between multiple states provided in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of various axial directions of an electronic device provided in an embodiment of the present application.
  • FIG. 10 is a schematic diagram of an electronic device and a bracket provided in an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of a method for switching windows provided in an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of another method for switching windows provided in an embodiment of the present application.
  • the display method in the embodiments of the present application can be applied to electronic devices such as smart phones, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), vehicle-mounted devices, wearable devices, and foldable devices.
  • electronic devices such as smart phones, tablet computers, laptops, personal computers (PCs), ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), vehicle-mounted devices, wearable devices, and foldable devices.
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently.
  • the components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • video codec a digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • the processor 110 may 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, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, consisting of a serial data line (SDA) and a serial clock line (SCL).
  • SDA serial data line
  • SCL serial clock line
  • the I2S interface can be used for audio communication.
  • the processor 110 can include multiple I2S buses.
  • the processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170.
  • the PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface.
  • the UART interface is a universal serial data bus for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc.
  • the USB interface 130 is an interface that complies with USB standard specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 may be used to connect a charger to charge the electronic device 100, and may also be used to transmit data between the electronic device 100 and a peripheral device.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142 , the charging management module 140 and the processor 110 .
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • the mobile communication module 150 can provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
  • the modem processor may be an independent device.
  • the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide wireless communication solutions for application in the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), Bluetooth low energy (BLE), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.
  • WLAN wireless local area networks
  • BT Bluetooth
  • BLE Bluetooth low energy
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared technology
  • antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, so that electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 194 is used to display images, videos, etc.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), or a display panel made of one of the materials such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, or a quantum dot light-emitting diode (QLED).
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.
  • the ISP is used to process data fed back by the camera 193.
  • the camera 193 is used to capture still images or videos.
  • Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals.
  • the video codec is used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • an external memory card such as a Micro SD card
  • the internal memory 121 may be used to store computer executable program codes, wherein the executable program codes include instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121 .
  • the electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • the speaker 170A also called a "horn" is used to convert audio electrical signals into sound signals.
  • the receiver 170B also called a “handset”, is used to convert audio electrical signals into sound signals.
  • Microphone 170C also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone jack 170D is used to connect a wired earphone.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A can be disposed on the display screen 194 .
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the air pressure sensor 180C is used to measure air pressure.
  • the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes).
  • the distance sensor 180F is used to measure the distance.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the touch sensor 180K is also called a “touch panel.”
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen.”
  • the bone conduction sensor 180M can obtain vibration signals.
  • the bone conduction sensor 180M can obtain vibration signals of vibrating bones of the human body.
  • the bone conduction sensor 180M can also contact the human body's pulse to receive blood pressure beating signals.
  • Buttons 190 include a power button, a volume button, and the like.
  • Motor 191 can generate vibration prompts.
  • the indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes an operating system of a layered architecture as an example to exemplify the software structure of the electronic device 100.
  • FIG. 2 is a software structure diagram of the electronic device 100 of an embodiment of the present application.
  • the layered architecture divides the software into several layers, each layer has a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the operating system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system library, and the kernel layer.
  • the application layer may include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, wallet, etc.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make it accessible to applications.
  • the data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager enables applications to display notification information in the status bar, which can be used to convey notification-type messages and can be short-lived. After staying, it disappears automatically without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • the core library consists of two parts: one part is the function that the Java language needs to call, and the other part is the core library.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the Java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • functional modules such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
  • Screen projection Display the image displayed on the display screen of electronic device A on the display screen of electronic device B in the form of a window or full screen.
  • Screen extension electronic device A can pause screen projection to electronic device B, and the screen of electronic device A serves as the extended screen of electronic device B; or electronic device B displays the content of the screen projection of electronic device A on electronic device A, and the screen of electronic device A serves as the extended screen of electronic device B.
  • the mouse of electronic device B can be moved to electronic device A, and optionally, a screen extension icon is displayed on the display screen of electronic device B.
  • the angle ⁇ 1 of the y-axis of the electronic device satisfies formula 1, the first preset angle ⁇ 1 ⁇ the second preset angle, and, within the preset time t, the range of change of the angle ⁇ 1 is less than the first preset value.
  • the first preset angle may be 30°
  • the second preset angle may be 90°
  • the time t may be 1s
  • the first preset value may be 0.03. It should be understood that the specific values of the first preset angle, the second preset angle, the time t and the preset value may also be other values.
  • the electronic device is placed on a bracket, which can be understood as the electronic device being in a bracket state.
  • a bracket state please refer to the following text, which will not be described in detail here.
  • the change range of the angle ⁇ 1 is greater than or equal to the first preset value and less than or equal to the second preset value.
  • the first preset value is 0.03 and the second preset value is 5.
  • the intermediate state can also be called a transition state, a near-switching state, etc.
  • Normal state the y-axis angle ⁇ 1 of the electronic device does not satisfy formula 1, and within the preset time t, the variation range of the angle ⁇ 1 is greater than the second preset value.
  • removing the electronic device from the bracket can be understood as the electronic device changing from the bracket state to the normal state.
  • FIG3 is a schematic diagram of a graphical user interface (GUI) provided in an embodiment of the present application.
  • GUI graphical user interface
  • the tablet 200a can be connected to a keyboard 200c and a mouse 200d.
  • the keyboard 200c and the mouse 200d can be connected to the tablet 200b by wire or wirelessly, so that the user can conveniently perform office operations on the tablet 200b.
  • the mobile phone 200a may establish a connection with the tablet 200b.
  • the mobile phone and the tablet may establish a connection wirelessly or by wire.
  • the GUI is the display interface 210 of the mobile phone 200a and the display interface 240 of the tablet 200b after the mobile phone 200a projects the screen to the tablet 200b.
  • the display interface 240 may include the projection window 221 of the mobile phone 200a, wherein the projection window 221 may include a status bar 222 and a display interface 231, and the status bar 222 may include the name of the application to which the interface currently displayed by the mobile phone belongs, for example, Huawei Video, and the status bar 222 may also include a minimize button 223, a maximize button 224, and a close button 225 for changing the projection window 221.
  • the display interface 231 is the same as the display interface 210 of the mobile phone. In other words, the current display interface in the mobile phone is displayed in the tablet 200b through the display interface 231.
  • the display interface 231 may also be different from the display interface 210 of the mobile phone.
  • the mobile phone can still display an interface different from the projected interface.
  • Application A that is, the mobile phone screen is projected to the interface of tablet application A, and then the mobile phone user can open application B and display the interface of application B on the mobile phone, which is similar to the heterogeneous screen projection scenario in the prior art.
  • the mobile phone 200a after the mobile phone 200a projects the screen onto the tablet 200b, if no user operation is detected within a preset time, the mobile phone 200a can turn off the screen, thereby saving power consumption of the mobile phone 200a.
  • the tablet 200 b may display the GUI shown in (b) of FIG. 3 .
  • a screen projection icon 230 may be displayed in the display interface 240 of the tablet 200 b , so that the screen projection window 221 may be minimized and displayed.
  • the screen projection window 221 can be redisplayed in the display interface 240. Since the screen projection window 221 may block part of the display content of the tablet 200b when the user is using the tablet 200b, the user can minimize the screen projection window 221 and redisplay it when needed, so as not to affect the user's use of the tablet 200b.
  • the screen projection window switching process requires frequent operations by the user, which affects the user experience.
  • an embodiment of the present application provides a method for switching windows.
  • This technical solution can use the display screen of the projecting electronic device as an extended screen of the projected electronic device when the state of the projecting electronic device or another projected electronic device changes, and the extended screen icon can be displayed in the other projected electronic device without specifically displaying the projection window, thereby avoiding excessive switching operations by the user.
  • the display interface of the mobile phone can be displayed in the display interface of the tablet in the form of a projection window, or can be reflected in the display interface of the tablet in a minimized manner (projection icon).
  • Fig. 4 is a schematic diagram of another set of GUIs provided in an embodiment of the present application, wherein (a) to (b) in Fig. 4 show the process of the projection window changing in the tablet 300b.
  • the GUI is a display interface 310 of the mobile phone 300 a and a display interface 340 of the tablet 300 b after the mobile phone 300 a is projected onto the tablet 300 b .
  • the display screen may be turned off to save power consumption.
  • the mobile phone 300a may continue to keep the screen on, which is not limited in the present embodiment.
  • the tablet 300b can also be connected to an external keyboard or mouse.
  • the display interface 340 of the tablet 300b can refer to the relevant description of the display interface 240 in the above text, and for the sake of brevity, it will not be repeated here.
  • the tablet 300a may be in a stand state, and when the mobile phone 300a changes from a normal state to a stand state, the mobile phone 300a and the tablet 300b may display a GUI as shown in (b) of FIG. 4 .
  • the display screen can be turned off.
  • the mobile phone can determine that the mobile phone has changed from the normal state to the stand state by detecting the angle of the y-axis.
  • the tablet 300a is in the support state, which can be understood as the tablet 300a being placed on the support.
  • the tablet 300a can be connected to an external keyboard and mouse and placed on the tablet support.
  • the mobile phone may be in a stand state, and when the tablet 300b changes from a normal state to a stand state, the mobile phone 300a and the tablet 300b may display a GUI as shown in (b) of FIG. 4 .
  • the user places the mobile phone on a stand.
  • the user places the tablet being used on the stand, and the tablet can be changed from a normal state to a stand state.
  • the mobile phone 300a changes from the screen-off state to the screen-on state, and displays the display interface 311, the screen projection window 320 in the tablet 300b disappears, and optionally, the screen extension icon 330 is displayed on the tablet 300b.
  • the mouse can be moved to the display interface 311 of the mobile phone 300a, and the user can control the mobile phone 300a with the mouse.
  • the display screen of the mobile phone 300a can be used as an extended screen of the tablet 300b.
  • controlling a mobile phone with a mouse can be achieved based on near-field communication such as Bluetooth or WI-FI.
  • the tablet When the user operates the mouse, the tablet will obtain the coordinates of the mouse pointer.
  • the display screen of the mobile phone is not an extended screen of the tablet, when the coordinates of the mouse pointer exceed the control area of the tablet (display screen), the tablet will display the mouse pointer at the edge of the control area (such as the left edge).
  • the display screen of the mobile phone serves as an extended screen of the tablet.
  • the tablet will send the mouse data (including mouse coordinate data and operation data) to the mobile phone via Bluetooth or WI-FI.
  • the mobile phone will map the received mouse data to the corresponding position of the mobile phone, display the mouse pointer on the display interface, and perform the corresponding mouse operation on the mobile phone. From the experience, it creates an effect that the user uses the mouse pointer to move seamlessly from the edge of the tablet to the mobile phone.
  • the distance between the mobile phone and the tablet is less than or equal to a preset distance.
  • the screen extension icon when the mobile phone is located on the left side of the tablet, the screen extension icon can be located on the left edge of the tablet, and the graphic used to represent the mobile phone in the screen extension icon is located on the left side of the tablet graphic.
  • the screen extension icon can be located on the right edge of the tablet, and the graphic used to represent the mobile phone in the screen extension icon is located on the right side of the tablet graphic.
  • the screen extension icon can also be located in the task bar at the bottom of the tablet, which is not limited in the embodiments of the present application.
  • the mobile phone can send its location information to the tablet via Bluetooth, so that the tablet can determine the location of the mobile phone.
  • the projection window 320 will be displayed again in the display interface 340 of the tablet 300b.
  • the tablet 300b may also be replaced by a personal computer PC
  • the mobile phone 300a may also be replaced by a tablet
  • the two devices may be the same type of devices, which is not limited in the embodiment of the present application.
  • the display interface of the mobile phone can be displayed in the display interface of the tablet in the form of a screen projection window.
  • the mobile phone automatically pauses the screen projection to the tablet, the screen projection window in the tablet can be closed, and the screen extension icon is displayed.
  • the display screen of the mobile phone can be used as an extended screen of the tablet.
  • the mobile phone when the state of the electronic device changes, can continue to project the screen to the tablet, receive the first data sent by the tablet, and display the projection interface according to the first data, so that the projection window can be conveniently switched to the mobile phone for display.
  • the projection window is switched back to the tablet, there is no need to reload the projection data because the projection is not interrupted, thereby reducing the delay.
  • the user may need to use the phone or tablet and thus remove it from the stand. For example, the user removes the phone from the stand and places it on a table or in a pocket; or the user removes the tablet from the stand. In this case, the phone can re-enter the screen-off state and automatically resume screen projection to the tablet, and the projection window will re-display on the tablet's display interface.
  • the mobile phone 300a and the tablet 300b may display the GUI shown in (a) of FIG. 4 .
  • the mobile phone 300a and the tablet 300b may display the GUI shown in (a) of FIG. 4 .
  • the screen projection window can be re-displayed on the display interface of the tablet. In this way, the screen projection can be automatically restored according to the posture change of the mobile phone or tablet, avoiding manual operation by the user, and improving the user's experience of using multi-screen collaboration.
  • the projection window switches back to the display interface of the tablet.
  • the tablet can turn on the camera to detect whether there is a portrait.
  • the tablet can lock the screen to protect the user's privacy, and the tablet can also turn off the screen to save power consumption.
  • the tablet detects a portrait it can continue to maintain the current state.
  • the tablet detects a portrait it can determine from the stored portraits whether the detected portrait is the owner. If so, the tablet can continue to maintain the current state, if not, the tablet can lock the screen or turn off the screen.
  • the projection window switches back to the display interface of the tablet.
  • the phone can turn on the camera to detect whether there is a portrait.
  • the phone does not detect a portrait, it can lock the screen to protect user privacy, and the phone can also turn off the screen to save power.
  • the phone detects a portrait, it can continue to maintain the current state.
  • the phone detects a portrait, it can determine from the stored portraits whether the detected portrait is the owner of the phone. If so, the phone can continue to maintain the current state. If not, the phone can lock the screen or turn off the screen.
  • Fig. 5 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (b) in Fig. 5 show the process of changing the screen projection of the mobile phone 400a to the tablet 400b.
  • the GUI is a display interface 410 of the mobile phone 400 a and a display interface 450 of the tablet 400 b after the mobile phone 400 a is projected onto the tablet 400 b .
  • the display screen can be turned off, and accordingly, no interface elements are displayed in the display interface 410.
  • the user can minimize the projection window, that is, display the projection icon 430 in the display interface 450 of the tablet, and when the user clicks the projection icon 430, the projection window of the mobile phone can be redisplayed in the display interface 450.
  • the tablet 400b can also be connected to an external keyboard and mouse to facilitate users to work on the tablet.
  • the tablet 400b is in a stand state and the mobile phone 400a is in a normal state.
  • the mobile phone 400a and the tablet 400b may display a GUI as shown in (b) of FIG. 5 .
  • a user places a mobile phone in use or a mobile phone placed on a table onto a mobile phone stand, it can be understood that the mobile phone changes from a normal state to a stand state.
  • the tablet 400b is in the normal state and the mobile phone 400a is in the stand state.
  • the mobile phone 400a and the tablet 400b can display the GUI as shown in (b) of FIG. 5 .
  • the tablet changes from a normal state to a stand state.
  • the mobile phone 400a changes from the off screen state to the on screen state and displays the display interface 420, the screen projection icon 430 in the tablet 400b changes to the screen extension icon 440, and the mouse can be moved to the display interface 420 of the mobile phone 400a, and the user can control the mobile phone 400a with the mouse.
  • the mobile phone 400a can be used as an extended screen of the tablet 400b.
  • the user can use the mouse to input comments, change the selection, etc. in the display interface 420.
  • the distance between the mobile phone and the tablet is less than or equal to a preset distance.
  • the screen extension icon when the mobile phone is located on the left side of the tablet, the screen extension icon can be located on the left edge of the tablet, and the graphic used to represent the mobile phone in the screen extension icon is located on the left side of the tablet graphic.
  • the screen extension icon can be located on the right edge of the tablet, and the graphic used to represent the mobile phone in the screen extension icon is located on the right side of the tablet graphic.
  • the screen extension icon can also be located in the task bar at the bottom of the tablet, which is not limited in the embodiments of the present application.
  • the screen projection window of the mobile phone will be displayed in the display interface 450 of the tablet 400b.
  • tablet 400b may also be replaced by a PC, which is not limited in the embodiment of the present application.
  • the display interface of the mobile phone can be minimized and displayed in the display interface of the tablet.
  • the mobile phone automatically pauses the screen projection to the tablet, the screen projection window in the tablet can be closed, and the screen projection icon is changed to the screen extension icon.
  • the display screen of the mobile phone can be used as the extended screen of the tablet.
  • the user may need to use the phone or tablet and thus remove it from the stand. For example, the user removes the phone from the stand and places it on a table or in a pocket; or the user removes the tablet from the stand. In this case, the phone can be turned off again, and the projection window will be switched back to the tablet to be displayed in a minimized manner on the tablet's display interface.
  • the mobile phone 400a and the tablet 400b may display the GUI shown in (a) of FIG. 5 .
  • the mobile phone 400a and the tablet 400b may display the GUI shown in (a) of FIG. 5 .
  • the mobile phone when both the mobile phone and the tablet are in the stand state, and one of them changes from the stand state to the normal state, the mobile phone automatically resumes the screen projection and is displayed in a minimized manner on the display interface of the tablet.
  • the screen projection can be automatically resumed according to the posture change of the mobile phone or tablet, avoiding manual operation by the user, and improving the user's experience of using multi-screen collaboration.
  • the projection window is displayed in a minimized manner on the display interface of the tablet.
  • the tablet can turn on the camera to detect whether there is a portrait.
  • the projection window is re-displayed on the display interface of the tablet. If the mobile phone is in the screen-on state, the mobile phone can turn on the camera to detect whether there is a portrait.
  • the user may maximize the projection window or display it in full screen on the tablet.
  • the tablet will continue to display the maximized projection window or the full screen projection window, so as not to affect the user's immersive experience.
  • Fig. 6 is a schematic diagram of another set of GUIs provided by an embodiment of the present application, wherein (a) to (c) in Fig. 6 show the process of changing the screen projection of the mobile phone 500a to the tablet 500b when the screen projection window is displayed in full screen.
  • the mobile phone 500 a and the tablet 500 b may display a GUI as shown in (b) of FIG. 6 .
  • the projection window 521 can be maximized and displayed in the display interface 540.
  • the display interface 540 becomes the maximized projection window 521.
  • the mobile phone continues to be in the screen-off state, and the tablet displays a display interface 540 , in which a full-screen media video is displayed.
  • the display interface 540 may also display a status bar 522 , and the display interface 540 may also display a task bar, etc.
  • the tablet 500b may be in a stand state, and when the mobile phone 500a changes from a normal state to a stand state, the mobile phone 500a and the tablet 500b may display a GUI as shown in (c) of FIG. 6 .
  • a user places a mobile phone in use or a mobile phone placed on a table onto a mobile phone stand, it can be understood that the mobile phone changes from a normal state to a stand state.
  • the mobile phone 500a may be in a stand state, and when the tablet 500b changes from a normal state to a stand state, the mobile phone 500a and the tablet 500b may display a GUI as shown in (c) of FIG. 6 .
  • the tablet changes from a normal state to a stand state.
  • the mobile phone 500a changes from the screen-off state to the screen-on state and displays the display interface 550, while the tablet 500b continues to display the display interface 540.
  • the mouse can be moved to the display interface 550 of the mobile phone 500a, and the user can control the mobile phone 500a with the mouse.
  • the mobile phone 500a can be used as an extended screen of the tablet 500b.
  • the user can use the mouse to input comments, change the selection, etc. in the display interface 420.
  • the distance between the mobile phone and the tablet is less than or equal to a preset distance.
  • the user can maximize the projection window or display it in full screen on the tablet through operations.
  • the mobile phone still projects the screen to the tablet, and the tablet continues to display the maximized or full-screen projection window, thereby avoiding affecting the user's immersive experience.
  • a user is watching a video on a mobile phone, and after casting the screen to a tablet, the video is played in full screen on the tablet.
  • the state of the mobile phone or tablet changes, if the mobile phone stops casting the screen to the tablet, it may affect the user's viewing of the video, giving the user a bad experience. Therefore, in the embodiment of the present application, when the state of the mobile phone or tablet changes, the video played in full screen is still retained in the tablet, thereby avoiding affecting the user's experience.
  • Fig. 7 is a schematic diagram of a GUI provided by an embodiment of the present application, wherein (a) to (b) in Fig. 7 show the process of changing the screen projection of a mobile phone 700a to a PC 700b.
  • the GUI is a display interface 710 of the mobile phone 700a and a display interface 740 of the PC 700b after the mobile phone 700a is projected onto the PC 700b.
  • the display screen can be turned off, and accordingly, no interface elements are displayed in the display interface 710.
  • the display interface 740 of the PC 700b displays the projection window 721 of the mobile phone.
  • the projection window 721 can refer to the relevant description of the projection window 221 in the previous text, and will not be repeated for the sake of brevity.
  • the mobile phone 700 a and the PC 700 b may display a GUI as shown in (b) of FIG. 7 .
  • the mobile phone 700 a changes from a screen-off state to a screen-on state, and displays a display interface 720 .
  • PC 700b when PC 700b detects that the cover is closed, it can send a status indication message to mobile phone 700a to indicate that PC 700b is closed.
  • the mobile phone 700a receives the status indication message, it can change from the off-screen state to the on-screen state and display interface 720, that is, automatically pause the screen projection to the tablet, so that the user does not need to operate manually.
  • the mobile phone 700a and PC 700b may display the GUI shown in (a) of FIG. 7 .
  • the mobile phone 700a may automatically resume screen projection to PC 700b, and the screen projection window 721 of the mobile phone 700a may be re-displayed in the display interface 740 of PC 700b, and the mobile phone may be turned off to save power consumption.
  • the mobile phone when the user closes the cover of the PC, the mobile phone can automatically pause the screen projection and switch from the off state to the on state.
  • the mobile phone can automatically resume the screen projection, thereby avoiding the user's manual switching and improving the user experience.
  • Fig. 8 is a schematic diagram of switching between multiple states of an electronic device provided by an embodiment of the present application.
  • the state of the electronic device in the present application can be divided into a normal state, a support state, and an intermediate state between the normal state and the support state.
  • the support state of the electronic device can be understood as that the angle ⁇ 1 of the y-axis of the electronic device in the vertical screen state satisfies Formula 1: the first preset angle ⁇ 1 ⁇ the second preset angle, and, within the preset time t, the range of change of the angle ⁇ 1 is less than the first preset value.
  • the first preset angle can be 30°
  • the second preset angle is 90°
  • the time t is 1s
  • the first preset value is 0.03.
  • the specific values of the first preset angle, the second preset angle, the time t and the preset value can also be other values, which are not limited in the embodiments of the present application.
  • the electronic device may obtain the y-axis angle of the electronic device through an inertial measurement unit (IMU), a sensor, and the like.
  • IMU inertial measurement unit
  • the mobile phone 100a when the mobile phone 100a is placed on the mobile phone holder 100c, it can be understood that the mobile phone 100a is in the holder state. It should be understood that when the mobile phone 100a is on the holder 100c, the angle ⁇ 1 of the y-axis of the mobile phone 100a satisfies the above formula 1.
  • the electronic device can also obtain the angles of the x-axis and the z-axis through the IMU.
  • the normal state of the electronic device can be understood as that the angle ⁇ 1 of the y-axis of the electronic device does not satisfy Formula 1, and within the preset time t, the variation range of the angle ⁇ 1 is greater than the second preset value.
  • the second preset value may be 5, 6, etc.
  • the electronic device is a mobile phone.
  • the y-axis angle of the electronic device is unlikely to satisfy the above formula 1, and the angle of the mobile phone varies greatly. At this time, it can be understood that the electronic device is in a normal state.
  • the electronic device when the electronic device is placed on a bracket, that is, when the electronic device is in a bracket state, the user may accidentally touch the electronic device, or the y-axis angle of the electronic device may change slightly due to the shaking of the table, etc. At this time, the electronic device may detect that the angle of the y-axis has changed, thereby mistakenly judging that the electronic device has changed from the bracket state to the normal state, and then pausing the screen projection. In this case, the user does not want the electronic device to suspend the screen projection, which will affect the user experience. In order to make the electronic device transition smoothly between the bracket state and the normal state and avoid misjudgment of the electronic device, an intermediate state of the electronic device is introduced in this application.
  • the intermediate state can be understood as that within the preset time t, the variation range of the angle ⁇ 1 of the y-axis of the electronic device is greater than or equal to the first preset value and less than or equal to the second preset value.
  • the preset time t is 1 second
  • the first preset value is 0.03
  • the second preset value is 5. That is, when the change amount of the y-axis angle of the electronic device is between 0.03 and 5 within 1 second, the electronic device is in the intermediate state.
  • the electronic device when the electronic device changes from a previous state to an intermediate state, the electronic device maintains the current state unchanged.
  • the electronic device is in the stand state, and when the electronic device detects through the IMU that the change in the angle of the y-axis is between 0.03 and 5 within 1 second, it can be determined that the electronic device has changed to the intermediate state, and the electronic device still maintains the state in the stand state.
  • the mobile phone 300a is in the stand state, and when the mobile phone 300a detects that the mobile phone has changed to the intermediate state, the mobile phone can maintain the current status.
  • the electronic device is in the normal state.
  • the electronic device detects through the IMU that the change in the angle of the y-axis is between 0.03 and 5 within 1 second, it can be determined that the electronic device has changed to the intermediate state, and the electronic device still maintains the state in the normal state.
  • the mobile phone 300a is in the normal state.
  • the mobile phone 300a detects that the mobile phone has changed to the intermediate state, the mobile phone can maintain the current status.
  • the angle of the z-axis may be used instead of the angle of the y-axis, that is, the state of the electronic device may be determined by obtaining the angle ⁇ 1 of the z-axis.
  • the electronic device can smoothly switch between the support state and the normal state, avoiding the electronic device switching to the projection state due to some false touches or jitters, thereby providing a certain degree of fault tolerance for users, thereby improving the User experience.
  • 11 and 12 illustrate the example of a first electronic device projecting a screen onto a second electronic device.
  • the first electronic device may be the mobile phone mentioned above
  • the second electronic device may be the tablet mentioned above.
  • Figure 11 is a schematic flow chart of a method for switching windows provided in an embodiment of the present application.
  • the method 1100 can be applied to a first electronic device, the first electronic device is in a scenario of projecting a screen to a second electronic device, the first display interface displayed by the second electronic device is an interface of the first electronic device projecting a screen to the second electronic device, and the method 1100 can include steps 1110 to 1120.
  • the first display interface may be a display interface corresponding to a screen projection window of the first electronic device projecting the screen to the second electronic device.
  • the first electronic device determines that the first electronic device or the second electronic device switches from a first state to a second state, wherein the electronic device that has not switched state is in the second state.
  • the first electronic device can establish a screen projection connection with the second electronic device.
  • the first electronic device can establish a connection relationship with the second electronic device through wireless, wired, etc.
  • the embodiment of the present application does not limit the specific method of establishing the connection relationship.
  • the first state may be the normal state mentioned above, and the second state may be the support state mentioned above.
  • step 1110 one of the first electronic device and the second electronic device is in the stand state, and the other is switched from the normal state to the stand state.
  • the first electronic device pauses screen projection to the second electronic device and the first electronic device displays the first display interface, or the first electronic device displays the first display interface according to the first data received from the second electronic device.
  • the first electronic device may be a mobile phone
  • the second electronic device may be a tablet.
  • the mobile phone determines that one of the tablet and the mobile phone is in the stand state and the other is switched from the normal state to the stand state, the mobile phone can display the display interface 310 for projecting the screen to the tablet and pause projecting the screen to the tablet, or the mobile phone displays the first display interface according to the data received from the tablet.
  • the mouse or cursor in the tablet can be moved to the mobile phone, and the user can control the mobile phone with the mouse.
  • the mobile phone can be used as an extended screen of the tablet.
  • the first data can be data that the first electronic device projects to the second electronic device, for example, it can be a display interface, a video stream, etc.
  • the second electronic device uses the display screen of the first electronic device as an extended screen, and the second electronic device displays the display interface formed by the first data on the first electronic device, so that the projection window can be conveniently switched to the first electronic device for display, so that when the projection window is switched back to the second electronic device, there is no need to reload the projection data because the projection is not interrupted, thereby reducing the delay.
  • the tablet when the tablet detects that the user clicks the button of the screen projection icon, the tablet can switch the projection window back to the tablet for display. At this time, since the screen projection is not interrupted, there is no need to reload the projection data, thereby reducing the delay.
  • the first electronic device after the first electronic device projects the screen to the second electronic device, when the first electronic device determines that the first electronic device or the second electronic device switches from the first state to the second state (for example, switches from the normal state to the bracket state), the electronic device that has not switched the state is also in the second state at this time, then the first electronic device can automatically pause the screen projection to the second electronic device and display the first display interface of the screen projection to the second electronic device. In other words, visually, the display screen of the first electronic device can serve as an extended screen of the second electronic device.
  • This technical solution can automatically pause the screen projection when the state of the electronic device changes, avoiding manual operation by the user, and the display screen of the first electronic device can serve as an extended screen of the second electronic device, giving the user a wider visual effect and improving the user experience. Furthermore, the first electronic device pauses the screen projection, thereby saving power consumption and bandwidth.
  • the method 1100 may further include:
  • the mobile phone when the mobile phone determines that one of the tablet and the mobile phone is in the stand state and the other is switched from the normal state to the stand state, the mobile phone can first determine whether the display screen of the mobile phone is lit. If it is not lit, that is, the mobile phone is in the off state, the display screen can be lit to display the display interface 420.
  • This technical solution can light up the display screen when needed, thereby saving power consumption of the electronic device.
  • the method 1100 may further include:
  • First indication information is sent to the second electronic device, where the first indication information is used to instruct the first electronic device to switch from the first state to the second state.
  • the mobile phone can determine whether to switch from the normal state to the bracket state through its own IMU, sensor, etc.
  • the indication information of the state change is sent to the second electronic device, thereby facilitating the second electronic device to execute the switching strategy.
  • the first electronic device determines that the second electronic device switches from the first state to the second state, including:
  • the second indication information indicates that the second electronic device switches from the first state to the second state
  • the tablet when the tablet switches from a first state to a second state, the tablet can send second indication information of the state change to the mobile phone. After receiving the second indication information, the mobile phone can determine that the state of the tablet has changed, and then perform a corresponding operation.
  • the first state and/or the second state is a physical form of the electronic device.
  • the first state and the second state are the physical forms of the electronic device, and the first state and the second state can be understood as the posture of the electronic device.
  • the electronic device is placed on a desktop, or placed on an object at a certain angle, or is held in the hand of a user for use, etc.
  • the second state is a support state
  • the support state is used to indicate that the electronic device is in a relatively stable state, or the support state is a state where the electronic device is placed on a support;
  • the first state is a normal state, and the normal state is used to indicate that the electronic device is in a relatively unstable state, or the normal state is a state where the electronic device is not placed on a bracket.
  • the support state can be used to indicate that the electronic device is in a relatively stable state, for example, the electronic device is placed in a fixed posture, or is placed on another object at a certain angle, or the electronic device is in a state of being placed on a support.
  • the normal state can be used to indicate that the electronic device is in a relatively unstable state, for example, the electronic device is held in the hand of the user for use, and it does not have a fixed posture. At this time, the posture of the electronic device is in an unstable state, or the electronic device is not placed on the support.
  • the second state is that the angle of the first direction of the first electronic device is greater than the first preset angle and less than or equal to the second preset angle, and within the preset time, the angle change range is less than the first preset value;
  • the first state is that the angle is less than or equal to the first preset angle or greater than the second preset angle, and within the preset time, the angle change range is greater than the second preset value.
  • the second state may be a support state
  • the first state may be a normal state.
  • the support state and the normal state please refer to the relevant description in the previous text. For the sake of brevity, it will not be repeated here.
  • the method 1100 may further include:
  • the first electronic device determines that the change range of the angle is greater than or equal to a first preset value and less than or equal to a second preset value;
  • the first electronic device determines that the first electronic device is in a third state. In the third state, the first electronic device continues to display the first display interface.
  • the first state may be a normal state
  • the second state may be a support state
  • the third state may be an intermediate state.
  • the electronic device can switch smoothly between the stand state and the normal state, avoiding the electronic device switching to the projection state due to some accidental touches or jitters, thereby providing a certain degree of fault tolerance for users and improving the user experience.
  • the cursor of the second electronic device can be moved to the display screen of the first electronic device.
  • the first electronic device after the first electronic device pauses projecting the screen to the second electronic device, the first electronic device can serve as an extended screen of the second electronic device, and the user can control the first electronic device with the mouse.
  • the method 1100 may further include:
  • the first electronic device determines that the second electronic device switches from the second state to the first state
  • the first electronic device turns off the display screen and continues to project the screen to the second electronic device.
  • the mobile phone when the mobile phone determines that the tablet is switched from the stand state back to the normal state, the mobile phone can turn off the display screen and resume screen projection to the tablet, and the screen projection window 320 is displayed in the tablet.
  • the mobile phone when the mobile phone determines that the tablet is switched from the stand state back to the normal state, the mobile phone can turn off the display screen and resume screen projection to the tablet.
  • the tablet displays a projection icon 430 . At this time, the projection window is minimized and displayed on the tablet.
  • the first electronic device when it is determined that the second electronic device switches back to the first state from the second state, the first electronic device can automatically restore the state.
  • the screen projection to the second electronic device does not require manual operation by the user, so that the projection window can be displayed in the second electronic device.
  • turning off the screen of the first electronic device can further save power consumption.
  • the method 1100 may further include:
  • the first electronic device determines that the first electronic device switches from the second state to the first state
  • the first electronic device continues to display the first display interface and continues to project the screen to the second electronic device.
  • the screen projection to the second electronic device can be automatically restored, so that the screen projection window can be redisplayed in the second electronic device.
  • the first electronic device continues to display the first display interface, which does not affect the user's use of the first electronic device.
  • the method 1100 may further include:
  • the first electronic device determines that no image of the user is acquired when the camera is turned on.
  • the screen when the first electronic device turns on the camera but fails to acquire the image of the user, the screen can be turned off to save power consumption.
  • the first electronic device pauses screen projection to the second electronic device and displays the first display interface, or the first electronic device displays the first display interface according to the first screen projection data received from the second electronic device, including:
  • the first electronic device pauses screen projection to the second electronic device and displays the first display interface, or the first electronic device displays the first display interface based on the first screen projection data received from the second electronic device.
  • the distance between the first electronic device and the second electronic device should be within a preset distance range, thereby avoiding the user being troubled by switching the screen projection state when the user is holding the first electronic device far away from the second electronic device.
  • Fig. 12 is a schematic flow chart of another method for switching windows provided in an embodiment of the present application. As shown in Fig. 12, the method 1200 can be applied to a second electronic device, where the second electronic device is in a scenario where the screen is projected by a first electronic device, and the method 1200 can include steps 1210 to 1220.
  • the second electronic device determines that the second electronic device or the first electronic device switches from the first state to the second state, wherein the electronic device that has not switched the state is in the second state;
  • the first electronic device may project the screen onto the second electronic device, and the second electronic device is in a projected state.
  • the first state may be the normal state mentioned above, and the second state may be the support state mentioned above.
  • step 1210 one of the first electronic device and the second electronic device is in the stand state, and the other is switched from the normal state to the stand state.
  • the second electronic device displays a first icon, where the first icon is used to indicate that the display screen of the first electronic device serves as an extended screen of the second electronic device.
  • the first icon may be a screen extension icon.
  • the screen extension icon may also be called an expansion icon, an extended icon, or the like.
  • the tablet when the tablet determines that the state of the tablet or mobile phone is switched from the normal state to the stand state, the tablet can display the screen extension icon 330.
  • the screen extension icon can also be an icon in other forms, which is not limited in this application.
  • the first icon when the mobile phone is located on the left side of the tablet, the first icon may be located on the left side of the display interface; when the mobile phone is located on the left side of the tablet, the first icon may be located on the left side of the display interface.
  • the electronic device that has not switched the state is also in the second state.
  • the second electronic device can display a first icon for indicating that the display screen of the first electronic device is used as an extended screen of the second electronic device.
  • the first electronic device pauses the screen projection, and the screen projection window in the second electronic device is closed. Only the first icon needs to be displayed in the second electronic device, and the first electronic device can be used as an extended screen of the second electronic device, which brings a wider visual effect to the user and improves the user experience.
  • the second electronic device displays the first icon, including:
  • the second electronic device closes the first display interface and displays the first icon
  • the second electronic device changes the projection icon to the first icon.
  • the display interface of the mobile phone is displayed in the display interface 340 of the tablet in the form of a projection window 320 .
  • the projection window 320 is closed and the projection icon 330 is displayed.
  • the display interface of the mobile phone is displayed on the display interface 450 of the tablet in the form of a screen projection icon 430. That is, the screen projection window of the mobile phone is minimized and displayed on the tablet.
  • the screen projection icon 430 is changed to the screen extension icon 440.
  • the second electronic device when the second electronic device displays the first icon, if the display interface of the first electronic device is displayed in the second electronic device in the form of a projection window, the second electronic device can close the projection window and display the first icon; if the display interface of the first electronic device has been minimized in the second electronic device, the second electronic device can change the minimized projection icon to the first icon.
  • This technical solution can make the second electronic device finally display the first icon to remind the user that it is currently in the extension mode.
  • the first display interface can be reproduced and displayed in the second electronic device in the form of a projection window.
  • the second electronic device determines that the first electronic device switches from the first state to the second state, including:
  • the first indication information indicates that the first electronic device switches from the first state to the second state
  • indication information of the state change can be sent to the second electronic device.
  • the second electronic device can also determine that the state of the first electronic device has changed by receiving indication information sent by the first electronic device to indicate that the state of the first electronic device has changed, so that the second electronic device can execute the strategy of switching windows.
  • the method 1200 may further include:
  • Second indication information is sent to the first electronic device, where the second indication information is used to instruct the second electronic device to switch from the first state to the second state.
  • the second electronic device when it determines that its own state has changed, it sends indication information of the state change to the first electronic device, thereby facilitating the first electronic device to execute the switching strategy.
  • the method 1200 may further include:
  • the second electronic device sends first screen projection data to the first electronic device, where the first data is used to control the first electronic device to display a first display interface, wherein the first data is data that the first electronic device projects to the second electronic device.
  • the projection window can be conveniently switched to the first electronic device for display, so that when the projection window is switched back to the second electronic device, there is no need to reload the projection data because the projection is not interrupted, thereby reducing the delay.
  • the tablet when the tablet detects that the user clicks the button of the screen projection icon, the tablet can switch the projection window back to the tablet for display. At this time, since the screen projection is not interrupted, there is no need to reload the projection data, thereby reducing the delay.
  • the method 1200 may further include:
  • the second electronic device determines that the first display interface is displayed in full screen in the display interface of the second electronic device, when the second electronic device determines that the second electronic device or the first electronic device switches from the first state to the second state, the second electronic device continues to display the first display interface.
  • the display interface of the mobile phone when the display interface of the mobile phone is displayed in full screen on the tablet, when the state of the tablet or the mobile phone changes, the display interface of the mobile phone can continue to be displayed on the tablet.
  • the second electronic device when it is determined that one of the first electronic device or the second electronic device changes from a normal state to a stand state, the second electronic device can continue to display a maximized or full-screen projection window, thereby avoiding affecting the user's immersive experience.
  • the first state and/or the second state is a physical form of the electronic device.
  • the second state is a support state
  • the support state is used to indicate that the electronic device is in a relatively stable state, or the support state is a state where the electronic device is placed on a support;
  • the first state is a normal state, and the normal state is used to indicate that the electronic device is in a relatively unstable state, or the normal state is a state where the electronic device is not placed on a bracket.
  • the second state is that the angle of the first direction of the second electronic device is greater than the first preset angle and less than or equal to the second preset angle, and within the preset time, the angle change range is less than the first preset value;
  • the first state is that the angle is less than or equal to the first preset angle or greater than the second preset angle, and within the preset time, the change range of the angle is greater than the second preset value.
  • the second state may be a support state
  • the first state may be a normal state.
  • the method 1200 may further include:
  • the second electronic device determines that the change range of the angle is greater than or equal to the first preset value and less than or equal to the second preset value;
  • the second electronic device determines that the second electronic device is in a third state. In the third state, the second electronic device continues to display the first icon.
  • the first state may be a normal state
  • the second state may be a support state
  • the third state may be an intermediate state.
  • the electronic device can switch smoothly between the stand state and the normal state, avoiding the electronic device switching to the projection state due to some accidental touches or jitters, thereby providing a certain degree of fault tolerance for users and improving the user experience.
  • the cursor of the second electronic device can be moved to the display screen of the first electronic device.
  • the first electronic device after the first electronic device pauses screen projection, the first electronic device can serve as an extended screen of the second electronic device, and the user can control the first electronic device with the mouse.
  • the method 1200 further includes:
  • the second electronic device determines that the second electronic device or the first electronic device switches from the second state to the first state
  • the second electronic device closes the first icon and displays the first display interface in the form of a projection window; or the second electronic device changes the first icon into a projection icon.
  • the tablet when the tablet determines that the tablet or mobile phone is switched from the stand state back to the normal state, the tablet may not display the screen projection icon and redisplay the screen projection window 320 in the display interface.
  • the tablet when the tablet determines that the tablet or mobile phone is switched from the stand state back to the normal state, the tablet can change the screen extension icon back to the screen projection icon.
  • the first electronic device when it is determined that the first electronic device or the second electronic device is switched from the support state back to the normal state, the first electronic device can automatically resume screen projection to the second electronic device, that is, the projection window is redisplayed in the second electronic device, and the second electronic device can restore the projection window to its original state, thereby helping to improve the user experience.
  • the method 1200 may further include:
  • the second electronic device turns on the camera to determine whether the image of the user is acquired
  • the second electronic device turns off the screen.
  • the second electronic device when one of the first electronic device and the second electronic device switches from the support state back to the normal state, the second electronic device can turn on the camera to determine whether the image of the user is acquired. When the image of the user is not acquired, the screen can be turned off to save power consumption.
  • the second electronic device displays the first icon, including:
  • the second electronic device displays the first icon.
  • the distance between the first electronic device and the second electronic device should be within a preset distance range, thereby avoiding the user being troubled by switching the screen projection state when the user is holding the first electronic device far away from the second electronic device.
  • the embodiment of the present application further provides a system, the system comprising a first electronic device and a second electronic device, the first electronic device and the second electronic device having a screen projection relationship, wherein:
  • the first electronic device is configured to suspend screen projection to the second electronic device and display the first display interface when determining that the first electronic device or the second electronic device switches from the first state to the second state, or the first electronic device displays the first display interface according to the first data received from the second electronic device, wherein the first display interface is a display interface of the screen projection of the first electronic device to the second electronic device, and the electronic device that has not switched the state is in the second state;
  • the second electronic device is used to display a first icon when it is determined that the first electronic device or the second electronic device switches from a first state to a second state, wherein the first icon is used to indicate that the display screen of the first electronic device serves as an extended screen of the second electronic device.
  • the first electronic device after the first electronic device projects the screen to the second electronic device, when it is determined that the first electronic device or the second electronic device switches from the first state to the second state, the first electronic device can display the first display interface and suspend the screen projection to the second electronic device; the second electronic device displays the first icon, and the first icon is used to indicate that the display screen of the first electronic device is used as the extended screen of the second electronic device.
  • This technical solution can automatically suspend the screen projection when it detects that the state of the electronic device has changed, and use the display screen of the projecting electronic device as the extended screen of the other electronic device being projected, without the need for manual operation by the user, thereby improving the user experience.
  • the first electronic device when the state of the electronic device changes, can continue to project the screen to the second electronic device. It also receives first data sent by the second electronic device and displays a first display interface based on the first data, so that the projection window can be conveniently switched to the first electronic device for display. When the projection window is switched back to the second electronic device, there is no need to reload the projection data because the projection is not interrupted, thereby reducing the delay.
  • An embodiment of the present application also provides an electronic device, comprising: one or more processors; one or more memories; the one or more memories storing one or more computer programs, the one or more computer programs comprising instructions, and when the instructions are executed by the one or more processors, the method for switching windows as described in any possible implementation method described above is executed.
  • An embodiment of the present application also provides a chip, which includes a processor and a communication interface, wherein the communication interface is used to receive a signal and transmit the signal to the processor, and the processor processes the signal so that the method of switching windows described in any possible implementation method in the foregoing text is executed.
  • This embodiment further provides a computer-readable storage medium, in which computer instructions are stored.
  • the computer instructions When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the method for switching windows in the above-mentioned embodiment.
  • This embodiment further provides a computer program product.
  • the computer program product When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the window switching method in the above-mentioned embodiment.
  • an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer execution instructions, and when the device is running, the processor can execute the computer execution instructions stored in the memory so that the chip executes the method of switching windows in the above-mentioned method embodiments.
  • the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.
  • Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供了一种切换窗口的方法和电子设备,该方法可以应用于第一电子设备和第二电子设备中,第一电子设备与第二电子设备具有投屏关系,当确定第一电子设备或第二电子设备从第一状态切换至第二状态时,第一电子设备可以显示第一显示界面并暂停向第二电子设备投屏;第二电子设备显示第一图标,第一图标用于指示第一电子设备的显示屏作为第二电子设备的拓展屏。该技术方案可以在检测到电子设备的状态发生变化时,将投屏的电子设备的显示屏作为被投屏的另一电子设备的拓展屏,另一电子设备中可以显示拓屏图标,而不具体显示投屏窗口,无需用户手动操作进行切换,从而可以提升用户体验。

Description

切换窗口的方法和电子设备
本申请要求于2022年09月30日提交中国专利局、申请号为202211217538.9、申请名称为“切换窗口的方法和电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及电子技术领域,并且更具体地,涉及一种切换窗口的方法和电子设备。
背景技术
在用户使用电子设备的过程中,经常需要将一个电子设备的显示界面显示在另一电子设备中。例如,手机向平板投屏,手机的显示界面可以显示在平板中,这种情况下,手机作为投屏设备,平板作为被投屏设备。
然而包括手机的投屏窗口可能会遮挡平板的部分显示内容,所以用户可以通过操作使平板最小化显示投屏窗口,在需要时重新将投屏窗口显示出来,从而可以不影响用户对平板的使用。但是该投屏窗口切换过程需要用户频繁操作,影响了用户的体验。
发明内容
本申请实施例提供一种切换窗口的方法和电子设备,以期在检测到电子设备的状态发生变化时,将投屏的电子设备的显示屏作为被投屏的另一电子设备的拓展屏,且被投屏的另一电子设备中可以显示拓屏图标,而不具体显示投屏窗口,以减少用户的部分操作,从而可以提升用户体验。
第一方面,提供了一种切换窗口的方法,所述方法应用于第一电子设备,所述第一电子设备处于向第二电子设备投屏的场景中,所述第二电子设备显示的第一显示界面为所述第一电子设备向所述第二电子设备投屏的界面,所述方法包括:所述第一电子设备确定所述第一电子设备或第二电子设备从第一状态切换至第二状态,其中,未切换状态的电子设备处于所述第二状态;所述第一电子设备暂停向所述第二电子设备投屏并且所述第一电子设备显示所述第一显示界面,或者,所述第一电子设备根据从第二电子设备接收的第一投屏数据显示所述第一显示界面。
应理解,该第一数据可以是第一电子设备向第二电子设备投屏的数据。该第一显示界面可以是投屏窗口的显示界面。
本申请实施例中,第一电子设备向第二电子设备投屏后,当第一电子设备确定第一电子设备或第二电子设备从第一状态切换至第二状态时(例如从普通态切换至支架态),此时未切换状态的电子设备也处于第二状态,那么第一电子设备可以自动暂停向第二电子设备投屏并显示向所述第二电子设备投屏的第一显示界面。也就是说,视觉上第一电子设备的显示屏可以作为第二电子设备的拓展屏。该技术方案可以在电子设备状态发生变化时自动暂停投屏,避免用户手动操作,且第一电子设备的显示屏可以作为第二电子设备的拓展屏,能够给用户带来更广阔的视觉效果,提升了用户的体验。进一步地,第一电子设备暂停投屏,从而可以节省功耗和带宽。
本申请实施例中,当电子设备的状态发生变化时,第一电子设备可以继续向第二电子设备投屏,且接收第二电子设备发送的第一数据,并根据第一数据显示第一显示界面,从而可以便捷地将投屏窗口切换至第一电子设备中显示,从而在投屏窗口重新切换回第二电子设备中时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
结合第一方面,在第一方面的一种实现方式中,在所述第一电子设备显示第一显示界面并暂停向所述第二电子设备投屏之前,所述方法还包括:确定所述第一电子设备的显示屏是否点亮;若确定所述显示屏未点亮,则点亮所述显示屏。
本申请实施例中,第一电子设备向第二电子设备投屏后,可以熄屏,以节省功耗。当第一电子设备检测到第一电子设备或第二电子设备的状态发生变化时,可以先确定第一电子设备的显示屏是否点亮,若未点亮,则点亮显示屏显示第一显示界面。该技术方案可以在需要时点亮显示屏,从而可以节 省电子设备的功耗。
结合第一方面,在第一方面的一种实现方式中,若所述第一电子设备确定所述第一电子设备从第一状态切换至第二状态,所述方法还包括:向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备从所述第一状态切换至所述第二状态。
本申请实施例中,当第一电子设备确定自身的状态发生变化时,将该状态变化的指示信息发给第二电子设备,从而有利于第二电子设备执行切换策略。
结合第一方面,在第一方面的一种实现方式中,所述第一电子设备确定所述第二电子设备从第一状态切换至第二状态,包括:接收所述第二电子设备发送的第二指示信息,;当所述第二指示信息指示所述第二电子设备从第一状态切换至第二状态时,确定所述第二电子设备从所述第一状态切换至所述第二状态。
本申请实施例中,第一电子设备还可以通过接收第二电子设备发送的用于指示第二电子设备的状态发生变化的指示信息,以确定第二电子设备的状态发生变化,从而第一电子设备可以执行切换窗口的策略。
结合第一方面,在第一方面的一种实现方式中,所述第一状态和/或所述第二状态为电子设备的物理形态。
示例性地,该第一状态、第二状态为电子设备的物理形态可以理解为第一状态、第二状态为电子设备的姿态,例如,电子设备被放置在桌面上,或者以一定角度被放置在某个物体上,或者被用户拿在手上使用等等。
结合第一方面,在第一方面的一种实现方式中,所述第二状态为支架态,所述支架态用于指示电子设备处于相对稳定的状态,或者,所述支架态为电子设备处于被放置在支架上的状态;所述第一状态为普通态,所述普通态用于指示电子设备处于相对不稳定的状态,或者,所述普通态为电子设备处于不被放置在支架上的状态。
可以理解的是,支架态可以用于指示电子设备处于相对稳定的状态,例如,电子设备以一个固定姿势被放置,或者以某个角度被放置在另一个物体上,或者,电子设备处于被放置在支架上的状态。普通态可以用于指示电子设备处于相对不稳定的状态,例如,电子设备被用户拿在手上使用,其不具有一个固定姿势,此时,电子设备的姿态处于不稳定的状态,或者,电子设备处于不被放置在支架上的状态。
结合第一方面,在第一方面的一种实现方式中,所述第二状态为所述第一电子设备的第一方向的角度大于第一预设角度且小于或等于第二预设角度,且在预设时间内,所述角度的变化范围小于第一预设值;所述第一状态为所述角度小于或等于所述第一预设角度或大于所述第二预设角度,且在所述预设时间内,所述角度的变化范围大于第二预设值。
本申请实施例中,第二状态还可以理解为,第一电子设备被放置在第一电子设备的支架上。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:在所述预设时间内,所述第一电子设备确定所述角度的变化范围大于或等于所述第一预设值且小于或等于所述第二预设值;所述第一电子设备确定所述第一电子设备处于第三状态,在所述第三状态下,所述第一电子设备继续显示所述第一显示界面。
示例性地,该第一状态可以是普通态,该第二状态可以是支架态,该第三状态可以是中间态。
本申请实施例中,通过引入中间态,使得电子设备可以在支架态和普通态之间平滑切换,避免由于一些误触或抖动使得电子设备切换投屏窗口,从而可以为用户使用带来一定的容错性,进而提升了用户的体验。
结合第一方面,在第一方面的一种实现方式中,所述第二电子设备的光标可移动至所述第一电子设备的显示屏中。
本申请实施例中,在第一电子设备暂停向第二电子设备投屏后,第一电子设备可以作为第二电子设备的拓展屏,此时用户可以用户鼠标控制第一电子设备。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:所述第一电子设备确定所述第二电子设备从所述第二状态切换至所述第一状态;所述第一电子设备熄灭所述显示屏并继续向所述第二电子设备投屏。
本申请实施例中,当确定第二电子设备从第二状态切换回第一状态时,第一电子设备可以自动恢 复向第二电子设备的投屏,从而可以将投屏窗口重新显示在第二电子设备中。此外,第一电子设备熄屏可以进一步节省功耗。
结合第一方面,在第一方面的一种实现方式中,所述方法还包括:所述第一电子设备确定所述第一电子设备从所述第二状态切换至所述第一状态;所述第一电子设备继续显示所述第一显示界面并继续向所述第二电子设备投屏。
本申请实施例中,当确定第一电子设备的从第二状态切换回第一状态时,可以自动恢复向第二电子设备投屏,从而可以将投屏窗口重新显示在第二电子设备中。此外,第一电子设备继续显示第一显示界面,可以不影响用户对于第一电子设备的使用。
结合第一方面,在第一方面的一种实现方式中,在所述第一电子设备熄灭所述显示屏之前,所述方法还包括:所述第一电子设备确定打开摄像头未获取到用户的图像。
本申请实施例中,当第一电子设备打开摄像头未获取到用户的图像时,可以熄屏,以节省功耗。
结合第一方面,在第一方面的一种实现方式中,所述第一电子设备暂停向所述第二电子设备投屏并显示第一显示界面并,或者,所述第一电子设备根据从第二电子设备接收的第一数据显示第一显示界面,包括:
在确定所述第一电子设备与所述第二电子设备之间的距离小于或等于预设距离时,所述第一电子设备暂停向所述第二电子设备投屏并显示第一显示界面,或者,所述第一电子设备根据从第二电子设备接收的第一数据显示第一显示界面。
本申请实施例中,第一电子设备和第二电子设备之间的距离应在预设距离范围内,从而可以避免用户在持有第一电子设备距离第二电子设备较远的情况下,依然切换投屏状态对用户造成困扰。
第二方面,提供了一种切换窗口的方法,所述方法应用于第二电子设备,所述第二电子设备处于被第一电子设备投屏的场景中,所述方法包括:所述第二电子设备确定所述第二电子设备或第一电子设备从第一状态切换至第二状态,其中,未切换状态的电子设备处于所述第二状态;所述第二电子设备显示第一图标,所述第一图标用于指示所述第一电子设备的显示屏作为所述第二电子设备的拓展屏。
本申请实施例中,第一电子设备向第二电子设备投屏后,当第二电子设备确定第一电子设备或第二电子设备从第一状态切换至第二状态时(例如从普通态切换至支架态),此时未切换状态的电子设备也处于第二状态。那么,第二电子设备可以显示用于指示第一电子设备的显示屏作为第二电子设备的拓展屏的第一图标。此时,第二电子设备中的投屏窗口自动关闭,第二电子设备中只需显示第一图标即可,且第一电子设备可以作为第二电子设备的拓展屏,给用户带来更广阔的视觉效果,提升了用户的体验。
应理解,该拓屏图标还可以称为拓展图标、扩展图标等等,本申请实施例不予限定。
结合第二方面,在第二方面的一种实现方式中,所述第二电子设备显示第一图标,包括:若所述第一电子设备的第一显示界面以投屏窗口的方式显示在所述第二电子设备的显示界面中,则所述第二电子设备关闭所述第一显示界面,并显示所述第一图标;若所述第一电子设备的第一显示界面以投屏图标的方式显示在所述第二电子设备的显示界面中,所述第二电子设备将所述投屏图标变为所述第一图标。
示例性地,该第一图标可以是拓屏图标。
本申请实施例中,在第二电子设备显示第一图标时,若第一电子设备的显示界面以投屏窗口的方式显示在第二电子设备中,则第二电子设备可以关闭该投屏窗口,并显示第一图标;若第一电子设备的显示界面已经在第二电子设备中最小化显示,则第二电子设备可以将最小化显示的投屏图标变为第一图标。该技术方案可以使得第二电子设备最终显示第一图标,以提醒用户当前属于拓屏模式。
在另一些实施例中,当第二电子设备检测到用户点击或鼠标点击该第一图标的操作后,可以将第一显示界面以投屏窗口的方式重现显示在第二电子设备中。
结合第二方面,在第二方面的一种实现方式中,所述第二电子设备确定所述第一电子设备从第一状态切换至第二状态,包括:接收所述第一电子设备发送的第一指示信息,所述第一指示信息用于指示所述第一电子设备从第一状态切换至第二状态;根据所述第一指示信息确定所述第一电子设备从所述第一状态切换至所述第二状态。
本申请实施例中,第二电子设备还可以通过接收第一电子设备发送的用于指示第一电子设备的状态发生变化的指示信息,以确定第一电子设备的状态发生变化,从而第二电子设备可以执行切换窗口 的策略。
结合第二方面,在第二方面的一种实现方式中,若所述第二电子设备确定所述第二电子设备从第一状态切换至第二状态,所述方法还包括:向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第二电子设备从所述第一状态切换至所述第二状态。
本申请实施例中,当第二电子设备确定自身的状态发生变化时,将该状态变化的指示信息发给第一电子设备,从而有利于第一电子设备确定需要暂停投屏。
结合第二方面,在第二方面的一种实现方式中,所述方法还包括:所述第二电子设备向所述第一电子设备发送第一投屏数据,所述第一数据用于控制所述第一电子设备显示第一显示界面,其中,所述第一数据为所述第一电子设备向所述第二电子设备投屏的数据。
本申请实施例中,可以便捷地将投屏窗口切换至第一电子设备中显示,从而在投屏窗口重新切换回第二电子设备中时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
结合第二方面,在第二方面的一种实现方式中,所述方法还包括:若所述第二电子设备确定所述第一显示界面以全屏形式显示在所述第二电子设备的显示界面中,在所述第二电子设备确定所述第二电子设备或第一电子设备从第一状态切换至第二状态时,所述第二电子设备继续显示所述第一显示界面。
本申请实施例中,当确定第一电子设备或第二电子设备中的一个从普通态变为支架态时,第二电子设备中可以继续显示最大化或全屏的投屏窗口,从而可以避免影响用户的沉浸式体验。
结合第二方面,在第二方面的一种实现方式中,所述第一状态和/或所述第二状态为电子设备的物理形态。
结合第二方面,在第二方面的一种实现方式中,所述第二状态为支架态,所述支架态用于指示电子设备处于相对稳定的状态,或者,所述支架态为电子设备处于被放置在支架上的状态;所述第一状态为普通态,所述普通态用于指示电子设备处于相对不稳定的状态,或者,所述普通态为电子设备处于不被放置在支架上的状态。
结合第二方面,在第二方面的一种实现方式中,所述第二状态为所述第二电子设备的第一方向的角度大于第一预设角度且小于等于第二预设角度,且在预设时间内,所述角度的变化范围小于第一预设值;所述第一状态为所述角度小于等于所述第一预设角度或大于所述第二预设角度,且在所述预设时间内,所述角度的变化范围大于第二预设值。
本申请实施例中,第二状态还可以理解为,第二电子设备被放置在第二电子设备的支架上。
结合第二方面,在第二方面的一种实现方式中,所述方法还包括:在所述预设时间内,所述第二电子设备确定所述角度的变化范围大于或等于所述第一预设值且小于或等于所述第二预设值;所述第二电子设备确定所述第二电子设备处于第三状态,在所述第三状态下,所述第二电子设备继续显示所述第一图标。
示例性地,该第一状态可以是普通态,该第二状态可以是支架态,该第三状态可以是中间态。
本申请实施例中,通过引入中间态,使得电子设备可以在支架态和普通态之间平滑切换,避免由于一些误触或抖动使得电子设备切换投屏状态,从而可以为用户使用带来一定的容错性,进而提升了用户的体验。
结合第二方面,在第二方面的一种实现方式中,所述第二电子设备的光标可移动至所述第一电子设备的显示屏中。
本申请实施例中,在第一电子设备暂停投屏后,第一电子设备可以作为第二电子设备的拓展屏,此时用户可以用户鼠标控制第一电子设备。提升了用户的体验。
结合第二方面,在第二方面的一种实现方式中,所述方法还包括:所述第二电子设备确定所述第二电子设备或所述第一电子设备从所述第二状态切换至所述第一状态;所述第二电子设备关闭所述第一图标并以投屏窗口的方式显示所述第一显示界面;或所述第二电子设备将所述第一图标变为所述投屏图标。
本申请实施例中,当确定第一电子设备或第二电子设备从支架态切换回普通态时,第一电子设备恢复向第二电子设备投屏,即投屏窗口重新显示在第二电子设备中,则第二电子设备可以将投屏窗口恢复至原状,从而有利于提升用户体验。
结合第二方面,在第二方面的一种实现方式中,所述方法还包括:所述第二电子设备打开摄像头 确定是否获取到用户的图像;若未获取到所述图像,则所述第二电子设备熄屏。
本申请实施例中,第二电子设备可以打开摄像头确定是否获取到用户的图像,当未获取到用户的图像时,可以熄屏,以节省功耗。
结合第二方面,在第二方面的一种实现方式中,所述第二电子设备显示第一图标,包括:在确定所述第二电子设备与所述第一电子设备之间的距离小于或等于预设距离时,所述第二电子设备显示所述第一图标。
本申请实施例中,第一电子设备和第二电子设备之间的距离应在预设距离范围内,从而可以避免用户在持有第一电子设备距离第二电子设备较远的情况下,依然切换投屏状态对用户造成困扰。
第三方面,提供了一种系统,所述系统包括第一电子设备和第二电子设备,所述第一电子设备与所述第二电子设备具有投屏关系,其中,所述第一电子设备,用于在确定所述第一电子设备或第二电子设备从第一状态切换至第二状态时显示第一显示界面并暂停向所述第二电子设备投屏,其中,所述第一显示界面为所述第一电子设备向所述第二电子设备投屏的显示界面,未切换状态的电子设备处于所述第二状态;所述第二电子设备,用于在确定所述第一电子设备或第二电子设备从所述第一状态切换至所述第二状态时显示第一图标,所述第一图标用于指示所述第一电子设备的显示屏作为所述第二电子设备的拓展屏。
本申请实施例中,第一电子设备向第二电子设备投屏后,当确定第一电子设备或第二电子设备从第一状态切换至第二状态时,第一电子设备可以显示第一显示界面并暂停向第二电子设备投屏;第二电子设备显示第一图标,第一图标用于指示第一电子设备的显示屏作为第二电子设备的拓展屏。该技术方案可以在检测到电子设备的状态发生变化时,自动暂停投屏,并将投屏的电子设备的显示屏作为被投屏的另一电子设备的拓展屏,以减少用户的部分操作,从而可以提升用户体验。
第四方面,提供了一种电子设备,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如第一方面及其任一种可能的实现方式中所述的切换窗口的方法被执行。
第五方面,提供了一种电子设备,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如第二方面及其任一种可能的实现方式中所述的切换窗口的方法被执行。
第六方面,提供了一种系统,包括如第三方面所述的电子设备和第四方面所述的电子设备。
第七方面,提供了一种切换窗口的装置,包括用于实现如第一方面至第二方面及其任一种可能的实现方式中所述的切换窗口的方法中的模块。
第八方面,提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如第一方面至第二方面及其任一种可能的实现方式中所述的切换窗口的方法被执行。
第九方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如第一方面至第二方面及其任一种可能的实现方式中所述的切换窗口方法被执行。
第十方面,提供了一种计算机程序产品,所述计算机程序产品包括计算机程序代码,当所述计算机程序代码在计算机上运行时,使得如第一方面至第二方面及其任一种可能的实现方式中所述的切换窗口方法被执行。
附图说明
图1是本申请实施例提供的电子设备的结构示意图。
图2是本申请实施例提供的电子设备的软件结构示意图。
图3是本申请实施例提供的一组GUI的示意图。
图4是本申请实施例提供的另一组GUI的示意图。
图5是本申请实施例提供的另一组GUI的示意图。
图6是本申请实施例提供的另一组GUI的示意图。
图7是本申请实施例提供的另一组GUI的示意图。
图8是本申请实施例提供的一种电子设备在多种状态之间的切换的示意图。
图9是本申请实施例提供的电子设备各个轴向的示意图。
图10是本申请实施例提供的电子设备和支架的示意图。
图11是本申请实施例提供的一种切换窗口的方法的示意性流程图。
图12是本申请实施例提供的另一种切换窗口的方法的示意性流程图。
具体实施方式
下面将结合附图,对本申请实施例中的技术方案进行描述。
本申请实施例中的显示方法可以应用于智能手机、平板电脑、笔记本电脑、个人计算机(personal computer,PC)、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、车载设备、可穿戴设备、可折叠设备等电子设备中。
图1示出了电子设备100的结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),低功耗蓝牙(bluetooth low energy,BLE),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),也可以采用有机发光二极管(organic light-emitting diode,OLED)、有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED)、柔性发光二极管(flex light-emitting diode,FLED)、Miniled、MicroLed、Micro-oLed或量子点发光二极管(quantum dot light emitting diodes,QLED)等材料中的一种所制作的显示面板。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。摄像头193用于捕获静态图像或视频。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。
距离传感器180F,用于测量距离。
指纹传感器180H用于采集指纹。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。
按键190包括开机键,音量键等。
马达191可以产生振动提示。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的操作系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为四层,从上至下分别为应用程序层,应用程序框架层,系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息,钱包等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂 停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
在介绍本申请实施例的技术方案之前,首先简单介绍一下本申请可能会涉及的一些专业术语。
投屏:将电子设备A中的显示屏显示的画面,以窗口或全屏的形式显示在电子设备B的显示屏中。
拓屏:电子设备A可以暂停向电子设备B投屏,电子设备A的屏幕作为电子设备B的拓展屏;或者电子设备B将电子设备A投屏的内容显示在电子设备A中,电子设备A的屏幕作为电子设备B的拓展屏。此时,电子设备B的鼠标可以移动至电子设备A中,可选地,电子设备B的显示屏中显示拓屏图标。
支架态:电子设备的y轴的角度α1满足公式一,第一预设角度<α1≤第二预设角度,且,在预设时间t内,该角度α1的变化范围小于第一预设值。例如,该第一预设角度可以为30°,该第二预设角度为90°,该时间t为1s,该第一预设值为0.03。应理解,该第一预设角度、第二预设角度、时间t和预设值的具体取值还可以为其他值,根据第一预设角度和/或第二预设角度的设定方式不同,前述的角度α1的判定方法也可以有其它方法,本申请实施例不予限定。本申请实施例中,电子设备放置在支架上,可以理解为电子设备处于支架态。关于支架态的具体描述可以参见下文,此处暂不详述。
中间态:在预设时间t内,该角度α1的变化范围大于或等于第一预设值且小于或等于第二预设值。例如,第一预设值为0.03,第二预设值为5。应理解,该中间态还可以称为过渡态、临近切换态等等。
普通态:电子设备的y轴的角度α1不满足公式一,且预设时间t内,该角度α1的变化范围大于第二预设值。本申请实施例中,将电子设备从支架上移开,可以理解为电子设备从支架态变为普通态。
图3是本申请实施例提供的一组图形用户界面(graphical user interface,GUI)的示意图。其中,从图3中的(a)至(b)示出了手机200a在平板200b上投屏的过程。
本申请实施例中,平板200a可以外接键盘200c和鼠标200d。例如,该键盘200c、鼠标200d可以通过有线或无线方式与平板200b建立连接关系,从而用户可以便捷的在平板200b中进行办公等操作。
应理解,在手机200a向平板200b投屏之前,手机200a可以和平板200b建立连接关系。例如,手机和平板可以是通过无线、有线等方式建立连接关系。
参见图3中的(a),该GUI为手机200a向平板200b投屏之后,手机200a的显示界面210和平板200b的显示界面240。该显示界面240中可以包括手机200a的投屏窗口221,其中,该投屏窗口221中可以包括状态栏222和显示界面231,该状态栏222中可以包括手机当前显示的界面所属的应用程序的名称,例如,华为视频,该状态栏222中还可以包括用于使投屏窗口221变化的最小化按钮223、最大化按钮224和关闭按钮225。
应理解,在一些示例中,该显示界面231和手机的显示界面210相同。也就是说,手机中的当前显示界面通过该显示界面231显示在平板200b中。
在其它一些示例中,该显示界面231也可以和手机的显示界面210不同,换句话说,手机虽然有部分界面投屏到平板,但是手机仍然可以显示和投屏的界面不同的界面,例如,在平板上打开手机的 应用A,既手机投屏到平板应用A的界面,然后手机用户可以打开应用B,在手机上显示应用B的界面,类似现有技术中的异源投屏场景。
在一些示例中,手机200a向平板200b投屏之后,在预设时间内未检测到用户的操作,则手机200a可以熄屏,从而可以节省手机200a的功耗。
当平板200b检测到用户使用鼠标点击最小化按钮223的操作之后,可以显示图3中的(b)所示的GUI。
参见图3中的(b),平板200b的显示界面240中可以显示投屏图标230,从而可以将该投屏窗口221最小化显示。
当平板200b检测到用户通过鼠标200d点击该投屏图标230的操作后,可以将该投屏窗口221重新显示在显示界面240中。由于用户在使用平板200b时,投屏窗口221可能会遮挡平板200b的部分显示内容,所以用户可以将该投屏窗口221最小化显示,在需要时重新将投屏窗口显示出来,从而可以不影响用户对平板200b的使用。但是该投屏窗口切换过程需要用户频繁操作,影响了用户的体验。
有鉴于此,本申请实施例提供一种切换窗口的方法,该技术方案可以在投屏的电子设备或被投屏的另一电子设备的状态发生变化时,将投屏的电子设备的显示屏作为被投屏的电子设备的拓展屏,且被投屏的另一电子设备中可以显示拓屏图标,而不具体显示投屏窗口,从而可以避免用户过多的切换操作。
如图3所示,在手机向平板投屏之后,手机的显示界面可以以投屏窗口的形式显示在平板的显示界面中,还可以以最小化方式(投屏图标)体现在平板的显示界面中。下文将结合图4、图5分别介绍这两种技术方案。
图4是本申请实施例提供的另一组GUI的示意图。其中,图4中的(a)至(b)示出了投屏窗口在平板300b中变化的过程。
参见图4中的(a),该GUI为手机300a向平板300b投屏之后,手机300a的显示界面310和平板300b的显示界面340。
其中,手机300a在向平板300b投屏之后,为了节省功耗,可以对显示屏进行熄屏。或者,手机300a也可以继续处于亮屏状态,本申请实施例不予限定。
应理解,平板300b也可以外接键盘或鼠标。平板300b的显示界面340可以参见前文中显示界面240的相关描述,为了简洁,此处不再赘述。
在一种情况下,平板300a可以处于支架态,当手机300a从普通态变为支架态时,则手机300a和平板300b可以显示如图4中的(b)所示的GUI。
例如,手机投屏后,为了节省功耗,可以对显示屏进行熄屏,当用户将手机放置在手机的支架上,手机可以通过检测y轴的角度,确定手机从普通态变为支架态。
应理解,当手机放置在手机的支架上时,手机的y轴的角度α1需满足上述支架态的定义。
应理解,本申请实施例中,平板300a处于支架态,可以理解为平板300a被放置在支架上。例如,用户希望使用平板300a进行办公,则可以对平板300a外接键盘和鼠标,并将平板300a放置在平板的支架上。
还应理解,当平板放置在平板的支架上时,平板的y轴的角度α1需满足上述支架态的定义。
在另一种情况下,手机可以处于支架态,当平板300b从普通态变为支架态时,则手机300a和平板300b可以显示如图4中的(b)所示的GUI。
例如,手机向平板投屏后,被用户放置在手机的支架上,用户将正在使用的平板放置在平板的支架上,则平板可以从普通态变为支架态。
参见图4中的(b),手机300a从熄屏状态到亮屏状态,并显示显示界面311,平板300b中的投屏窗口320消失,可选的,在平板300b上显示拓屏图标330。在一些示例中,鼠标可以移动至手机300a的显示界面311中,用户可以通过鼠标操控手机300a。也就是说,手机300a的显示屏可以作为平板300b的拓展屏。
应理解,通过鼠标控制手机可以是基于蓝牙或WI-FI等近场通讯实现。在用户操作鼠标时,平板会获取鼠标指针坐标,当手机的显示屏不是平板的拓展屏时,鼠标指针坐标超出平板控制区域(显示屏)时,平板会将鼠标指针显示在控制区边缘(如左边缘)。本申请实施例中,手机的显示屏作为平板的拓展屏,当平板对应的鼠标指针坐标,超出平板控制区域一侧时(如左边缘/右边缘/上边缘/下边 缘),平板会将鼠标数据(包括鼠标坐标数据及操作数据)通过蓝牙或WI-FI等发送给手机,手机将接收到的鼠标数据映射成手机的对应位置,并在显示界面上显示鼠标指针以及在手机侧执行对应的鼠标操作。从体验上形成一种用户使用鼠标指针从平板边缘无缝移动到手机的效果。
在一些示例中,手机和平板之间的距离小于或等于预设距离。
在一些示例中,当手机位于平板的左侧时,该拓屏图标可以位于平板的左边缘,且拓屏图标中用于表示手机的图形位于平板图形的左侧。当手机位于平板的右侧时,该拓屏图标可以位于平板的右边缘,且拓屏图标中用于表示手机的图形位于平板图形的右侧。或者,该拓屏图标还可以位于平板底部的任务栏中,本申请实施例不予限定。
例如,手机和平板建立投屏关系后,手机可以将自己的方位信息通过蓝牙发送给平板,从而平板可以确定手机的方位。
在一些示例中,当用户使用鼠标点击拓屏图标330的操作之后,平板300b的显示界面340中将再次显示投屏窗口320。
应理解,该平板300b也可以替换为个人计算机PC,该手机300a也可以替换为平板,或者两台设备可以是同类型设备,本申请实施例不予限定。
本申请实施例中,在手机与平板建立投屏关系后,手机的显示界面可以以投屏窗口的形式显示在平板的显示界面中,当手机和平板中的一个处于支架态,另一个从普通态变为支架态时,手机自动暂停向平板投屏,平板中的投屏窗口可以关闭,并显示拓屏图标,此时,手机的显示屏可以是作为平板的拓展屏。该技术方案可以根据手机或平板的姿态变化自动暂停投屏,无需用户手动操作,从而可以提升用户使用多屏协同的体验。
或者,本申请实施例中,当电子设备的状态发生变化时,手机可以继续向平板投屏,且接收平板发送的第一数据,并根据第一数据显示投屏的界面,从而可以便捷地将投屏窗口切换至手机中显示,从而在投屏窗口重新切换回平板中时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
在一些情况下,在手机和平板均处于支架态时,可能会出现用户需要使用手机或平板,从而将其从支架上移开的情况。例如,用户将手机从支架上移开,放在桌子上或装进口袋;或者,用户将平板从支架上移开。在这种情况下,手机可以重新进入熄屏状态,并自动恢复向平板投屏,则投屏窗口将重新显示在平板的显示界面中。
示例性地,在图4中的(b)所示的场景下,当手机300a从支架态变为普通态时,手机300a和平板300b可以显示如图4中的(a)所示的GUI。
在另一个示例中,在图4中的(b)所示的场景下,当平板300b从支架态变为普通态时,手机300a和平板300b可以显示如图4中的(a)所示的GUI。
该技术方案中,当手机和平板均处于支架态,其中一个从支架态变为普通态时,投屏窗口可以重新显示在平板的显示界面中。从而可以根据手机或平板的姿态变化便捷的自动恢复投屏,避免用户手动操作,提升了用户使用多屏协同的体验。
在另一些示例中,当手机从支架态变为普通态,投屏窗口重新切换至平板的显示界面中。此时,平板可以开启摄像头,以检测是否存在人像。当平板未检测到人像时,平板可以锁屏,以保护用户隐私,平板还可以熄屏,以节省功耗。当平板检测到人像时,可以继续保持当前状态。或者进一步地,当平板检测到人像时,可以从存储的人像中确定检测的人像是否是机主,若是平板可以继续保持当前状态,若不是平板可以锁屏或熄屏。
在另一个示例中,当平板从支架态变为普通态,投屏窗口重新切换至平板的显示界面中。若手机处于未熄屏状态下,则手机可以开启摄像头,以检测是否存在人像。当手机未检测到人像时,可以锁屏,以保护用户隐私,手机还可以熄屏,以节省功耗。当手机检测到人像时,可以继续保持当前状态。或者进一步地,当手机检测到人像时,可以从存储的人像中确定检测的人像是否是机主,若是,则手机可以继续保持当前状态,若不是,则手机可以锁屏或熄屏。
图5是本申请实施例提供的另一组GUI的示意图。其中,从图5中的(a)至(b)示出了手机400a向平板400b投屏变化的过程。
参见图5中的(a),该GUI为手机400a向平板400b投屏之后,手机400a的显示界面410和平板400b的显示界面450。
其中,手机400a在向平板400b投屏之后,为了节省功耗,可以对显示屏进行熄屏,相应的,该显示界面410中不显示任何界面元素。用户为了使手机的投屏窗口不遮挡平板的显示界面,可以将投屏窗口最小化显示,也就是在平板的显示界面450中显示投屏图标430,当用户点击该投屏图标430时,可以重新将手机的投屏窗口重新显示在显示界面450中。
应理解,平板400b也可以外接键盘、鼠标,从而方便用户在平板上办公。
在一种情况下,平板400b处于支架态,手机400a处于普通态,当手机400a从普通态变为支架态时,手机400a和平板400b可以显示如图5中的(b)所示的GUI。
例如,当用户将使用的手机或放置在桌子上的手机放置到手机的支架上时,可以理解为手机从普通态变为支架态。
应理解,当手机放置在手机的支架上时,手机的y轴的角度α1需满足上述支架态的定义。
在另一种情况下,平板400b处于普通态,手机400a处于支架态,当平板400b从普通态变为支架态时,手机400a和平板400b可以显示如图5中的(b)所示的GUI。
例如,当用户将使用的平板或放置在桌子上的平板放置到平板的支架上时,可以理解为平板从普通态变为支架态。
应理解,当平板放置在平板的支架上时,平板的y轴的角度α1需满足上述支架态的定义。
参见图5中的(b),手机400a从熄屏状态到亮屏状态,并显示显示界面420,平板400b中的投屏图标430变为拓屏图标440,且鼠标可以移动至手机400a的显示界面420中,用户可以通过鼠标操控手机400a。也就是说,手机400a可以作为平板400b的拓展屏。
例如,用户可以通过鼠标在显示界面420中实现输入评论、更换选集等操作。
在一些示例中,手机和平板之间的距离小于或等于预设距离。
在一些示例中,当手机位于平板的左侧时,该拓屏图标可以位于平板的左边缘,且拓屏图标中用于表示手机的图形位于平板图形的左侧。当手机位于平板的右侧时,该拓屏图标可以位于平板的右边缘,且拓屏图标中用于表示手机的图形位于平板图形的右侧。或者,该拓屏图标还可以位于平板底部的任务栏中,本申请实施例不予限定。
在一些示例中,当用户使用鼠标点击拓屏图标440的操作之后,平板400b的显示界面450中将显示手机的投屏窗口。
应理解,该平板400b也可以替换为PC,本申请实施例不予限定。
本申请实施例中,在手机与平板建立投屏关系后,手机的显示界面可以最小化显示在平板的显示界面中,当手机和平板中的一个处于支架态,另一个从普通态变为支架态时,手机自动暂停向平板投屏,平板中的投屏窗口可以关闭,并将投屏图标变为拓屏图标,此时,手机的显示屏可以是作为平板的拓展屏。该技术方案可以根据手机或平板的姿态变化自动暂停投屏,无需用户手动操作,,从而可以提升用户使用多屏协同的体验。
在一些情况下,在手机和平板均处于支架态时,可能会出现用户需要使用手机或平板,从而将其从支架上移开的情况。例如,用户将手机从支架上移开,放在桌子上或装进口袋;或者,用户将平板从支架上移开。在这种情况下,手机可以重新进入熄屏状态,投屏窗口将重新切换回平板以最小化方式显示在平板的显示界面中。
示例性地,在图5中的(b)所示的场景下,当平板400b从支架态变为普通态时,手机400a和平板400b可以显示如图5中的(a)所示的GUI。
在另一个示例中,在图5中的(b)所示的场景下,当平板400b从支架态变为普通态时,手机400a和平板400b可以显示如图5中的(a)所示的GUI。
该技术方案中,当手机和平板均处于支架态,其中一个从支架态变为普通态时,手机自动恢复投屏,且以最小化方式显示在平板的显示界面。从而可以根据手机或平板的姿态变化便捷自动恢复投屏,避免用户手动操作,提升了用户使用多屏协同的体验。
在另一些示例中,当手机从支架态变为普通态,投屏窗口以最小化方式显示在平板的显示界面中。此时,平板可以开启摄像头,以检测是否存在人像。
应理解,平板开启摄像头,以检测是否存在人像的技术方案可以参见前文中的相关描述。
在另一个示例中,当平板从支架态变为普通态,投屏窗口重新显示在平板的显示界面中。若手机处于未熄屏状态下,则手机可以开启摄像头,以检测是否存在人像。
应理解,若手机处于未熄屏状态下,开启摄像头以检测是否存在人像的技术方案可以参见前文中的相关描述。
当手机向平板投屏之后,用户可能会将投屏窗口最大化显示或全屏显示在平板中,在这种情况下,当手机或平板的状态发生变化时,平板上将继续显示最大化显示的投屏窗口或全屏显示的投屏窗口,从而不影响用户的沉浸式体验。下文将结合图6介绍该技术方案。
图6是本申请实施例提供的另一组GUI的示意图。其中,从图6中的(a)至(c)示出了在投屏窗口全屏显示的情况下,手机500a向平板500b投屏变化的过程。
其中,图6中的(a)可以参见图4中的(a)的相关描述,为了简洁,不再赘述。
当平板500b检测到用户使用手指或手写笔或鼠标点击功能按钮524的操作之后,手机500a和平板500b可以显示如图6中的(b)所示的GUI。
在另一些示例中,当用户使用手指或手写笔或鼠标点击状态栏522中的最大化按钮时,该投屏窗口521可以最大化显示在显示界面540中,此时,显示界面540变为最大化的投屏窗口521。
参见图6中的(b),手机继续处于熄屏状态,平板显示显示界面540,该显示界面540中为全屏的媒体视频。
在一些示例中,当用户在显示界面540中滑动鼠标时,该显示界面540还可以显示状态栏522,该显示界面540中还可以显示任务栏等。
在一些情况下,平板500b可以处于支架态,当手机500a从普通态变为支架态时,手机500a和平板500b可以显示如图6中的(c)所示的GUI。
例如,当用户将使用的手机或放置在桌子上的手机放置到手机的支架上时,可以理解为手机从普通态变为支架态。
应理解,当手机放置在手机的支架上时,手机的y轴的角度α1需满足上述支架态的定义。
在另一些情况下,手机500a可以处于支架态,当平板500b从普通态变为支架态时,手机500a和平板500b可以显示如图6中的(c)所示的GUI。
例如,当用户将使用的平板或放置在桌子上的平板放置到平板的支架上时,可以理解为平板从普通态变为支架态。
应理解,当平板放置在平板的支架上时,平板的y轴的角度α1需满足上述支架态的定义。
参见图6中的(c),手机500a从熄屏状态到亮屏状态,并显示显示界面550,平板500b继续显示显示界面540。且鼠标可以移动至手机500a的显示界面550中,用户可以通过鼠标操控手机500a。也就是说,手机500a可以作为平板500b的拓展屏。
例如,用户可以通过鼠标在显示界面420中实现输入评论、更换选集等操作。
在一些示例中,手机和平板之间的距离小于或等于预设距离。
本申请实施例中,在手机与平板建立投屏关系后,用户可以通过操作使投屏窗口最大化显示或全屏显示在平板中,当手机和平板中的一个处于支架态,另一个从普通态变为支架态时,手机仍向平板投屏,且平板中继续显示最大化或全屏的投屏窗口,从而可以避免影响用户的沉浸式体验。
例如,用户正在使用手机看视频,向平板投屏后,在平板上全屏播放该视频。当手机或平板的状态发生变化时,若手机暂停向平板投屏,可能会影响用户观看视频,给用户带来不好的体验。因此,本申请实施例中,当手机或平板的状态发生变化时,全屏播放的视频依然保留在平板中,从而可以避免影响用户的体验。
图7是本申请实施例提供的一种GUI的示意图。其中,从图7中的(a)至(b)示出了手机700a向PC700b投屏变化的过程。
参见图7中的(a),该GUI为手机700a向PC700b投屏之后,手机700a的显示界面710和PC700b的显示界面740。
其中,手机700a在向平板PC700b投屏之后,为了节省功耗,可以对显示屏进行熄屏,相应的,该显示界面710中不显示任何界面元素。PC700b的显示界面740中显示手机的投屏窗口721。
应理解,该投屏窗口721可以参见前文中投屏窗口221的相关描述,为了简洁不再赘述。
当PC700b检测到PC700b被合盖后,手机700a和PC700b可以显示如图7中的(b)所示的GUI。
参见图7中的(b),手机700a从熄屏状态到亮屏状态,并显示显示界面720。
示例性地,当PC700b检测到被合盖后,可以向手机700a发送状态指示消息,以指示PC700b的 状态,当手机700a接收该状态指示消息后,可以从熄屏状态到亮屏状态,并显示界面720,也即自动暂停向平板投屏,从而无需用户手动操作。
在另一些情况下,在图7中的(b)所示的场景下,当用户打开PC700b的上盖后,手机700a和PC700b可以显示如图7中的(a)所示的GUI。此时,手机700a可以自动恢复向PC700b投屏,手机700a的投屏窗口721可以重新显示在PC700b的显示界面740中,手机为节省功耗,可以变为熄屏状态。
该技术方案中,当PC的上盖被用户合上之后,手机可以自动暂停投屏,并从熄屏状态到亮屏状态。当PC的上盖被用户打开之后,手机可以自动恢复投屏,从而可以避免用户手动切换,提升了用户的体验。
下文将结合图8-10介绍本申请实施例中电子设备的多种状态。
图8是本申请实施例提供的一种电子设备在多种状态之间的切换的示意图。参见图8,本申请中可以将电子设备的状态分为普通态、支架态和位于普通态和支架态之间的中间态。
其中,电子设备的支架态可以理解为,电子设备在竖屏状态下的y轴的角度α1满足公式一:第一预设角度<α1≤第二预设角度,且,在预设时间t内,该角度α1的变化范围小于第一预设值。例如,该第一预设角度可以为30°,该第二预设角度为90°,该时间t为1s,该第一预设值为0.03。应理解,该第一预设角度、第二预设角度、时间t和预设值的具体取值还可以为其他值,本申请实施例不予限定。
示例性地,参见图9,电子设备可以通过惯性测量单元(inertial measurement unit,IMU)、传感器等来获取电子设备的y轴的角度。
本申请实施例中,参见图10,当手机100a被放置到手机的支架100c上时,可以理解为手机100a处于支架态。应理解,当手机100a位于支架100c上时,手机100a的y轴的角度α1满足上述公式一。
应理解,电子设备还可以通过IMU获取x轴,z轴的角度。
电子设备的普通态可以理解为,电子设备的y轴的角度α1不满足公式一,且预设时间t内,该角度α1的变化范围大于第二预设值。
示例性地,该第二预设值可以是5,6等。
例如,该电子设备为手机,当用户手持手机使用时,电子设备的y轴的角度大概率不满足上述公式一,且手机的角度变化范围较大,此时,可以理解为电子设备处于普通态。
在一些情况下,当电子设备被放置在支架上时,也就是说,电子设备处于支架态时,用户可能会不小心触碰到电子设备,或者,由于桌子的抖动等,使得电子设备的y轴的角度发生微小的变化。此时,电子设备可能会检测到y轴的角度发生变化,从而错误的判断电子设备从支架态变为普通态,进而暂停投屏。在这种情况下,用户并不希望电子设备暂停投屏,从而会影响用户的体验。为了使得电子设备在支架态和普通态之间平缓过渡,避免电子设备的误判,本申请中引入了电子设备的中间态。
中间态可以理解为,在预设时间t内,该电子设备的y轴的角度α1的变化范围大于或等于第一预设值且小于或等于第二预设值。
示例性地,该预设时间t为1s,该第一预设值为0.03,该第二预设值为5。也就是说,在1s内,电子设备的y轴的角度的变化量在0.03至5之间时,电子设备处于中间态。
本申请实施例中,当电子设备从前一个状态变为中间态时,电子设备保持现态不变。
在一个示例中,电子设备处于支架态,当电子设备通过IMU检测到1s内,y轴的角度的变化量处于0.03至5之间,则可以确定电子设备变为中间态,则电子设备仍保持支架态下的状态。例如,参见图4中的(b),手机300a处于支架态,当手机300a检测到手机变为中间态时,手机可保持当前现状。
在另一个示例中,电子设备处于普通态,当电子设备通过IMU检测到1s内,y轴的角度的变化量处于0.03至5之间时,可以确定电子设备变为中间态,则电子设备仍保持普通态下的状态。例如,参见图4中的(a),手机300a处于普通态,当手机300a检测到手机变为中间态时,手机可保持当前现状。
在另一些示例中,当电子设备处于横屏状态下,在确定电子设备的状态是否发生变化时,可以使用z轴的角度代替y轴的角度,即通过获取z轴的角度β1,来确定电子设备的状态。
本申请实施例中,通过设置中间态,使得电子设备可以在支架态和普通态之间平滑切换,避免由于一些误触或抖动使得电子设备切换投屏状态,从而可以为用户使用带来一定的容错性,进而提升了 用户的体验。
图11至图12以第一电子设备向第二电子设备投屏为例进行说明。示例性地,该第一电子设备可以是前文中的手机,该第二电子设备可以是前文中的平板。
图11是本申请实施例提供的一种切换窗口的方法的示意性流程图。如图11所示,该方法1100可以应用于第一电子设备,第一电子设备处于向第二电子设备投屏的场景下,第二电子设备显示的第一显示界面为第一电子设备向第二电子设备投屏的界面,该方法1100可以包括步骤1110至步骤1120。
应理解,该第一显示界面可以是第一电子设备向第二电子设备投屏的投屏窗口对应的显示界面。
1110,第一电子设备确定第一电子设备或第二电子设备从第一状态切换至第二状态,其中,未切换状态的电子设备处于第二状态。
应理解,在步骤1110之前,第一电子设备可以和第二电子设备建立投屏连接,例如,第一电子设备可以和第二电子设备通过无线、有线等方式建立连接关系,本申请实施例对于该具体建立连接关系的方式不予限定。
该第一状态可以是前文中的普通态,该第二状态可以是前文中的支架态。
该步骤1110可以理解,第一电子设备和第二电子设备中的一个处于支架态,另一个从普通态切换至支架态。
1120,第一电子设备暂停向第二电子设备投屏并且第一电子设备显示第一显示界面,或者,第一电子设备根据从第二电子设备接收的第一数据显示第一显示界面。
示例性地,参见图4,该第一电子设备可以是手机,该第二电子设备可以是平板,当手机确定平板和手机中一个处于支架态,另一个从普通态切换至支架态时,手机可以显示向平板投屏的显示界面310并暂停向平板投屏,或者,手机根据从平板接收的数据显示第一显示界面。
此时,平板中的鼠标或光标可以移动至手机中,用户可以通过鼠标操控手机。也就是说,手机此时可以作为平板的拓展屏。
应理解,该第一数据可以是第一电子设备向第二电子设备投屏的数据,例如,可以是显示界面、视频流等等。这种情况下,在电子设备的状态发生变化时,第二电子设备将第一电子设备的显示屏作为扩展屏,第二电子设备将第一数据形成的显示界面显示在第一电子设备,从而可以便捷地将投屏窗口切换至第一电子设备中显示,从而在投屏窗口重新切换回第二电子设备中时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
示例性地,当平板检测到用户点击拓屏图标的按钮时,平板可以重新将投屏窗口切换回平板中显示,此时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
本申请实施例中,第一电子设备向第二电子设备投屏后,当第一电子设备确定第一电子设备或第二电子设备从第一状态切换至第二状态时(例如从普通态切换至支架态),此时未切换状态的电子设备也处于第二状态,那么第一电子设备可以自动暂停向第二电子设备投屏并显示向所述第二电子设备投屏的第一显示界面。也就是说,视觉上第一电子设备的显示屏可以作为第二电子设备的拓展屏。该技术方案可以在电子设备的状态发生变化时自动暂停投屏,避免用户手动操作,且第一电子设备的显示屏可以作为第二电子设备的拓展屏,给用户带来更广阔的视觉效果,提升了用户的体验。进一步地,第一电子设备暂停投屏,从而可以节省功耗和带宽。
在一些实施例中,在第一电子设备显示第一显示界面并暂停向第二电子设备投屏之前,该方法1100还可以包括:
确定第一电子设备的显示屏是否点亮;
若确定显示屏未点亮,则点亮显示屏。
示例性地,参见图5,当手机确定平板和手机中一个处于支架态,另一个从普通态切换至支架态时,手机可以先确定手机的显示屏是否点亮,若未点亮,即手机处于熄屏状态,则可以将显示屏点亮,以显示显示界面420。
该技术方案可以在需要时点亮显示屏,从而可以节省电子设备的功耗。
在一些实施例中,若第一电子设备确定第一电子设备从第一状态切换至第二状态,该方法1100还可以包括:
向第二电子设备发送第一指示信息,第一指示信息用于指示第一电子设备从第一状态切换至第二状态。
示例性地,手机可以通过自身的IMU、传感器等来确定是否从普通态切换至支架态。
本申请实施例中,当第一电子设备确定自身的状态发生变化时,将该状态变化的指示信息发给第二电子设备,从而有利于第二电子设备执行切换策略。
在一些实施例中,第一电子设备确定第二电子设备从第一状态切换至第二状态,包括:
接收第二电子设备发送的第二指示信息;
当第二指示信息指示第二电子设备从第一状态切换至第二状态时,确定第二电子设备从第一状态切换至第二状态。
本申请实施例中,当平板从第一状态切换第二状态时,平板可以将该状态变化的第二指示信息发送给手机,手机接收到该第二指示信息后,可以确定平板的状态发生变化,进而执行相应的操作。
在一些实施例中,第一状态和/或第二状态为电子设备的物理形态。
示例性地,该第一状态、第二状态为电子设备的物理形态可以理解第一状态、第二状态为电子设备的姿态,例如,电子设备被放置在桌面上,或者以一定角度被放置在某个物体上,或者被用户拿在手上使用等等。
在一些实施例中,第二状态为支架态,支架态用于指示电子设备处于相对稳定的状态,或者,支架态为电子设备处于被放置在支架上的状态;
第一状态为普通态,普通态用于指示电子设备处于相对不稳定的状态,或者,普通态为电子设备处于不被放置在支架上的状态。
可以理解的是,支架态可以用于指示电子设备处于相对稳定的状态,例如,电子设备以一个固定姿势被放置,,或者以某个角度被放置在另一个物体上,或者,电子设备处于被放置在支架上的状态。普通态可以用于指示电子设备处于相对不稳定的状态,例如,电子设备被用户拿在手上使用,其不具有一个固定姿势,此时,电子设备的姿态处于不稳定的状态,或者,电子设备处于不被放置在支架上的状态。
在一些实施例中,第二状态为第一电子设备的第一方向的角度大于第一预设角度且小于或等于第二预设角度,且在预设时间内,角度的变化范围小于第一预设值;第一状态为角度小于或等于第一预设角度或大于第二预设角度,且在预设时间内,角度的变化范围大于第二预设值。
应理解,该第二状态可以为支架态,该第一状态可以是普通态,关于该支架态和普通态可以参见前文中的相关描述,为了简洁,不再赘述。
在一些实施例中,该方法1100还可以包括:
在预设时间内,第一电子设备确定角度的变化范围大于或等于第一预设值且小于或等于第二预设值;
第一电子设备确定第一电子设备处于第三状态,在第三状态下,第一电子设备继续显示第一显示界面。
示例性地,参见图8,该第一状态可以是普通态,该第二状态可以是支架态,该第三状态可以是中间态。
本申请实施例中,通过引入中间态,使得电子设备可以在支架态和普通态之间平滑切换,避免由于一些误触或抖动使得电子设备切换投屏状态,从而可以为用户使用带来一定的容错性,进而提升了用户的体验。
在一些实施例中,第二电子设备的光标可移动至第一电子设备的显示屏中。
本申请实施例中,在第一电子设备暂停向第二电子设备投屏后,第一电子设备可以作为第二电子设备的拓展屏,此时用户可以用户鼠标控制第一电子设备。
在一些实施例中,该方法1100还可以包括:
第一电子设备确定第二电子设备从第二状态切换至第一状态;
第一电子设备熄灭显示屏并继续向第二电子设备投屏。
在一个示例中,参见图4,当手机确定平板从支架态切换回普通态时,手机可以将显示屏熄灭,并恢复向平板的投屏,平板中显示投屏窗口320。
在另一个示例中,参见图5,当手机确定平板从支架态切换回普通态时,手机可以将显示屏熄灭,并恢复向平板的投屏,平板中显示投屏图标430,此时,投屏窗口最小化显示在平板中。
本申请实施例中,当确定第二电子设备从第二状态切换回第一状态时,第一电子设备可以自动恢 复向第二电子设备的投屏,无需用户手动操作,从而可以将投屏窗口显示在第二电子设备中。此外,第一电子设备熄屏可以进一步节省功耗。
在一些实施例中,该方法1100还可以包括:
第一电子设备确定第一电子设备从第二状态切换至第一状态;
第一电子设备继续显示第一显示界面并继续向第二电子设备投屏。
本申请实施例中,当确定第一电子设备的从第二状态切换回第一状态时,可以自动恢复向第二电子设备投屏,从而可以将投屏窗口重新显示在第二电子设备中。此外,第一电子设备继续显示第一显示界面,可以不影响用户对于第一电子设备的使用。
在一些实施例中,在第一电子设备熄灭所述显示屏之前,该方法1100还可以包括:
第一电子设备确定打开摄像头未获取到用户的图像。
本申请实施例中,当第一电子设备打开摄像头未获取到用户的图像时,可以熄屏,以节省功耗。
在一些实施例中,第一电子设备暂停向第二电子设备投屏并显示第一显示界面,或者,第一电子设备根据从第二电子设备接收的第一投屏数据显示第一显示界面,包括:
当确定第一电子设备与第二电子设备之间的距离小于或等于预设距离时,第一电子设备暂停向第二电子设备投屏并显示第一显示界面,或者,第一电子设备根据从第二电子设备接收的第一投屏数据显示第一显示界面。
本申请实施例中,第一电子设备和第二电子设备之间的距离应在预设距离范围内,从而可以避免用户在持有第一电子设备距离第二电子设备较远的情况下,依然切换投屏状态对用户造成困扰。
图12是本申请实施例提供的另一种切换窗口的方法的示意性流程图。如图12所示,该方法1200可以应用于第二电子设备,第二电子设备处于被第一电子设备投屏的场景中,该方法1200可以包括步骤1210至步骤1220。
1210,第二电子设备确定第二电子设备或第一电子设备从第一状态切换至第二状态,其中,未切换状态的电子设备处于第二状态;
该步骤1210中,第一电子设备可以向第二电子设备投屏,第二电子设备处于被投屏的状态下。
该第一状态可以是前文中的普通态,该第二状态可以是前文中的支架态。
该步骤1210可以理解,第一电子设备和第二电子设备中的一个处于支架态,另一个从普通态切换至支架态。
1220,第二电子设备显示第一图标,第一图标用于指示第一电子设备的显示屏作为第二电子设备的拓展屏。
示例性地,该第一图标可以是拓屏图标。该拓屏图标还可以称为拓展图标、扩展图标等等。
在一个示例中,参见图4,当平板确定平板或手机的状态从普通态切换至支架态时,平板可以显示拓屏图标330。应理解,该拓屏图标还可以是其他形式的图标,本申请不予限定。
在一些可能的实现方式中,当手机位于平板的左侧时,该第一图标可以位于显示界面的左侧;当手机位于平板的左侧时,该第一图标可以位于显示界面的左侧。
本申请实施例中,第一电子设备向第二电子设备投屏后,当第二电子设备确定第一电子设备或第二电子设备从第一状态切换至第二状态时(例如从普通态切换至支架态),此时未切换状态的电子设备也处于第二状态。那么,第二电子设备可以显示用于指示第一电子设备的显示屏作为第二电子设备的拓展屏的第一图标。此时,第一电子设备暂停投屏,第二电子设备中的投屏窗口关闭,第二电子设备中只需显示第一图标即可,且第一电子设备可以作为第二电子设备的拓展屏,给用户带来更广阔的视觉效果,提升了用户的体验。
在一些实施例中,第二电子设备显示第一图标,包括:
若第一电子设备的第一显示界面以投屏窗口的方式显示在第二电子设备的显示界面中,则第二电子设备关闭所述第一显示界面,并显示第一图标;
若第一电子设备的第一显示界面以投屏图标的方式显示在第二电子设备的显示界面中,第二电子设备将投屏图标变为第一图标。
在一些示例中,参见图4,手机的显示界面以投屏窗口320的方式显示在平板的显示界面340中,当平板确定平板或手机的状态发生变化时,关闭该投屏窗口320,并显示拓屏图标330。
在另一个示例中,参见图5,手机的显示界面以投屏图标430的方式显示在平板的显示界面450 中,也就是手机的投屏窗口最小化显示在平板中,当平板确定平板或手机的状态发生变化时,将该投屏图标430变为拓屏图标440。
本申请实施例中,在第二电子设备显示第一图标时,若第一电子设备的显示界面以投屏窗口的方式显示在第二电子设备中,则第二电子设备可以关闭该投屏窗口,并显示第一图标;若第一电子设备的显示界面已经在第二电子设备中最小化显示,则第二电子设备可以将最小化显示的投屏图标变为第一图标。该技术方案可以使得第二电子设备最终显示第一图标,以提醒用户当前属于拓屏模式。
在另一些实施例中,当第二电子设备检测到用户点击或鼠标点击该第一图标的操作后,可以将第一显示界面以投屏窗口的方式重现显示在第二电子设备中。
在一些实施例中,第二电子设备确定第一电子设备从第一状态切换至第二状态,包括:
接收第一电子设备发送的第一指示信息;
当第一指示信息,指示第一电子设备从第一状态切换至第二状态时,确定第一电子设备从第一状态切换至第二状态。
本申请实施例中,当第一电子设备检测到自身的状态从第一状态切换至第二状态时,可以将该状态变化的指示信息发送给第二电子设备。
本申请实施例中,第二电子设备还可以通过接收第一电子设备发送的用于指示第一电子设备的状态发生变化的指示信息,以确定第一电子设备的状态发生变化,从而第二电子设备可以执行切换窗口的策略。
在一些实施例中,若第二电子设备确定第二电子设备从第一状态切换至第二状态,该方法1200还可以包括:
向第一电子设备发送第二指示信息,第二指示信息用于指示第二电子设备从第一状态切换至第二状态。
本申请实施例中,当第二电子设备确定自身的状态发生变化时,将该状态变化的指示信息发给第一电子设备,从而有利于第一电子设备执行切换策略。
在一些实施例中,该方法1200还可以包括:
第二电子设备向第一电子设备发送第一投屏数据,第一数据用于控制第一电子设备显示第一显示界面,其中,第一数据为第一电子设备向第二电子设备投屏的数据。
本申请实施例中,可以便捷地将投屏窗口切换至第一电子设备中显示,从而在投屏窗口重新切换回第二电子设备中时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
示例性地,当平板检测到用户点击拓屏图标的按钮时,平板可以重新将投屏窗口切换回平板中显示,此时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
在一些实施例中,该方法1200还可以包括:
若第二电子设备确定第一显示界面以全屏形式显示在第二电子设备的显示界面中,在第二电子设备确定第二电子设备或第一电子设备从第一状态切换至第二状态时,第二电子设备继续显示第一显示界面。
示例性地,参见图6,当手机的显示界面以全屏形式显示在平板中时,在平板或手机的状态发生变化时,平板中可以继续显示手机的显示界面。
本申请实施例中,当确定第一电子设备或第二电子设备中的一个从普通态变为支架态时,第二电子设备中可以继续显示最大化或全屏的投屏窗口,从而可以避免影响用户的沉浸式体验。
在一些实施例中,第一状态和/或第二状态为电子设备的物理形态。
在一些实施例中,第二状态为支架态,支架态用于指示电子设备处于相对稳定的状态,或者,支架态为电子设备处于被放置在支架上的状态;
第一状态为普通态,普通态用于指示电子设备处于相对不稳定的状态,或者,普通态为电子设备处于不被放置在支架上的状态。
在一些实施例中,第二状态为第二电子设备的第一方向的角度大于第一预设角度且小于或等于第二预设角度,且在预设时间内,角度的变化范围小于第一预设值;
第一状态为角度小于或等于第一预设角度或大于第二预设角度,且在预设时间内,所述角度的变化范围大于第二预设值。
应理解,该第二状态可以为支架态,该第一状态可以为普通态,关于该支架态和普通态可以参见 前文中的相关描述。
在一些实施例中,该方法1200还可以包括:
在预设时间内,第二电子设备确定角度的变化范围大于或等于第一预设值且小于或等于第二预设值;
第二电子设备确定第二电子设备处于第三状态,在第三状态下,第二电子设备继续显示第一图标。
示例性地,参见图8,该第一状态可以是普通态,该第二状态可以是支架态,该第三状态可以是中间态。
本申请实施例中,通过引入中间态,使得电子设备可以在支架态和普通态之间平滑切换,避免由于一些误触或抖动使得电子设备切换投屏状态,从而可以为用户使用带来一定的容错性,进而提升了用户的体验。
在一些实施例中,第二电子设备的光标可移动至第一电子设备的显示屏中。
本申请实施例中,在第一电子设备暂停投屏后,第一电子设备可以作为第二电子设备的拓展屏,此时用户可以用户鼠标控制第一电子设备。
在一些实施例中,该方法1200还包括:
第二电子设备确定第二电子设备或第一电子设备从第二状态切换至第一状态;
第二电子设备关闭第一图标并以投屏窗口的方式显示第一显示界面;或第二电子设备将第一图标变为投屏图标。
在一个示例中,参见图4,当平板确定平板或手机从支架态切换回普通态时,平板可以不显示拓屏图标,将投屏窗口320重新显示在显示界面中。
在另一个示例中,参见图5,当平板确定平板或手机从支架态切换回普通态时,平板可以将拓屏图标重新变为投屏图标。
本申请实施例中,当确定第一电子设备或第二电子设备从支架态切换回普通态时,第一电子设备可以自动恢复向第二电子设备投屏,即投屏窗口重新显示在第二电子设备中,则第二电子设备可以将投屏窗口恢复至原状,从而有利于提升用户体验。
在一些实施例中,该方法1200还可以包括:
第二电子设备打开摄像头确定是否获取到用户的图像;
若未获取到所述图像,则第二电子设备熄屏。
本申请实施例中,当第一电子设备和第二电子设备中一个从支架态切换回普通态时,第二电子设备可以打开摄像头确定是否获取到用户的图像,当未获取到用户的图像时,可以熄屏,以节省功耗。
在一些实施例中,第二电子设备显示第一图标,包括:
在确定第二电子设备与第一电子设备之间的距离小于或等于预设距离时,第二电子设备显示第一图标。
本申请实施例中,第一电子设备和第二电子设备之间的距离应在预设距离范围内,从而可以避免用户在持有第一电子设备距离第二电子设备较远的情况下,依然切换投屏状态对用户造成困扰。
本申请实施例还提供一种系统,系统包括第一电子设备和第二电子设备,第一电子设备与第二电子设备具有投屏关系,其中,
第一电子设备,用于在确定第一电子设备或第二电子设备从第一状态切换至第二状态时暂停向第二电子设备投屏并显示第一显示界面,或者,第一电子设备根据从第二电子设备接收的第一数据显示第一显示界面,其中,第一显示界面为第一电子设备向第二电子设备投屏的显示界面,未切换状态的电子设备处于第二状态;
第二电子设备,用于在确定第一电子设备或第二电子设备从第一状态切换至第二状态时显示第一图标,第一图标用于指示第一电子设备的显示屏作为第二电子设备的拓展屏。
本申请实施例中,第一电子设备向第二电子设备投屏后,当确定第一电子设备或第二电子设备从第一状态切换至第二状态时,第一电子设备可以显示第一显示界面并暂停向第二电子设备投屏;第二电子设备显示第一图标,第一图标用于指示第一电子设备的显示屏作为第二电子设备的拓展屏。该技术方案可以在检测到电子设备的状态发生变化时,自动暂停投屏,并将投屏的电子设备的显示屏作为被投屏的另一电子设备的拓展屏,,无需用户手动操作,从而可以提升用户体验。
本申请实施例中,当电子设备的状态发生变化时,第一电子设备可以继续向第二电子设备投屏, 且接收第二电子设备发送的第一数据,并根据第一数据显示第一显示界面,从而可以便捷地将投屏窗口切换至第一电子设备中显示,从而在投屏窗口重新切换回第二电子设备中时,由于投屏未中断所以无需重新加载投屏数据,进而可以降低延迟。
本申请实施例还提供一种电子设备,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如前文中任一种可能的实现方式中所述的切换窗口的方法被执行。
本申请实施例还提供一种芯片,所述芯片包括处理器和通信接口,所述通信接口用于接收信号,并将所述信号传输至所述处理器,所述处理器处理所述信号,使得如前文中任一种可能的实现方式中所述的切换窗口的方法被执行。
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中的切换窗口的方法。
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述相关步骤,以实现上述实施例中的切换窗口的方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中的切换窗口的方法。
其中,本实施例提供的电子设备、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (30)

  1. 一种切换窗口的方法,其特征在于,所述方法应用于第一电子设备,所述第一电子设备处于向第二电子设备投屏的场景中,所述第二电子设备显示的第一显示界面为所述第一电子设备向所述第二电子设备投屏的界面,所述方法包括:
    所述第一电子设备确定所述第一电子设备或所述第二电子设备从第一状态切换至第二状态,其中,未切换状态的电子设备处于所述第二状态;
    所述第一电子设备暂停向所述第二电子设备投屏并且所述第一电子设备显示所述第一显示界面,或者,所述第一电子设备根据从第二电子设备接收的第一数据显示所述第一显示界面。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一电子设备显示第一显示界面并暂停向所述第二电子设备投屏之前,所述方法还包括:
    确定所述第一电子设备的显示屏是否点亮;
    若确定所述显示屏未点亮,则点亮所述显示屏。
  3. 根据权利要求1或2所述的方法,其特征在于,若所述第一电子设备确定所述第一电子设备从第一状态切换至第二状态,所述方法还包括:
    向所述第二电子设备发送第一指示信息,所述第一指示信息用于指示所述第一电子设备从所述第一状态切换至所述第二状态。
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一电子设备确定所述第二电子设备从第一状态切换至第二状态,包括:
    接收所述第二电子设备发送的第二指示信息;
    当所述第二指示信息指示所述第二电子设备从第一状态切换至第二状态时,确定所述第二电子设备从所述第一状态切换至所述第二状态。
  5. 根据权利要求1-4中任一项所述的方法,其特征在于,所述第一状态和/或所述第二状态为电子设备的物理形态。
  6. 根据权利要求5所述的方法,其特征在于,所述第二状态为支架态,所述支架态用于指示电子设备处于相对稳定的状态,或者,所述支架态为电子设备处于被放置在支架上的状态;
    所述第一状态为普通态,所述普通态用于指示电子设备处于相对不稳定的状态,或者,所述普通态为电子设备处于不被放置在支架上的状态。
  7. 根据权利要求6所述的方法,其特征在于,所述第二状态为所述第一电子设备的第一方向的角度大于第一预设角度且小于或等于第二预设角度,且在预设时间内,所述角度的变化范围小于第一预设值;
    所述第一状态为所述角度小于或等于所述第一预设角度或大于所述第二预设角度,且在所述预设时间内,所述角度的变化范围大于第二预设值。
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:
    在所述预设时间内,所述第一电子设备确定所述角度的变化范围大于或等于所述第一预设值且小于或等于所述第二预设值;
    所述第一电子设备确定所述第一电子设备处于第三状态,在所述第三状态下,所述第一电子设备继续显示所述第一显示界面。
  9. 根据权利要求1-7中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一电子设备确定所述第二电子设备从所述第二状态切换至所述第一状态;
    所述第一电子设备熄灭所述显示屏并继续向所述第二电子设备投屏。
  10. 根据权利要求1-7中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一电子设备确定所述第一电子设备从所述第二状态切换至所述第一状态;
    所述第一电子设备继续显示所述第一显示界面并继续向所述第二电子设备投屏。
  11. 根据权利要求9所述的方法,其特征在于,在所述第一电子设备熄灭所述显示屏之前,所述方法还包括:
    所述第一电子设备确定打开摄像头未获取到用户的图像。
  12. 根据权利要求1-11中任一项所述的方法,其特征在于,所述第一电子设备暂停向所述第二电子设备投屏并显示第一显示界面,或者,所述第一电子设备根据从第二电子设备接收的第一数据显示第一显示界面包括:
    在确定所述第一电子设备与所述第二电子设备之间的距离小于或等于预设距离时,所所述第一电子设备暂停向所述第二电子设备投屏并显示第一显示界面,或者,所述第一电子设备根据从第二电子设备接收的第一数据显示第一显示界面。
  13. 一种切换窗口的方法,其特征在于,所述方法应用于第二电子设备,所述第二电子设备处于被第一电子设备投屏的场景中,所述方法包括:
    所述第二电子设备确定所述第二电子设备或第一电子设备从第一状态切换至第二状态,其中,未切换状态的电子设备处于所述第二状态;
    所述第二电子设备显示第一图标,所述第一图标用于指示所述第一电子设备的显示屏作为所述第二电子设备的拓展屏。
  14. 根据权利要求13所述的方法,其特征在于,所述第二电子设备显示第一图标,包括:
    若所述第一电子设备的第一显示界面以投屏窗口的方式显示在所述第二电子设备的显示界面中,则所述第二电子设备关闭所述第一显示界面,并显示所述第一图标;
    若所述第一电子设备的第一显示界面以投屏图标的方式显示在所述第二电子设备的显示界面中,所述第二电子设备将所述投屏图标变为所述第一图标。
  15. 根据权利要求13或14所述的方法,其特征在于,所述第二电子设备确定所述第一电子设备从第一状态切换至第二状态,包括:
    接收所述第一电子设备发送的第一指示信息;
    当所述第一指示信息指示所述第一电子设备从第一状态切换至第二状态时,确定所述第一电子设备从所述第一状态切换至所述第二状态。
  16. 根据权利要求13或14所述的方法,其特征在于,若所述第二电子设备确定所述第二电子设备从第一状态切换至第二状态,所述方法还包括:
    向所述第一电子设备发送第二指示信息,所述第二指示信息用于指示所述第二电子设备从所述第一状态切换至所述第二状态。
  17. 根据权利要求13-16中任一项所述的方法,其特征在于,所述方法还包括:
    所述第二电子设备向所述第一电子设备发送第一数据,所述第一数据用于控制所述第一电子设备显示第一显示界面,其中,所述第一数据为所述第一电子设备向所述第二电子设备投屏的数据。
  18. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    若所述第二电子设备确定所述第一显示界面以全屏形式显示在所述第二电子设备的显示界面中,在所述第二电子设备确定所述第二电子设备或第一电子设备从第一状态切换至第二状态时,所述第二电子设备继续显示所述第一显示界面。
  19. 根据权利要求13-18中任一项所述的方法,其特征在于,所述第一状态和/或所述第二状态为电子设备的物理形态。
  20. 根据权利要求19所述的方法,其特征在于,所述第二状态为支架态,所述支架态用于指示电子设备处于相对稳定的状态,或者,所述支架态为电子设备处于被放置在支架上的状态;
    所述第一状态为普通态,所述普通态用于指示电子设备处于相对不稳定的状态,或者,所述普通态为电子设备处于不被放置在支架上的状态。
  21. 根据权利要求20所述的方法,其特征在于,所述第二状态为所述第二电子设备的第一方向的角度大于第一预设角度且小于等于第二预设角度,且在预设时间内,所述角度的变化范围小于第一预设值;
    所述第一状态为所述角度小于等于所述第一预设角度或大于所述第二预设角度,且在所述预设时间内,所述角度的变化范围大于第二预设值。
  22. 根据权利要求21所述的方法,其特征在于,所述方法还包括:
    在所述预设时间内,所述第二电子设备确定所述角度的变化范围大于或等于所述第一预设值且小于或等于所述第二预设值;
    所述第二电子设备确定所述第二电子设备处于第三状态,在所述第三状态下,所述第二电子设备 继续显示所述第一图标。
  23. 根据权利要求13-22中任一项所述的方法,其特征在于,所述第二电子设备的光标可移动至所述第一电子设备的显示屏中。
  24. 根据权利要求13-22中任一项所述的方法,其特征在于,所述方法还包括:
    所述第二电子设备确定所述第二电子设备或所述第一电子设备从所述第二状态切换至所述第一状态;
    所述第二电子设备关闭所述第一图标并以投屏窗口的方式显示所述第一显示界面;或所述第二电子设备将所述第一图标变为所述投屏图标。
  25. 根据权利要求24所述的方法,其特征在于,所述方法还包括:
    所述第二电子设备打开摄像头确定是否获取到用户的图像;
    若未获取到所述图像,则所述第二电子设备熄屏。
  26. 根据权利要求13-25中任一项所述的方法,其特征在于,所述第二电子设备显示第一图标,包括:
    在确定所述第二电子设备与所述第一电子设备之间的距离小于或等于预设距离时,所述第二电子设备显示所述第一图标。
  27. 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如权利要求1-12中任一项所述的切换窗口的方法被执行。
  28. 一种电子设备,其特征在于,包括:一个或多个处理器;一个或多个存储器;该一个或多个存储器存储有一个或多个计算机程序,该一个或多个计算机程序包括指令,当该指令被一个或多个处理器执行时,使得如权利要求13-26中任一项所述的切换窗口的方法被执行。
  29. 一种系统,其特征在于,包括如权利要求27所述的电子设备和权利要求28所述的电子设备。
  30. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得如权利要求1-26中任一项所述的切换窗口的方法被执行。
PCT/CN2023/121614 2022-09-30 2023-09-26 切换窗口的方法和电子设备 WO2024067601A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211217538.9 2022-09-30
CN202211217538.9A CN117850644A (zh) 2022-09-30 2022-09-30 切换窗口的方法和电子设备

Publications (1)

Publication Number Publication Date
WO2024067601A1 true WO2024067601A1 (zh) 2024-04-04

Family

ID=90476369

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/121614 WO2024067601A1 (zh) 2022-09-30 2023-09-26 切换窗口的方法和电子设备

Country Status (2)

Country Link
CN (1) CN117850644A (zh)
WO (1) WO2024067601A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346685A (zh) * 2020-10-26 2021-02-09 努比亚技术有限公司 一种熄屏投屏控制方法、设备及计算机可读存储介质
CN112394891A (zh) * 2019-07-31 2021-02-23 华为技术有限公司 一种投屏方法及电子设备
CN113553014A (zh) * 2020-09-10 2021-10-26 华为技术有限公司 多窗口投屏场景下的应用界面显示方法及电子设备
CN114466239A (zh) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 投屏控制方法、装置、投屏器及计算机可读存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112394891A (zh) * 2019-07-31 2021-02-23 华为技术有限公司 一种投屏方法及电子设备
CN113553014A (zh) * 2020-09-10 2021-10-26 华为技术有限公司 多窗口投屏场景下的应用界面显示方法及电子设备
CN112346685A (zh) * 2020-10-26 2021-02-09 努比亚技术有限公司 一种熄屏投屏控制方法、设备及计算机可读存储介质
CN114466239A (zh) * 2022-01-30 2022-05-10 深圳创维-Rgb电子有限公司 投屏控制方法、装置、投屏器及计算机可读存储介质

Also Published As

Publication number Publication date
CN117850644A (zh) 2024-04-09

Similar Documents

Publication Publication Date Title
WO2021227770A1 (zh) 应用窗口显示方法和电子设备
WO2021027747A1 (zh) 一种界面显示方法及设备
WO2022022495A1 (zh) 一种跨设备的对象拖拽方法及设备
US20220342850A1 (en) Data transmission method and related device
WO2021057830A1 (zh) 一种信息处理方法及电子设备
WO2020155876A1 (zh) 控制屏幕显示的方法及电子设备
WO2021057868A1 (zh) 一种界面切换方法及电子设备
WO2022100315A1 (zh) 应用界面的生成方法及相关装置
WO2021120914A1 (zh) 一种界面元素的显示方法及电子设备
JP7081048B2 (ja) システムナビゲーションバー表示方法、システムナビゲーションバー制御方法、グラフィカルユーザインターフェース、および電子機器
WO2021129253A1 (zh) 显示多窗口的方法、电子设备和系统
WO2021063237A1 (zh) 电子设备的控制方法及电子设备
WO2022052671A1 (zh) 一种显示窗口的方法、切换窗口的方法、电子设备和系统
US11861382B2 (en) Application starting method and apparatus, and electronic device
WO2021078032A1 (zh) 用户界面的显示方法及电子设备
US20220357818A1 (en) Operation method and electronic device
US20220374123A1 (en) Display element display method and electronic device
EP4220390A1 (en) Display method and electronic device
WO2022143180A1 (zh) 协同显示方法、终端设备及计算机可读存储介质
WO2021190524A1 (zh) 截屏处理的方法、图形用户接口及终端
WO2021052488A1 (zh) 一种信息处理方法及电子设备
WO2024067601A1 (zh) 切换窗口的方法和电子设备
WO2024067599A1 (zh) 应用显示的方法和电子设备
WO2024001871A1 (zh) 一种操控方法和电子设备
WO2023202444A1 (zh) 一种输入方法及装置

Legal Events

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

Ref document number: 23870829

Country of ref document: EP

Kind code of ref document: A1