WO2024114212A1 - 跨设备切换焦点的方法、电子设备及系统 - Google Patents

跨设备切换焦点的方法、电子设备及系统 Download PDF

Info

Publication number
WO2024114212A1
WO2024114212A1 PCT/CN2023/127572 CN2023127572W WO2024114212A1 WO 2024114212 A1 WO2024114212 A1 WO 2024114212A1 CN 2023127572 W CN2023127572 W CN 2023127572W WO 2024114212 A1 WO2024114212 A1 WO 2024114212A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
input
information
user
input box
Prior art date
Application number
PCT/CN2023/127572
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 WO2024114212A1 publication Critical patent/WO2024114212A1/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
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units

Definitions

  • Embodiments of the present application relate to the field of terminals, and more specifically, to a method, electronic device, and system for switching focus across devices.
  • users use a variety of electronic devices. When users use electronic devices, they can use input devices to input information on the electronic devices.
  • Embodiments of the present application provide a method, electronic device, and system for switching focus across devices, which help improve the user experience when the user switches the focus of an input device.
  • a system comprising an input device, a first electronic device and a second electronic device, wherein the input device is connected to the first electronic device, the focus of the input device is on the first electronic device, the first electronic device is connected to the second electronic device, and/or the same account is logged into the first electronic device and the second electronic device, wherein the first electronic device is used to send a first indication message to the second electronic device when an area gazed by a user belongs to an area where the second electronic device is located and a first input box is displayed on the second electronic device; and the second electronic device is used to display the focus of the input device in the first input box after receiving the first indication message, or to output a first prompt message, wherein the first prompt message is used to indicate that the user can switch the focus of the input device to the first input box.
  • the user previously input information on the first electronic device through the input device, that is, the focus of the input device is on the first electronic device. If the user wants to input information in the input box of the second electronic device through the input device, at this time, the user can move the line of sight to the second electronic device, so that when the user's line of sight is on the second electronic device, and the input box is displayed on the second electronic device, the first indication information can be sent to the second electronic device. Then, after receiving the first indication information, the second electronic device displays the focus of the input device in the first input box, that is, at this time, the focus of the input device is switched from the first electronic device to the first input box of the second electronic device.
  • the second electronic device after receiving the first confirmation information, the second electronic device outputs the first prompt information to prompt the user to switch the focus of the input device. Then, according to the first prompt information, the user can switch the focus of the input device to the input box of the second electronic device where the user's line of sight is located. In this way, the user can switch the focus of the input device from the first electronic device across devices to the second electronic device through simple operations, which helps to improve the user experience when the user switches the focus of the input device.
  • the first electronic device is further used to determine that the area the user is gazing at belongs to the area where the second electronic device is located in the following manner: acquiring an image of the user; determining the user's line of sight based on the user's image; when the user's line of sight intersects with an extension surface of the first electronic device along a first direction, and the second electronic device is located in the first direction of the first electronic device, determining that the area the user is gazing at belongs to the area where the second electronic device is located.
  • the first electronic device is further used to determine, before acquiring the image of the user, whether the second electronic device satisfies a second condition, and the second condition includes at least one of the following: the first input box is displayed on the second electronic device, the display interface of the target application is displayed on the second electronic device, the first input box is displayed on the second electronic device, and the first input box is located at the bottom of the display interface of the second electronic device.
  • the first electronic device will acquire the user's image only when the second electronic device meets the second condition, which can reduce the The power consumption of the sub-device.
  • the target application includes a chat application or a search application.
  • the first electronic device is further used to determine that the first input box is displayed on the second electronic device in the following manner: receiving first confirmation information from the second electronic device, the first confirmation information being used to indicate that the first input box is displayed on the second electronic device; and determining that the first input box is displayed on the second electronic device based on the first confirmation information.
  • the system switches the focus of the input device to the first input box in the following manner: the input device is further used to send third switching information to the first electronic device in response to detecting the first operation, and the third switching information is used to indicate that the focus of the input device is switched to the first input box; the first electronic device is further used to control the first electronic device to be in a state of losing the focus of the input device in response to the third switching information, and send third indication information (second indication information) to the second electronic device; the second electronic device is further used to control the first input box of the second electronic device to be in a state of acquiring the focus of the input device in response to the third indication information.
  • the first electronic device is further used to: before controlling the first electronic device to be in a state of losing the focus of the input device, display a fourth prompt information, wherein the fourth prompt information is used to indicate that the focus of the input device is on the first electronic device; and after controlling the first electronic device to be in a state of losing the focus of the input device, no longer display the fourth prompt information.
  • the first prompt information is further used to prompt the user to input a first operation on the input device, and the focus of the input device can be switched to the first input box.
  • the first prompt information is displayed at a first target position, and a distance between the first target position and the first input box is less than or equal to a first threshold.
  • the first prompt information is displayed at a second target position, and the distance between the second target position and the second input box is less than or equal to a second threshold value; the first electronic device is further used to send first switching information to the second electronic device; and the second electronic device is further used to adjust the display position of the first prompt information from the second target position to the first target position after receiving the first switching information, and the distance between the first target position and the first input box is less than or equal to the first threshold value.
  • the input device is further used to send first switching information to the first electronic device in response to detecting a second operation, and the first switching information is used to indicate that the display position of the first prompt information is adjusted from the second target position to the first target position; the first electronic device is further specifically used to send the first switching information to the second electronic device after receiving the first switching information.
  • the user can also use the input device to adjust the focus of the input device to switch to the input box of the second electronic device. This helps to further improve the user experience when the user switches the focus of the input device.
  • the second input box is the input box where the second electronic device had the most recent input focus; or, the second input box is the first input box on the display interface of the second electronic device.
  • the second electronic device is further used to display second prompt information after the focus of the input device is switched to the first input box, and the second prompt information is used to indicate that the user can input information on the second electronic device through the input device.
  • the display position of the second prompt information and the first prompt information are the same, and the display effects of the second prompt information and the first prompt information are different.
  • the first prompt information includes a first icon and/or a first text information
  • the first icon is used to indicate the input device
  • the first text information is used to indicate the first operation.
  • the second prompt information includes a second icon and/or a second text information, the second icon is used to indicate the input device, and the second text information is used to indicate that the user can enter information in the first input box.
  • the display effects of the second icon and the first icon are different.
  • the display effects of the second prompt information and the fourth prompt information are the same.
  • the second electronic device is further configured to display first input information in the first input box after the focus of the input device is switched to the first input box, the first input information being information input by the user through the input device.
  • the input device is further configured to, in response to obtaining the user's first an input information, and sending the first input information to the first electronic device; the first electronic device is also used to forward the first input information to the second electronic device in response to the first input information; the second electronic device is also specifically used to display the first input information in the first input box in response to the first input information.
  • the second electronic device is further used to control the second electronic device to be in a state of losing the focus of the input device when the first input box is no longer displayed on the second electronic device, and send fourth indication information to the first electronic device, wherein the fourth indication information is used to indicate that the first electronic device can obtain the focus of the input device; the first electronic device is further used to control the first electronic device to be in a state of obtaining the focus of the input device in response to the second indication information.
  • the first electronic device can switch the focus of the input device back to the first electronic device, and then the user can input information on the first electronic device again through the input device. In this way, the first electronic device can automatically switch the focus of the input device from the second electronic device back to the first electronic device, which helps to further improve the user experience when the user switches the focus of the input device.
  • a system comprising an input device, a first electronic device and a second electronic device, wherein the input device is connected to the first electronic device, the focus of the input device is on the first electronic device, the first electronic device is connected to the second electronic device, and/or the same account is logged in to the first electronic device and the second electronic device, wherein the first electronic device is used to display the focus of the input device on the first electronic device when a first condition is met, or to output a third prompt message, wherein the third prompt message is used to prompt the user to switch the focus of the input device to the first electronic device; wherein the first condition includes: no input box is displayed on the second electronic device; or, the area the user is gazing at belongs to the area where the first electronic device is located, and an input box is displayed on the second electronic device.
  • the user previously input information on the second electronic device through the input device, that is, the focus of the input device is on the second electronic device. If the user wants to input information on the first electronic device through the input device, the user can move the line of sight to the first electronic device or the user can exit the interface of the second electronic device displaying the input box. In this way, when the user's line of sight is on the first electronic device and there is an input box on the second electronic device, or when there is no input box on the second electronic device, the first electronic device can display the focus of the input device on the first electronic device. At this time, the focus of the input device is switched from the second electronic device to the first electronic device.
  • the first electronic device when the user's line of sight is on the first electronic device and there is an input box on the second electronic device, or when there is no input box on the second electronic device, the first electronic device can output a third prompt message. Furthermore, the user can switch the focus of the input device to the first electronic device where the user's line of sight is located according to the third prompt message. In this way, the user can switch the focus of the input device from the second electronic device across devices to the first electronic device through simple operations, which helps to improve the user experience when the user switches the focus of the input device.
  • the first electronic device is also used to determine that the area the user is gazing at belongs to the area where the first electronic device is located in the following manner: acquiring an image of the user and determining the user's line of sight; when the user's line of sight intersects with the first electronic device, determining that the area the user is gazing at belongs to the area where the first electronic device is located.
  • the first electronic device is also used to determine whether the input box is displayed on the second electronic device in the following manner: receiving second indication information from the second electronic device, the second indication information being used to indicate whether the input box is displayed on the second electronic device; and determining whether the input box is displayed on the second electronic device based on the second indication information.
  • the system switches the focus of the input device to the first electronic device in the following manner: the input device is further used to send fourth switching information to the first electronic device in response to detecting a first operation, and the fourth switching information is used to indicate that the focus of the input device is switched to the first electronic device; the first electronic device is further used to control the first electronic device to be in a state of acquiring the focus of the input device in response to the fourth switching information, and send fifth indication information to the second electronic device; the second electronic device is further used to control the second electronic device to be in a state of losing the focus of the input device in response to the fifth indication information.
  • the second electronic device is further used to: display second prompt information before controlling the second electronic device to be in a state of losing the focus of the input device, the second prompt information being used to indicate that the user can input information on the second electronic device through the input device; and no longer display the second prompt information after controlling the second electronic device to be in a state of losing the focus of the input device.
  • the third prompt information is further used to prompt the user to input a first operation on the input device, and the focus of the input device can be switched to the first electronic device.
  • a third input box is displayed on the first electronic device, and the input The focus of the device is displayed in the third input box, or the third prompt information is used to prompt the user to switch the focus of the input device to the third input box.
  • the third prompt information is displayed at a third target position, and a distance between the third target position and the third input box is less than or equal to a third threshold.
  • the third prompt information is displayed at a fourth target position, and the distance between the fourth target position and the fourth input box is less than or equal to a fourth threshold value.
  • the first electronic device is also used to receive second switching information from the input device; after receiving the second switching information, the display position of the third prompt information is adjusted from the fourth target position to the third target position, and the distance between the third target position and the third input box is less than or equal to the third threshold value.
  • the user can also use the input device to adjust the focus of the input device to switch to the input box of the first electronic device. This helps to further improve the user experience when the user switches the focus of the input device.
  • the input device is further used to send second switching information to the first electronic device in response to detecting a second operation before detecting the first operation, the second switching information being used to indicate that the display position of the third prompt information is adjusted from the fourth target position to the third target position, and the distance between the third target position and the third input box is less than or equal to a third threshold; the first electronic device is further specifically used to adjust the display position of the third prompt information from the fourth target position to the third target position in response to the second switching information.
  • the fourth input box is the input box where the most recent input focus of the first electronic device is located; or, the fourth input box is the first input box on the display interface of the first electronic device.
  • the first electronic device is further used to: display a fourth prompt information after the focus of the input device is switched to the first electronic device, and the fourth prompt information is used to indicate that the user can input information on the first electronic device through the input device.
  • the fourth prompt information and the third prompt information are displayed at the same position, and the fourth prompt information and the third prompt information have different display effects.
  • the third prompt information includes a third icon and a third text information, the third icon is used to indicate the input device, and the third text information is used to indicate the first operation.
  • the fourth prompt information includes a fourth icon and/or a fourth text information, the fourth icon is used to indicate the input device, and the fourth text information is used to indicate that the user can input information on the first electronic device.
  • the display effects of the fourth icon and the third icon are different.
  • the display effect of the fourth prompt information and the second prompt information is the same.
  • the first electronic device is also used to: display second input information in the third input box after the focus of the input device is switched to the first electronic device, where the second input information is information input by the user through the input device.
  • the input device is further used to respond to obtaining second input information from the user and send the second input information to the first electronic device; the first electronic device is further specifically used to respond to the second input information and display the second input information in the third input box.
  • a method for switching focus across devices is provided, the method being applied to a second electronic device, the second electronic device being connected to the first electronic device, and/or the second electronic device having the same account as the first electronic device logged in, the first electronic device having the focus of an input device, the method comprising: when an area being gazed at by a user belongs to an area where the second electronic device is located and a first input box is displayed on the second electronic device, receiving first indication information from the first electronic device; in response to the first indication information, displaying the focus of the input device in the first input box, or outputting first prompt information, the first prompt information being used to indicate to the user that the focus of the input device can be switched to the first input box.
  • the method before receiving first indication information from the first electronic device, the method also includes: sending first confirmation information to the first electronic device, wherein the first confirmation information is used to indicate that the first input box is displayed on the second electronic device.
  • the first prompt information is displayed at a first target position, and a distance between the first target position and the first input box is less than or equal to a first threshold.
  • the method when a second input box is also displayed on the second electronic device, the first prompt information is displayed at a second target position, and a distance between the second target position and the second input box is less than or equal to a second target position.
  • the method also includes: receiving first switching information from the first electronic device; in response to the first switching information, adjusting the display position of the first prompt information from the second target position to the first target position, and the distance between the first target position and the first input box is less than or equal to the first threshold.
  • the method further includes: after the focus of the input device is switched to the first input box, displaying first input information in the first input box, the first input information being information input by the user through the input device.
  • the method further includes: after the focus of the input device is switched to the first input box, displaying second prompt information, wherein the second prompt information is used to indicate that the user can input information on the second electronic device through the input device.
  • the display positions of the second prompt information and the first prompt information are the same, and the display effects of the second prompt information and the first prompt information are different.
  • a method for switching focus across devices is provided, the method being applied to a first electronic device, the first electronic device being connected to an input device, the first electronic device being connected to the second electronic device, and/or the first electronic device and the second electronic device having the same account logged in, the focus of the input device being on the second electronic device, the method comprising: when a first condition is met, displaying the focus of the input device on the first electronic device, or outputting a third prompt message, the third prompt message being used to prompt the user that the focus of the input device can be switched to the first electronic device; wherein the first condition comprises: no input box is displayed on the second electronic device; or, the area the user is gazing at belongs to the area where the first electronic device is located, and an input box is displayed on the second electronic device.
  • determining that the area the user is gazing at belongs to the area where the first electronic device is located is determined in the following manner: acquiring an image of the user and determining the user's line of sight; when the user's line of sight intersects with the first electronic device, determining that the area the user is gazing at belongs to the area where the first electronic device is located.
  • determining whether the input box is displayed on the second electronic device is performed in the following manner: receiving second indication information from the second electronic device, the second indication information being used to indicate whether the input box is displayed on the second electronic device; and determining whether the input box is displayed on the second electronic device based on the second indication information.
  • a third input box is displayed on the first electronic device, and the focus of the input device is displayed in the third input box, or the third prompt information is used to prompt the user to switch the focus of the input device to the third input box.
  • the third prompt information is displayed at a third target position, and a distance between the third target position and the third input box is less than or equal to a third threshold.
  • the method further includes: receiving second switching information from the input device; after receiving the second switching information, adjusting the display position of the third prompt information from the fourth target position to the third target position, and the distance between the third target position and the third input box is less than or equal to the third threshold.
  • the method further includes: after the focus of the input device is switched to the first electronic device, displaying fourth prompt information, wherein the fourth prompt information is used to indicate that the user can input information on the first electronic device through the input device.
  • the display position of the fourth prompt information and the third prompt information is the same, and the display effects of the fourth prompt information and the third prompt information are different.
  • the method further includes: after the focus of the input device is switched to the first electronic device, displaying second input information in the third input box, wherein the second input information is information input by the user through the input device.
  • a device for switching focus across devices wherein the device is connected to the first electronic device, and/or the same account is logged into the device and the first electronic device, and the first electronic device has the focus of an input device, and the device comprises: a transceiver unit, for receiving first indication information from the first electronic device when an area gazed by a user belongs to an area where the device is located and a first input box is displayed on the device; a processing unit, for responding to the first indication information, switching the focus of the first input device on the first electronic device; The focus of the input device is displayed in the first input box, or a first prompt information is output, where the first prompt information is used to indicate that the user can switch the focus of the input device to the first input box.
  • the transceiver unit is further used to: send first confirmation information to the first electronic device, where the first confirmation information is used to indicate that the first input box is displayed on the device.
  • the first prompt information is displayed at a first target position, and a distance between the first target position and the first input box is less than or equal to a first threshold.
  • the transceiver unit when a second input box is also displayed on the device, the first prompt information is displayed at a second target position, and the distance between the second target position and the second input box is less than or equal to a second threshold, and the transceiver unit is further used to: receive first switching information from the first electronic device; and in response to the first switching information, adjust the display position of the first prompt information from the second target position to the first target position, and the distance between the first target position and the first input box is less than or equal to the first threshold.
  • the processing unit is also used to: after the focus of the input device is switched to the first input box, display first input information in the first input box, where the first input information is information input by the user through the input device.
  • the processing unit is also used to: after the focus of the input device is switched to the first input box, display a second prompt information, wherein the second prompt information is used to indicate that the user can input information on the device through the input device.
  • the display positions of the second prompt information and the first prompt information are the same, and the display effects of the second prompt information and the first prompt information are different.
  • a device for switching focus across devices wherein the device is connected to an input device, the device is connected to a second electronic device, and/or the same account is logged into the device and the second electronic device, and the focus of the input device is on the second electronic device, and the device comprises: a processing unit, for displaying the focus of the input device on the device when a first condition is met, or outputting a third prompt message, wherein the third prompt message is used to prompt the user to switch the focus of the input device to the device; wherein the first condition comprises: no input box is displayed on the second electronic device; or, the area the user is gazing at belongs to the area where the device is located, and an input box is displayed on the second electronic device.
  • the processing unit is further used to: obtain an image of the user and determine the user's line of sight; when the user's line of sight intersects with the device, determine that the area the user is looking at belongs to the area where the device is located.
  • the device also includes a transceiver unit for receiving second indication information from the second electronic device, the second indication information being used to indicate whether the input box is displayed on the second electronic device; the processing unit is further used to determine whether the input box is displayed on the second electronic device based on the second indication information.
  • a third input box is displayed on the device, and the focus of the input device is displayed in the third input box, or the third prompt information is used to prompt the user to switch the focus of the input device to the third input box.
  • the third prompt information is displayed at a third target position, and a distance between the third target position and the third input box is less than or equal to a third threshold.
  • the transceiver unit is further used to receive second switching information from the input device; the processing unit is further used to adjust the display position of the third prompt information from the fourth target position to the third target position after receiving the second switching information, and the distance between the third target position and the third input box is less than or equal to the third threshold value.
  • the processing unit is also used to: after the focus of the input device is switched to the device, display a fourth prompt information, wherein the fourth prompt information is used to indicate that the user can input information on the device through the input device.
  • the display positions of the fourth prompt information and the third prompt information are the same, and the display effects of the fourth prompt information and the third prompt information are different.
  • the processing unit is further configured to: After switching to the device, second input information is displayed in the third input box, and the second input information is information input by the user through the input device.
  • an electronic device comprising: one or more processors; a memory; and one or more computer programs.
  • the one or more computer programs are stored in the memory, and the one or more computer programs include instructions.
  • the electronic device executes the method in the third aspect or any possible implementation of the third aspect.
  • an electronic device comprising: one or more processors; one or more memories; and one or more computer programs.
  • the one or more computer programs are stored in the one or more memories, and the one or more computer programs include instructions.
  • the electronic device executes the method in the fourth aspect or any possible implementation of the fourth aspect.
  • a computer program product comprising instructions is provided.
  • the electronic device executes the method in the third aspect or any possible implementation of the third aspect.
  • a computer-readable storage medium which may be non-volatile.
  • the storage medium includes instructions, and when the instructions are executed on an electronic device, the electronic device executes the method in the third aspect or any possible implementation of the third aspect.
  • a chip is provided for executing instructions.
  • the chip executes the method in the third aspect or any possible implementation of the third aspect; or, the chip executes the method so that the electronic device executes the fourth aspect or any possible implementation of the fourth aspect.
  • FIG1 is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
  • FIG. 2 is a software structure block diagram of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is an example diagram of an application scenario provided in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a 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.
  • FIG8 is a schematic flowchart of a method for switching focus across devices provided in an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another method for switching focus across devices provided in an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of another method for switching focus across devices provided in an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of another method for switching focus across devices provided in an embodiment of the present application.
  • FIG. 12 is a schematic block diagram of an apparatus for switching focus across devices provided in an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of an electronic device provided in an embodiment of the present application.
  • first and second are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.
  • a feature defined as “first” or “second” may explicitly or implicitly include one or more of the features.
  • plural means two or more.
  • the method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc.
  • electronic devices such as mobile phones, tablet computers, wearable devices, vehicle-mounted devices, augmented reality (AR)/virtual reality (VR) devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, personal digital assistants (PDAs), etc.
  • AR augmented reality
  • VR virtual reality
  • UMPCs ultra-mobile personal computers
  • PDAs personal digital assistants
  • FIG1 shows a schematic diagram of the structure of an electronic device 100.
  • 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, including a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may include multiple groups of I2C buses.
  • the processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces.
  • the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
  • 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 audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
  • 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 audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • 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 processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • 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 MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100.
  • the screen 194 communicates via the DSI interface to realize the display function of the electronic device 100 .
  • 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 GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices, etc.
  • 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 power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • 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.
  • Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the mobile communication module 150 can provide solutions for wireless communications including 2G/3G/4G/5G, etc., applied to the electronic device 100.
  • the mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc.
  • the mobile communication module 150 may receive electromagnetic waves from the antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the processor 110.
  • at least some of the functional modules of the mobile communication module 150 may be arranged in the same device as at least some of the modules of the processor 110.
  • 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 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 160 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110.
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 2.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include the global system for mobile communications (GSM), general packet radio service (GPRS), and the like. service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR technology, etc.
  • GSM global system for mobile communications
  • GPRS general packet radio service
  • code division multiple access code division multiple access
  • CDMA wideband code division multiple access
  • WCDMA wideband code division multiple access
  • WCDMA wideband code division multiple access
  • time division code division multiple access time-division code division multiple access
  • the GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and/or a satellite based augmentation system (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation system
  • 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 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.
  • ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital videos.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • 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.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
  • the internal memory 121 can be used to store computer executable program codes, which 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 internal memory 121 may include a program storage area and a data storage area.
  • the program storage area can store an operating system, an App required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • 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 audio module 170 can also be used to encode and decode audio signals.
  • the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
  • the speaker 170A also called a "speaker" is used to convert the audio electrical signal into a sound signal.
  • the electronic device 100 can use the speaker 170A Listen to music, or take a hands-free call.
  • the receiver 170B also called a "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be received by placing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to microphone 170C to input the sound signal into microphone 170C.
  • the electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
  • the earphone interface 170D is used to connect a wired earphone.
  • the earphone interface 170D may be the USB interface 130, or may be a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • 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 set on the display screen 194.
  • the capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the electronic device 100 determines the intensity of the pressure according to the change in capacitance.
  • the electronic device 100 detects the touch operation intensity according to the pressure sensor 180A.
  • the electronic device 100 can also calculate the touch position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B can be used to determine the motion posture of the electronic device 100.
  • the angular velocity of the electronic device 100 around three axes i.e., x, y, and z axes
  • the gyro sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyro sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • 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 magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case.
  • the electronic device 100 when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D. Then, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, the flip cover can be automatically unlocked.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
  • the distance sensor 180F is used to measure the distance.
  • the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outward through the light emitting diode.
  • the electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100.
  • the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • the temperature sensor 180J is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 executes a temperature reduction operation. The performance of the processor near the sensor 180J is improved to reduce power consumption and implement thermal protection.
  • the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature.
  • the electronic device 100 when the temperature is lower than another threshold, the electronic device 100 performs a voltage boost on the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
  • the touch sensor 180K is also called a "touch panel”.
  • the touch sensor 180K can be set 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 touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
  • the bone conduction sensor 180M can obtain a vibration signal. In some embodiments, the bone conduction sensor 180M can obtain a vibration signal of a vibrating bone block of the vocal part of the human body. The bone conduction sensor 180M can also contact the human pulse to receive a blood pressure beat signal. In some embodiments, the bone conduction sensor 180M can also be set in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can parse out a voice signal based on the vibration signal of the vibrating bone block of the vocal part obtained by the bone conduction sensor 180M to realize a voice function.
  • the application processor can parse the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to realize a heart rate detection function.
  • the key 190 includes a power key, a volume key, etc.
  • the key 190 may be a mechanical key or a touch key.
  • the electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
  • Motor 191 can generate vibration prompts.
  • Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • touch operations acting on different areas of the display screen 194 can also correspond to different vibration feedback effects.
  • Different application scenarios for example: time reminders, receiving messages, alarm clocks, games, etc.
  • the touch vibration feedback effect can also support customization.
  • 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 SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195.
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 can also be compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 uses an embedded SIM (eSIM) card, i.e., an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
  • phone cards in the embodiments of the present application include but are not limited to SIM cards, eSIM cards, universal subscriber identity modules (USIM), universal integrated circuit cards (UICC), and the like.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture.
  • the embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.
  • FIG2 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 Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer.
  • the application layer can 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, 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 that displays text. Figures and views that display pictures.
  • 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. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, 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 a chart or scroll bar text, such as notifications of applications 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 displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
  • Android Runtime includes core libraries and virtual machines. Android Runtime is responsible for scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android 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.
  • FIG. 3 is a schematic diagram of an application scenario 300 of switching focus across devices provided in an embodiment of the present application.
  • the application scenario 300 includes a mobile phone 10, a tablet 20, and a keyboard 30.
  • the distance between the mobile phone 10 and the tablet 20 is very close (for example, the distance between the mobile phone 10 and the tablet 20 is less than or equal to 40 cm).
  • the mobile phone 10 and the tablet 20 are connected, or the mobile phone 10 and the tablet 20 are logged in with the same account.
  • the keyboard 30 is connected to the tablet 20. In other words, the user can input text information on the tablet 20 through the keyboard 30.
  • Figure 3 may also include other devices not shown, and for another example, the tablet 20 shown in Figure 3 may also be a computer.
  • GUI graphical user interface
  • FIG. 4 is a schematic diagram of a set of graphical user interfaces (GUIs) of the mobile phone 10 and the tablet 20 in the application scenario 300 provided in an embodiment of the present application.
  • GUIs graphical user interfaces
  • the mobile phone 10 displays a display interface 101 of a chat record with a contact "XXX", and the display interface 101 displays the name 1010 of the contact "XXX", the avatar 1011 of the contact "XXX”, the content 1012 of the chat record between the user and the contact "XXX", an additional function control 1013, a text input box 1014, an expression control 1015, and a send control 1016.
  • the text input box 1014 can be used for text input.
  • the text input box 1014 shown in (a) of FIG. 4 has no text input and no cursor, that is, the text input box 1014 is not in a state of inputting text at this time.
  • the tablet 20 displays a text display interface 201, and the display interface 201 displays the text information "XXX".
  • the tablet 20 can display a prompt message A to prompt the user that the focus of the keyboard 30 is on the tablet 20, and the user can input information on the tablet 20 through the keyboard 30.
  • the prompt information A may include at least one of the following: a cursor 2011, an icon 2012, and text information of “inputting...”
  • the cursor 2011 is in a flashing state in the display interface 201
  • the icon 2012 is in a highlighted state on the display interface 201.
  • the tablet 20 determines that the area the user is looking at belongs to the area where the mobile phone 10 is located, the tablet 20 controls the mobile phone 10 to display a prompt message B on the display interface 101 to prompt the user to switch the focus of the keyboard 30 from the tablet 20 to the text input box 1014 of the mobile phone 10. At this time, the user cannot input information in the text input box 1014 through the keyboard 30.
  • the prompt information B may include at least one of the following: icon 1017, “Click Enter to enter” , and cursor 1018.
  • icon 1017 is in a gray state on the display interface 101
  • cursor 1018 is a dotted cursor in the display interface 101 and/or is in a non-blinking state.
  • the prompt information B may be displayed near the text input box 1014 .
  • an icon 1017 and text information of “Click Enter to enter” are displayed near the text input box 1014 .
  • a cursor 1018 is displayed in the text input box 1014 .
  • the user wants to switch the focus of the keyboard 30 from the tablet 20 to the text input box 1014 of the mobile phone 10 at this time, the user can click the Enter key on the keyboard 30.
  • the keyboard 30 detects that the user clicks the Enter key
  • the tablet 20 switches the focus of the keyboard 30 from the tablet 20 to the text input box 1014 of the mobile phone 10.
  • the user can enter information in the text input box 1014 through the keyboard 30.
  • the mobile phone 10 may further display a prompt message C to prompt the user that the focus of the keyboard 30 has been switched to the text input box 1014 of the mobile phone 10 .
  • the prompt information C may include at least one of the following: an icon 1019, text information of “inputting...”, and a cursor 1020.
  • the icon 1019 is in a highlighted state on the display interface 101
  • the cursor 1020 is a solid line cursor and/or is in a flashing state on the display interface 101.
  • the prompt information C may be displayed near the text input box 1014 .
  • an icon 1019 and text information of “Entering...” are displayed near the text input box 1014 .
  • a cursor 1020 is displayed in the text input box 1014 .
  • the display interface 201 of the tablet 20 no longer displays the prompt information A. At this time, the user cannot edit the text displayed on the display interface 201 of the tablet 20 through the keyboard 30 .
  • the display interface 201 of the tablet 20 no longer displays the cursor 2011 , the icon 2012 , and the text information “inputting...”.
  • FIG. 5 is a schematic diagram of another set of GUIs of the mobile phone 10 and the tablet 20 in the application scenario 300 provided in an embodiment of the present application.
  • the mobile phone 10 displays a display interface 111 for searching web pages, and the display interface 111 displays a URL input box 1111 and a search word input box 1112, and the URL input box 1111 displays the text information "XXXX:XXXX//XX".
  • the URL input box 1111 and the search word input box 1112 can both be used for text input.
  • there is no cursor in the URL input box 1111 and the search word input box 1112 shown in (a) of FIG. 5 that is, at this time, the URL input box 1111 and the search word input box 1112 are not in a state of inputting text.
  • the GUI of the tablet 20 shown in (a) in Figure 5 is the same as the GUI of the tablet 20 shown in (a) in Figure 4.
  • the tablet 20 determines that the area the user is looking at belongs to the area where the mobile phone 10 is located, the tablet 20 controls the mobile phone 10 to display a prompt message D on the display interface 111 to prompt the user to switch the focus of the keyboard 30 from the tablet 20 to the input box of the mobile phone 10. At this time, the user cannot input information in the input box of the mobile phone 10 through the keyboard 30.
  • the prompt information D includes at least one of the following: an icon 1113, text information of “click Enter to input”, and a cursor 1114.
  • the icon 1113 is in a gray state on the display interface 111
  • the cursor 1114 is a dotted cursor in the display interface 111, and/or is in a non-blinking state.
  • the prompt information D can be displayed near one of the input boxes (the input box where the mobile phone 10 last focused or the first input box on the display interface 111 of the mobile phone 10) to prompt the user to switch the focus of the keyboard 30 from the tablet 20 to the input box near the prompt information D of the mobile phone 10.
  • an icon 1113 and text information of “Click Enter to enter” are displayed near the URL input box 1111.
  • a cursor 1114 is displayed in the URL input box 1111.
  • the user can click the Tab key on the keyboard 30.
  • the tablet 20 controls the mobile phone 10 to adjust the position of the prompt information D displayed on its display interface 111.
  • the tablet 20 controls the mobile phone 10, moves the icon 1113 and the text information of "Click Enter to input” to the vicinity of the search word input box 1112, and moves the cursor 1114 to the search word input box 1112.
  • the tablet 20 switches the focus of the keyboard 30 from the tablet 20 to the search word input box 1112 of the mobile phone 10. After the focus of the keyboard 30 is switched from the tablet 20 to the search word input box 1112 of the mobile phone 10, the user can enter information in the search word input box 1112 through the keyboard 30.
  • the mobile phone 10 may further display a prompt message E to prompt the user that the focus of the keyboard 30 has been switched to the search word input box 1112 of the mobile phone 10 .
  • the prompt information E may include at least one of the following: an icon 1115, text information of “inputting...”, and a cursor 1116.
  • the icon 1115 is in a highlighted state on the display interface 111
  • the cursor 1116 is a solid line cursor and/or is in a flashing state on the display interface 111.
  • the prompt information E may be displayed near the search term input box 1112 .
  • an icon 1115 and text information of “Entering...” are displayed near the search word input box 1112.
  • a cursor 1116 is displayed in the search word input box 1112.
  • the user can click the Enter key on the keyboard 30. After the focus of the keyboard 30 is switched from the tablet 20 to the URL input box 1111 of the mobile phone 10, the user can enter information in the URL input box 1111 through the keyboard 30.
  • the mobile phone 10 may further display a prompt message F to prompt the user that the focus of the keyboard 30 has been switched to the URL input box 1111 of the mobile phone 10 .
  • the content included in the prompt information F may be similar to the content included in the prompt information E, and will not be described in detail here.
  • the prompt information F may be displayed near the website input box 1111 .
  • the display interface 201 of the tablet 20 no longer displays the prompt information A. At this time, the user cannot edit the text displayed on the display interface 201 of the tablet 20 through the keyboard 30 .
  • the display interface 201 of the tablet 20 no longer displays the cursor 2011 , the icon 2012 , and the text information “inputting...”.
  • the tablet 20 can control the mobile phone 10 to prompt the user on the mobile phone 10, so that the user can directly switch the focus of the keyboard 30 from the tablet 20 to the text input box of the mobile phone 10 through the keyboard 30 according to the prompt on the mobile phone 10.
  • the operation is relatively simple, thereby improving the user experience.
  • FIG. 6 is a schematic diagram of another set of GUIs of the mobile phone 10 and the tablet 20 in the application scenario 300 provided in an embodiment of the present application.
  • the mobile phone 10 displays a display interface 121 of a chat application, which displays the name 1210 of the contact "XXX", the avatar 1211 of the contact "XXX”, the content 1212 of the most recent chat record between the user and the contact "XXX", and the time (8:00 am) of the most recent chat record between the user and the contact "XXX".
  • a chat application which displays the name 1210 of the contact "XXX", the avatar 1211 of the contact "XXX”, the content 1212 of the most recent chat record between the user and the contact "XXX", and the time (8:00 am) of the most recent chat record between the user and the contact "XXX”.
  • no input box is displayed on the display interface 121.
  • the tablet 20 displays the desktop of the tablet 20 , and the desktop of the tablet 20 includes icons of multiple applications, including a calendar, a gallery, a memo, and settings.
  • the tablet 20 may display a prompt message G on its display interface 121 to prompt the user to switch the focus of the keyboard 30 from the mobile phone 10 to the tablet 20. At this time, the user cannot input information in the tablet 20 through the keyboard 30.
  • the prompt information G may include at least one of the following: an icon 2111 and text information of “click Enter to input.” At this time, the icon 2111 is in a gray state on the display interface 211 .
  • the tablet 20 can display the prompt information I on its display interface 121.
  • the user wants to switch the focus of the keyboard 30 from the mobile phone 10 to the tablet 20 at this time, the user can click the Enter key on the keyboard 30.
  • the keyboard 30 detects that the user clicks the Enter key
  • the tablet 20 switches the focus of the keyboard 30 from the mobile phone 10 to the tablet 20.
  • the user can operate the tablet 20 through the keyboard 30.
  • the mobile phone 10 may further display a prompt message H to prompt the user that the focus of the keyboard 30 has been switched to the tablet 20 .
  • the prompt information H may include at least one of the following: an icon 2112 and text information of “inputting...” At this time, the icon 2112 is in a highlighted state on the display interface 211 .
  • the tablet 20 can prompt the user on the tablet 20, so that the user can directly switch the focus of the keyboard 30 from the mobile phone 10 through the keyboard 30 according to the prompt on the tablet 20. to the tablet 20.
  • the operation is relatively simple, thereby improving the user experience.
  • FIG. 7 is a schematic diagram of another set of GUIs of the mobile phone 10 and the tablet 20 in the application scenario 300 provided in an embodiment of the present application.
  • the mobile phone 10 displays a display interface 121 of a chat record with a contact “XXX”, and the display interface 121 displays the name 1210 of the contact “XXX”, the avatar 1211 of the contact “XXX”, the content 1212 of the chat record between the user and the contact “XXX”, an additional function control 1213, a text input box 1214, an expression control 1215, and a send control 1216.
  • the text input box 1214 can be used for text input.
  • the mobile phone 10 can display a prompt message L to prompt the user that the focus of the keyboard 30 is in the text input box 1214 of the mobile phone 10, and the user can input information in the text input box 1214 through the keyboard 30.
  • the prompt information L may include at least one of the following items: an icon 1217 and text information of “inputting...” At this time, the icon 1217 is in a highlighted state in the display interface 121 .
  • the tablet 20 may also highlight the text input box 1214 .
  • the mobile phone 10 may further display a frame 1218 around the text input box 1214 to highlight the text input box 1214 .
  • the tablet 20 may display a prompt message I on its display interface 211 to prompt the user to switch the focus of the keyboard 30 from the mobile phone 10 to the tablet 20. At this time, the user cannot input information in the tablet 20 through the keyboard 30.
  • the prompt information I may include at least one of the following: an icon 2113 and text information of “click Enter to input.” At this time, the icon 2113 is in a gray state on the display interface 221 .
  • the prompt information I can be displayed near one of the input boxes (the input box where the tablet 20 last had focus or the first input box on the display interface 221 of the tablet 20) to prompt the user to switch the focus of the keyboard 30 from the mobile phone 10 to the input box near the prompt information I of the tablet 20.
  • an icon 2213 and text information of “Click Enter to enter” are displayed near the URL input box 2211 .
  • the tablet 20 can display the prompt information I on its display interface 211.
  • the tablet 20 can adjust the position of the prompt information I displayed on its display interface 221.
  • the tablet 20 moves the icon 2213 and the text information “Click Enter to enter” to the vicinity of the search term input box 2212 .
  • the tablet 20 switches the focus of the keyboard 30 from the mobile phone 10 to the search word input box 2212 of the tablet 20. After the focus of the keyboard 30 is switched from the mobile phone 10 to the search word input box 2212 of the tablet 20, the user can enter information in the search word input box 2212 through the keyboard 30.
  • the mobile phone 10 may further display a prompt message J to prompt the user that the focus of the keyboard 30 has been switched to the search word input box 2212 of the tablet 20 .
  • the prompt information J may include at least one of the following: an icon 2214 and text information of “inputting...” At this time, the icon 2214 is in a highlighted state on the display interface 221 .
  • the prompt information J may be displayed near the search term input box 2212 .
  • an icon 2214 and text information of “Entering...” are displayed near the search word input box 2212 .
  • search term may no longer be displayed in the search term input box 2212 .
  • the tablet 20 may also highlight the search word input box 2212 .
  • the tablet 20 may further display a frame 2215 around the URL input box 2211 to highlight the search term input box 2212 .
  • the user wants to switch the focus of the keyboard 30 from the mobile phone 10 to the URL input box 2211 of the tablet 20, the user can click the Enter key on the keyboard 30. After the focus of the keyboard 30 is switched from the mobile phone 10 to the URL input box 2211 of the tablet 20, the user can enter information in the URL input box 2211 through the keyboard 30.
  • the tablet 20 may also display a prompt Message K is used to prompt the user that the focus of the keyboard 30 has been switched to the website input box 2211 of the mobile phone 10.
  • the content included in the prompt information K may be similar to the content included in the prompt information J, and will not be described in detail here.
  • the prompt information K may be displayed near the website input box 2211 .
  • the tablet 20 may also highlight the website input box 2211 .
  • the display interface 121 of the mobile phone 10 no longer displays the prompt information L. At this time, the user cannot input information in the text input box 1214 of the mobile phone 10 through the keyboard 30 .
  • the display interface 121 of the mobile phone 10 no longer displays the cursor 1218 , the icon 1217 , and the text information “inputting...”.
  • the tablet 20 can prompt the user on the tablet 20, so that the user can directly switch the focus of the keyboard 30 from the mobile phone 10 to the tablet 20 through the keyboard 30 according to the prompt on the tablet 20.
  • the operation is relatively simple, thereby improving the user experience.
  • FIG. 8 is a method 200 for switching focus across devices provided in an embodiment of the present application.
  • the method 200 includes S210 to S350.
  • S210 to S350 are described in detail below.
  • the method 200 shown in FIG. 8 does not necessarily include every step in S210 to S350 .
  • the relationship between these steps S210 to S350 is described in detail below and will not be repeated here.
  • Condition 1 includes: the tablet 20 is connected to the keyboard 30 , and the tablet 20 is connected to the mobile phone 10 , or the tablet 20 and the mobile phone 10 are logged into the same account.
  • the tablet 20 and the keyboard 30 may be connected by wire or by wireless, which is not limited in the embodiment of the present application.
  • the account involved in the embodiment of the present application may be a system account or a third-party account (such as an application login account), and the embodiment of the present application does not limit this.
  • condition 1 may further include: the distance between the tablet 20 and the mobile phone 10 is less than or equal to a fifth threshold (eg, the fifth threshold may be 40 cm).
  • a fifth threshold eg, the fifth threshold may be 40 cm.
  • the tablet 20 may detect a signal sent by the mobile phone 10 , and determine whether the distance between the tablet 20 and the target device is less than or equal to a fifth threshold based on the signal sent by the mobile phone 10 .
  • the tablet 20 may send a detection signal to the mobile phone 10, and after receiving the detection signal, the mobile phone 10 sends a response signal to the tablet 20. In this way, after receiving the response signal sent by the mobile phone 10, the tablet 20 determines whether the distance between the tablet 20 and the target device is less than or equal to the fifth threshold according to the strength of the response signal.
  • the embodiment of the present application does not limit the number of target devices.
  • the method 200 is described below by taking the target device as a mobile phone 10 as an example.
  • the tablet 20 determines that condition 1 is not satisfied, the tablet 20 does not perform any step. In the case where the tablet 20 determines that condition 1 is satisfied, the tablet 20 performs S230.
  • the tablet 20 may also determine whether to execute S230 according to S220.
  • the tablet 20 determines whether the mobile phone 10 satisfies condition 2.
  • Condition 2 includes at least one of the following: the mobile phone 10 displays an input box, the mobile phone 10 displays an input box at the bottom of the display interface, or the display interface of the mobile phone 10 is a display interface of a target application.
  • the target application may include a chat application, a search application (such as a browser application), an office application, a learning application, etc.
  • condition 2 includes at least two of the following: an input box is displayed on the mobile phone 10, an input box is displayed at the bottom of the display interface of the mobile phone 10, or the display interface of the mobile phone 10 is the display interface of the target application, the tablet 20 does not limit the order of judging the at least two items.
  • S220 includes S221 and S222. In another example, S220 includes only S222 but does not include S221. In this case, the mobile phone 10 may periodically execute S222. S221 and S222 are described in detail below.
  • the tablet 20 may send query information 1 to the mobile phone 10. Accordingly, the mobile phone 10 receives the query information 1 sent from the tablet 20.
  • the query information 1 is used to query whether an input box is displayed on the display interface of the mobile phone 10, whether an input box is displayed at the bottom of the display interface of the mobile phone 10, or whether the display interface of the mobile phone 10 is the display interface of the target application.
  • the mobile phone 10 may check whether there is an input control according to the layout on the display interface of the mobile phone 10. If there is an input control in the layout on the display interface of the mobile phone 10, the display interface of the mobile phone 10 includes a text input box; if there is no input control in the layout on the display interface of the mobile phone 10, the display interface of the mobile phone 10 does not include a text input box.
  • mobile phone 10 can check whether there is an input control based on the layout on the display interface of mobile phone 10, and determine whether the input control is at the bottom of the display interface of mobile phone 10. If there is an input control in the layout on the display interface of mobile phone 10 and the input control is at the bottom of the display interface of mobile phone 10, then the display interface of mobile phone 10 includes a text input box; if there is no input control in the layout on the display interface of mobile phone 10, then the display interface of mobile phone 10 does not include a text input box.
  • mobile phone 10 can check the name of the application corresponding to the display interface of mobile phone 10 based on the layout on the display interface of mobile phone 10, and determine whether the name of the application is the name of the target application. If the name of the application is not the name of the target application, the display interface of mobile phone 10 is not the display interface of the target application; if there is no input control in the layout on the display interface of mobile phone 10, the display interface of mobile phone 10 is the display interface of the target application.
  • the mobile phone 10 sends a response message 1 to the tablet 20. Accordingly, the tablet 20 receives the response message 1 sent from the mobile phone 10.
  • the response message 1 is used to indicate whether an input box is displayed on the display interface of the mobile phone 10, whether an input box is displayed at the bottom of the display interface of the mobile phone 10, or whether the display interface of the mobile phone 10 is the display interface of the target application.
  • the tablet 20 determines not to execute S230.
  • the response information 1 is used to indicate that: the input box is displayed on the display interface of the mobile phone 10, the input box is displayed at the bottom of the display interface of the mobile phone 10, or the display interface of the mobile phone 10 is not the display interface of the target application, the tablet 20 determines not to execute S230.
  • the tablet 20 executes S230, that is, the tablet 20 obtains the user's line of sight, so that the power consumption of the tablet 20 can be reduced.
  • the tablet 20 may turn on the camera, collect an image of the user through the camera, and obtain the user's line of sight based on the collected image of the user.
  • the tablet 20 can obtain the position of the user's pupil based on the collected image of the user. Secondly, the tablet 20 can obtain the direction of the user's pupil based on the position of the user's pupil. Finally, the tablet 20 can obtain the user's line of sight based on the direction of the user's pupil.
  • the tablet 20 may also obtain the image of the user from other devices that can collect the image of the user, and obtain the user's line of sight based on the obtained image of the user.
  • the mobile phone 10 is provided with a camera, and the mobile phone 10 can turn on the camera, collect the image of the user through the camera of the mobile phone 10, and transmit the collected image of the user to the tablet 20, so that the tablet 20 obtains the user's line of sight based on the image of the user collected by the mobile phone 10.
  • the tablet 20 determines that the user's line of sight is not on the tablet 20 .
  • the tablet 20 determines that the line of sight of the user is not on the tablet 20 .
  • the user's line of sight intersects with an extension surface of the tablet 20 that extends to the left/right/up/down, then the user's line of sight is not on the tablet 20 , and the user's line of sight is looking toward the left/right/up/down of the screen of the tablet 20 .
  • the tablet 20 determines whether the user's sight is on the mobile phone 10 .
  • the tablet 20 may first determine the position of the mobile phone 10 relative to the tablet 20 , and then, when the user's line of sight and the position of the mobile phone 10 relative to the tablet 20 are consistent, the tablet 20 may determine that the user's line of sight is on the mobile phone 10 ; when the user's line of sight and the position of the mobile phone 10 relative to the tablet 20 are inconsistent, the tablet 20 may determine that the user's line of sight is not on the mobile phone 10 .
  • the user's line of sight and the position of the mobile phone 10 relative to the tablet 20 are consistent, which can be understood as: the mobile phone 10 is on the left/right/top/bottom of the tablet 20, and the user's line of sight is looking at the left/right/top/bottom of the screen of the tablet 20.
  • the tablet 20 may detect a signal sent by the mobile phone 10 and determine the position of the mobile phone 10 relative to the tablet 20 based on the signal sent by the mobile phone 10 .
  • the tablet 20 can determine that the mobile phone 10 is on the left/right side of the tablet 20 .
  • the tablet 20 can determine that the mobile phone 10 is at the upper/lower side of the tablet 20 .
  • the tablet 20 can obtain the position of the mobile phone 10 relative to the tablet 20 according to the user's setting.
  • the tablet 20 when the tablet 20 executes S250, it is necessary to consider not only the user's line of sight and the position of the mobile phone 10 relative to the user, but also the position of the mobile phone 10 relative to the user.
  • the position of the tablet 20 also needs to consider whether the user's line of sight is within the target range relative to the tablet 20.
  • the tablet 20 can determine that the user's line of sight is on the mobile phone 10.
  • the target range can be understood as an angle between the target range and the normal line of the flat plate 20 that is less than or equal to the target angle.
  • the target angle can be 30 degrees or 45 degrees.
  • the tablet 20 determines that the user's line of sight is not on the mobile phone 10, then the tablet 20 does not need to execute S260. At this time, the method 200 only includes S210 to S250.
  • the tablet 20 determines that the user's line of sight is on the mobile phone 10 , the tablet 20 needs to execute S260 .
  • the tablet 20 determines whether the focus of the keyboard 30 is on the tablet 20 or on the mobile phone 10 .
  • the tablet 20 determines that the focus of the keyboard 30 is not on the tablet 20 but on the mobile phone 10, the tablet 20 does not need to switch the focus of the keyboard 30 because the user's line of sight is also on the mobile phone 10. Therefore, the tablet 20 does not need to execute S270. At this time, the method 200 only includes S210 to S260.
  • the tablet 20 determines that the focus of the keyboard 30 is on the tablet 20 and not on the mobile phone 10, and since the user's line of sight is on the mobile phone 10 at this time, the tablet 20 needs to switch the focus of the keyboard 30 to the mobile phone 10 where the user's line of sight is, that is, the tablet 20 needs to execute S270.
  • the tablet 20 can directly execute S270 after S260.
  • the tablet 20 needs to determine whether the mobile phone 10 displays an input box, and only execute S270 if the mobile phone 10 displays an input box.
  • the tablet 20 sends the indication information 1 to the mobile phone 10 . Accordingly, the mobile phone 10 receives the indication information 1 from the tablet 20 .
  • the indication information 1 is used to indicate that the input on the keyboard 30 can be switched to the text input box of the mobile phone 10 .
  • the prompt information 1 is used to indicate that the user can switch the focus of the keyboard 30 to the text input box of the mobile phone 10 .
  • the mobile phone 10 may display the prompt information 1 or play the prompt information 1 .
  • the embodiment of the present application does not limit the specific display form and display position of the prompt information 1.
  • the prompt information 1 may only indicate that the user may switch the focus of the keyboard 30 to the text input box of the mobile phone 10 .
  • the prompt information 1 may include an icon 1017 and a cursor 1018 , wherein the icon 1017 is displayed near the text input box 1014 , and the cursor 1018 is displayed in the text input box 1014 .
  • the prompt information 1 may include an icon 1113 and a cursor 1114 , wherein the icon 1113 is displayed near the URL input box 1111 , and the cursor 1114 is displayed in the URL input box 1111 .
  • the prompt information 1 may indicate that when the operation 1 is input on the keyboard 30 , the focus of the keyboard 30 may be switched to the text input box of the mobile phone 10 .
  • the prompt information 1 may include an icon 1017, text information of "Click Enter to input", and a cursor 1018.
  • the icon 1017 and the text information of "Click Enter to input” are displayed near the text input box 1014, and the cursor 1018 is displayed in the text input box 1014.
  • the prompt information 1 may include an icon 1113 and text information of “Click Enter to input” and a cursor 1114 .
  • the icon 1113 and the text information of “Click Enter to input” are displayed near the URL input box 1111 , and the cursor 1114 is displayed in the URL input box 1111 .
  • the user After the user sees the prompt information 1 in the mobile phone 10, the user can perform an operation 1 on the keyboard 30 to switch the focus of the keyboard 30 to the text input box of the mobile phone 10. At this time, the keyboard 30 executes S290.
  • the keyboard 30 does not detect the operation 1, the keyboard 30 does not execute S300.
  • the keyboard 30 detects the operation 1, the keyboard 30 executes S300.
  • the keyboard 30 sends the switching information 1 to the tablet 20 . Accordingly, the tablet 20 receives the switching information 1 from the keyboard 30 .
  • the switching information 1 is used to instruct the focus of the keyboard 30 to switch to the text input box of the mobile phone 10 .
  • the tablet 20 switches the focus of the keyboard 30 to the mobile phone 10 .
  • the tablet 20 may place the text input box on the tablet 20 in a state where the focus of the keyboard 30 is lost, and instruct the mobile phone 10 to place the text input box of the mobile phone 10 in a state where the focus of the keyboard 30 is obtained.
  • the user can input information in the text input box of the mobile phone 10 through the keyboard 30. At this time, the input information is still transmitted first.
  • the tablet 20 then transmits the input information to the mobile phone 10 so that the mobile phone 10 can display it.
  • the mobile phone 10 may further display prompt information 2 , where the prompt information 2 is used to indicate that the user can input information in the text input box of the mobile phone 10 through the keyboard 30 .
  • the mobile phone 10 may display the prompt information 2 or play the prompt information 2 .
  • the embodiment of the present application does not limit the specific display form and display position of the prompt information 2.
  • the prompt information 2 includes an icon 1019, text information of “inputting...” and a cursor 1020.
  • the icon 1019 and the text information of “inputting...” are displayed near the text input box 1014.
  • the cursor 1020 is displayed in the text input box 1014.
  • prompt information 2 includes an icon 1115, text information of “inputting...” and a cursor 1116.
  • the icon 1115 and the text information of “inputting...” are displayed near the search word input box 1112.
  • the cursor 1116 is displayed in the search word input box 1112.
  • the keyboard 30 may also execute S320.
  • the keyboard 30 detects the user's input information 1 .
  • the keyboard 30 does not detect the user's input information 1, the keyboard 30 does not execute S330.
  • the keyboard 30 detects the user's input information 1, the keyboard 30 executes S330.
  • the keyboard 30 sends input information 1 to the tablet 20 . Accordingly, the tablet 20 receives the input information 1 from the keyboard 30 .
  • the tablet 20 After receiving the input information 1 , the tablet 20 executes S340 .
  • the tablet 20 sends the input information 1 to the mobile phone 10 . Accordingly, the mobile phone 10 receives the input information 1 from the tablet 20 .
  • the mobile phone 10 displays the input information 1 in the input box.
  • the tablet 20 can switch the focus of the keyboard 30 back to the tablet 20. In this way, the user can re-enter information on the tablet 30 through the keyboard 30.
  • the prompt information 1 involved in S280 is used to indicate that the user can switch the focus of the keyboard 30 to the input box near the prompt information 1.
  • the user can switch which input box of the mobile phone 10 the user wants to switch the focus of the keyboard 30 to through the keyboard 30.
  • the user can perform operation 2 on the keyboard 30 (such as clicking the Tab key), so that when the keyboard 30 detects the operation 2, the position of the prompt information 1 displayed on the mobile phone 10 can be adjusted to the next input box through the tablet 20. Thereafter, the user performs operation 1 on the keyboard 30 to switch the focus of the keyboard 30 to the next input box of the mobile phone 10.
  • the switching information 1 in the above S300 can be replaced by the switching information 2, the tablet 20 switches the focus of the keyboard 30 to the next input box of the mobile phone 10 in S310, and the input box in S350 is the next input box of the mobile phone 10.
  • the switching information 2 is used to indicate that the focus on the keyboard 30 is switched to the next input box of the mobile phone 10.
  • the input box displayed on the mobile phone 10 includes a website input box 1111 and a search word input box 1112.
  • the prompt information 1 is initially displayed near the website input box 1111.
  • the prompt information 1 is used to indicate that the user can switch the focus of the keyboard 30 to the website input box 1111 of the mobile phone 10. If the user does not want to switch the focus on the keyboard 30 to the website input box 1111 of the mobile phone 10, but wants to switch the focus of the keyboard 30 to the search word input box 1112 of the mobile phone 10, the user can perform operation 2 on the keyboard 30 (such as clicking the Tab key).
  • the position of the prompt information 1 displayed on the mobile phone 10 can be adjusted to the vicinity of the search word input box 1112 through the tablet 20.
  • the prompt information 1 is used to indicate that the user can switch the focus of the keyboard 30 to the search word input box 1112 of the mobile phone 10.
  • the user previously inputs information on the tablet 20 through the keyboard 30. If an input box is displayed on the mobile phone 10, and the user wants to input information in the input box of the mobile phone 10 through the keyboard 30, the user can move the line of sight to the mobile phone 10. In this way, through the method 200, when the tablet 20 determines that the user's line of sight is on the mobile phone 10 and the focus of the keyboard 30 is on the tablet 20, the mobile phone 10 can output a prompt message, and the user can switch the focus of the keyboard 30 to the input box of the mobile phone 10 where the user's line of sight is located through the keyboard 30 according to the prompt message. After that, the user can input information in the input box of the mobile phone 10 through the keyboard 30.
  • the screen of the mobile phone 10 can be regarded as an extended screen of the tablet 20, that is, the information input by the user through the keyboard 30 is transmitted to the mobile phone 10 via the tablet 20.
  • the user's operation is simple and the user experience is improved.
  • the user can also adjust the focus of the keyboard 30 to switch to the input box of the mobile phone 10 through the keyboard 30, so that the user's operation is simple, thereby further improving the user experience.
  • FIG. 9 is a method 300 for switching focus across devices provided in an embodiment of the present application.
  • method 300 includes S210, S230, S410 to S480.
  • S210 and S230 can refer to the relevant description in FIG8 above, and will not be repeated here.
  • Method 300 may include S230 and S410, or may not include S230 and S410, that is, the steps of S230 and S410 are optional.
  • S410 to S480 are described in detail.
  • the method 300 shown in FIG. 9 does not necessarily include each of the steps S210, S230, S410 to S480.
  • the relationship between steps S230 and S410 to S480 is described in detail below and will not be repeated here.
  • condition 3 includes: the focus of the keyboard 30 is on the mobile phone 10 , and the user's line of sight is on the tablet 20 .
  • the tablet 20 may execute S230 described in FIG. 8 , and determine whether the user's line of sight is on the tablet 20 according to the user's line of sight acquired in S230 .
  • the tablet 20 determines that the user's sight line is not on the tablet 20. Then, the tablet 20 does not execute S420.
  • the tablet 20 determines that the user's sight line is on the tablet 20. Then, the tablet 20 needs to execute S420.
  • condition 3 includes: the focus of the keyboard 30 is on the mobile phone 10 , and no input box is displayed on the mobile phone 10 .
  • S420 may include S421 and S422 as shown in FIG9 ; S420 may also not include S422 as shown in FIG9 and S421 as shown in FIG9 , in which case the mobile phone 10 may periodically execute S442 .
  • S421 and S422 are described in detail below.
  • the tablet 20 may send query information 2 to the mobile phone 10. Accordingly, the mobile phone 10 receives the query information 2 sent from the tablet 20.
  • the query information 2 is used to query whether the display interface of the mobile phone 10 includes an input box.
  • the mobile phone 10 determines whether its display interface includes an input box.
  • the mobile phone 10 sends a response message 2 to the tablet 20. Accordingly, the tablet 20 receives the response message 2 sent from the mobile phone 10.
  • the response message 2 is used to indicate whether the display interface of the mobile phone 10 includes a text input box.
  • the tablet 20 determines not to execute S420.
  • the tablet 20 determines to execute S420.
  • the prompt information 2 is used to instruct the user to switch the focus of the keyboard 30 to the tablet 20 .
  • the tablet 20 may display the prompt information 2 or play the prompt information 2 .
  • the embodiment of the present application does not limit the specific display form and display position of the prompt information 2.
  • the prompt information 2 may only indicate that the user can switch the focus of the keyboard 30 to the tablet 20 .
  • the prompt information 2 includes an icon 2111 , and the prompt information 2 is displayed near the “XXX” text information.
  • the prompt information 2 includes an icon 2213 , and the prompt information 2 is displayed near the website input box 2211 .
  • the prompt information 2 may indicate that when the operation 1 is input on the keyboard 30 , the focus of the keyboard 30 may be switched to the tablet 20 .
  • the prompt information 2 includes an icon 2111 and text information of “click Enter to enter”, and the prompt information 2 is displayed near the text information of “XXX”.
  • the prompt information 2 includes an icon 2213 and text information of “click Enter to input”, and the prompt information 2 is displayed near the website input box 2211 .
  • the user After the user sees the prompt information 2 in the tablet 20, the user can perform an operation 1 on the keyboard 30 to switch the focus of the keyboard 30 to the text of the tablet 20. At this time, the keyboard 30 executes S430.
  • the keyboard 30 does not detect the operation 1, the keyboard 30 does not execute S440.
  • the keyboard 30 detects the operation 1, the keyboard 30 executes S440.
  • the keyboard 30 sends the switching information 3 to the tablet 20 . Accordingly, the tablet 20 receives the switching information 3 from the keyboard 30 .
  • the switching information 3 is used to instruct the focus of the keyboard 30 to switch to the tablet 20 .
  • the tablet 20 switches the focus of the keyboard 30 to the tablet 20 .
  • the tablet 20 may instruct the mobile phone 10 to make the text input box of the mobile phone 10 lose the focus of the keyboard 30 , and make the text input box on the tablet 20 obtain the focus of the keyboard 30 .
  • the user can input information in the text input box of the tablet 20 through the keyboard 30 .
  • the tablet 20 may further display prompt information 4 , where the prompt information 4 is used to indicate that the user may input information on the tablet 20 through the keyboard 30 .
  • the tablet 20 may display the prompt information 4 or play the prompt information 4 .
  • the embodiment of the present application does not limit the specific display form and display position of the prompt information 4.
  • the prompt information 4 includes an icon 2112 and text information of “inputting...”, and the prompt information 4 is displayed at any position on the tablet 20 .
  • prompt information 4 includes an icon 2214 and text information of “inputting...”, and prompt information 4 is displayed near the search input box 2215 .
  • the keyboard 30 may also execute S460.
  • the keyboard 30 detects the user's input information 2.
  • the keyboard 30 does not detect the user's input information 2, the keyboard 30 does not execute S470.
  • the keyboard 30 detects the user's input information 2, the keyboard 30 executes S470.
  • the keyboard 30 sends input information 2 to the tablet 20 . Accordingly, the tablet 20 receives the input information 2 from the keyboard 30 .
  • the tablet 20 After receiving the input information 2 , the tablet 20 executes S480 .
  • the tablet 20 displays the input information 2 in the input box.
  • the prompt information 2 involved in S420 indicates that the user can switch the focus of the keyboard 30 to the input box near the prompt information 2 of the tablet 20.
  • the user can use the keyboard 30 to switch which input box of the tablet 20 the user wants to switch the focus of the keyboard 30 to.
  • the user can perform operation 2 on the keyboard 30 (such as clicking the Tab key), so that when the keyboard 30 detects the operation 2, the position of the prompt information 2 displayed on the tablet 20 can be adjusted to the next input box. Thereafter, the user performs operation 1 on the keyboard 30 to switch the focus of the keyboard 30 to the next input box of the tablet 20.
  • the switching information 3 in the above S440 can be replaced by the switching information 4, the tablet 20 in the above S450 switches the focus of the keyboard 30 to the next input box of the tablet 20, and the input box in the above S480 is the next input box of the tablet 20.
  • the switching information 4 is used to indicate that the focus of the keyboard 30 is switched to the next input box of the tablet 20.
  • the input boxes displayed on the tablet 20 include a website input box 2211 and a search word input box 2212.
  • the prompt information 2 is initially displayed near the website input box 2211. At this time, the prompt information 2 is used to indicate that the user can switch the focus of the keyboard 30 to the website input box 2211 of the tablet 20. If the user does not want to switch the focus of the keyboard 30 to the website input box 2211 of the tablet 20, but wants to switch the focus of the keyboard 30 to the search word input box 2212 of the tablet 20, the user can perform operation 2 on the keyboard 30 (such as clicking the Tab key). In this way, when the keyboard 30 detects the operation 2, the position of the prompt information 2 displayed on the tablet 20 can be adjusted to the search word input box 2212. At this time, the prompt information 2 is used to indicate that the user can switch the focus of the keyboard 30 to the search word input box 2212 of the tablet 20.
  • the user previously input information on the mobile phone 10 through the keyboard 30. If the user wants to input information on the tablet 20 through the keyboard 30, at this time, the user can move the line of sight to the tablet 20, or not. In this way, through the method 300, when the tablet 20 determines that there is no input box on the mobile phone 10 and the focus of the keyboard 30 is on the mobile phone 10, the tablet 20 can output the prompt information 2. At this time, since the keyboard 30 is always connected to the tablet 20, that is, the keyboard 30 mainly serves the tablet 20, therefore, when the tablet 20 determines that the user's line of sight is on the tablet 20 and the focus of the keyboard 30 is on the mobile phone 10, the tablet 20 does not need to determine whether it displays an input box, and directly outputs the prompt information 2.
  • the user can switch the focus of the keyboard 30 to the tablet 20 where the user's line of sight is located through the keyboard 30 according to the prompt information 2. Thereafter, the user can input information in the input box of the tablet 20 through the keyboard 30. At this time, the screen of the mobile phone 10 is no longer regarded as an extended screen of the tablet 20. In this way, the user's operation is simple and the user experience is improved.
  • the user can also adjust the focus of the keyboard 30 to switch to the input box of the tablet 20 through the keyboard 30, so that the user's operation is simple, thereby further improving the user experience.
  • the tablet 20 and the mobile phone 10 can transmit information (such as the query information 1, response information 1, indication information 1, input information 1, etc. described above) through the cloud.
  • the tablet 20 and the mobile phone 10 can transmit information (such as the query information 1, response information 1, indication information 1, input information 1, etc. described above) through the connection method established between the two.
  • the focus of the keyboard 30 in FIGS. 4 to 9 can be understood as the position where the information input by the user through the keyboard 30 is displayed.
  • the focus of the keyboard 30 is on the tablet 20, that is, the user can input information on the tablet 20 through the keyboard 30.
  • the focus of the keyboard 30 is on the text input box 1014 of the mobile phone 10, that is, the user can input information in the text input box 1014 of the mobile phone 10 through the keyboard 30.
  • the method for switching focus across devices shown in FIG. 10 and FIG. 11 may be applied to a system including an input device, a first electronic device, and a second electronic device.
  • the input device is connected to the first electronic device.
  • the input device and the first electronic device may be connected by wire or wirelessly, which is not limited in the embodiment of the present application.
  • the first electronic device is connected to the second electronic device, and/or the same account is logged into the first electronic device and the second electronic device.
  • the type of the same account logged in on the first electronic device and the second electronic device can be a system account or a third-party account (such as a login account for an application), which is not limited in this embodiment of the present application.
  • the input device may be the keyboard 30 shown in FIGS. 3 to 9
  • the first electronic device may be the tablet 20 shown in FIGS. 3 to 9
  • the second electronic device may be the mobile phone 10 shown in FIGS. 3 to 9 .
  • the input device may be a keyboard
  • the first electronic device may be a computer
  • the second electronic device may be a mobile phone.
  • the distance between the first electronic device and the second electronic device may be less than or equal to a fifth threshold.
  • FIG. 10 is a schematic flowchart of a method 500 for switching focus across devices provided in an embodiment of the present application.
  • method 500 includes S510 and S520.
  • S510 and S520 are described in detail below.
  • the first electronic device sends first indication information to the second electronic device.
  • the second electronic device receives the first indication information sent by the first electronic device.
  • the first indication information may be used to indicate that the focus of the input device may be switched to the first input box.
  • the first electronic device may execute S530.
  • the first electronic device determines whether the area the user is gazing at belongs to the area where the second electronic device is located, whether a first input box is displayed on the second electronic device, and the focus of the input device is on the first electronic device.
  • the embodiment of the present application does not limit the order in which the first electronic device determines whether the area the user is looking at belongs to the area where the second electronic device is located, whether the first input box is displayed on the second electronic device, and the focus of the input device on the first electronic device.
  • the first electronic device may first determine whether the first input box is displayed on the second electronic device, then determine the area the user is looking at, and then determine whether the focus of the input device is on the first electronic device. In this way, the power consumption of the first electronic device can be reduced.
  • the first electronic device may actively obtain from the second electronic device whether there is a first input box on the second electronic device.
  • the first electronic device determining that the first input box is displayed on the second electronic device may include S531a to S533a.
  • S531a to S533a are described in detail below.
  • the first electronic device sends first query information to the second electronic device.
  • the second electronic device receives the first query information from the first electronic device.
  • the first query information is used to query whether a first input box is displayed on the second electronic device.
  • the second electronic device When the second electronic device receives the first query information, it determines whether it displays the first input box, and executes S532a if it displays the first input box.
  • the second electronic device determines whether it displays the first input box please refer to the description of the tablet 20 determining whether it displays the text input box in S221 of Figure 8 above, which will not be repeated here.
  • the second electronic device sends first confirmation information to the first electronic device in response to the first query information.
  • the first electronic device receives the first confirmation information from the second electronic device.
  • the first confirmation information is used to indicate that a first input box is displayed on the second electronic device.
  • S533a The first electronic device determines that a first input box is displayed on the second electronic device in response to the first confirmation information.
  • the second electronic device may actively send to the first electronic device whether there is a first input box on the second electronic device. That is, the first electronic device may passively obtain from the second electronic device whether there is a first input box on the second electronic device.
  • the first electronic device determining that the first input box is displayed on the second electronic device may include S531b and S532b.
  • S531a and S532b are described in detail below.
  • the second electronic device when the second electronic device determines that it displays the first input box, the second electronic device sends the first confirmation information to the first electronic device.
  • the first electronic device receives the first confirmation information from the second electronic device.
  • S532b The first electronic device determines that a first input box is displayed on the second electronic device in response to the first confirmation information.
  • the first electronic device can capture the image of the user through the camera, and determine the user's line of sight based on the captured image of the user.
  • the area the user is looking at belongs to the area where the second electronic device is located; when the user's line of sight intersects with the first electronic device, the area the user is looking at does not belong to the area where the second electronic device is located, but belongs to the area where the first electronic device is located.
  • the first electronic device may determine that the second electronic device satisfies the second condition before determining that the second electronic device satisfies the second condition.
  • the first electronic device turns on the camera to collect the user's image, and determines the area the user is looking at based on the collected user image, thereby reducing the power consumption of the first electronic device.
  • the second condition includes at least one of the following: a first input box is displayed on the second electronic device, a display interface of the target application is displayed on the second electronic device, a first input box is displayed on the second electronic device, and the first input box is located at the bottom of the display interface of the second electronic device.
  • the first electronic device may actively obtain from the second electronic device whether the second electronic device satisfies the second condition.
  • the first electronic device determining that the area at which the user is gazing belongs to the area where the second electronic device is located may include: the first electronic device sending second query information to the second electronic device, the second query information being used to indicate whether the second electronic device satisfies a second condition; the second electronic device responds to the second query information, determines that the second electronic device satisfies the second condition, and sends second confirmation information to the first electronic device, the second confirmation information being used to indicate that the second electronic device satisfies the second condition; the first electronic device responds to the second confirmation information, captures an image of the user, and determines, based on the image, that the area at which the user is gazing belongs to the area where the second electronic device is located.
  • Target applications include, but are not limited to: chat applications, search applications (such as browser applications), office applications, learning applications, etc.
  • the second electronic device may actively send to the first electronic device whether the second electronic device satisfies the second condition. That is, the first electronic device may passively obtain from the second electronic device whether the second electronic device satisfies the second condition.
  • the first electronic device may further output fourth prompt information, where the fourth prompt information is used to indicate that the focus of the input device is on the first electronic device.
  • the first electronic device may display the fourth prompt information or play the fourth prompt information.
  • the fourth prompt information may include at least one of the following: a fourth cursor, a fourth icon, fourth text information, and a fourth outer frame.
  • the fourth cursor is displayed at the position where the text is to be input on the first electronic device, the fourth icon is used to indicate the input device, the fourth text information is used to indicate that the user can input information on the first electronic device, and the fourth outer frame surrounds the input box on the first electronic device where the text is being input.
  • the fourth cursor may be the cursor 2011 as shown in (a) in Figure 4 or as shown in (a) in Figure 5
  • the fourth icon may be the icon 2012 as shown in (a) in Figure 4 or as shown in (a) in Figure 5
  • the fourth text information may be the text information of "Inputting" as shown in (a) in Figure 4 or as shown in (a) in Figure 5.
  • the fourth prompt information includes the fourth icon and the fourth text information, then the fourth prompt information is also used to indicate the input device.
  • the second electronic device After receiving the first indication information, the second electronic device displays the focus of the input device in the first input box, or outputs the first prompt information.
  • the first prompt information is used to prompt the user to switch the focus of the input device to the first input box.
  • the second electronic device may display the first prompt information or play the first prompt information.
  • the first prompt information may include at least one of the following: a first cursor, a first icon, a first text message, and a first outer frame.
  • the first cursor is displayed at the position where the focus of the input device is to be switched on the second electronic device
  • the first icon is used to indicate the device (i.e., the input device) used to switch the focus of the input device
  • the first text message is used to indicate the first operation
  • the first outer frame surrounds the input box where the focus of the input device is to be switched on the second electronic device.
  • the first cursor may be the cursor 1018 as shown in FIG. 4 (b)
  • the first icon may be the icon 1017 as shown in FIG. 4 (b)
  • the first text information may be the text information of “Click Enter to input” as shown in FIG. 4 (b).
  • the first cursor may be the cursor 1114 as shown in FIG. 5 (b)
  • the first icon may be the icon 1113 as shown in FIG. 5 (b)
  • the first text information may be the text information of “Click Enter to input” as shown in FIG. 5 (b).
  • the first prompt information includes the first icon and the first text information
  • the first prompt information is also used to prompt the user to input the first operation on the input device, and the focus of the input device can be switched to the first input box.
  • the first prompt information can be used to prompt the user to switch the focus of the input device to the first input box, and the first prompt information is displayed at the first target position, and the distance between the first target position and the first input box is less than or equal to the first threshold.
  • the first prompt information is displayed near the first input box, so that the user can intuitively know the input box to which the focus of the input device is to be switched.
  • the first prompt information is displayed near the text input box 1014 (an example of a first target position).
  • the first prompt information is displayed at the second target position, and the distance between the second target position and the second input box is less than or equal to the second threshold.
  • the first prompt information is displayed near the second input box, so that the user can intuitively know the input box to which the focus of the input device is to be switched.
  • the user wants to adjust the input box to which the focus of the input device on the second electronic device is to be switched, the user can perform a second operation on the input device, so that the input device sends a first switching information to the first electronic device in response to detecting the second operation, and the first switching information is used to indicate that the display position of the first prompt information is adjusted from the second target position to the first target position; the first electronic device sends the first switching information to the second electronic device in response to the first switching information; the second electronic device adjusts the display position of the first prompt information from the second target position to the first target position in response to the first switching information.
  • the second operation may include an operation of clicking a Tab key.
  • the input box displayed on the mobile phone 10 includes a website input box 1111 and a search word input box 1112.
  • the first prompt information is initially displayed near the website input box 1111.
  • the focus of the keyboard 30 can be switched to the website input box 1111 of the mobile phone 10. If the user does not want to switch the focus of the keyboard 30 to the website input box 1111 of the mobile phone 10, but wants to switch the focus of the keyboard 30 to the search word input box 1112 of the mobile phone 10, the user can click the Tab key on the keyboard 30, and the keyboard 30 can adjust the position of the first prompt information displayed on the mobile phone 10 to the search word input box 1112 through the tablet 20. At this time, the focus of the keyboard 30 can be switched to the search word input box 1112 of the mobile phone 10.
  • the second input box is the input box where the input focus of the second electronic device was located most recently; or, the second input box is the first input box on the display interface of the second electronic device.
  • the second electronic device stores the location of each input focus of the second electronic device, so that the second electronic device displays the first prompt information by default near the second input box where the second electronic device had the most recent (last) input focus.
  • the first input box on the display interface of the second electronic device can be understood as: among the input boxes on the display interface of the second electronic device, the input box closest to the upper edge and left edge of the display interface of the second electronic device is the first input box.
  • the display effects of the first prompt information and the fourth prompt information are different.
  • the display effects of the first cursor and the fourth cursor are different.
  • the display effects of the first icon and the fourth icon are different.
  • the display effects of the first outer frame and the fourth outer frame are different.
  • the display effects involved in this application may include display color, display size, display form (such as solid line or dotted line), highlighting, non-display, etc., and this application does not limit this.
  • Figures 4 to 7 are only examples of display effects, which should not limit this application.
  • the method 500 may further include S540 to S560; if the second electronic device outputs the first prompt information, then after S520, the method 500 may further include S540 to S560.
  • S540 to S560 are described in detail below.
  • the input device In response to detecting the first operation, the input device sends third switching information to the first electronic device. Accordingly, the first electronic device receives the third switching information from the input device.
  • the third switching information is used to instruct to switch the focus of the input device to the first input box.
  • the first operation may be an operation of clicking the Enter key.
  • the first electronic device controls the first electronic device to lose the focus of the input device and sends third indication information to the second electronic device. Accordingly, the second electronic device receives the third indication information from the first electronic device.
  • the third indication information may be used to indicate that the first input box is in a state of acquiring the focus of the input device.
  • the embodiment of the present application does not limit the execution order between the step of the first electronic device controlling the first electronic device to be in a state of losing the focus of the input device and the step of the first electronic device sending the third indication information to the second electronic device.
  • the second electronic device controls the first input box of the second electronic device to be in a state of acquiring the focus of the input device.
  • the first electronic device may no longer display the fourth prompt information.
  • the first electronic device may further output second prompt information, wherein the second prompt information is used to indicate that the user can input information in the first input box through the input device.
  • the second electronic device may display the second prompt information or play the second prompt information.
  • the second prompt information may include at least one of the following: a second cursor, a second icon, a second text message, and a second outer frame.
  • the second cursor is displayed in the first input box
  • the second icon is used to indicate an input device
  • the second text message is used to indicate that the user can enter information in the first input box
  • the second outer frame surrounds the first input box.
  • the second cursor may be the cursor 1020 as shown in FIG. 4( c )
  • the second icon may be the icon 1019 as shown in FIG. 4( c )
  • the second text information may be the text information of “Inputting...” as shown in FIG. 4( c ).
  • the second cursor may be the cursor 1116 as shown in (d) of FIG. 5
  • the second icon may be the icon 1115 as shown in (b) of FIG. 5
  • the second text information may be the text information of “Inputting...” as shown in (b) of FIG. 5 .
  • the second prompt information and the first prompt information have the same display position, and the second prompt information and the first prompt information have different display effects. If the fourth prompt information and the first prompt information have different display effects, then the display effects of the second prompt information and the fourth prompt information can be the same or different.
  • the display position of the second cursor is the same as that of the first cursor, but the display effect of the second cursor is different from that of the first cursor.
  • the display position of the second icon is the same as that of the first icon, but the display effect of the second icon is different from that of the first icon.
  • the display of the second outer frame is the same as that of the first outer frame, but the display effect of the second outer frame is different from that of the first outer frame.
  • the input device can transmit the information input by the user to the second electronic device through the first electronic device, so that the second electronic device displays it on its display interface.
  • the user can input information on the second electronic device through the input device and the first electronic device.
  • method 500 may also include: S570, the input device responds to obtaining the user's first input information and sends the first input information to the first electronic device; S580, the first electronic device responds to the first input information and forwards the first input information to the second electronic device; S590, the second electronic device is also used to respond to the first input information and display the first input information in the first input box.
  • search word (an example of default text) is displayed in the text input box 1112 on the mobile phone 10. Then, after S550, as shown in (d) in FIG. 5 , “search word” is no longer displayed in the text input box 1112 on the mobile phone 10.
  • the first electronic device can directly switch the focus of the input device back to the first electronic device. In this way, the user can input information on the first electronic device through the input device.
  • method 500 may further include: S591, the second electronic device determines that the first input box is no longer displayed on the second electronic device, controls the second electronic device to be in a state of losing the focus of the input device, and sends fourth indication information to the first electronic device, the fourth indication information is used to indicate that the first electronic device can obtain the focus of the input device; S592, the first electronic device responds to the fourth indication information and controls the first electronic device to be in a state of obtaining the focus of the input device.
  • a first indication message can be sent to the second electronic device.
  • the second electronic device directly displays the focus of the input device in the first input box, or outputs a first prompt message to prompt the operation of switching the focus of the input device.
  • the user can switch the focus of the input device to the user's sight through the input device. In this way, the user can switch the focus of the input device from the first electronic device to the second electronic device through simple operations, which helps to improve the user experience when the user switches the focus of the input device.
  • the first electronic device may also perform other steps not described in the above method 500, which may refer to the steps performed by the tablet 20 described in FIG. 8, and will not be described in detail here.
  • the second electronic device may also perform other steps not described in the above method 500, which may refer to the steps performed by the mobile phone 10 described in FIG. 8, and will not be described in detail here.
  • FIG. 11 is a schematic flowchart of a method 600 for switching focus across devices provided in an embodiment of the present application.
  • method 600 includes S610. S610 is described in detail below.
  • the first condition includes that the area the user is gazing at belongs to the area where the first electronic device is located or that no input box is displayed on the second electronic device.
  • the focus of the input device does not exist on the first electronic device, but exists on the second electronic device, that is, the focus of the input device is on the second electronic device.
  • the first electronic device may execute S620.
  • S620 The first electronic device determines whether the first condition is satisfied and the focus of the input device is on the second electronic device.
  • the embodiment of the present application does not limit the order in which the first electronic device determines that the first condition is satisfied and the focus of the input device is on the second electronic device.
  • the process of S620 is similar to the process of S530, and only the first confirmation information shown in the above S532a and S533a (or S531b and S532b) needs to be replaced by the second indication information.
  • the second indication information is used to indicate whether an input box is displayed on the second electronic device. Therefore, the description of S620 can refer to the relevant description of S530, which will not be repeated here.
  • the second electronic device may also output second prompt information.
  • second prompt information please refer to the relevant description in FIG. 10 above, which will not be repeated here.
  • the first electronic device can display the focus of the input device on the first electronic device or output the third prompt information.
  • the first electronic device it is not necessary to consider whether an input box is displayed on the second electronic device, only the area where the user is gazing needs to be considered.
  • whether an input box is displayed on the second electronic device may also be considered, and only when no input box is displayed on the second electronic device and the area where the user is gazing belongs to the area where the first electronic device is located, the first electronic device displays the focus of the input device on the first electronic device or outputs the third prompt information.
  • the first electronic device can display the focus of the input device on the first electronic device or output the third prompt information. That is to say, in S610, it is not necessary to consider the area the user is gazing at, and only needs to consider whether an input box is displayed on the second electronic device.
  • the area the user is gazing at can also be considered in S610, and the first electronic device will display the focus of the input device on the first electronic device or output the third prompt information only when the area the user is gazing at belongs to the area where the first electronic device is located and no input box is displayed on the second electronic device.
  • the third prompt information is used to prompt the user to switch the focus of the input device to the first electronic device. In another example, the third prompt information is also used to prompt the user to input a first operation on the input device to switch the focus of the input device to the first electronic device.
  • the first electronic device may display the third prompt information or play the third prompt information.
  • the third prompt information may include at least one of the following: a third cursor, a third icon, a third text information, and a third outer frame.
  • the third cursor is displayed at the position where the focus of the input device is to be switched on the first electronic device
  • the third icon is used to indicate the device (i.e., the input device) used to switch the focus of the input device
  • the third text information is used to indicate the first operation
  • the third outer frame surrounds the input box where the focus of the input device is to be switched on the second electronic device.
  • the third icon may be the icon 2111 as shown in (b) of FIG. 6
  • the third text information may be the text information of “click Enter to input” as shown in (b) of FIG. 6 .
  • the third icon may be the icon 2213 as shown in (b) of FIG. 7
  • the third text information may be the text information of “click Enter to input” as shown in (b) of FIG. 7 .
  • the third prompt information includes a third icon and a third text information
  • the third prompt information is also used to prompt the user to input a first operation on the input device, and the focus of the input device can be switched to the first electronic device.
  • the third input box if only one input box (i.e., the third input box) is displayed on the first electronic device, when the first electronic device in S610 displays the focus of the input device on the first electronic device, then the focus of the input device can be displayed in the third input box.
  • the third prompt information can be used to prompt the user to switch the focus of the input device to the third input box, and the third prompt information can be displayed at the third target position, and the distance between the third target position and the third input box is less than or equal to the third threshold.
  • the third prompt information is displayed near the third input box, so that the user can intuitively know the input box to which the focus of the input device is to be switched.
  • the third hint information is displayed near the “XXX” text information (an example of a third target position).
  • the multiple input boxes are displayed on the first electronic device, such as the multiple input boxes include a third input box and a fourth input box
  • the first electronic device in S610 displays the focus of the input device on the first electronic device
  • the focus of the input device can be displayed in the fourth input box.
  • the third prompt information can be displayed at the fourth target position, and the distance between the fourth target position and the fourth input box is less than or equal to the fourth threshold.
  • the third prompt information is displayed near the fourth input box, so that the user can intuitively know the input box to which the focus of the input device is to be switched.
  • the user wants to adjust the input box to which the focus of the input device on the first electronic device is to be switched, the user can perform a second operation on the input device, so that the input device sends a second switching information to the first electronic device in response to detecting the second operation, and the second switching information is used to indicate that the display position of the third prompt information is adjusted from the fourth target position to the third target position, and the distance between the third target position and the third input box is less than or equal to the third threshold; the first electronic device adjusts the display position of the third prompt information from the fourth target position to the third target position in response to the second switching information.
  • the second operation may include an operation of clicking a Tab key.
  • the input box displayed on the tablet 20 includes a website input box 2211 and a search word input box 2212.
  • the third prompt information is initially displayed near the website input box 2211.
  • the focus of the keyboard 30 can be switched to the website input box 2211 of the tablet 20. If the user does not want to switch the focus of the keyboard 30 to the website input box 2211 of the tablet 20, but wants to switch the focus of the keyboard 30 to the search word input box 2212 of the tablet 20, the user can click the Tab key on the keyboard 30, and the keyboard 30 can adjust the position of the third prompt information displayed on the tablet 20 to the search word input box 2212. At this time, the focus of the keyboard 30 can be switched to the search word input box 2212 of the tablet 20.
  • the fourth input box is the input box where the last input focus of the first electronic device is located; or the fourth input box is the first input box on the display interface of the first electronic device.
  • the first electronic device stores the location of each input focus of the first electronic device, so that the first and second electronic devices display the third prompt information by default near the fourth input box where the most recent (last) input focus of the first electronic device was located.
  • the first input box on the display interface of the first electronic device can be understood as: among the input boxes on the display interface of the first electronic device, the input box closest to the upper edge and left edge of the display interface of the first electronic device is the first input box.
  • the method 600 may further include S630 to S650; if the first electronic device outputs the third prompt information, then after S610, the method 600 may further include S630 to S650.
  • S630 to S650 are described in detail below.
  • the input device In response to detecting the first operation, the input device sends fourth switching information to the first electronic device. Accordingly, the first electronic device receives the fourth switching information from the input device.
  • the fourth switching information is used to instruct to switch the focus of the input device to the first electronic device.
  • the first operation may be an operation of clicking the Enter key.
  • the first electronic device controls the first electronic device to acquire the focus of the input device and sends fifth indication information to the second electronic device. Accordingly, the second electronic device receives the fifth indication information from the first electronic device.
  • the fifth indication information may be used to indicate that the first electronic device is in a state of acquiring the focus of the input device.
  • the embodiment of the present application does not limit the execution order between the step of the first electronic device controlling the first electronic device to be in a state of acquiring the focus of the input device and the step of the first electronic device sending the fifth indication information to the second electronic device.
  • the second electronic device controls the second electronic device to be in a state of losing the focus of the input device.
  • the second electronic device no longer displays the second prompt information.
  • the first electronic device may further output fourth prompt information, wherein the fourth prompt information is used to indicate that the user can input information on the first electronic device through the input device.
  • the first electronic device may display the fourth prompt information or play the fourth prompt information.
  • the fourth prompt information may include at least one of the following: a fourth cursor, a fourth icon, a fourth text information, and a fourth outer frame.
  • the fourth cursor is displayed in the third input box, the fourth icon is used to indicate an input device, the fourth text information is used to indicate that the user can enter information in the third input box, and the fourth outer frame surrounds the third input box.
  • the fourth icon may be the icon 2112 as shown in FIG. 6( c ), and the fourth text information may be the text information of “Inputting...” as shown in FIG. 6( c ).
  • the fourth icon may be icon 2214 as shown in (d) in FIG. 7
  • the fourth text information may be text information of “Inputting...” as shown in (d) in FIG. 7
  • the fourth frame may be frame 2215 as shown in (d) in FIG. 7 .
  • the display positions of the fourth prompt information and the third prompt information are the same, and the display effects of the fourth prompt information and the third prompt information are different. At this time, the display effects of the fourth prompt information and the second prompt information can be the same or different.
  • the display position of the fourth cursor is the same as that of the third cursor, but the display effect of the fourth cursor is different from that of the third cursor.
  • the display position of the fourth icon is the same as that of the third icon, but the display effect of the fourth icon is different from that of the third icon.
  • the display of the fourth outer frame is the same as that of the third outer frame, but the display effect of the fourth outer frame is different from that of the third outer frame.
  • search word (an example of default text) is displayed in the search word input box 2212 on the tablet 20. Then, after S640, as shown in (d) of FIG. 7 , “search word” is no longer displayed in the search word input box 2212 on the tablet 20.
  • the user can input information on the first electronic device through an input device.
  • method 600 may further include: S660, the input device responds to obtaining the second input information of the user and sends the second input information to the first electronic device; S670, the first electronic device responds to the second input information and displays the second input information.
  • the first electronic device can display the focus of the input device on the first electronic device, or output a third prompt message. Furthermore, the user can switch the focus of the input device to the first electronic device where the user's line of sight is located through the input device according to the third prompt message. In this way, the user can switch the focus of the input device from the second electronic device to the first electronic device across devices through simple operations, which helps to improve the user experience when the user switches the focus of the input device.
  • first electronic device may also perform other steps not described in the above method 600, which may refer to the steps performed by the tablet 20 described in FIG. 9, and will not be described in detail here.
  • the second electronic device may also perform other steps not described in the above method 600, which may refer to the steps performed by the mobile phone 10 described in FIG. 9, and will not be described in detail here.
  • the first electronic device and the second electronic device can transmit information (such as the first query information, the first confirmation information, the second query information, the second confirmation information, the first indication information, the first input information, the second input information, etc. described above) through the cloud.
  • the first electronic device and the second electronic device can transmit information (such as the first query information, the first confirmation information, the second query information, the second confirmation information, the first indication information, the first input information, the second input information, etc. described above) through the connection method established by the two.
  • the focus of the input device described in Figures 10 and 11 can be understood as the position where the information input by the user through the input device is displayed.
  • the focus of the input device is on the first electronic device, that is, the user can input information on the first electronic device through the input device.
  • the focus of the input device is on the input box of the second electronic device, that is, the user can input information in the input box of the second electronic device through the input device.
  • FIG. 12 is a schematic block diagram of an apparatus 700 for switching focus across devices provided in accordance with an embodiment of the present application.
  • the device 700 includes a processing unit 710 , and the processing unit 710 is used for performing data processing.
  • the device 700 may further include a transceiver unit 720.
  • the transceiver unit 720 may communicate with the outside, and the transceiver unit 720 may also be referred to as a communication interface or a communication unit.
  • the device 700 may further include a storage unit, which may be used to store instructions and/or data, and the processing unit 710 may read the instructions and/or data in the storage unit.
  • a storage unit which may be used to store instructions and/or data
  • the processing unit 710 may read the instructions and/or data in the storage unit.
  • the device 700 can be used to execute the actions performed by the first electronic device in the above method embodiment.
  • the device 700 can be the first electronic device or a component that can be configured on the first electronic device
  • the processing unit 710 is used to execute processing-related operations on the first electronic device side in the above method embodiment
  • the transceiver unit 720 is used to execute transceiver-related operations on the first electronic device side in the above method embodiment.
  • the device 700 can be used to execute the actions performed by the second electronic device in the above method embodiment.
  • the device 700 can be a second electronic device or a component that can be configured on the second electronic device
  • the processing unit 710 is used to execute processing-related operations on the second electronic device side in the above method embodiment
  • the transceiver unit 720 is used to execute transceiver-related operations on the second electronic device side in the above method embodiment.
  • the device 700 can be used to execute the actions performed by the input device in the above method embodiment.
  • the device 700 can be an input device or a component that can be configured on the input device
  • the processing unit 710 is used to execute processing-related operations on the input device side in the above method embodiment
  • the transceiver unit 720 is used to execute transceiver-related operations on the input device side in the above method embodiment.
  • FIG. 13 shows a schematic structural diagram of an electronic device 800 provided in an embodiment of the present application.
  • the electronic device 800 includes: one or more processors 810 , and one or more memories 820 .
  • the one or more memories 820 store one or more computer programs, and the one or more computer programs include instructions.
  • the electronic device 800 may be the mobile phone 10, tablet 20 or keyboard 30 shown in Figures 3 to 9.
  • the electronic device 800 executes the steps executed by the mobile phone 10, tablet 20 or keyboard 30.
  • the electronic device 800 may be the first electronic device, the second electronic device, or the input device described in Figures 10 to 11.
  • the electronic device 800 executes the steps executed by the first electronic device, the second electronic device, or the input device.
  • the embodiment of the present application provides a system, including a first electronic device, a second electronic device and an input device, and the system is used to execute the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
  • the embodiment of the present application provides a computer program product, when the computer program product is run on a first electronic device, the first electronic device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
  • the embodiment of the present application provides a computer program product, when the computer program product is run on a second electronic device, the second electronic device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
  • the embodiment of the present application provides a computer program product, when the computer program product is run on an input device, the input device executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above method-related embodiments, and will not be repeated here.
  • the embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium contains instructions, and when the instructions are executed on a first electronic device, the first electronic device executes the technical solution of the above embodiment.
  • the implementation principle and technical effect thereof are similar and will not be described in detail here.
  • the embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium contains instructions, and when the instructions are executed on a second electronic device, the second electronic device executes the technical solution of the above embodiment.
  • the implementation principle and technical effect thereof are similar and will not be described in detail here.
  • the embodiment of the present application provides a computer-readable storage medium, the computer-readable storage medium contains instructions, when the instructions are executed on an input device, the input device executes the technical solution of the above embodiment.
  • the implementation principle and technical effect are similar, and will not be repeated here.
  • the present application embodiment provides a chip, the chip is used to execute instructions, when the chip is running, the technical solution of the first electronic device, the second electronic device or the input device in the above embodiment is executed.
  • the implementation principle and technical effect are similar, 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 technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art.
  • the computer software product is stored in a storage medium and includes 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)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请实施例提供了一种跨设备切换焦点的方法、设备及系统。该方法应用于包括两个设备和输入设备的系统,输入设备和其中一设备连接,两个设备连接和/或登录有同一账号,该方法包括:当输入设备的焦点在与输入设备连接的设备上、用户注视另一设备、以及另一设备上显示输入框时,该设备向另一设备发送指示信息;另一设备在接收到指示信息后在另一设备的输入框中显示输入设备的焦点或者输出提示信息。这样,用户可直接通过输入设备在该另一设备上输入信息,或者,用户根据提示信息,可将输入设备的焦点切换至另一设备的输入框上。进而,有助于提升用户切换输入设备的焦点时的用户体验。

Description

跨设备切换焦点的方法、电子设备及系统
本申请要求在2022年11月28日提交中国国家知识产权局、申请号为202211502689.9的中国专利申请的优先权,发明名称为“跨设备切换焦点的方法、电子设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端领域,并且更具体地,涉及一种跨设备切换焦点的方法、电子设备及系统。
背景技术
在日常生活或工作中,用户使用的电子设备多种多样。在用户使用电子设备的过程中,可以借助输入设备实现电子设备上信息的输入。
但是,若用户想借助输入设备来使用多个电子设备,用户需要手动切断一个电子设备与输入设备的连接关系,并将输入设备与另一电子设备建立连接。或者,用户需要手动切换输入设备上的连接切换按钮,来实现通过输入设备使用另一电子设备。这样,用户的操作比较繁琐,从而使得用户的体验不好。
发明内容
本申请实施例提供一种跨设备切换焦点的方法、电子设备及系统,该方法有助于提升用户切换输入设备的焦点时的用户体验。
第一方面,提供了一种系统,所述系统包括输入设备、第一电子设备和第二电子设备,所述输入设备与所述第一电子设备连接,所述输入设备的焦点在所述第一电子设备上,所述第一电子设备与所述第二电子设备连接、和/或所述第一电子设备上与所述第二电子设备上登录有同一账号,其中,所述第一电子设备,用于当用户注视的区域属于所述第二电子设备所在的区域、以及所述第二电子设备上显示有第一输入框时,向所述第二电子设备发送第一指示信息;所述第二电子设备,用于在接收到所述第一指示信息后,在所述第一输入框中显示所述输入设备的焦点,或者,输出第一提示信息,所述第一提示信息用于指示所述用户可将所述输入设备的焦点切换至所述第一输入框。
用户之前通过输入设备在第一电子设备上输入信息,即输入设备的焦点在第一电子设备上,若用户想要通过输入设备在第二电子设备的输入框中输入信息,此时,用户可以将视线移至第二电子设备上,这样,当用户的视线在第二电子设备上、以及第二电子设备上显示有输入框时,可以向第二电子设备发送第一指示信息。然后,第二电子设备在接收到第一指示信息后,在第一输入框中显示输入设备的焦点,即此时,输入设备的焦点由第一电子设备切换至第二电子设备的第一输入框中。或者,第二电子设备在接收到第一确认信息后,输出第一提示信息,来提示用户可切换输入设备的焦点。进而,用户可根据第一提示信息,可将输入设备的焦点切换至用户的视线所在的第二电子设备的输入框中。这样,用户通过简单的操作,便可以实现将输入设备的焦点由第一电子设备跨设备的切换至第二电子设备,有助于提升用户切换输入设备的焦点时的用户体验。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备还用于通过如下方式确定所述用户注视的区域属于所述第二电子设备所在的区域:获取所述用户的图像;根据所述用户的图像,确定所述用户的视线;当所述用户的视线与所述第一电子设备沿第一方向的延展面有交点、且所述第二电子设备位于所述第一电子设备的所述第一方向上时,确定所述用户注视的区域属于所述第二电子设备所在的区域。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备,还用于在获取所述用户的图像之前,确定所述第二电子设备满足第二条件,所述第二条件包括以下至少一项:所述第二电子设备上显示有所述第一输入框,所述第二电子设备上显示目标应用程序的显示界面,所述第二电子设备上显示有所述第一输入框、且所述第一输入框位于所述第二电子设备的显示界面的底部。
在第二电子设备满足第二条件的情况下,第一电子设备才去获取用户的图像,这样可以降低第一电 子设备的功耗。
结合第一方面,在第一方面的某些实现方式中,所述目标应用程序包括聊天类应用程序或搜索类应用程序。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备还用于通过如下方式确定所述第二电子设备上显示有所述第一输入框:接收来自所述第二电子设备的第一确认信息,所述第一确认信息用于指示所述第二电子设备上显示有所述第一输入框;根据所述第一确认信息,确定所述第二电子设备上显示有所述第一输入框。
结合第一方面,在第一方面的某些实现方式中,所述系统通过如下方式将所述输入设备的焦点切换至所述第一输入框:所述输入设备,还用于响应于检测到第一操作,向所述第一电子设备发送第三切换信息,所述第三切换信息用于指示将所述输入设备的焦点切换至所述第一输入框;所述第一电子设备,还用于响应于所述第三切换信息,控制所述第一电子设备处于失去所述输入设备的焦点的状态,并向第二电子设备发送第三指示信息(第二指示信息);所述第二电子设备,还用于响应于所述第三指示信息,控制所述第二电子设备的所述第一输入框处于获取所述输入设备的焦点的状态。
结合第一方面,在第一方面的某些实现方式中,所述第一电子设备,还用于:在所述控制所述第一电子设备处于失去所述输入设备的焦点的状态之前,显示第四提示信息,所述第四提示信息用于指示所述输入设备的焦点在所述第一电子设备上;在所述控制所述第一电子设备处于失去所述输入设备的焦点的状态之后,不再显示所述第四提示信息。
结合第一方面,在第一方面的某些实现方式中,所述第一提示信息还用于提示所述用户在所述输入设备上输入第一操作,可将所述输入设备的焦点切换至所述第一输入框。
结合第一方面,在第一方面的某些实现方式中,所述第一提示信息显示在第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
结合第一方面,在第一方面的某些实现方式中,当所述第二电子设备上还显示有第二输入框时,所述第一提示信息显示在第二目标位置,所述第二目标位置与所述第二输入框之间的距离小于或等于第二阈值,所述第一电子设备,还用于向所述第二电子设备发送第一切换信息;所述第二电子设备,还用于在接收到所述第一切换信息后,将所述第一提示信息的显示位置由所述第二目标位置调整至第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
结合第一方面,在第一方面的某些实现方式中,所述输入设备,还用于响应于检测到第二操作,向所述第一电子设备发送第一切换信息,所述第一切换信息用于指示将所述第一提示信息的显示位置由所述第二目标位置调整至第一目标位置;所述第一电子设备,还具体用于在接收到所述第一切换信息后,向所述第二电子设备发送所述第一切换信息。
当第二电子设备上显示有多个输入框时,用户还可以通过输入设备,对输入设备的焦点切换至第二电子设备的输入框进行调整,这样,有助于进一步提升用户切换输入设备的焦点时的用户体验。
结合第一方面,在第一方面的某些实现方式中,所述第二输入框为所述第二电子设备最近一次输入焦点所在的输入框;或者,所述第二输入框为所述第二电子设备的显示界面上的第一个输入框。
结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还用于在所述输入设备的焦点切换至所述第一输入框后,显示第二提示信息,所述第二提示信息用于指示所述用户通过所述输入设备可在所述第二电子设备上输入信息。
结合第一方面,在第一方面的某些实现方式中,所述第二提示信息和所述第一提示信息的显示位置相同,所述第二提示信息和所述第一提示信息的显示效果不同。
示例性地,所述第一提示信息包括第一图标和/或第一文本信息,所述第一图标用于指示所述输入设备,所述第一文本信息用于指示所述第一操作。所述第二提示信息包括第二图标和/或第二文本信息,所述第二图标用于指示所述输入设备,所述第二文本信息用于指示所述用户可在所述第一输入框中输入信息。其中,所述第二图标和所述第一图标的显示效果不同。
结合第一方面,在第一方面的某些实现方式中,所述第二提示信息和所述第四提示信息的显示效果相同。结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还用于在所述输入设备的焦点切换至所述第一输入框后,在所述第一输入框中显示第一输入信息,所述第一输入信息是所述用户通过所述输入设备输入的信息。
结合第一方面,在第一方面的某些实现方式中,所述输入设备,还用于响应于获取到所述用户的第 一输入信息,并向所述第一电子设备发送所述第一输入信息;所述第一电子设备,还用于响应于所述第一输入信息,向所述第二电子设备转发所述第一输入信息;所述第二电子设备,还具体用于响应于所述第一输入信息,在所述第一输入框中显示所述第一输入信息。
结合第一方面,在第一方面的某些实现方式中,所述第二电子设备,还用于当所述第二电子设备上不再显示所述第一输入框时,控制所述第二电子设备处于失去所述输入设备的焦点的状态,并向所述第一电子设备发送第四指示信息,所述第四指示信息用于指示所述第一电子设备可获取所述输入设备的焦点;所述第一电子设备,还用于响应于所述第二指示信息,控制所述第一电子设备处于获取所述输入设备的焦点的状态。
当第二电子设备上不再显示第一输入框,第一电子设备可以将输入设备的焦点切换回所述第一电子设备,进而,用户可以再次通过输入设备在第一电子设备上输入信息。这样,第一电子设备便可以自动将输入设备的焦点由第二电子设备跨设备的切回至第一电子设备,有助于进一步提升用户切换输入设备的焦点时的用户体验。
第二方面,提供了一种系统,所述系统包括输入设备、第一电子设备和第二电子设备,所述输入设备与所述第一电子设备连接,所述输入设备的焦点在所述第一电子设备上,所述第一电子设备与所述第二电子设备连接、和/或所述第一电子设备上与所述第二电子设备上登录有同一账号,其中,所述第一电子设备,用于当满足第一条件时,在所述第一电子设备上显示所述输入设备的焦点,或者,输出第三提示信息,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述第一电子设备;其中,所述第一条件包括:所述第二电子设备上未显示输入框;或者,所述用户注视的区域属于所述第一电子设备所在的区域、且所述第二电子设备上显示有输入框。
用户之前通过输入设备在第二电子设备上输入信息,即输入设备的焦点在第二电子设备上,若用户想要通过输入设备在第一电子设备上输入信息,用户可以将视线移至第一电子设备上或者用户可以退出第二电子设备上显示输入框的界面。这样,当用户的视线在第一电子设备上、且第二电子设备上有输入框时,或者,当第二电子设备上没有输入框时,第一电子设备可以在第一电子设备上显示输入设备的焦点。此时,输入设备的焦点由第二电子设备切换至第一电子设备。或者,当用户的视线在第一电子设备上、且第二电子设备上有输入框时,或者,当第二电子设备上没有输入框时,第一电子设备可以输出第三提示信息。进而,用户可根据第三提示信息,可将输入设备的焦点切换至用户的视线所在的第一电子设备上。这样,用户通过简单的操作,便可以实现将输入设备的焦点由第二电子设备跨设备的切换至第一电子设备,有助于提升用户切换输入设备的焦点时的用户体验。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备还用于通过如下方式确定所述用户注视的区域属于所述第一电子设备所在的区域:获取所述用户的图像,确定所述用户的视线;当所述用户的视线与所述第一电子设备有交点时,确定所述用户注视的区域属于所述第一电子设备所在的区域。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备还用于通过如下方式确定所述第二电子设备上是否显示有所述输入框:接收来自所述第二电子设备的第二指示信息,所述第二指示信息用于指示所述第二电子设备上是否显示有所述输入框;根据所述第二指示信息,确定所述第二电子设备上是否显示有所述输入框。
结合第二方面,在第二方面的某些实现方式中,所述系统通过如下方式将所述输入设备的焦点切换至所述第一电子设备:所述输入设备,还用于响应于检测到第一操作,向所述第一电子设备发送第四切换信息,所述第四切换信息用于指示将所述输入设备的焦点切换至所述第一电子设备;所述第一电子设备,还用于响应于所述第四切换信息,控制所述第一电子设备处于获取所述输入设备的焦点的状态,并向第二电子设备发送第五指示信息;所述第二电子设备,还用于响应于所述第五指示信息,控制所述第二电子设备处于失去所述输入设备的焦点的状态。
结合第二方面,在第一方面的某些实现方式中,所述第二电子设备,还用于:在所述控制所述第二电子设备处于失去所述输入设备的焦点的状态之前,显示第二提示信息,所述第二提示信息用于指示所述用户通过所述输入设备可在所述第二电子设备上输入信息;在所述控制所述第二电子设备处于失去所述输入设备的焦点的状态之后,不再显示所述第二提示信息。
结合第二方面,在第二方面的某些实现方式中,所述第三提示信息还用于提示所述用户在所述输入设备上输入第一操作,可将所述输入设备的焦点切换至所述第一电子设备。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备上显示有第三输入框,所述输入 设备的焦点显示在所述第三输入框中,或者,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述第三输入框。
结合第二方面,在第二方面的某些实现方式中,所述第三提示信息显示在第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
结合第二方面,在第二方面的某些实现方式中,当所述第一电子设备上还显示有第四输入框时,所述第三提示信息显示在第四目标位置,所述第四目标位置与所述第四输入框之间的距离小于或等于第四阈值,所述第一电子设备,还用于接收来自所述输入设备的第二切换信息;在接收到所述第二切换信息后,将所述第三提示信息的显示位置由所述第四目标位置调整至第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
当第一电子设备上显示有多个输入框时,用户还可以通过输入设备,对输入设备的焦点切换至第一电子设备的输入框进行调整,这样,有助于进一步提升用户切换输入设备的焦点时的用户体验。
结合第二方面,在第二方面的某些实现方式中,所述输入设备,还用于在响应于检测到所述第一操作之前,响应于检测到第二操作,向所述第一电子设备发送第二切换信息,所述第二切换信息用于指示将所述第三提示信息的显示位置由所述第四目标位置调整至第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值;所述第一电子设备,还具体用于响应于所述第二切换信息,将所述第三提示信息的显示位置由所述第四目标位置调整至所述第三目标位置。
结合第二方面,在第二方面的某些实现方式中,所述第四输入框为所述第一电子设备最近一次输入焦点所在的输入框;或者,所述第四输入框为所述第一电子设备的显示界面上的第一个输入框。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备还用于:在所述输入设备的焦点切换至所述第一电子设备后,显示第四提示信息,所述第四提示信息用于指示所述用户通过所述输入设备可在所述第一电子设备上输入信息。
结合第二方面,在第二方面的某些实现方式中,所述第四提示信息和所述第三提示信息的显示位置相同,所述第四提示信息和所述第三提示信息的显示效果不同。
示例性地,所述第三提示信息包括第三图标和第三文本信息,所述第三图标用于指示所述输入设备,所述第三文本信息用于指示所述第一操作。所述第四提示信息包括第四图标和/或第四文本信息,所述第四图标用于指示所述输入设备,所述第四文本信息用于指示所述用户可在所述第一电子设备上输入信息。其中,所述第四图标和所述第三图标的显示效果不同。
结合第二方面,在第二方面的某些实现方式中,所述第四提示信息和所述第二提示信息的显示效果相同。
结合第二方面,在第二方面的某些实现方式中,所述第一电子设备还用于:在所述输入设备的焦点切换至所述第一电子设备后,在所述第三输入框中显示第二输入信息,所述第二输入信息是所述用户通过所述输入设备输入的信息。
结合第二方面,在第二方面的某些实现方式中,所述输入设备,还用于响应于获取到所述用户的第二输入信息,并向所述第一电子设备发送所述第二输入信息;所述第一电子设备,还具体用于响应于所述第二输入信息,在所述第三输入框中显示所述第二输入信息。
第三方面,提供了一种跨设备切换焦点的方法,所述方法应用于第二电子设备,所述第二电子设备与所述第一电子设备连接、和/或所述第二电子设备上与所述第一电子设备上登录有同一账号,所述第一电子设备上存在输入设备的焦点,所述方法包括:当用户注视的区域属于所述第二电子设备所在的区域、以及所述第二电子设备上显示有第一输入框时,接收来自所述第一电子设备的第一指示信息;响应于所述第一指示信息,在所述第一输入框中显示所述输入设备的焦点,或者,输出第一提示信息,所述第一提示信息用于指示所述用户可将所述输入设备的焦点切换至所述第一输入框。
结合第三方面,在第三方面的某些实现方式中,在接收来自所述第一电子设备的第一指示信息之前,所述方法还包括:向所述第一电子设备发送第一确认信息,所述第一确认信息用于指示所述第二电子设备上显示有所述第一输入框。
结合第三方面,在第三方面的某些实现方式中,所述第一提示信息显示在第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
结合第三方面,在第三方面的某些实现方式中,当所述第二电子设备上还显示有第二输入框时,所述第一提示信息显示在第二目标位置,所述第二目标位置与所述第二输入框之间的距离小于或等于第二 阈值,所述方法还包括:接收来自所述第一电子设备的第一切换信息;响应于所述第一切换信息,将所述第一提示信息的显示位置由所述第二目标位置调整至第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
结合第三方面,在第三方面的某些实现方式中,所述方法还包括:在所述输入设备的焦点切换至所述第一输入框后,在所述第一输入框中显示第一输入信息,所述第一输入信息是所述用户通过所述输入设备输入的信息。
结合第三方面,在第三方面的某些实现方式中,所述方法还包括:在所述输入设备的焦点切换至所述第一输入框后,显示第二提示信息,所述第二提示信息用于指示所述用户通过所述输入设备可在所述第二电子设备上输入信息。
结合第三方面,在第三方面的某些实现方式中,所述第二提示信息和所述第一提示信息的显示位置相同,所述第二提示信息和所述第一提示信息的显示效果不同。
第三方面及各个可能的实现方式的技术效果可以参考第一方面相关的描述,在此不予赘述。
第四方面,提供了一种跨设备切换焦点的方法,所述方法应用于第一电子设备,所述第一电子设备与输入设备连接,所述第一电子设备与所述第二电子设备连接、和/或所述第一电子设备上与所述第二电子设备上登录有同一账号,所述输入设备的焦点在所述第二电子设备上,所述方法包括:当满足第一条件时,在所述第一电子设备上显示所述输入设备的焦点,或者,输出第三提示信息,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述第一电子设备;其中,所述第一条件包括:所述第二电子设备上未显示输入框;或者,所述用户注视的区域属于所述第一电子设备所在的区域、且所述第二电子设备上显示有输入框。
结合第四方面,在第四方面的某些实现方式中,通过如下方式确定所述用户注视的区域属于所述第一电子设备所在的区域:获取所述用户的图像,确定所述用户的视线;当所述用户的视线与所述第一电子设备有交点时,确定所述用户注视的区域属于所述第一电子设备所在的区域。
结合第四方面,在第四方面的某些实现方式中,通过如下方式确定所述第二电子设备上是否显示有所述输入框:接收来自所述第二电子设备的第二指示信息,所述第二指示信息用于指示所述第二电子设备上是否显示有所述输入框;根据所述第二指示信息,确定所述第二电子设备上是否显示有所述输入框。
结合第四方面,在第四方面的某些实现方式中,所述第一电子设备上显示有第三输入框,所述输入设备的焦点显示在所述第三输入框中,或者,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述第三输入框。
结合第四方面,在第四方面的某些实现方式中,所述第三提示信息显示在第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
结合第四方面,在第四方面的某些实现方式中,当所述第一电子设备上还显示有第四输入框时,所述第三提示信息显示在第四目标位置,所述第四目标位置与所述第四输入框之间的距离小于或等于第四阈值,所述方法还包括:接收来自所述输入设备的第二切换信息;在接收到所述第二切换信息后,将所述第三提示信息的显示位置由所述第四目标位置调整至第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
结合第四方面,在第四方面的某些实现方式中,所述方法还包括:在所述输入设备的焦点切换至所述第一电子设备后,显示第四提示信息,所述第四提示信息用于指示所述用户通过所述输入设备可在所述第一电子设备上输入信息。
结合第四方面,在第四方面的某些实现方式中,所述第四提示信息和所述第三提示信息的显示位置相同,所述第四提示信息和所述第三提示信息的显示效果不同。
结合第四方面,在第四方面的某些实现方式中,所述方法还包括:在所述输入设备的焦点切换至所述第一电子设备后,在所述第三输入框中显示第二输入信息,所述第二输入信息是所述用户通过所述输入设备输入的信息。
第四方面及各个可能的实现方式的技术效果可以参考第二方面相关的描述,在此不予赘述。
第五方面,提供了一种跨设备切换焦点的装置,所述装置与所述第一电子设备连接、和/或所述装置上与所述第一电子设备上登录有同一账号,所述第一电子设备上存在输入设备的焦点,所述装置包括:收发单元,用于当用户注视的区域属于所述装置所在的区域、以及所述装置上显示有第一输入框时,接收来自所述第一电子设备的第一指示信息;处理单元,用于响应于所述第一指示信息,在所述第一输入 框中显示所述输入设备的焦点,或者,输出第一提示信息,所述第一提示信息用于指示所述用户可将所述输入设备的焦点切换至所述第一输入框。
结合第五方面,在第五方面的某些实现方式中,所述收发单元,还用于:向所述第一电子设备发送第一确认信息,所述第一确认信息用于指示所述装置上显示有所述第一输入框。
结合第五方面,在第五方面的某些实现方式中,所述第一提示信息显示在第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
结合第五方面,在第五方面的某些实现方式中,当所述装置上还显示有第二输入框时,所述第一提示信息显示在第二目标位置,所述第二目标位置与所述第二输入框之间的距离小于或等于第二阈值,所述收发单元,还用于:接收来自所述第一电子设备的第一切换信息;响应于所述第一切换信息,将所述第一提示信息的显示位置由所述第二目标位置调整至第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
结合第五方面,在第五方面的某些实现方式中,所述处理单元,还用于:在所述输入设备的焦点切换至所述第一输入框后,在所述第一输入框中显示第一输入信息,所述第一输入信息是所述用户通过所述输入设备输入的信息。
结合第五方面,在第五方面的某些实现方式中,所述处理单元,还用于:在所述输入设备的焦点切换至所述第一输入框后,显示第二提示信息,所述第二提示信息用于指示所述用户通过所述输入设备可在所述装置上输入信息。
结合第五方面,在第五方面的某些实现方式中,所述第二提示信息和所述第一提示信息的显示位置相同,所述第二提示信息和所述第一提示信息的显示效果不同。
第五方面及各个可能的实现方式的技术效果可以参考第一方面相关的描述,在此不予赘述。
第六方面,提供了一种跨设备切换焦点的装置,所述装置与输入设备连接,所述装置与所述第二电子设备连接、和/或所述装置上与所述第二电子设备上登录有同一账号,所述输入设备的焦点在所述第二电子设备上,所述装置包括:处理单元,用于当满足第一条件时,在所述装置上显示所述输入设备的焦点,或者,输出第三提示信息,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述装置;其中,所述第一条件包括:所述第二电子设备上未显示输入框;或者,所述用户注视的区域属于所述装置所在的区域、且所述第二电子设备上显示有输入框。
结合第六方面,在第六方面的某些实现方式中,所述处理单元,还用于:获取所述用户的图像,确定所述用户的视线;当所述用户的视线与所述装置有交点时,确定所述用户注视的区域属于所述装置所在的区域。
结合第六方面,在第六方面的某些实现方式中,所述装置还包括收发单元,用于接收来自所述第二电子设备的第二指示信息,所述第二指示信息用于指示所述第二电子设备上是否显示有所述输入框;所述处理单元,还用于根据所述第二指示信息,确定所述第二电子设备上是否显示有所述输入框。
结合第六方面,在第六方面的某些实现方式中,所述装置上显示有第三输入框,所述输入设备的焦点显示在所述第三输入框中,或者,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述第三输入框。
结合第六方面,在第六方面的某些实现方式中,所述第三提示信息显示在第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
结合第六方面,在第六方面的某些实现方式中,当所述装置上还显示有第四输入框时,所述第三提示信息显示在第四目标位置,所述第四目标位置与所述第四输入框之间的距离小于或等于第四阈值,所述收发单元,还用于接收来自所述输入设备的第二切换信息;所述处理单元,还用于在接收到所述第二切换信息后,将所述第三提示信息的显示位置由所述第四目标位置调整至第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
结合第六方面,在第六方面的某些实现方式中,所述处理单元,还用于:在所述输入设备的焦点切换至所述装置后,显示第四提示信息,所述第四提示信息用于指示所述用户通过所述输入设备可在所述装置上输入信息。
结合第六方面,在第六方面的某些实现方式中,所述第四提示信息和所述第三提示信息的显示位置相同,所述第四提示信息和所述第三提示信息的显示效果不同。
结合第六方面,在第六方面的某些实现方式中,所述处理单元,还用于:在所述输入设备的焦点切 换至所述装置后,在所述第三输入框中显示第二输入信息,所述第二输入信息是所述用户通过所述输入设备输入的信息。
第六方面及各个可能的实现方式的技术效果可以参考第二方面相关的描述,在此不予赘述。
第七方面,提供了一种电子设备,包括:一个或多个处理器;存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第三方面或第三方面中任一项可能的实现方式中的方法。
第八方面,提供了一种电子设备,包括:一个或多个处理器;一个或多个存储器;以及一个或多个计算机程序。其中,一个或多个计算机程序被存储在一个或多个存储器中,一个或多个计算机程序包括指令。当指令被电子设备执行时,使得电子设备执行上述第四方面或第四方面中任一项可能的实现方式中的方法。
第九方面,提供了一种包含指令的计算机程序产品,当所述计算机程序产品在电子设备上运行时,使得电子设备执行上述第三方面或第三方面中任一项可能的实现方式中的方法。
第十方面,提供了一种计算机可读存储介质,该计算机可读存储介质可以是非易失性的。该存储介质包括指令,当所述指令在电子设备上运行时,使得电子设备执行上述第三方面或第三方面中任一项可能的实现方式中的方法。
第十一方面,提供了一种芯片,用于执行指令,当所述芯片运行时,所述芯片执行上述第三方面或第三方面中任一项可能的实现方式中的方法;或者,所述芯片执行上述使得电子设备执行上述第四方面或第四方面中任一项可能的实现方式中的方法。
附图说明
图1是本申请实施例提供的一种电子设备的硬件结构示意图。
图2是本申请实施例提供的一种电子设备的软件结构框图。
图3是本申请实施例提供的一例应用场景的示例图。
图4是本申请实施例提供的一组GUI的示意图。
图5是本申请实施例提供的另一组GUI的示意图。
图6是本申请实施例提供的另一组GUI的示意图。
图7是本申请实施例提供的另一组GUI的示意图。
图8是本申请实施例提供的一例跨设备切换焦点的方法的示意性流程图。
图9是本申请实施例提供的另一例跨设备切换焦点的方法的示意性流程图。
图10是本申请实施例提供的又一例跨设备切换焦点的方法的示意性流程图。
图11是本申请实施例提供的又一例跨设备切换焦点的方法的示意性流程图。
图12是本申请实施例提供的一例跨设备切换焦点的装置的示意性框图。
图13是本申请实施例提供的电子设备的示意性结构图。
具体实施方式
下面将结合附图,对本申请实施例中的技术方案进行描述。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“复数个”或者“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
本申请实施例提供的方法可以应用于手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(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)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示 屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio  service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的App(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A 收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传 感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用嵌入式SIM(embedded-SIM,eSIM)卡,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。
应理解,本申请实施例中的电话卡包括但不限于SIM卡、eSIM卡、全球用户识别卡(universal subscriber identity module,USIM)、通用集成电话卡(universal integrated circuit card,UICC)等等。
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。
图2是本申请实施例的电子设备100的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。应用程序层可以包括一系列应用程序包。
如图2所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图2所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视 图以及显示图片的视图。
电话管理器用于提供电子设备100的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(media libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动。
应理解,本申请实施例中的技术方案可以用于等系统中。
图3为本申请实施例提供的一例跨设备切换焦点的应用场景300的示意图。
如图3所示,该应用场景300包括手机10、平板20和键盘30。其中,手机10和平板20之间距离很近(例如,手机10和平板20之间距离小于或等于40cm)。此外,手机10和平板20连接,或者,手机10和平板20登录有同一个账号。键盘30和平板20连接,换句话说,用户通过键盘30可在平板20上输入文本信息。
需要说明的是,图3中应用场景300中所示的设备仅为示例,其不应对本申请构成限制。例如,图3中还可以包括其他未示出的设备,又例如,图3中所示的平板20还可以是电脑。
下面,结合图4至图7,对图3所示的应用场景300中手机10和平板20的图形用户界面(graphical user interface,GUI)的变化进行介绍。
图4为本申请实施例提供的应用场景300中手机10和平板20的一组图形用户界面(graphical user interface,GUI)的示意图。
如图4中的(a)所示,手机10显示与联系人“XXX”的聊天记录的显示界面101,该显示界面101显示联系人“XXX”的名称1010、联系人“XXX”的头像1011、用户与联系人“XXX”聊天记录的内容1012、附加功能控件1013、文本输入框1014、表情控件1015、以及发送控件1016。其中,文本输入框1014中可以用于文本输入。此时,由于键盘30的焦点不在手机10上,因此,图4中的(a)所示的文本输入框1014没有文本输入且没有光标,即此时文本输入框1014不处于正在输入文本的状态。
如图4中的(a)所示,平板20显示文本的显示界面201,该显示界面201显示“XXX”文本信息。此时,由于键盘30的焦点在平板20上,因此,平板20可以显示提示信息A,来提示用户键盘30的焦点在平板20上,用户可通过键盘30在平板20上输入信息。
例如,如图4中的(a)所示,提示信息A可以包括以下至少一项:光标2011、图标2012、“输入中…”的文本信息。此时,光标2011在该显示界面201中处于闪烁的状态,图标2012在该显示界面201上处于高亮状态。
当平板20确定用户注视的区域属于手机10所在区域,平板20控制手机10在显示界面101上显示提示信息B,来提示用户可将键盘30的焦点由平板20切换至手机10的文本输入框1014。此时,用户还不能通过键盘30在文本输入框1014中输入信息。
例如,如图4中的(b)所示,提示信息B可以包括以下至少一项:图标1017、“点击回车进行输入” 的文本信息、光标1018。此时,图标1017在该显示界面101上处于灰色状态,光标1018在该显示界面101中为虚线光标、和/或处于不闪烁的状态。
示例性地,该提示信息B可以显示在文本输入框1014的附近。
如图4中的(b)所示,图标1017、“点击回车进行输入”的文本信息显示在文本输入框1014的附近。光标1018显示在文本输入框1014中。
关于平板20确定用户注视的区域的方案可以参考下文图8中平板20确定用户注视的区域的方案,这里先不赘述。
若此时用户想将键盘30的焦点由平板20切换至手机10的文本输入框1014,用户可在键盘30上点击回车键。当键盘30检测到用户点击回车键后,平板20将键盘30的焦点由平板20切换至手机10的文本输入框1014。在键盘30的焦点由平板20切换至手机10的文本输入框1014后,用户便可以通过键盘30在文本输入框1014中输入信息。
可选地,在键盘30的焦点由平板20切换至手机10的文本输入框1014后,手机10还可以显示提示信息C,来提示用户键盘30的焦点已切换至手机10的文本输入框1014。
例如,如图4中的(c)所示,提示信息C可以包括以下至少一项:图标1019、“输入中…”的文本信息、光标1020。此时,图标1019在该显示界面101上处于高亮状态,光标1020在该显示界面101中为实线光标、和/或处于闪烁的状态。
示例性地,该提示信息C可以显示在文本输入框1014的附近。
如图4中的(c)所示,图标1019、“输入中…”的文本信息显示在文本输入框1014的附近。光标1020显示在文本输入框1014中。
此外,平板20的显示界面201中不再显示提示信息A。此时,用户无法通过键盘30对平板20的显示界面201所显示的文本进行编辑。
例如,如图4中的(c)所示,平板20的显示界面201中不再显示光标2011、图标2012、和“输入中…”的文本信息。
图5为本申请实施例提供的应用场景300中手机10和平板20的另一组GUI的示意图。
如图5中的(a)所示,手机10显示搜索网页的显示界面111,该显示界面111显示网址输入框1111和搜索词输入框1112,网址输入框1111中显示有“XXXX:XXXX//XX”文本信息。其中,网址输入框1111和搜索词输入框1112中均可以用于文本输入。此时,由于键盘30的焦点不在手机10上,因此,图5中的(a)所示的网址输入框1111和搜索词输入框1112中均没有光标,即此时网址输入框1111和搜索词输入框1112均不处于正在输入文本的状态。
图5中的(a)所示的平板20的GUI与图4中的(a)所示的平板20的GUI相同,关于图5中的(a)所示的平板20的GUI的描述可参考上文图4中的(a)的相关描述,这里不再赘述。
当平板20确定用户注视的区域属于手机10所在区域,平板20控制手机10在显示界面111上显示提示信息D,来提示用户可将键盘30的焦点由平板20切换至手机10的输入框中。此时,用户还不能通过键盘30在手机10的输入框中输入信息。
例如,如图5中的(b)所示,提示信息D包括以下至少一项:图标1113、“点击回车进行输入”的文本信息、光标1114。此时,图标1113在该显示界面111上处于灰色状态、光标1114在该显示界面111中为虚线光标、和/或处于不闪烁的状态。
由于手机10上显示有两个输入框(网址输入框1111和搜索词输入框1112),因此,提示信息D可显示在其中一个输入框(手机10上一次焦点所在的输入框或者手机10的显示界面111上的第一个输入框)的附近,来提示用户可将键盘30的焦点由平板20切换至手机10的提示信息D附近的输入框中。
例如,如图5中的(b)所示,图标1113、“点击回车进行输入”的文本信息显示在网址输入框1111的附近。光标1114显示在网址输入框1111中。
在一个示例中,若此时用户想将键盘30的焦点由平板20切换至手机10的搜索词输入框1112,用户可在键盘30上点击Tab键。当键盘30检测到用户点击Tab键后,平板20控制手机10调整其显示界面111上显示的提示信息D的位置。
例如,当键盘30检测到用户点击Tab键后,如图5中的(c)所示,平板20控制手机10,将图标1113、“点击回车进行输入”的文本信息移动至搜索词输入框1112的附近,将光标1114移动到移动至搜索词输入框1112。
当键盘30检测到用户点击回车键后,平板20将键盘30的焦点由平板20切换至手机10的搜索词输入框1112。在键盘30的焦点由平板20切换至手机10的搜索词输入框1112后,用户便可以通过键盘30在搜索词输入框1112中输入信息。
可选地,在键盘30的焦点由平板20切换至手机10的搜索词输入框1112后,手机10还可以显示提示信息E,来提示用户键盘30的焦点已切换至手机10的搜索词输入框1112。
例如,如图5中的(d)所示,提示信息E可以包括以下至少一项:图标1115、“输入中…”的文本信息、光标1116。此时,图标1115在该显示界面111上处于高亮状态,光标1116在该显示界面111中为实线光标、和/或处于闪烁的状态。
示例性地,该提示信息E可以显示在搜索词输入框1112的附近。
如图5中的(d)所示,图标1115、“输入中…”的文本信息显示在搜索词输入框1112的附近。光标1116显示在搜索词输入框1112中。
在另一个示例中,若此时用户想将键盘30的焦点由平板20切换至手机10的网址输入框1111,用户可在键盘30上点击回车键。在键盘30的焦点由平板20切换至手机10的网址输入框1111后,用户便可以通过键盘30在网址输入框1111中输入信息。
可选地,在键盘30的焦点由平板20切换至手机10的网址输入框1111后,手机10还可以显示提示信息F,来提示用户键盘30的焦点已切换至手机10的网址输入框1111。
示例性地,提示信息F包括的内容可以和提示信息E包括的内容类似,这里不再赘述。
示例性地,该提示信息F可以显示在网址输入框1111的附近。
此外,当键盘30的焦点由平板20切换至手机10之后,平板20的显示界面201中不再显示提示信息A。此时,用户无法通过键盘30对平板20的显示界面201所显示的文本进行编辑。
例如,如图5中的(d)所示,平板20的显示界面201中不再显示光标2011、图标2012、和“输入中…”的文本信息。
通过图4和图5的示例,当键盘30的焦点在平板20上,手机10上显示有文本输入框,且平板20确定用户注视手机10所在区域时,平板20可控制手机10在手机10上提示用户,这样,用户可根据手机10上的提示,直接通过键盘30将键盘30的焦点由平板20切换至手机10的文本输入框中。操作比较简单,从而能够提高用户的体验。
图6为本申请实施例提供的应用场景300中手机10和平板20的又一组GUI的示意图。
如图6中的(a)所示,手机10显示聊天应用程序的显示界面121,该显示界面121显示联系人“XXX”的名称1210、联系人“XXX”的头像1211、用户与联系人“XXX”最近一次聊天记录的内容1212、用户与联系人“XXX”最近一次聊天记录的时间(上午8:00)。此时,该显示界面121上未显示有输入框。
如图6中的(a)所示,平板20显示平板20的桌面,平板20的桌面上包括多个应用程序的图标,该多个应用程序包括日历、图库、备忘录以及设置等。
当平板20确定手机10的显示界面121上未显示输入框,平板20可在其显示界面121上显示提示信息G,来提示用户可将键盘30的焦点由手机10切换至平板20。此时,用户还不能通过键盘30在平板20中输入信息。
例如,如图6中的(b)所示,提示信息G可以包括以下至少一项:图标2111、“点击回车进行输入”的文本信息。此时,图标2111在该显示界面211上处于灰色状态。
需要说明的是,此时,无论用户注视的区域是否属于平板20所在区域,只要平板20确定手机10的显示界面121上未显示输入框,平板20便可在其显示界面121上显示提示信息I。
若此时用户想将键盘30的焦点由手机10切换至平板20,用户可在键盘30上点击回车键。当键盘30检测到用户点击回车键后,平板20将键盘30的焦点由手机10切换至平板20。在键盘30的焦点由手机10切换至平板20后,用户便可以通过键盘30操作平板20。
可选地,在键盘30的焦点由手机10切换至平板20后,手机10还可以显示提示信息H,来提示用户键盘30的焦点已切换至平板20。
例如,如图6中的(c)所示,提示信息H可以包括以下至少一项:图标2112、“输入中…”的文本信息。此时,图标2112在该显示界面211上处于高亮状态。
通过图6的示例,当键盘30的焦点在手机10上,且手机10上未显示输入框时,平板20可在平板20上提示用户,这样,用户可根据平板20上的提示,直接通过键盘30将键盘30的焦点由手机10切换 至平板20中。操作比较简单,从而能够提高用户的体验。
图7为本申请实施例提供的应用场景300中手机10和平板20的又一组GUI的示意图。
如图7中的(a)所示,手机10显示与联系人“XXX”的聊天记录的显示界面121,该显示界面121显示联系人“XXX”的名称1210、联系人“XXX”的头像1211、用户与联系人“XXX”聊天记录的内容1212、附加功能控件1213、文本输入框1214、表情控件1215、以及发送控件1216。其中,文本输入框1214中可以用于文本输入。
此时,由于键盘30的焦点在手机10上,因此,手机10可以显示提示信息L,来提示用户键盘30的焦点在手机10的文本输入框1214中,用户可通过键盘30在文本输入框1214中输入信息。
例如,图7中的(a)所示,提示信息L可以包括以下至少一项:图标1217和“输入中…”的文本信息。此时,图标1217在该显示界面121中处于高亮状态。
可选地,平板20还可以突出显示文本输入框1214。
例如,如图7中的(a)所示,手机10还可以在文本输入框1214的周围显示框1218,来突出显示文本输入框1214。
当平板20确定用户注视的区域属于平板20所在区域,平板20可在其显示界面211上显示提示信息I,来提示用户可将键盘30的焦点由手机10切换至平板20。此时,用户还不能通过键盘30在平板20中输入信息。
例如,如图7中的(b)所示,提示信息I可以包括以下至少一项:图标2113、“点击回车进行输入”的文本信息。此时,图标2113在该显示界面221上处于灰色状态。
由于平板20上显示有两个输入框(网址输入框2211和搜索词输入框2212),因此,提示信息I可显示在其中一个输入框(平板20上一次焦点所在的输入框或者平板20的显示界面221上的第一个输入框)的附近,来提示用户可将键盘30的焦点由手机10切换至平板20的提示信息I附近的输入框中。
例如,如图7中的(b)所示,图标2213、“点击回车进行输入”的文本信息显示在网址输入框2211的附近。
需要说明的是,此时,无论手机10上是否显示有输入框,只要平板20确定用户注视的区域属于平板20所在区域,平板20便可在其显示界面211上显示提示信息I。
在一个示例中,若此时用户想将键盘30的焦点由手机10切换至平板20的搜索词输入框2212,用户可在键盘30上点击Tab键。当键盘30检测到用户点击Tab键后,平板20可调整其显示界面221上显示的提示信息I的位置。
例如,当键盘30检测到用户点击Tab键后,如图7中的(c)所示,平板20将图标2213、“点击回车进行输入”的文本信息移动至搜索词输入框2212的附近。
当键盘30检测到用户点击回车键后,平板20将键盘30的焦点由手机10切换至平板20的搜索词输入框2212。在键盘30的焦点由手机10切换至平板20的搜索词输入框2212后,用户便可以通过键盘30在搜索词输入框2212中输入信息。
可选地,在键盘30的焦点由手机10切换至平板20的搜索词输入框2212后,手机10还可以显示提示信息J,来提示用户键盘30的焦点已切换至平板20的搜索词输入框2212。
例如,如图7中的(d)所示,提示信息J可以包括以下至少一项:图标2214、“输入中…”的文本信息。此时,图标2214在该显示界面221上处于高亮状态。
示例性地,该提示信息J可以显示在搜索词输入框2212的附近。
如图7中的(d)所示,图标2214、“输入中…”的文本信息显示在搜索词输入框2212的附近。
可选地,在该示例中,如图7中的(d)所示,搜索词输入框2212中可不再显示“搜索词”。
可选地,在键盘30的焦点由手机10切换至平板20的搜索词输入框2212后,平板20还可以突出显示搜索词输入框2212。
例如,如图7中的(d)所示,平板20还可以在网址输入框2211的周围显示框2215,来突出显示搜索词输入框2212。
在另一个示例中,若此时用户想将键盘30的焦点由手机10切换至平板20的网址输入框2211,用户可在键盘30上点击回车键。在键盘30的焦点由手机10切换至平板20的网址输入框2211后,用户便可以通过键盘30在网址输入框2211中输入信息。
可选地,在键盘30的焦点由手机10切换至平板20的网址输入框2211后,平板20还可以显示提示 信息K,来提示用户键盘30的焦点已切换至手机10的网址输入框2211。
示例性地,提示信息K包括的内容可以和提示信息J包括的内容类似,这里不再赘述。
示例性地,该提示信息K可以显示在网址输入框2211的附近。
可选地,在键盘30的焦点由手机10切换至平板20的网址输入框2211后,平板20还可以突出显示网址输入框2211。
此外,手机10的显示界面121中不再显示提示信息L。此时,用户无法通过键盘30在手机10的文本输入框1214中输入信息。
例如,如图7中的(d)所示,手机10的显示界面121中不再显示光标1218、图标1217、和“输入中…”的文本信息。
通过图7的示例,当键盘30的焦点在手机10上,且用户注视的区域属于平板20所在区域时,平板20可在平板20上提示用户,这样,用户可根据平板20上的提示,直接通过键盘30将键盘30的焦点由手机10切换至平板20中。操作比较简单,从而能够提高用户的体验。
下面,分别结合图8和图9,对本申请实施例提供的跨设备切换焦点的方法进行介绍。该方法可应用于应用场景300中。
图8为本申请实施例提供的跨设备切换焦点的方法200。
如图8所示,方法200包括S210至S350。下面对S210至S350进行详细介绍。
应理解,图8所示的方法200不一定包括S210至S350中的每个步骤,关于S210至S350这些步骤之间的关系下文进行详细描述,这里暂不赘述。
S210,平板20确定是否满足条件1。
条件1包括:平板20连接有键盘30,以及,平板20与手机10连接、或平板20与手机10登录有同一账号。
平板20与键盘30可以是有线连接,也可以是无线连接,本申请实施例对此不作限定。
本申请实施例涉及的账号可以是系统账号,也可以是第三方账号(如应用程序的登录账号),本申请实施例对此不作限定。
可选地,在一些实施例中,条件1还可以包括:平板20和手机10之间的距离小于或等于第五阈值(如第五阈值可以为40cm)。
示例性地,平板20可检测手机10发送的信号,并基于手机10发送的信号,确定平板20与目标设备之间的距离是否小于或等于第五阈值。
例如,平板20可向手机10发送探测信号,手机10在收到探测信号之后,向平板20发送响应信号。这样,平板20在接收到手机10发送的响应信号之后,根据响应信号的强度,确定平板20与目标设备之间的距离是否小于或等于第五阈值。
本申请实施例对目标设备的数量不作限定。为了方便描述,以下均以目标设备为手机10为例,对方法200进行描述。
在平板20确定不满足条件1的情况下,平板20不执行任何步骤。在平板20确定满足条件1的情况下,平板20执行S230。
可选地,在一些实施例中,平板20还可以根据S220,确定是否执行S230。
S220,平板20确定手机10是否满足条件2。
条件2包括以下至少一项:手机10显示有输入框、手机10的显示界面的底部显示有输入框、或手机10的显示界面为目标应用程序的显示界面。其中,目标应用程序可以包括聊天类应用程序、搜索类应用程序(如浏览器类应用程序)、办公类应用程序、学习类应用程序等。
当条件2包括手机10显示有输入框、手机10的显示界面的底部显示有输入框、或手机10的显示界面为目标应用程序的显示界面中的至少两项时,平板20对该至少两项的先后判断顺序不作限定。
在一个示例中,如图8所示,S220包括S221和S222。在另一个示例中,S220仅包括S222,不包括S221。此时,手机10可以周期性地执行S222。下面详细介绍S221和S222。
S221,平板20可以向手机10发送查询信息1。相应地,手机10接收来自平板20发送的查询信息1。其中,查询信息1用于查询:手机10的显示界面上是否显示输入框、手机10的显示界面的底部是否显示有输入框、或手机10的显示界面是否为目标应用程序的显示界面。
示例性地,手机10可以根据手机10的显示界面上的布局(layout)查看是否有输入(input)控件, 若手机10的显示界面上的布局中有输入控件,则手机10的显示界面上包括文本输入框;若手机10的显示界面上的布局中没有输入控件,则手机10的显示界面上不包括文本输入框。
示例性地,手机10可以根据手机10的显示界面上的布局(layout)查看是否有输入控件,并确定输入控件是否在手机10的显示界面的底部,若手机10的显示界面上的布局中有输入控件、且输入控件在手机10的显示界面的底部,则手机10的显示界面上包括文本输入框;若手机10的显示界面上的布局中没有输入控件,则手机10的显示界面上不包括文本输入框。
示例性地,手机10可以根据手机10的显示界面上的布局(layout)查看手机10的显示界面对应的应用程序的名称,并确定应用程序的名称是否为目标应用程序的名称,若手应用程序的名称不是目标应用程序的名称,则手机10的显示界面不是目标应用程序的显示界面;若手机10的显示界面上的布局中没有输入控件,则手机10的显示界面为目标应用程序的显示界面。
S222,手机10向平板20发送响应信息1。相应地,平板20接收来自手机10发送的响应信息1。其中,响应信息1用于指示:手机10的显示界面上是否显示输入框、手机10的显示界面的底部是否显示有输入框、或手机10的显示界面是否为目标应用程序的显示界面。
当响应信息1用于指示:手机10的显示界面上未显示输入框、手机10的显示界面的底部未显示有输入框、或手机10的显示界面不是目标应用程序的显示界面时,平板20确定不执行S230。当响应信息1用于指示:手机10的显示界面上显示有输入框、手机10的显示界面的底部显示有输入框、或手机10的显示界面是目标应用程序的显示界面时,平板20确定执行S230。
当平板20满足条件2的情况下,平板20才执行S230,即平板20才获取用户的视线,这样,可以降低平板20的功耗。
S230,平板20获取用户的视线。
在一个示例中,若平板20上设置有摄像头,此时,平板20可以开启摄像头,通过摄像头采集用户的图像,并根据所采集的用户的图像,来获取用户的视线。
例如,首先,平板20可以根据采集的用户的图像,得到用户瞳孔的位置。其次,平板20根据用户瞳孔的位置,得到用户瞳孔的方向。最后,平板20根据用户瞳孔的方向,获取用户的视线。
在另一个示例中,平板20也可以从其他可采集用户的图像的设备获取用户的图像,并根据获取的用户的图像,来获取用户的视线。
例如,手机10上设置有摄像头,手机10可以开启摄像头,通过手机10的摄像头采集用户的图像,并将采集的用户的图像传给平板20,从而平板20根据手机10采集的用户的图像,来获取用户的视线。
S240,平板20确定用户的视线不在平板20上。
示例性的,若S230获取的用户的视线与平板20的屏幕的延展面有交点,那么平板20确定用户的视线不在平板20上。
例如,若用户的视线与平板20的屏幕向左/右/上/下延展的延展面有交点,那么,用户的视线不在平板20上,且用户的视线是看向平板20的屏幕的左边/右边/上边/下边。
S250,平板20确定用户的视线是否在手机10上。
示例性地,平板20可以先确定手机10相对于平板20的位置,然后,当用户的视线和手机10相对于平板20的位置一致,平板20可确定用户的视线在手机10上;当用户的视线和手机10相对于平板20的位置不一致,平板20可确定用户的视线不在手机10上。
用户的视线和手机10相对于平板20的位置一致可以理解为:手机10在平板20的左边/右边/上边/下边,用户的视线是看向平板20的屏幕的左边/右边/上边/下边。
在一个示例中,平板20可通过检测手机10发送的信号,并基于手机10发送的信号,确定手机10相对于平板20的位置。
例如,若平板20的左右位置设置有麦克风,当平板20的左边/右边的麦克风先检测手机10发送的信号,那么,平板20可确定手机10在平板20的左边/右边。
又例如,若平板20的上下位置设置有麦克风,当平板20的上边/下边的麦克风先检测手机10发送的信号,那么,平板20可确定手机10在平板20的上边/下边。
在另一个示例中,若用户通过平板20设置了手机10相对于平板20的位置,那么,平板20可通过用户的设置,获取手机10相对于平板20的位置。
可选地,在一些实施例中,平板20在执行S250的过程中,不仅要考虑用户的视线和手机10相对于 平板20的位置,还需要考虑用户的视线相对于平板20而言是否在目标范围内。当用户的视线和手机10相对于平板20的位置一致,且用户的视线相对于平板20而言在目标范围内,则平板20可确定用户的视线在手机10上。
示例性地,目标范围可以理解为与平板20的法线之间的夹角小于或等于目标角度。例如,目标角度可以为30°或45度等。
若平板20确定用户的视线不在手机10上,此时,平板20不需要执行S260。此时,方法200仅包括S210至S250。
若平板20确定用户的视线在手机10上,平板20需要执行S260。
S260,平板20确定键盘30的焦点在平板20上还是在手机10。
若平板20确定键盘30的焦点不在平板20上而在手机10上,此时由于用户的视线也在手机10上,因此,平板20不需要切换键盘30的焦点,即平板不需要执行S270。此时,方法200仅包括S210至S260。
若平板20确定键盘30的焦点在平板20上而不在手机10上,而由于此时用户的视线是手机10上,因此,平板20需要将键盘30的焦点切换至用户的视线所在的手机10上,即平板20需要执行S270。
可选地,在S270之前,若平板20已确定手机10显示有输入框,平板20在S260之后,可直接执行S270。在S270之前,若平板20未确定手机10是否显示有输入框,那么,在S260之后,平板20需要确定手机10是否显示有输入框,并在手机10显示有输入框的情况下,才去执行S270。
关于平板20如何确定手机10是否显示有输入框可参考上文S221和S222的相关描述,这里不再赘述。
S270,平板20向手机10发送指示信息1。相应地,手机10接收来自平板20的指示信息1。
其中,指示信息1用于指示键盘30上的输入可切换至手机10的文本输入框。
S280,手机10输出提示信息1。
其中,提示信息1用于指示用户可将键盘30的焦点切换至手机10的文本输入框。
示例性地,手机10可以显示提示信息1或播放提示信息1。
本申请实施例对提示信息1的具体显示形式和显示位置不作限定。
在一个示例中,提示信息1可以仅指示用户可将键盘30的焦点切换至手机10的文本输入框。
例如,如图4中的(b)所示,提示信息1可以包括图标1017和光标1018,图标1017显示在文本输入框1014的附近,光标1018显示在文本输入框1014中。
又例如,如图5中的(b)所示,提示信息1可以包括图标1113和光标1114,图标1113显示在网址输入框1111的附近,光标1114显示在网址输入框1111中。
在另一个示例中,提示信息1可以指示在键盘30上输入操作1时,可将键盘30的焦点切换至手机10的文本输入框。
例如,如图4中的(b)所示,提示信息1可以包括图标1017、“点击回车进行输入”的文本信息、光标1018,图标1017和“点击回车进行输入”的文本信息显示在文本输入框1014的附近,光标1018显示在文本输入框1014中。
又例如,如图5中的(b)所示,提示信息1可以包括图标1113和“点击回车进行输入”的文本信息、光标1114,图标1113和“点击回车进行输入”的文本信息显示在网址输入框1111的附近,光标1114显示在网址输入框1111中。
用户在看到手机10中的提示信息1后,用户可在键盘30上进行操作1,便可将键盘30的焦点切换至手机10的文本输入框。此时,键盘30执行S290。
S290,键盘30检测操作1。
当键盘30未检测到操作1,键盘30不执行S300。当键盘30检测到操作1,键盘30执行S300。
S300,键盘30向平板20发送切换信息1。相应地,平板20接收来自键盘30的切换信息1。
其中,切换信息1用于指示键盘30的焦点切换至手机10的文本输入框。
S310,平板20将键盘30的焦点切换至手机10。
示例性地,平板20可以将平板20上的文本输入框处于失去键盘30的焦点的状态,并指示手机10,让手机10的文本输入框处于获取键盘30的焦点的状态。
在S310之后,用户便可通过键盘30在手机10的文本输入框中输入信息。此时,输入信息还是先传 给平板20,然后平板20在将输入信息传给手机10,以便手机10显示。
可选地,在一些实施例中,在S310之后,手机10还可以显示提示信息2,该提示信息2用于指示用户通过键盘30可在手机10的文本输入框中输入信息。
示例性地,手机10可以显示提示信息2或播放提示信息2。
本申请实施例对提示信息2的具体显示形式和显示位置不作限定。
例如,如图4中的(c)所示,提示信息2包括图标1019、“输入中…”的文本信息和光标1020。此时,图标1019、“输入中…”的文本信息显示在文本输入框1014的附近。光标1020显示在文本输入框1014中。
又例如,如图5中的(d)所示,提示信息2包括图标1115、“输入中…”的文本信息和光标1116,图标1115、“输入中…”的文本信息显示在搜索词输入框1112的附近。光标1116显示在搜索词输入框1112中。
可选地,在一些实施例中,键盘30还可以执行S320。
S320,键盘30检测用户的输入信息1。
当键盘30未检测到用户的输入信息1,键盘30不会执行S330。当键盘30检测到用户的输入信息1,键盘30执行S330。
S330,键盘30向平板20发送输入信息1。相应地,平板20接收来自键盘30的输入信息1。
平板20在接收到输入信息1之后,平板20执行S340。
S340,平板20向手机10发送输入信息1。相应地,手机10接收来自平板20的输入信息1。
S350,手机10在输入框中显示输入信息1。
可选地,在一些实施例中,在S350后,若平板20确定手机10的显示界面上没有输入框,平板20可将键盘30的焦点重新切换至平板20上。这样,用户可通过键盘30在平版30上重新输入信息。
可选地,在一些实施例中,若手机10显示的输入框为多个,S280涉及的提示信息1用于指示用户可将键盘30的焦点切换至提示信息1附近的输入框。用户可通过键盘30,切换用户想要将键盘30的焦点切换至手机10的哪个输入框。此时,在S280和S290之间,用户可在键盘30上进行操作2(如点击Tab键后),这样,当键盘30检测到操作2后,可通过平板20,将手机10上显示的提示信息1的位置调至下一个输入框。此后,用户在键盘30上进行操作1,便可将键盘30的焦点切换至手机10的下一个输入框。此时,上文S300中的切换信息1可用切换信息2替代,上文S310中平板20将键盘30的焦点切换至手机10的下一个输入框,上文S350中的输入框为手机10的下一个输入框。其中,切换信息2用于指示键盘30上的焦点切换至手机10的下一个输入框。
例如,图5中的(b)所示,手机10显示的输入框包括网址输入框1111和搜索词输入框1112,提示信息1一开始显示在网址输入框1111的附近,此时,提示信息1用于指示用户可将键盘30的焦点切换至手机10的网址输入框1111。若用户不想将键盘30上的焦点切换至手机10的网址输入框1111,想要将键盘30的焦点切换至手机10的搜索词输入框1112,用户可在键盘30上进行操作2(如点击Tab键后),这样,当键盘30检测到操作2后,可通过平板20,将手机10上显示的提示信息1的位置调至搜索词输入框1112的附近,此时,提示信息1用于指示用户可将键盘30的焦点切换至手机10的搜索词输入框1112。
用户之前通过键盘30在平板20上输入信息,若手机10上显示有输入框,用户想要通过键盘30在手机10的输入框中输入信息,此时,用户可以将视线移至手机10上,这样,通过方法200,当平板20确定用户的视线在手机10上,且键盘30的焦点在平板20上时,手机10可以输出提示信息,用户可根据提示信息,通过键盘30将键盘30的焦点切换至用户的视线所在的手机10的输入框中。此后,用户便可通过键盘30在手机10的输入框中输入信息。此时,手机10的屏幕可看成是平板20的扩展屏,即用户通过键盘30输入的信息都是经由平板20传给手机10的。这样,用户的操作简单,提高了用户的体验。
此外,当手机10上显示有多个输入框时,用户还可以通过键盘30,对键盘30的焦点的切换至手机10的输入框进行调整,这样,用户的操作简单,进而进一步提高了用户的体验。
图9为本申请实施例提供的跨设备切换焦点的方法300。
如图9所示,方法300包括S210、S230、S410至S480。其中,S210和S230可以参考上文图8中的相关描述,这里不再赘述。方法300可以包括S230和S410,也可以不包括S230和S410,即为S230和S410可选地的步骤。下面,详细介绍S410至S480。
应理解,图9所示的方法300不一定包括S210、S230、S410至S480中的每个步骤,关于S210、 S230、S410至S480这些步骤之间的关系下文进行详细描述,这里暂不赘述。
S410,平板20确定是否满足条件3。
在一个示例中,条件3包括:键盘30的焦点在手机10上、用户的视线在平板20上。
在该示例中,示例性地,平板20可以执行图8中所述的S230,并根据S230获取的用户的视线,确定用户的视线是否在平板20上。
若S230获取的用户的视线与平板20的屏幕的延展面有交点,那么平板20确定用户的视线不在平板20上。那么,平板20不会执行S420。
若S230获取的用户的视线与平板20的屏幕有交点,那么平板20确定用户的视线在平板20上。那么,平板20需要执行S420。
在另一个示例中,条件3包括:键盘30的焦点在手机10上、手机10上未显示有输入框。
在该示例中,S420可以包括如图9所示的S421和S422;S420也可以不包括如图9所示的S422、不包括如图9所示的S421,此时,手机10可以周期性地执行S442。下面详细介绍S421和S422。
S421,平板20可以向手机10发送查询信息2。相应地,手机10接收来自平板20发送的查询信息2。其中,查询信息2用于查询手机10的显示界面上是否包括输入框。
关于手机10如何判断其显示界面上是否包括输入框的示例可以参考上文S221中的相关描述,这里不再赘述。
S422,手机10向平板20发送响应信息2。相应地,平板20接收来自手机10发送的响应信息2。其中,响应信息2用于指示手机10的显示界面上是否包括文本输入框。
当响应信息2用于指示手机10的显示界面上包括文本输入框时,平板20确定不执行S420。当响应信息2用于指示手机10的显示界面上不包括文本输入框时,平板20确定执行S420。
S420,平板20输出提示信息2。
其中,提示信息2用于指示用户可将键盘30的焦点切换至平板20。
示例性地,平板20可以显示提示信息2或播放提示信息2。
本申请实施例对提示信息2的具体显示形式和显示位置不作限定。
在一个示例中,提示信息2可以仅指示用户可将键盘30的焦点切换至平板20。
例如,如图6中的(b)所示,提示信息2包括图标2111,提示信息2显示在“XXX”文本信息的附近。
又例如,如图7中的(b)所示,提示信息2包括图标2213,提示信息2显示在网址输入框2211的附近。
在另一个示例中,提示信息2可以指示在键盘30上输入操作1时,可将键盘30的焦点切换至平板20。
例如,如图6中的(b)所示,提示信息2包括图标2111和“点击回车进行输入”的文本信息,提示信息2显示在“XXX”文本信息的附近。
又例如,如图7中的(b)所示,提示信息2包括图标2213和“点击回车进行输入”的文本信息,提示信息2显示在网址输入框2211的附近。
用户在看到平板20中的提示信息2后,用户可在键盘30上进行操作1,便可将键盘30的焦点切换至平板20的文本。此时,键盘30执行S430。
S430,键盘30检测操作1。
当键盘30未检测到操作1,键盘30不执行S440。当键盘30检测到操作1,键盘30执行S440。
S440,键盘30向平板20发送切换信息3。相应地,平板20接收来自键盘30的切换信息3。
其中,切换信息3用于指示键盘30的焦点切换至平板20。
S450,平板20将键盘30的焦点切换至平板20。
示例性地,平板20可以指示手机10,让手机10的文本输入框中处于失去键盘30的焦点的状态,并使平板20上的文本输入框处于获取键盘30的焦点的状态。
在S450之后,用户便可通过键盘30在平板20的文本输入框中输入信息。
可选地,在一些实施例中,在S450之后,平板20还可以显示提示信息4,该提示信息4用于指示用户通过键盘30可在平板20上输入信息。
示例性地,平板20可以显示提示信息4或播放提示信息4。
本申请实施例对提示信息4的具体显示形式和显示位置不作限定。
例如,如图6中的(c)所示,提示信息4包括图标2112和“输入中…”的文本信息,提示信息4显示在平板20上的任意一个位置。
又例如,如图7中的(d)所示,提示信息4包括图标2214和“输入中…”的文本信息,提示信息4显示在搜索输入框2215的附近。
可选地,在一些实施例中,键盘30还可以执行S460。
S460,键盘30检测用户的输入信息2。
当键盘30未检测到用户的输入信息2,键盘30不会执行S470。当键盘30检测到用户的输入信息2,键盘30执行S470。
S470,键盘30向平板20发送输入信息2。相应地,平板20接收来自键盘30的输入信息2。
平板20在接收到输入信息2之后,平板20执行S480。
S480,平板20在输入框中显示输入信息2。
可选地,在一些实施例中,若平板20显示的输入框为多个,S420涉及的提示信息2指示用户可将键盘30的焦点切换至平板20的提示信息2附近的输入框。用户可通过键盘30,切换用户想要将键盘30的焦点切换至平板20的哪个输入框。此时,在S420和S430之间,用户可在键盘30上进行操作2(如点击Tab键后),这样,当键盘30检测到操作2后,可将平板20上显示的提示信息2的位置调至下一个输入框。此后,用户在键盘30上进行操作1,便可将键盘30的焦点切换至平板20的下一个输入框。此时,上文S440中的切换信息3可用切换信息4替代,上文S450中平板20将键盘30的焦点切换至平板20的下一个输入框,上文S480中的输入框为平板20的下一个输入框。其中,切换信息4用于指示键盘30的焦点切换至平板20的下一个输入框。
例如,图7中的(b)所示,平板20显示的输入框包括网址输入框2211和搜索词输入框2212,提示信息2一开始显示在网址输入框2211的附近,此时,提示信息2用于指示用户可将键盘30的焦点切换至平板20的网址输入框2211。若用户不想将键盘30的焦点切换至平板20的网址输入框2211,想要将键盘30的焦点切换至平板20的搜索词输入框2212,用户可在键盘30上进行操作2(如点击Tab键后),这样,当键盘30检测到操作2后,可将平板20上显示的提示信息2的位置调至搜索词输入框2212,此时,提示信息2用于指示用户可将键盘30的焦点切换至平板20的搜索词输入框2212。
用户之前通过键盘30在手机10上输入信息,若用户想要通过键盘30在平板20上输入信息,此时,用户可以将视线移至平板20上,也可以不用将视线移至平板20上,这样,通过方法300,当平板20确定手机10上没有输入框,且键盘30的焦点在手机10上时,平板20可以输出提示信息2。此时,由于键盘30始终是和平板20连接,即键盘30主要服务于平板20,因此,当平板20确定用户的视线在平板20上,且键盘30的焦点在手机10上时,平板20不需要判断其是否显示有输入框,直接输出提示信息2。用户可根据提示信息2,通过键盘30将键盘30的焦点切换至用户的视线所在的平板20上。此后,用户便可通过键盘30在平板20的输入框中输入信息。此时,手机10的屏幕不再看成是平板20的扩展屏。这样,用户的操作简单,提高了用户的体验。
此外,当平板20上显示有多个输入框时,用户还可以通过键盘30,对键盘30的焦点的切换至平板20的输入框进行调整,这样,用户的操作简单,进而进一步提高了用户的体验。
需要说明的是,无论是图8所示的方法200,还是图9所示的方法300,当平板20和手机10登录有同一账号,平板20与手机10可通过云端传输信息(如上文所述的查询信息1,响应信息1、指示信息1、输入信息1等)。当平板20和手机10连接,平板20与手机10可通过两者建立的连接方式传输信息(如上文所述的查询信息1,响应信息1、指示信息1、输入信息1等等)。
此外,图4至图9中键盘30的焦点可理解为用户通过键盘30输入的信息显示的位置。例如,键盘30的焦点在平板20上,即用户通过键盘30可在平板20上输入信息。又例如,键盘30的焦点在手机10的文本输入框1014上,即用户通过键盘30可在手机10的文本输入框1014中输入信息。
下面,结合图10和图11对本申请实施例提供的跨设备切换焦点的方法进行介绍。
图10和图11所示的跨设备切换焦点的方法可以应用于包括输入设备、第一电子设备和第二电子设备的系统中。
其中,输入设备与第一电子设备连接。输入设备与第一电子设备可以有线连接,也可以无线连接,本申请实施例对此不作限定。
第一电子设备与第二电子设备连接、和/或第一电子设备上与第二电子设备上登录有同一账号。
第一电子设备上与第二电子设备上登录的同一账号的类型可以是系统账号也可以是第三方账号(如,应用程序的登录账号),本申请实施例对此不作限定。
例如,输入设备可以是图3至图9中所示的键盘30,第一电子设备可以是图3至图9中所示的平板20,第二电子设备可以是图3至图9中所示的手机10。
又例如,输入设备可以是键盘,第一电子设备可以是电脑,第二电子设备可以是手机。
可选地,第一电子设备与第二电子设备之间的距离可以小于或等于第五阈值。
图10为本申请实施例提供的一例跨设备切换焦点的方法500的示意性流程图。
如图10所示,方法500包括S510和S520。下面,详细介绍S510和S520。
S510,当用户注视的区域属于第二电子设备所在的区域、以及第二电子设备上显示有第一输入框时,第一电子设备向第二电子设备发送第一指示信息。相应地,第二电子设备接收第一电子设备发送的第一指示信息。
其中,第一电子设备上存在输入设备的焦点,即输入设备的焦点在第一电子设备上。
示例性地,第一指示信息可以用于指示输入设备的焦点可切换至第一输入框。
可选地,在S510之前,第一电子设备可以执行S530。
S530,第一电子设备确定用户注视的区域是否属于第二电子设备所在的区域、第二电子设备上是否显示有第一输入框、以及输入设备的焦点在第一电子设备上。
本申请实施例对第一电子设备确定用户注视的区域是否属于第二电子设备所在的区域、第二电子设备上是否显示有第一输入框、以及输入设备的焦点在第一电子设备上之间的顺序不作限定。
示例性地,第一电子设备可以先确定第二电子设备上是否显示有第一输入框,再去确定用户注视的区域,然后再去确定输入设备的焦点是否在第一电子设备上。这样,可以降低第一电子设备的功耗。
在一个示例中,第一电子设备可以主动从第二电子设备获取第二电子设备上是否有第一输入框。
具体地,第一电子设备确定第二电子设备上显示有第一输入框可以包括S531a至S533a。下面详细介绍S531a至S533a。
S531a,第一电子设备向第二电子设备发送第一查询信息。相应地,第二电子设备接收来自第一电子设备的第一查询信息。
其中,第一查询信息用于查询第二电子设备上是否显示有第一输入框。
当第二电子设备接收到第一查询信息后,确定其是否显示有第一输入框,并在其显示有第一输入框的情况下,执行S532a。关于第二电子设备如何确定其是否显示有第一输入框的方案,可以参考上文图8的S221中平板20确定其是否显示有文本输入框的相关描述,这里不再赘述。
S532a,第二电子设备响应于第一查询信息,向第一电子设备发送第一确认信息。相应地,第一电子设备接收来自第二电子设备的第一确认信息。
其中,第一确认信息用于指示第二电子设备上显示有第一输入框。
S533a,第一电子设备响应于第一确认信息,确定第二电子设备上显示有第一输入框。
在另一个示例中,第二电子设备可以主动向第一电子设备发送第二电子设备上是否有第一输入框。即,第一电子设备可以被动从第二电子设备获取第二电子设备上是否有第一输入框。
具体地,第一电子设备确定第二电子设备上显示有第一输入框可以包括S531b和S532b。下面详细介绍S531a和S532b。
S531b,当第二电子设备确定其显示有第一输入框,第二电子设备向第一电子设备发送第一确认信息。相应地,第一电子设备接收来自第二电子设备的第一确认信息。
关于第一确认信息的描述可以参见S532a中的相关描述,这里不再赘述。
S532b,第一电子设备响应于第一确认信息,确定第二电子设备上显示有第一输入框。
示例性地,若第一电子设备上设置有摄像头,第一电子设备可以通过摄像头采集用户的图像,并根据所采集的用户的图像,确定用户的视线。当用户的视线与第一电子设备沿第一方向(如左/右/上/下)的延展面有交点、且第二电子设备位于第一电子设备的第一方向上时,则用户注视的区域属于第二电子设备所在的区域;当用户的视线与第一电子设备有交点时,则用户注视的区域不属于第二电子设备所在的区域,而属于第一电子设备所在的区域。关于根据用户的图像,确定用户的视线的方案,可以参考上文图8和图9中平板20根据用户的图像,判断用户注视的区域的相关描述,这里不再赘述。
示例性地,在一些实施例中,第一电子设备可以在确定第二电子设备满足第二条件下,才去确定用 户注视的区域。这样,在第二电子设备满足第二条件的情况下,第一电子设备才开启摄像头,采集用户的图像,并根据采集的用户图像去确定用户注视的区域,进而可以降低第一电子设备的功耗。
其中,第二条件包括以下至少一项:第二电子设备上显示有第一输入框,第二电子设备上显示目标应用程序的显示界面,第二电子设备上显示有第一输入框、且第一输入框位于第二电子设备的显示界面的底部。
在一个示例中,第一电子设备可以主动从第二电子设备获取第二电子设备是否满足第二条件。
具体地,第一电子设备确定用户注视的区域属于第二电子设备所在的区域可以包括:第一电子设备向第二电子设备发送第二查询信息,第二查询信息用于指示第二电子设备是否满足第二条件;第二电子设备响应于第二查询信息,确定第二电子设备满足第二条件,向第一电子设备发送第二确定信息,第二确认信息用于指示第二电子设备满足第二条件;第一电子设备响应于第二确认信息,采集用户的图像,并根据图像,确定用户注视的区域属于第二电子设备所在的区域。
目标应用程序包括但不限于包括:聊天类应用程序、搜索类应用(如浏览器类应用程序)、办公类应用程序、学习类应用程序等。
在另一个示例中,第二电子设备可以主动向第一电子设备发送第二电子设备是否满足第二条件。即,第一电子设备可以被动从第二电子设备获取第二电子设备满足第二条件。
可选地,当输入设备的焦点在第一电子设备上,第一电子设备还可以输出第四提示信息,该第四提示信息用于指示输入设备的焦点在第一电子设备上。
示例性地,第一电子设备可以显示第四提示信息或播放第四提示信息。
示例性地,第四提示信息可以包括以下至少一项:第四光标、第四图标、第四文本信息、第四外框。其中,该第四光标显示在第一电子设备上文本待输入的位置,第四图标用于指示输入设备,第四文本信息用于指示用户可在第一电子设备上输入信息,第四外框包围第一电子设备上显示正在输入文本的输入框。
例如,第四光标可以是如图4中的(a)所示或如图5中的(a)所示的光标2011,第四图标可以是如图4中的(a)所示或如图5中的(a)所示的图标2012,第四文本信息可以是如图4中的(a)所示或如图5中的(a)所示的“输入中…”的文本信息。
关于第四光标、第四图标、第四文本信息的描述可分别参考上文图4中的(a)如图5中的(a)中关于光标2011、图标2012、“输入中…”的文本信息的相关描述,这里不再赘述。
需要说明的是,若第四提示信息包括第四图标和第四文本信息,那么,第四提示信息还用于指示输入设备。
S520,第二电子设备在接收到第一指示信息后,在第一输入框中显示输入设备的焦点,或者,输出第一提示信息。
其中,第一提示信息用于提示用户可将输入设备的焦点切换至第一输入框。
示例性地,第二电子设备可以显示第一提示信息或播放第一提示信息。
示例性地,第一提示信息可以包括以下至少一项:第一光标、第一图标、第一文本信息、第一外框。其中,该第一光标显示在第二电子设备上输入设备的焦点待切入的位置,第一图标用于指示用于切换输入设备的焦点的设备(即输入设备),第一文本信息用于指示第一操作,第一外框包围第二电子设备上输入设备的焦点待切入的输入框。
例如,第一光标可以是如图4中的(b)所示的光标1018,第一图标可以是如图4中的(b)所示的图标1017,第一文本信息可以是如图4中的(b)所示的“点击回车进行输入”的文本信息。
又例如,第一光标可以是如图5中的(b)所示的光标1114,第一图标可以是如图5中的(b)所示的图标1113,第一文本信息可以是如图5中的(b)所示的“点击回车进行输入”的文本信息。
关于第一光标、第一图标、第一文本信息的描述可分别参考上文图4中的(a)中关于光标1018、图标1017、“点击回车进行输入”的文本信息的相关描述,或者,关于第一光标、第一图标、第一文本信息的描述可分别参考上文图5中的(a)中关于光标1114、图标1113、“点击回车进行输入”的文本信息的相关描述这里不再赘述。
需要说明的是,若第一提示信息包括第一图标和第一文本信息,那么,第一提示信息还用于提示用户在输入设备上输入第一操作,可将输入设备的焦点切换至第一输入框。
在一个示例中,若第二电子设备上仅显示有一个输入框(即第一输入框),当S520中第二电子设备 是输出第一提示信息,那么,该第一提示信息可以用于提示用户可将输入设备的焦点切换至第一输入框,该第一提示信息显示在第一目标位置,第一目标位置与第一输入框之间的距离小于或等于第一阈值。也就是说,第一提示信息显示在第一输入框的附近,这样,用户便可以直观地获知输入设备的焦点待切换的输入框。
例如,如图4中的(b)所示,第一提示信息显示在文本输入框1014的附近(第一目标位置的一例)。
在另一示例中,若第二电子设备上显示有多个输入框,如多个输入框包括第一输入框和第二输入框,第一提示信息显示在第二目标位置,第二目标位置与第二输入框之间的距离小于或等于第二阈值。也就是说,第一提示信息显示在第二输入框的附近,这样,用户便可以直观地获知输入设备的焦点待切换的输入框。若用户想要调整第二电子设备上输入设备的焦点待切换的输入框,用户可在输入设备上进行第二操作,这样,输入设备响应于检测到第二操作,向第一电子设备发送第一切换信息,第一切换信息用于指示将第一提示信息的显示位置由第二目标位置调整至第一目标位置;第一电子设备响应于第一切换信息,向第二电子设备发送第一切换信息;第二电子设备响应于第一切换信息,将第一提示信息的显示位置由第二目标位置调整至第一目标位置。
示例性地,第二操作可以包括点击Tab键的操作。
例如,图5中的(b)所示,手机10显示的输入框包括网址输入框1111和搜索词输入框1112,第一提示信息一开始显示在网址输入框1111的附近,此时,键盘30的焦点可切换至手机10的网址输入框1111。若用户不想将键盘30的焦点切换至手机10的网址输入框1111,想要将键盘30的焦点切换至手机10的搜索词输入框1112,用户可在键盘30上点击Tab键后,键盘30可通过平板20,将手机10上显示的第一提示信息的位置调至搜索词输入框1112,此时,键盘30的焦点可切换至手机10的搜索词输入框1112。
其中,第二输入框为第二电子设备最近一次输入焦点所在的输入框;或者,第二输入框为第二电子设备的显示界面上的第一个输入框。
示例性地,第二电子设备中存储有第二电子设备每次输入焦点所在位置,这样,第二电子设备默认将第一提示信息显示在第二电子设备最近一次(上一次)输入焦点所在的第二输入框的附近。
应理解,第二电子设备的显示界面上的第一个输入框可以理解为:第二电子设备的显示界面上的输入框中,距离第二电子设备的显示界面的上边缘和左边缘最近的输入框即为第一个输入框。
需要说明的是,在S520中,若第二电子设备在第一输入框中显示输入设备的焦点,用户可以通过输入设备在第一文本输入框中输入信息。若第二电子设备上输出第一提示信息,用户还不能通过输入设备在第一文本输入框中输入信息。
此外,若第一提示信息和第四提示信息的类型相同(如第一提示信息包括第一光标,第四提示信息包括第四光标),那么第一提示信息和第四提示信息的显示效果不同。具体示例可参考上文图4中的(a)所示的第四提示信息的示例和图4中的(b)所示的第一提示信息的示例,或者,具体示例可参考图5中的(a)所示的第四提示信息的示例和图5中的(b)所示的第一提示信息的示例。
例如,第一光标和第四光标的显示效果不同。又例如,第一图标和第四图标的显示效果不同。又例如,第一外框和第四外框的显示效果不同。
示例性地,本申请涉及的显示效果可以包括显示颜色、显示大小、显示形态(如实线或虚线)、突出显示、不显示等,本申请对此不做限制。图4至图7中仅为显示效果的示例,其不应对本申请构成限制。
示例性地,在S520中,若第二电子设备在第一输入框中显示输入设备的焦点,那么,在S520之前,方法500还可以包括S540至S560;若第二电子设备输出第一提示信息,那么,在S520之后,方法500还可以包括S540至S560。下面详细介绍S540至S560。
S540,输入设备响应于检测到第一操作,向第一电子设备发送第三切换信息。相应地,第一电子设备接收来自输入设备的第三切换信息。
其中,第三切换信息用于指示将输入设备的焦点切换至第一输入框。
示例性地,第一操作可以是点击回车键的操作。
S550,第一电子设备响应于第三切换信息,控制第一电子设备处于失去输入设备的焦点的状态,并向第二电子设备发送第三指示信息。相应地,第二电子设备接收来自第一电子设备的第三指示信息。
示例性地,第三指示信息可以用于指示第一输入框处于获取输入设备的焦点的状态。
需要说明的是,本申请实施例对第一电子设备控制第一电子设备处于失去输入设备的焦点的状态的步骤和第一电子设备向第二电子设备发送第三指示信息的步骤之间的执行顺序不作限定。
S560,第二电子设备响应于第三指示信息,控制第二电子设备的第一输入框处于获取输入设备的焦点的状态。
可选地,在一些实施例中,在S550之后,第一电子设备可以不再显示第四提示信息。
可选地,在一些实施例中,在S560之后,第一电子设备还可以输出第二提示信息。其中,第二提示信息用于指示用户通过输入设备可在第一输入框中输入信息。
示例性地,第二电子设备可以显示第二提示信息或播放第二提示信息。
示例性地,第二提示信息可以包括以下至少一项:第二光标、第二图标、第二文本信息、第二外框。其中,该第二光标显示在第一输入框中,第二图标用于指示输入设备,第二文本信息用于指示用户可在第一输入框中输入信息,第二外框包围第一输入框。
例如,第二光标可以是如图4中的(c)所示的光标1020,第二图标可以是如图4中的(c)所示的图标1019,第二文本信息可以是如图4中的(c)所示的“输入中…”的文本信息。
又例如,第二光标可以是如图5中的(d)所示的光标1116,第二图标可以是如图5中的(b)所示的图标1115,第二文本信息可以是如图5中的(b)所示的“输入中…”的文本信息。
第二提示信息和第一提示信息的显示位置相同,第二提示信息和第一提示信息的显示效果不同。若第四提示信息和第一提示信息的显示效果不同,那么此时第二提示信息和第四提示信息的显示效果可以相同,也可以不同。
例如,第二光标和第一光标的显示位置相同,但是第二光标和第一光标的显示效果不同。又例如,第二图标和第一图标的显示位置相同,但是第二图标和第一图标的显示效果不同。又例如,第二外框和第一外框的显示相同,但是第二外框和第一外框的显示效果不同。
关于第二光标、第二图标、第二文本信息的描述可分别参考上文图4中的(c)中关于光标1020、图标1019、“输入中…”的文本信息的相关描述,或者,关于第二光标、第二图标、第二文本信息的描述可分别参考上文图5中的(c)中关于光标1116、图标1115、“输入中…”的文本信息的相关描述这里不再赘述。
可选地,在一些实施例中,在S560之后,输入设备便可将用户输入的信息通过第一电子设备传给第二电子设备,以便第二电子设备显示在其显示界面上。也就是说,用户通过输入设备和第一电子设备,便可在第二电子设备上输入信息。
在该实施例中,具体地,在S560之后,方法500还可以包括:S570,输入设备响应于获取到用户的第一输入信息,并向第一电子设备发送第一输入信息;S580,第一电子设备响应于第一输入信息,向第二电子设备转发第一输入信息;S590,第二电子设备,还用于响应于第一输入信息,在第一输入框显示第一输入信息。
可选地,在一些实施例中,在S560之前,若第二电子设备上的第一输入框中显示有默认的文字,在S560之后,第二电子设备上的第一输入框中不再显示该默认的文字。
例如,如图5中的(c)所示,手机10上的文本输入框1112中显示有“搜索词”(默认的文字的一例),那么,在S550之后,如图5中的(d)所示,手机10上的文本输入框1112中不再显示“搜索词”。
可选地,在一些实施例中,在S560之后,若第二电子设备上不再显示有第一输入框,第一电子设备可以直接再将输入设备的焦点切换回第一电子设备。这样,用户通过输入设备便可在第一电子设备上输入信息。
在该实施例中,具体地,在S560之后,方法500还可以包括:S591,第二电子设备确定第二电子设备上不再显示有第一输入框,控制第二电子设备处于失去输入设备的焦点的状态,并向第一电子设备发送第四指示信息,第四指示信息用于指示第一电子设备可获取输入设备的焦点;S592,第一电子设备响应于第四指示信息,控制第一电子设备处于获取输入设备的焦点的状态。
通过方法500,当用户的视线在第二电子设备上、输入设备的焦点在第一电子设备上、以及第二电子设备上显示有输入框时,可以向第二电子设备发送第一指示信息。然后,第二电子设备在接收到第一指示信息后,在第一输入框中直接显示输入设备的焦点,或者输出第一提示信息,来提示切换输入设备的焦点的操作。进而,用户可根据第一提示信息,通过输入设备将输入设备的焦点切换至用户的视线所在 的第二电子设备的输入框中。这样,用户通过简单的操作,便可以实现将输入设备的焦点由第一电子设备跨设备的切换至第二电子设备,有助于提升用户切换输入设备的焦点时的用户体验。
需要说明的是,第一电子设备还可以执行上述方法500中未描述的其他步骤,该其他步骤可以参考图8中所述的平板20执行的步骤,这里不再赘述。此外,第二电子设备也还可以执行上述方法500中未描述的其他步骤,该其他步骤可以参考图8中所述的手机10执行的步骤,这里不再赘述。
图11为本申请实施例提供的一例跨设备切换焦点的方法600的示意性流程图。
如图11所示,方法600包括S610。下面,详细介绍S610。
S610,当满足第一条件时,第一电子设备在第一电子设备上显示输入设备的焦点,或者,输出第三提示信息。
其中,第一条件包括用户注视的区域属于第一电子设备所在的区域或第二电子设备上未显示输入框。
第一电子设备上不存在输入设备的焦点,第二电子设备上存在输入设备的焦点,即输入设备的焦点在第二电子设备上。
可选地,在S610之前,第一电子设备可以执行S620。
S620,第一电子设备确定是否满足第一条件以及输入设备的焦点在第二电子设备上。
本申请实施例对第一电子设备确定满足第一条件以及输入设备的焦点在第二电子设备上之间的顺序不作限定。
S620的过程和S530的过程类似,只需将上述S532a和S533a(或者S531b和S532b)中所示的第一确认信息用第二指示信息替代即可。其中,第二指示信息用于指示第二电子设备上是否显示有输入框。因此,关于S620的描述可以参考S530的相关描述,这里不再赘述。
可选地,当输入设备的焦点在第二电子设备上,第二电子设备还可以输出第二提示信息。关于该第二提示信息的描述可以参考上文图10中的相关描述,这里不再赘述。
需要说明的是,当第一条件包括用户注视的区域属于第一电子设备所在的区域时,那么,无论第二电子设备上是否显示有输入框,第一电子设备都可在第一电子设备上显示输入设备的焦点或者输出第三提示信息。也就是说,S610中,可以无需考虑第二电子设备上是否显示有输入框的情况,只需考虑用户注视的区域。当然,S610中也可以考虑第二电子设备上是否显示有输入框,并在第二电子设备上未显示有输入框、且用户注视的区域属于第一电子设备所在的区域的情况下,第一电子设备才在第一电子设备上显示输入设备的焦点或者输出第三提示信息。
当第一条件包括第二电子设备上未显示有输入框时,那么,无论用户注视的区域是否属于第一电子设备所在的区域,第一电子设备都可在第一电子设备上显示输入设备的焦点或者输出第三提示信息,也就是说,S610中,可以无需考虑用户注视的区域的情况,只需考虑第二电子设备上是否显示有输入框。当然,S610中也可以考虑用户注视的区域,并在用户注视的区域属于第一电子设备所在的区域、且第二电子设备上未显示有输入框的情况下,第一电子设备才在第一电子设备上显示输入设备的焦点或者输出第三提示信息。
在一个示例中,第三提示信息用于提示用户可将输入设备的焦点切换至第一电子设备。在另一个示例中,第三提示信息还用于提示用户在输入设备上输入第一操作,可将输入设备的焦点切换至第一电子设备。
示例性地,第一电子设备可以显示第三提示信息或播放第三提示信息。
示例性地,第三提示信息可以包括以下至少一项:第三光标、第三图标、第三文本信息、第三外框。其中,该第三光标显示在第一电子设备上输入设备的焦点待切入的位置,第三图标用于指示用于切换输入设备的焦点的设备(即输入设备),第三文本信息用于指示第一操作,第三外框包围第二电子设备上输入设备的焦点待切入的输入框。
例如,第三图标可以是如图6中的(b)所示的图标2111,第三文本信息可以是如图6中的(b)所示的“点击回车进行输入”的文本信息。
又例如,第三图标可以是如图7中的(b)所示的图标2213,第三文本信息可以是如图7中的(b)所示的“点击回车进行输入”的文本信息。
关于第三图标、第三文本信息的描述可分别参考上文如图6中的(b)中关于图标2111、“点击回车进行输入”的文本信息的相关描述,或者,关于第三图标、第三文本信息的描述可分别参考上文如图7中的(b)中关于图标2213、“点击回车进行输入”的文本信息的相关描述,这里不再赘述。
需要说明的是,若第三提示信息包括第三图标和第三文本信息,那么,第三提示信息还用于提示用户在输入设备上输入第一操作,可将输入设备的焦点切换至第一电子设备。
在一个示例中,若第一电子设备上仅显示有一个输入框(即第三输入框),当S610中第一电子设备是在第一电子设备上显示输入设备的焦点,那么,该输入设备的焦点可以显示在第三输入框中。当S610中第一电子设备是输出第三提示信息,那么,该第三提示信息可以用于提示用户可将输入设备的焦点切换至第三输入框,该第三提示信息可以显示在第三目标位置,第三目标位置与第三输入框之间的距离小于或等于第三阈值。也就是说,第三提示信息显示在第三输入框的附近,这样,用户便可以直观地获知输入设备的焦点待切换的输入框。
例如,如图6中的(b)所示,第三提示信息显示在“XXX”文本信息的附近(第三目标位置的一例)。
在另一示例中,若第一电子设备上显示有多个输入框,如多个输入框包括第三输入框和第四输入框,当S610中第一电子设备是在第一电子设备上显示输入设备的焦点,那么,该输入设备的焦点可以显示在第四输入框中。当S610中第一电子设备是输出第三提示信息,那么,该第三提示信息可以显示在第四目标位置,第四目标位置与第四输入框之间的距离小于或等于第四阈值。也就是说,第三提示信息显示在第四输入框的附近,这样,用户便可以直观地获知输入设备的焦点待切换的输入框。若用户想要调整第一电子设备上输入设备的焦点待切换的输入框,用户可在输入设备上进行第二操作,这样,输入设备响应于检测到第二操作,向第一电子设备发送第二切换信息,第二切换信息用于指示将第三提示信息的显示位置由第四目标位置调整至第三目标位置,第三目标位置与第三输入框之间的距离小于或等于第三阈值;第一电子设备响应于第二切换信息,将第三提示信息的显示位置由第四目标位置调整至第三目标位置。
示例性地,第二操作可以包括点击Tab键的操作。
例如,图7中的(b)所示,平板20显示的输入框包括网址输入框2211和搜索词输入框2212,第三提示信息一开始显示在网址输入框2211的附近,此时,键盘30的焦点可切换至平板20的网址输入框2211。若用户不想将键盘30的焦点切换至平板20的网址输入框2211,想要将键盘30的焦点切换至平板20的搜索词输入框2212,用户可在键盘30上点击Tab键后,键盘30可将平板20上显示的第三提示信息的位置调至搜索词输入框2212,此时,键盘30的焦点可切换至平板20的搜索词输入框2212。
其中,第四输入框为第一电子设备最近一次输入焦点所在的输入框;或者,第四输入框为第一电子设备的显示界面上的第一个输入框。
示例性地,第一电子设备中存储有第一电子设备每次输入焦点所在位置,这样,第一二电子设备默认将第三提示信息显示在第一电子设备最近一次(上一次)输入焦点所在的第四输入框的附近。
应理解,第一电子设备的显示界面上的第一个输入框可以理解为:第一电子设备的显示界面上的输入框中,距离第一电子设备的显示界面的上边缘和左边缘最近的输入框即为第一个输入框。
需要说明的是,在S610中,若第一电子设备显示输入设备的焦点,用户可以通过输入设备操作第一电子设备或在第一电子设备上输入信息。若第一电子设备上输出第三提示信息,用户还不能通过输入设备操作第一电子设备或在第一电子设备上输入信息。
示例性地,在S610中,若第一电子设备在第一电子设备上显示输入设备的焦点,那么,在S610之前,方法600还可以包括S630至S650;若第一电子设备输出第三提示信息,那么,在S610之后,方法600还可以包括S630至S650。下面详细介绍S630至S650。
S630,输入设备响应于检测到第一操作,向第一电子设备发送第四切换信息。相应地,第一电子设备接收来自输入设备的第四切换信息。
其中,第四切换信息用于指示将输入设备的焦点切换至第一电子设备。
示例性地,第一操作可以是点击回车键的操作。
S640,第一电子设备响应于第四切换信息,控制第一电子设备处于获取输入设备的焦点的状态,并向第二电子设备发送第五指示信息。相应地,第二电子设备接收来自第一电子设备的第五指示信息。
示例性地,第五指示信息可以用于指示第一电子设备处于获取输入设备的焦点的状态。
需要说明的是,本申请实施例对第一电子设备控制第一电子设备处于获取输入设备的焦点的状态的步骤和第一电子设备向第二电子设备发送第五指示信息的步骤之间的执行顺序不作限定。
S650,第二电子设备响应于第五指示信息,控制第二电子设备处于失去输入设备的焦点的状态。
可选地,在一些实施例中,在S650之后,第二电子设备不再显示第二提示信息。
可选地,在一些实施例中,在S640之后,第一电子设备还可以输出第四提示信息。其中,第四提示信息用于指示用户通过输入设备可在第一电子设备上输入信息。
示例性地,第一电子设备可以显示第四提示信息或播放第四提示信息。
示例性地,第四提示信息可以包括以下至少一项:第四光标、第四图标、第四文本信息、第四外框。其中,该第四光标显示在第三输入框中,第四图标用于指示输入设备,第四文本信息用于指示用户可在第三输入框中输入信息,第四外框包围第三输入框。
例如,第四图标可以是如图6中的(c)所示的图标2112,第四文本信息可以是如图6中的(c)所示的“输入中…”的文本信息。
又例如,第四图标可以是如图7中的(d)所示的图标2214,第四文本信息可以是如图7中的(d)所示的“输入中…”的文本信息,第四外框可以是如图7中的(d)所示的外框2215。
第四提示信息和第三提示信息的显示位置相同,第四提示信息和第三提示信息的显示效果不同。此时,第四提示信息和第二提示信息的显示效果可以相同,也可以不同。
例如,第四光标和第三光标的显示位置相同,但是第四光标和第三光标的显示效果不同。又例如,第四图标和第三图标的显示位置相同,但是第四图标和第三图标的显示效果不同。又例如,第四外框和第三外框的显示相同,但是第四外框和第三外框的显示效果不同。
关于第四图标、第四文本信息的描述可分别参考上文图6中的(c)中关于图标2112、“输入中…”的文本信息的相关描述,或者,关于第四图标、第四文本信息、第四外框的描述可分别参考上文图7中的(d)中关于图标2214、“输入中…”的文本信息、外框2215的相关描述这里不再赘述。
可选地,在一些实施例中,在S640之前,若第一电子设备上的第三输入框中显示有默认的文字,在S640之后,第一电子设备上的第三输入框中不再显示该默认的文字。
例如,如图7中的(c)所示,平板20上的搜索词输入框2212中显示有“搜索词”(默认的文字的一例),那么,在S640之后,如图7中的(d)所示,平板20上的搜索词输入框2212中不再显示“搜索词”。
可选地,在一些实施例中,在S640之后,用户通过输入设备便可在第一电子设备上输入信息。
在该实施例中,具体地,在S640之后,方法600还可以包括:S660,输入设备响应于获取到用户的第二输入信息,并向第一电子设备发送第二输入信息;S670,第一电子设备响应于第二输入信息,显示第二输入信息。
通过方法600,当输入设备的焦点在第二电子设备上、以及用户的视线在第一电子设备上或第二电子设备上没有输入框时,第一电子设备可以在第一电子设备上显示输入设备的焦点,或者输出第三提示信息。进而,用户可根据第三提示信息,通过输入设备将输入设备的焦点切换至用户的视线所在的第一电子设备上。这样,用户通过简单的操作,便可以实现将输入设备的焦点由第二电子设备跨设备的切换至第一电子设备,有助于提升用户切换输入设备的焦点时的用户体验。
需要说明的是,第一电子设备还可以执行上述方法600中未描述的其他步骤,该其他步骤可以参考图9中所述的平板20执行的步骤,这里不再赘述。第二电子设备也还可以执行上述方法600中未描述的其他步骤,该其他步骤可以参考图9中所述的手机10执行的步骤,这里不再赘述。
此外,无论是图10所示的方法500,还是图11所示的方法600,当第一电子设备和第二电子设备登录有同一账号,第一电子设备与第二电子设备可通过云端传输信息(如上文所述的第一查询信息,第一确认信息、第二查询信息,第二确认信息、第一指示信息、第一输入信息、第二输入信息等)。当第一电子设备和第二电子设备连接,第一电子设备与第二电子设备可通过两者建立的连接方式传输信息(如上文所述的第一查询信息,第一确认信息、第二查询信息,第二确认信息、第一指示信息、第一输入信息、第二输入信息等)。
图10和图11中所述的输入设备的焦点可理解为用户通过输入设备输入的信息显示的位置。例如,输入设备的焦点在第一电子设备上,即用户通过输入设备可在第一电子设备上输入信息。又例如,输入设备的焦点在第二电子设备的输入框上,即用户通过输入设备可在第二电子设备的输入框中输入信息。
下面,结合图12对本申请实施例提供的跨设备切换焦点的装置进行描述。
图12是本申请实施例提供跨设备切换焦点的装置700的示意性框图。
如图12所示,该装置700包括处理单元710,该处理单元710用于进行数据处理。
可选地,该装置700还可以包括收发单元720。其中,收发单元720可以与外部进行通信,收发单元720还可以称为通信接口或通信单元。
可选地,该装置700还可以包括存储单元,该存储单元可以用于存储指令或者和/或数据,处理单元710可以读取存储单元中的指令或者和/或数据。
在一种可实现的方式中,该装置700可以用于执行上文方法实施例中第一电子设备所执行的动作,这时,该装置700可以为第一电子设备或者可配置于第一电子设备的部件,处理单元710用于执行上文方法实施例中第一电子设备侧的处理相关的操作,收发单元720用于执行上文方法实施例中第一电子设备侧的收发相关的操作。
在另一种可实现的方式中,该装置700可以用于执行上文方法实施例中第二电子设备所执行的动作,这时,该装置700可以为第二电子设备或者可配置于第二电子设备的部件,处理单元710用于执行上文方法实施例中第二电子设备侧的处理相关的操作,收发单元720用于执行上文方法实施例中第二电子设备侧的收发相关的操作。
在又一种可实现的方式中,该装置700可以用于执行上文方法实施例中输入设备所执行的动作,这时,该装置700可以为输入设备或者可配置于输入设备的部件,处理单元710用于执行上文方法实施例中输入设备侧的处理相关的操作,收发单元720用于执行上文方法实施例中输入设备侧的收发相关的操作。
下面,结合图13对本申请实施例提供的电子设备进行描述。
图13示出了本申请实施例提供的电子设备800的示意性结构图。
如图13所示,该电子设备800包括:一个或多个处理器810,一个或多个存储器820,该一个或多个存储器存储820存储有一个或多个计算机程序,该一个或多个计算机程序包括指令。
在一个示例中,该电子设备800可以是图3至图9中所示的手机10、平板20或键盘30。当该指令被所述一个或多个处理器810运行时,使得所述电子设备800执行上述手机10、平板20或键盘30所执行的步骤。
在另一个示例中,该电子设备800可以是图10至图11中所述的第一电子设备、第二电子设备或输入设备。当该指令被所述一个或多个处理器810运行时,使得所述电子设备800执行上述第一电子设备、第二电子设备或输入设备所执行的步骤。
本申请实施例提供了一种系统,包括第一电子设备、第二电子设备和输入设备,该系统用于执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在第一电子设备运行时,使得第一电子设备执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在第二电子设备运行时,使得第二电子设备执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机程序产品,当所述计算机程序产品在输入设备运行时,使得输入设备执行上述实施例中的技术方案。其实现原理和技术效果与上述方法相关实施例类似,此处不再赘述。
本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质包含指令,当所述指令在第一电子设备运行时,使得所述第一电子设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。
本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质包含指令,当所述指令在第二电子设备运行时,使得所述第二电子设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。
本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质包含指令,当所述指令在输入设备运行时,使得所述输入设备执行上述实施例的技术方案。其实现原理和技术效果类似,此处不再赘述。
本申请实施例提供一种芯片,所述芯片用于执行指令,当所述芯片运行时,执行上述实施例中第一电子设备、第二电子设备或输入设备的技术方案。其实现原理和技术效果类似,此处不再赘述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实 现所描述的功能,但是这种实现不应认为超出本申请的范围。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (20)

  1. 一种系统,其特征在于,所述系统包括输入设备、第一电子设备和第二电子设备,所述输入设备与所述第一电子设备连接,所述输入设备的焦点在所述第一电子设备上,所述第一电子设备与所述第二电子设备连接、和/或所述第一电子设备上与所述第二电子设备上登录有同一账号,其中,
    所述第一电子设备,用于当用户注视的区域属于所述第二电子设备所在的区域、以及所述第二电子设备上显示有第一输入框时,向所述第二电子设备发送第一指示信息;
    所述第二电子设备,用于在接收到所述第一指示信息后,在所述第一输入框中显示所述输入设备的焦点,或者,输出第一提示信息,所述第一提示信息用于指示所述用户可将所述输入设备的焦点切换至所述第一输入框。
  2. 根据权利要求1所述的系统,其特征在于,所述第一电子设备还用于通过如下方式确定所述用户注视的区域属于所述第二电子设备所在的区域:
    获取所述用户的图像;
    根据所述用户的图像,确定所述用户的视线;
    当所述用户的视线与所述第一电子设备沿第一方向的延展面有交点、且所述第二电子设备位于所述第一电子设备的所述第一方向上时,确定所述用户注视的区域属于所述第二电子设备所在的区域。
  3. 根据权利要求1或2所述的系统,其特征在于,所述第一电子设备还用于通过如下方式确定所述第二电子设备上显示有所述第一输入框:
    接收来自所述第二电子设备的第一确认信息,所述第一确认信息用于指示所述第二电子设备上显示有所述第一输入框;
    根据所述第一确认信息,确定所述第二电子设备上显示有所述第一输入框。
  4. 根据权利要求1至3中任一项所述的系统,其特征在于,所述第一提示信息显示在第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
  5. 根据权利要求1至3中任一项所述的系统,其特征在于,当所述第二电子设备上还显示有第二输入框时,所述第一提示信息显示在第二目标位置,所述第二目标位置与所述第二输入框之间的距离小于或等于第二阈值,
    所述第一电子设备,还用于向所述第二电子设备发送第一切换信息;
    所述第二电子设备,还用于在接收到所述第一切换信息后,将所述第一提示信息的显示位置由所述第二目标位置调整至第一目标位置,所述第一目标位置与所述第一输入框之间的距离小于或等于第一阈值。
  6. 根据权利要求1至5中任一项所述的系统,其特征在于,
    所述第二电子设备,还用于在所述输入设备的焦点切换至所述第一输入框后,在所述第一输入框中显示第一输入信息,所述第一输入信息是所述用户通过所述输入设备输入的信息。
  7. 根据权利要求1至6中任一项所述的系统,其特征在于,
    所述第二电子设备,还用于在所述输入设备的焦点切换至所述第一输入框后,显示第二提示信息,所述第二提示信息用于指示所述用户通过所述输入设备可在所述第二电子设备上输入信息。
  8. 根据权利要求1至7中任一项所述的系统,其特征在于,所述第二提示信息和所述第一提示信息的显示位置相同,所述第二提示信息和所述第一提示信息的显示效果不同。
  9. 一种跨设备切换焦点的方法,其特征在于,所述方法应用于第一电子设备,所述第一电子设备与输入设备连接,所述第一电子设备与第二电子设备连接、和/或所述第一电子设备上与所述第二电子设备上登录有同一账号,所述输入设备的焦点在所述第二电子设备上,所述方法包括:
    当满足第一条件时,在所述第一电子设备上显示所述输入设备的焦点,或者,输出第三提示信息,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述第一电子设备;
    其中,所述第一条件包括:所述第二电子设备上未显示输入框;或者,所述用户注视的区域属于所述第一电子设备所在的区域、且所述第二电子设备上显示有输入框。
  10. 根据权利要求9所述的方法,其特征在于,通过如下方式确定所述用户注视的区域属于所述第一电子设备所在的区域:
    获取所述用户的图像,确定所述用户的视线;
    当所述用户的视线与所述第一电子设备有交点时,确定所述用户注视的区域属于所述第一电子设备所在的区域。
  11. 根据权利要求9或10所述的方法,其特征在于,通过如下方式确定所述第二电子设备上是否显示有所述输入框:
    接收来自所述第二电子设备的第二指示信息,所述第二指示信息用于指示所述第二电子设备上是否显示有所述输入框;
    根据所述第二指示信息,确定所述第二电子设备上是否显示有所述输入框。
  12. 根据权利要求9至11中任一项所述的方法,其特征在于,所述第一电子设备上显示有第三输入框,所述输入设备的焦点显示在所述第三输入框中,或者,所述第三提示信息用于提示所述用户可将所述输入设备的焦点切换至所述第三输入框。
  13. 根据权利要求12所述的方法,其特征在于,所述第三提示信息显示在第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
  14. 根据权利要求12所述的方法,其特征在于,当所述第一电子设备上还显示有第四输入框时,所述第三提示信息显示在第四目标位置,所述第四目标位置与所述第四输入框之间的距离小于或等于第四阈值,所述方法还包括:
    接收来自所述输入设备的第二切换信息;
    在接收到所述第二切换信息后,将所述第三提示信息的显示位置由所述第四目标位置调整至第三目标位置,所述第三目标位置与所述第三输入框之间的距离小于或等于第三阈值。
  15. 根据权利要求12至14中任一项所述的方法,其特征在于,所述方法还包括:
    在所述输入设备的焦点切换至所述第一电子设备后,在所述第三输入框中显示第二输入信息,所述第二输入信息是所述用户通过所述输入设备输入的信息。
  16. 根据权利要求9至15中任一项所述的方法,其特征在于,所述方法还包括:
    在所述输入设备的焦点切换至所述第一电子设备后,显示第四提示信息,所述第四提示信息用于指示所述用户通过所述输入设备可在所述第一电子设备上输入信息。
  17. 根据权利要求16所述的方法,其特征在于,所述第四提示信息和所述第三提示信息的显示位置相同,所述第四提示信息和所述第三提示信息的显示效果不同。
  18. 一种电子设备,其特征在于,包括:
    一个或多个处理器;
    一个或多个存储器;
    以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述一个或多个存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述一个或多个处理器执行时,使得所述电子设备执行如权利要求9至17中任一项所述的方法。
  19. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求9至17中任一项所述的方法。
  20. 一种芯片,其特征在于,包括至少一个处理器和接口电路,所述接口电路用于为所述至少一个处理器提供程序指令或者数据,所述至少一个处理器用于执行所述程序指令,以实现如权利要求9至17中任一项所述的方法。
PCT/CN2023/127572 2022-11-28 2023-10-30 跨设备切换焦点的方法、电子设备及系统 WO2024114212A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211502689.9 2022-11-28
CN202211502689.9A CN118092834A (zh) 2022-11-28 2022-11-28 跨设备切换焦点的方法、电子设备及系统

Publications (1)

Publication Number Publication Date
WO2024114212A1 true WO2024114212A1 (zh) 2024-06-06

Family

ID=91151400

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/127572 WO2024114212A1 (zh) 2022-11-28 2023-10-30 跨设备切换焦点的方法、电子设备及系统

Country Status (2)

Country Link
CN (1) CN118092834A (zh)
WO (1) WO2024114212A1 (zh)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173000A (zh) * 2020-08-20 2022-03-11 华为技术有限公司 一种回复消息的方法、电子设备和系统
CN114173204A (zh) * 2020-08-20 2022-03-11 华为技术有限公司 一种提示消息的方法、电子设备和系统

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114173000A (zh) * 2020-08-20 2022-03-11 华为技术有限公司 一种回复消息的方法、电子设备和系统
CN114173204A (zh) * 2020-08-20 2022-03-11 华为技术有限公司 一种提示消息的方法、电子设备和系统

Also Published As

Publication number Publication date
CN118092834A (zh) 2024-05-28

Similar Documents

Publication Publication Date Title
EP3872807B1 (en) Voice control method and electronic device
WO2021017889A1 (zh) 一种应用于电子设备的视频通话的显示方法及相关装置
WO2021129326A1 (zh) 一种屏幕显示方法及电子设备
WO2020259452A1 (zh) 一种移动终端的全屏显示方法及设备
CN113645351B (zh) 应用界面交互方法、电子设备和计算机可读存储介质
WO2020078299A1 (zh) 一种处理视频文件的方法及电子设备
WO2021036770A1 (zh) 一种分屏处理方法及终端设备
US11489972B2 (en) Method for presenting video on electronic device when there is incoming call and electronic device
WO2019072178A1 (zh) 一种通知处理方法及电子设备
EP3787298A1 (en) Flexible screen display method and terminal
CN114363462B (zh) 一种界面显示方法、电子设备及计算机可读介质
WO2022017393A1 (zh) 显示交互系统、显示方法及设备
US20230117194A1 (en) Communication Service Status Control Method, Terminal Device, and Readable Storage Medium
WO2022037726A1 (zh) 分屏显示方法和电子设备
WO2021082815A1 (zh) 一种显示要素的显示方法和电子设备
CN114115770B (zh) 显示控制的方法及相关装置
CN115967851A (zh) 快速拍照方法、电子设备及计算机可读存储介质
CN113141483B (zh) 基于视频通话的共享屏幕方法及移动设备
CN111031492B (zh) 呼叫需求响应方法、装置及电子设备
EP4024877A1 (en) Video communication method and video communication apparatus
WO2024114212A1 (zh) 跨设备切换焦点的方法、电子设备及系统
CN113970965A (zh) 消息显示方法和电子设备
CN113885973A (zh) 翻译结果显示方法、装置及电子设备
WO2024114493A1 (zh) 一种人机交互的方法和装置
WO2023124829A1 (zh) 语音协同输入方法、电子设备及计算机可读存储介质