Control moving method and electronic device

By automatically moving the suspended control to stay away from the user's eyeball, the problem of suspended control blocking the lower content is solved, improving the user's reading and operation experience.

CN114003123BActive Publication Date: 2025-05-06HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010739567.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-28
Publication Date
2025-05-06
Estimated Expiration
2040-07-28

AI Technical Summary

Technical Problem

The floating control is at the top level in the user interface, causing the lower layer of content or controls to be blocked and affect the user's reading and operation experience.

Method used

The user's eye gaze position is determined by an electronic device. When the gaze position enters the preset area and continues to reach the preset time, the suspended control is automatically moved away from the user's gaze position to avoid obstruction.

Benefits of technology

It realizes that without affecting the normal use of the floating control, it automatically avoids it blocking the content that the user is about to read, and improves the user's reading and operation experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114003123B_ABST
    Figure CN114003123B_ABST
Patent Text Reader

Abstract

A control moving method and electronic device. In the method, the electronic device can determine the eye gaze position of the user on the display screen, and when it is determined that the eye gaze position is in a first preset area for a first preset time, the electronic device can move the floating control so that the floating control is away from the eye gaze position. The implementation of the technical solution provided by the present application can ensure that the floating control does not affect the user's reading and operation, but can be used normally.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal and communication technology, and in particular to a control moving method and electronic device. Background Art

[0002] The floating action button (FAB), or floating control, is a common control in terminal applications and one of the key elements in the system user interface interaction.

[0003] Floating controls can make the user interface layout more flexible and are suitable for situations where controls need to stay on the screen for a long time. However, floating controls are usually at the top layer of the user interface, which will inevitably block some of the content or controls on the lower layers. When users want to read the content or operate the controls on the lower layers, they will be blocked by floating controls, which will affect the reading and operation experience. Summary of the invention

[0004] The present application provides a control movement method and an electronic device, which are used to ensure that a floating control does not affect a user's reading and operation, but can be used normally.

[0005] In a first aspect, the present application provides a control moving method, the method comprising: an electronic device determines an eye gaze position of a user on a display screen; when the electronic device determines that the eye gaze position of the user enters a first preset area, the electronic device determines whether the eye gaze position continues in the first preset area for a first preset time length; the first preset area is an area of ​​a preset size around a floating control on the display screen that does not contain the floating control; when the electronic device determines that the eye gaze position continues in the first preset area for a first preset time length, the electronic device moves the floating control so that the floating control is away from the eye gaze position.

[0006] In the above embodiment, when the electronic device determines that the user's eye gaze position on the display screen is in the first preset area and reaches the first preset time, it can be determined that the floating control may block the content that the user is about to read. At this time, the electronic device can move the floating control so that the floating control is away from the user's current eye gaze position. Therefore, the user no longer needs to manually move the floating control frequently to avoid the floating control blocking the content that is about to be read, resulting in a reduced reading experience. The electronic device will automatically move the floating control according to the user's reading position to avoid the floating control blocking the content that the user is about to read. This allows the floating control to be used normally without affecting the user's reading and operation, greatly improving the user's reading experience.

[0007] In combination with some embodiments of the first aspect, in some embodiments, the first preset area is an area of ​​a preset size on the display screen that surrounds the floating control but does not include the floating control.

[0008] In the above embodiment, the first preset area surrounds the floating control on the display screen, and the floating control may be moved when the eye gaze position approaches the floating control from any direction.

[0009] In combination with some embodiments of the first aspect, in some embodiments, the first preset area is an area of ​​the second preset area on the display screen that does not include the floating control, and the second preset area surrounds the floating control and its center moves with the floating control.

[0010] In the above embodiment, the first preset area is an area on the display screen that does not include the floating control in the second preset area. Therefore, the first preset area can change as the position of the floating control on the display screen changes, making the range of the first preset area more flexible.

[0011] In combination with some embodiments of the first aspect, in some embodiments, the first preset area does not surround the floating control; the boundary of the first preset area touches or does not touch the boundary of the floating control.

[0012] In the above embodiment, the first preset area does not surround the floating control, thereby avoiding setting the first preset area at an unnecessary position to cause meaningless movement of the floating control.

[0013] In combination with some embodiments of the first aspect, in some embodiments, the position of the first preset area changes according to the change of the position of the floating control in the display screen.

[0014] In the above embodiment, the position of the first preset area changes according to the change of the position of the floating control in the display screen, so that the range of the first preset area better meets the user's needs.

[0015] In combination with some embodiments of the first aspect, in some embodiments, after the electronic device determines the eye gaze position of the user on the display screen and before the electronic device moves the floating control, the method also includes: the electronic device determines whether the floating control blocks the content displayed in the first window, and the first window is the window below the floating control displayed on the display screen; when the electronic device determines that the eye gaze position continues to reach a first preset time in the first preset area, the electronic device moves the floating control so that the floating control is away from the eye gaze position, specifically including: when the electronic device determines that the eye gaze position continues to reach a first preset time in the first preset area and the floating control blocks the content displayed in the first window, the electronic device moves the floating control so that the floating control is away from the eye gaze position.

[0016] In the above embodiment, the floating control is moved only when it blocks the content displayed on the display screen, thereby avoiding meaningless movement of the floating control and distracting the user's attention.

[0017] In combination with some embodiments of the first aspect, in some embodiments, the floating control and the first window belong to the same application; the electronic device determines whether the floating control blocks the content displayed in the first window, specifically including: the application to which the floating control and the first window in the electronic device belong determines whether the floating control blocks the content displayed in the first window.

[0018] In the above embodiment, when the floating control and the first window belong to the same application, the application can directly determine whether the floating control blocks the displayed content and complete the subsequent movement operation without feedback to the system layer, thereby improving processing efficiency.

[0019] In combination with some embodiments of the first aspect, in some embodiments, the floating control and the first window do not belong to the same application; the electronic device determines whether the floating control blocks the content displayed in the first window, specifically including: the electronic device obtains the location area of ​​the floating control from the application to which the floating control belongs; the electronic device determines whether there is content displayed in the location area of ​​the floating control from the application to which the first window belongs; when the electronic device determines that the application to which the first window belongs displays content in the location area of ​​the floating control, the electronic device determines that the floating control blocks the content displayed in the first window; when the electronic device determines that the application to which the first window belongs does not display content in the location area of ​​the floating control, the electronic device determines that the floating control does not block the content displayed in the first window.

[0020] In the above embodiment, when the floating control and the first window do not belong to the same application, the electronic device can determine whether the floating control blocks the content in the first window, thereby improving the adaptability to the operating environment.

[0021] In combination with some embodiments of the first aspect, in some embodiments, before the step of the electronic device determining whether the floating control blocks the content displayed in the first window, the method also includes: in response to a first operation of the user, the electronic device starts a first function, and the first function is used to move the floating control only when the floating control blocks the displayed content, otherwise the floating control is not moved.

[0022] In the above embodiment, the first function is activated only after a user operation, thereby improving the interactive performance of the electronic device.

[0023] In combination with some embodiments of the first aspect, in some embodiments, the electronic device moves the floating control so that the floating control is away from the eye gaze position, specifically including: the electronic device moves the floating control so that the first preset area no longer covers the eye gaze position.

[0024] In the above embodiment, the electronic device moves the floating control to the first preset area so that it no longer covers the eye gaze position, thereby avoiding continuous triggering of the floating control movement in a short period of time and reducing the power consumption of the electronic device.

[0025] In combination with some embodiments of the first aspect, in some embodiments, the electronic device moves the floating control so that the floating control is away from the eye gaze position, specifically including: the electronic device determines whether there is a first blank area on the display screen, the first blank area does not display any content and is large enough to accommodate the floating control; when it is determined that there is the first blank area on the display screen, the electronic device moves the floating control to the first blank area; when it is determined that there is no first blank area on the display screen, the electronic device moves the floating control so that the first preset area no longer covers the eye gaze position.

[0026] In the above embodiment, the electronic device preferentially moves the floating control to a blank area on the display screen, thereby preventing the floating control from blocking the displayed content again and reducing the power consumption of the electronic device.

[0027] In combination with some embodiments of the first aspect, in some embodiments, before the step of the electronic device determining the user's eye gaze position on the display screen, the method also includes: in response to a second operation of the user, the electronic device starts a second function, and the second function is used to move the floating control when the eye gaze position continues in the first preset area for a first preset time length.

[0028] In the above embodiment, the electronic device determines whether to move the floating control only when the user turns on the second function, thereby improving the interactive performance of the electronic device.

[0029] In a second aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors, a memory and a display screen; the memory is coupled to the one or more processors, the memory is used to store computer program code, the computer program code includes computer instructions, and the one or more processors call the computer instructions to enable the electronic device to execute: determining the user's eye gaze position on the display screen; when it is determined that the user's eye gaze position enters a first preset area, determining whether the eye gaze position continues in the first preset area for a first preset time length; the first preset area is an area of ​​a preset size around the floating control on the display screen that does not contain the floating control; when it is determined that the eye gaze position continues in the first preset area for a first preset time length, moving the floating control so that the floating control is away from the eye gaze position.

[0030] In the above embodiment, when the electronic device determines that the user's eye gaze position on the display screen is in the first preset area and reaches the first preset time, it can be determined that the floating control may block the content that the user is about to read. At this time, the electronic device can move the floating control so that the floating control is away from the user's current eye gaze position. Therefore, the user no longer needs to manually move the floating control frequently to avoid the floating control blocking the content that is about to be read, resulting in a reduced reading experience. The electronic device will automatically move the floating control according to the user's reading position to avoid the floating control blocking the content that the user is about to read. This allows the floating control to be used normally without affecting the user's reading and operation, greatly improving the user's reading experience.

[0031] In combination with some embodiments of the second aspect, in some embodiments, the first preset area is an area of ​​a preset size on the display screen that surrounds the floating control but does not include the floating control.

[0032] In combination with some embodiments of the second aspect, in some embodiments, the first preset area is an area of ​​the second preset area on the display screen that does not include the floating control, and the second preset area surrounds the floating control and its center moves with the floating control.

[0033] In combination with some embodiments of the second aspect, in some embodiments, the first preset area does not surround the floating control; the boundary of the first preset area touches or does not touch the boundary of the floating control.

[0034] In combination with some embodiments of the second aspect, in some embodiments, the position of the first preset area changes according to the change of the position of the floating control in the display screen.

[0035] In combination with some embodiments of the second aspect, in some embodiments, the one or more processors are also used to call the computer instructions so that the electronic device executes: determining whether the floating control blocks the content displayed in the first window, and the first window is the window below the floating control displayed on the display screen; the one or more processors are specifically used to call the computer instructions so that the electronic device executes: when it is determined that the eye gaze position continues in the first preset area for a first preset time length, and the floating control blocks the content displayed in the first window, moving the floating control so that the floating control is away from the eye gaze position.

[0036] In combination with some embodiments of the second aspect, in some embodiments, the floating control and the first window belong to the same application; the one or more processors are specifically used to call the computer instruction to cause the electronic device to execute: enable the application to which the floating control and the first window belong to determine whether the floating control obstructs the content displayed in the first window.

[0037] In combination with some embodiments of the second aspect, in some embodiments, the floating control and the first window do not belong to the same application; the one or more processors are specifically used to call the computer instructions to cause the electronic device to execute: obtaining the location area of ​​the floating control from the application to which the floating control belongs; determining from the application to which the first window belongs whether there is content displayed in the location area of ​​the floating control; when it is determined that the application to which the first window belongs has content displayed in the location area of ​​the floating control, determining that the floating control has blocked the content displayed in the first window; when it is determined that the application to which the first window belongs has no content displayed in the location area of ​​the floating control, determining that the floating control has not blocked the content displayed in the first window.

[0038] In combination with some embodiments of the second aspect, in some embodiments, the one or more processors are also used to call the computer instructions to cause the electronic device to execute: in response to a first operation of the user, start a first function, the first function being used to move the floating control only when the floating control blocks the displayed content, otherwise the floating control is not moved.

[0039] In combination with some embodiments of the second aspect, in some embodiments, the one or more processors are specifically used to call the computer instruction to cause the electronic device to execute: move the floating control so that the first preset area no longer covers the eye gaze position.

[0040] In combination with some embodiments of the second aspect, in some embodiments, the one or more processors are specifically used to call the computer instructions to cause the electronic device to execute: determining whether there is a first blank area on the display screen, the first blank area has no displayed content and is large enough to accommodate the floating control; when it is determined that there is the first blank area on the display screen, moving the floating control to the first blank area; when it is determined that there is no first blank area on the display screen, moving the floating control so that the first preset area no longer covers the eye gaze position.

[0041] In combination with some embodiments of the second aspect, in some embodiments, the one or more processors are also used to call the computer instructions to cause the electronic device to execute: in response to a second operation of the user, start a second function, and the second function is used to move the floating control when the eye gaze position continues in the first preset area for a first preset time length.

[0042] In a third aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device, and the chip system includes one or more processors, which are used to call computer instructions so that the electronic device executes the method described in the first aspect and any possible implementation method of the first aspect.

[0043] It is understood that the chip system may include a Fig.16 The processor 110 in the electronic device 100 shown may also include multiple Fig.16 The processor 110 in the electronic device 100 shown in FIG. 1 may further include one or more other chips in the chip system, for example, Fig.16 The image signal processing chip in the camera 193 in the electronic device 100 shown may also include an image display chip in the display screen 194 , etc., which is not limited here.

[0044] In a fourth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on an electronic device, enables the electronic device to execute the method described in the first aspect and any possible implementation of the first aspect.

[0045] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium, comprising instructions. When the instructions are executed on an electronic device, the electronic device executes the method described in the first aspect and any possible implementation method of the first aspect.

[0046] It is understandable that the electronic device provided in the second aspect, the chip system provided in the third aspect, the computer program product provided in the fourth aspect, and the computer storage medium provided in the fifth aspect are all used to execute the method provided in the embodiment of the present application. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method, which will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a schematic diagram of a scene of the eye tracking technology in an embodiment of the present application;

[0048] Figure 2 This is a schematic diagram of the effect of the eyeball reflecting infrared light in the embodiment of the present application;

[0049] Figure 3 is another schematic diagram of the effect of the eyeball reflecting infrared light in the embodiment of the present application;

[0050] Figure 4 This is a flow chart of the eye tracking technology in the embodiment of the present application;

[0051] Figure 5 is an exemplary schematic diagram of a floating control in an embodiment of the present application;

[0052] Figure 6 is another exemplary schematic diagram of a floating control in an embodiment of the present application;

[0053] Figure 7 is another exemplary schematic diagram of a floating control in an embodiment of the present application;

[0054] Figure 8 is another exemplary schematic diagram of a floating control in an embodiment of the present application;

[0055] Fig. 9 is another exemplary schematic diagram of a floating control in an embodiment of the present application;

[0056] Fig.10 is an exemplary schematic diagram of the first preset area in an embodiment of the present application;

[0057] Fig.11a is an exemplary schematic diagram of the first preset area and the second preset area in the embodiment of the present application;

[0058] Fig.11b is another exemplary schematic diagram of the first preset area and the second preset area in the embodiment of the present application;

[0059] Fig.12a is a set of exemplary schematic diagrams of the first preset area in an embodiment of the present application;

[0060] Figure 12bis another set of exemplary schematic diagrams of the first preset area in the embodiment of the present application;

[0061] Fig.12c is another exemplary schematic diagram of the first preset area in an embodiment of the present application;

[0062] Fig.13 is an exemplary schematic diagram of the first window in the embodiment of the present application;

[0063] Fig.14 It is a schematic diagram of a scene of a control moving in the prior art;

[0064] Fig.15 is a schematic diagram of a scene of control movement in an embodiment of the present application;

[0065] Fig.16 is a schematic structural diagram of an exemplary electronic device 100 provided in an embodiment of the present application;

[0066] Fig.17 is a software structure block diagram of the electronic device 100 according to an embodiment of the present application;

[0067] Fig.18 is a set of user interface schematic diagrams in an embodiment of the present application;

[0068] Fig.19 is another set of user interface schematic diagrams in the embodiment of the present application;

[0069] Fig. 20 is another set of user interface schematic diagrams in the embodiment of the present application;

[0070] Fig.21 is another set of user interface schematic diagrams in the embodiment of the present application;

[0071] Fig. 22 is another set of user interface schematic diagrams in the embodiment of the present application;

[0072] Fig.23 is another set of user interface schematic diagrams in the embodiment of the present application;

[0073] Fig.24 is another set of user interface schematic diagrams in the embodiment of the present application;

[0074] Fig.25 is another set of user interface schematic diagrams in the embodiment of the present application;

[0075] Fig.26 is another set of user interface schematic diagrams in the embodiment of the present application;

[0076] Fig. 27 is another set of user interface schematic diagrams in the embodiment of the present application;

[0077] Fig.28 is another set of user interface schematic diagrams in the embodiment of the present application;

[0078] Fig.29 is another set of user interface schematic diagrams in the embodiment of the present application;

[0079] Fig.30 is another set of user interface schematic diagrams in the embodiment of the present application;

[0080] Fig.31 is another set of user interface schematic diagrams in the embodiment of the present application;

[0081] Fig.32 is another set of user interface schematic diagrams in the embodiment of the present application;

[0082] Fig.33 is another set of user interface schematic diagrams in the embodiment of the present application;

[0083] Fig.34 is another set of user interface schematic diagrams in the embodiment of the present application;

[0084] Fig.35 is another set of user interface schematic diagrams in the embodiment of the present application;

[0085] Fig.36 is another set of user interface schematic diagrams in the embodiment of the present application;

[0086] Fig.37 is another set of user interface schematic diagrams in the embodiment of the present application;

[0087] Fig.38 is another set of user interface schematic diagrams in the embodiment of the present application;

[0088] Fig.39 It is a flowchart of a method for moving a control in an embodiment of the present application;

[0089] Fig.40 It is a schematic diagram of the structure of an exemplary electronic device 200 provided in an embodiment of the present application. DETAILED DESCRIPTION

[0090] The terms used in the following embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to be used as limitations to the present application. As used in the specification and appended claims of the present application, the singular expressions "one", "a kind of", "said", "above", "the" and "this" are intended to also include plural expressions, unless there is a clear indication to the contrary in the context. It should also be understood that the term "and / or" used in the present application refers to and includes any or all possible combinations of one or more listed items.

[0091] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features, and in the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.

[0092] To facilitate understanding, the relevant terms and concepts involved in the embodiments of the present application are first introduced below.

[0093] (1) Eye tracking technology:

[0094] There have been many studies on eye tracking technology. The common implementation principles of eye tracking technology are as follows:

[0095] Principle 1: Tracking based on changes in the features of the eyeball and its surroundings;

[0096] Principle 2: Tracking based on changes in iris angle;

[0097] Principle 3: Actively project infrared light beams onto the iris to extract features.

[0098] These implementation principles are based on the fact that when the human eye looks in different directions, there will be subtle changes in the eye. These changes will produce extractable features, and electronic devices can extract these features through image capture or scanning, thereby tracking the changes in the eye in real time and determining the eye's gaze position.

[0099] The main equipment for eye tracking technology can include infrared devices, image acquisition devices, or even cameras on general electronic devices. Eye tracking can also be achieved with the support of software.

[0100] Generally, eye tracking based on Principle 1 or Principle 2 is not as accurate as eye tracking based on Principle 3. The following is a brief description of eye tracking technology based on Principle 3:

[0101] For example, Figure 1 As shown in FIG. 1 , a schematic diagram of a scene of the eye tracking technology in the embodiment of the present application is shown. The eye tracking technology performed according to Principle 3 requires the hardware to include an infrared light emitter and an infrared camera. Figure 1 As shown in FIG, three infrared light emitters and one infrared camera are installed on the electronic device. Figure 1 As shown by the dotted arrow in the middle, when the infrared light emitter emits infrared light and is reflected by the human eye, the video of the emitted infrared light will be captured by the infrared camera.

[0102] like Figure 2, which is a schematic diagram of the effect of the eyeball reflecting infrared light in an embodiment of the present application. Each time the user looks at a position on the display screen, the position of the reflection point of the infrared light emitted by the infrared light emitter at different positions on the electronic device is different because the eyeball reflects the infrared light. Therefore, for each eye, the electronic device can obtain a set of positions of the reflection points of the infrared light reflected by the user's pupil and cornea.

[0103] like Figure 3 , which is another schematic diagram of the effect of the eyeball reflecting infrared light in the embodiment of the present application. When the user's eyeball is fixed on another position on the display screen, for each eye, the electronic device can obtain another set of positions of reflection points of infrared light reflected by the user's pupil and cornea. Since the user is now fixed on another position, the angle of the eyeball will change slightly compared to before. The reflection points of infrared light reflected by the user's pupil and cornea will be offset compared to before.

[0104] The electronic device can process the infrared light reflected by the human eye as follows to obtain the eye gaze position on the display screen of the electronic device. Figure 4 As shown, it is a flow chart of the eye tracking technology in the embodiment of the present application:

[0105] S401, an infrared light emitter in the electronic device emits infrared light;

[0106] S402, infrared cameras in electronic devices capture human eye video;

[0107] S403, the electronic device processes the human eye video to obtain the position of the user's pupil and corneal reflection point;

[0108] S404: The electronic device determines the sight direction according to the offset between the pupil and the corneal reflection point, and finally determines the eye gaze position on the display screen.

[0109] Since how to implement eye tracking technology is not the focus of the embodiments of the present application, the embodiments of the present application will not elaborate on the specific algorithm.

[0110] In the embodiments of the present application, the eye tracking technology is not limited to the principle used. As long as the eye tracking technology used can ultimately determine the user's eye gaze position on the display screen, no limitation is made here.

[0111] Generally, after the electronic device determines the eye gaze position through eye tracking technology, it can output the coordinates of the eye gaze position on the display screen. It is understandable that the reference coordinate system of the coordinates can be the default coordinate system of the electronic device or other coordinate systems. If the reference coordinate system of the output coordinates is other coordinate systems, the electronic device can also convert it to the default coordinate system of the electronic device, which is not limited here.

[0112] (2) Floating controls:

[0113] Floating windows, floating balls, floating buttons, etc. are all floating controls.

[0114] Floating controls can be divided into two types: in-app floating controls and system-level floating controls.

[0115] The floating control of the in-application floating type is generally a floating control of an application program. It can generally only be displayed on the display screen of the electronic device when the electronic device displays the interface of the application program.

[0116] For example, floating control a is a floating control of application A, and it is an in-application floating type. When the interface of application A is displayed on the display screen of the electronic device, floating control a is also displayed on the display screen of the electronic device. When the interface of application A exits the display screen of the electronic device, floating control a will also exit the display screen of the electronic device.

[0117] The floating control of the system-level floating type can be a floating control of a certain application or a function of the operating system. It can be displayed on the display screen of the electronic device regardless of whether the operating system interface or the interface of any application is displayed on the display screen of the electronic device.

[0118] For example, the floating control b is a floating control of application B, and it is a system-level floating type. When the interface of application B is displayed on the display screen of the electronic device, the floating control b is also displayed on the display screen of the electronic device. When the interface of application B exits the display screen of the electronic device, the floating control b will not exit the display screen of the electronic device, but will continue to be displayed on the display screen of the electronic device.

[0119] Floating controls generally follow the following design principles:

[0120] 1. Choose the appropriate floating control size:

[0121] Floating controls are mainly used to facilitate user actions, and they have motion behaviors including deformation, activation, or teleportation of anchor points. Therefore, their display size should be appropriate.

[0122] 2. Floating controls carry more positive operations:

[0123] Since floating controls usually carry major and representative operations, they should usually be positive interactions, such as creating, sharing, exploring, etc., and rarely perform destructive operations, such as deleting and archiving.

[0124] In addition, the operations carried by the floating control should generally not be incomplete interactions. For example, cut and paste are a set of combined interactions, which should exist in the menu bar rather than being carried by the floating control.

[0125] 3. Display of floating controls:

[0126] Generally, try to have only one floating control on each page. Abuse of floating controls will distract users.

[0127] It is understandable that, in actual applications, the floating control may completely or incompletely follow the above design principles, or may not follow the above design principles, which is not limited here.

[0128] The floating controls are generally used in the following scenarios:

[0129] 1. Carry out important operations on the page;

[0130] In this scenario, the floating control can be a single button. For example, Figure 5 FIG. 5 is an exemplary schematic diagram of a floating control in an embodiment of the present application. In response to a user clicking on the floating control 501 , the electronic device may open a new document writing page for the user to operate.

[0131] The floating control can also contain a group of buttons with related functions. For example, Figure 6 FIG. 1 is another schematic diagram of a floating control in an embodiment of the present application. Figure 6 In the user interface shown in (a) of FIG. 1 , in response to the user clicking the floating control 601, the floating control can be expanded as follows: Figure 6 602 in the user interface shown in (b) of FIG. The floating control 602 may include a floating control 6021, a floating control 6022, and a floating control 6023. In response to the user clicking the floating control 6021, the electronic device may open a to-do window. In response to the user clicking the floating control 6022, the electronic device may open a calendar window. In response to the user clicking the floating control 6023, the electronic device may fix the floating control 602 in an expanded state.

[0132] 2. Anchor point positioning;

[0133] When browsing a long list of pages on the display of an electronic device, you may need to return to the top. Some current solutions, such as double-clicking the status bar to return to the top, double-clicking a specific tab in the bottom tab bar to return to the top, etc., are hidden deep, and ordinary users are not aware of these uses. In this case, a floating control can be used to achieve anchor positioning. For example, Figure 7FIG. 1 is another schematic diagram of a floating control in an embodiment of the present application. Figure 7 In the user interface shown in (a) of FIG. 1 , the interface progress slider 702 has reached the bottom of the page. In response to the user clicking the floating control 701, the electronic device returns the page to the top. Figure 7 As shown in (b) in the figure, the interface slider 702 returns to the top of the page.

[0134] In addition to returning to the top, the floating control can also be used to meet other anchor positioning requirements, such as clicking to jump to a recommended location on the page, clicking to jump to the bottom of the page, etc., which are not limited here.

[0135] 3. Used for strong prompts;

[0136] In addition to functional requirements, some prompting requirements may also be made into a floating control to create a stronger visual expression. For example, Figure 8 FIG. 1 is another schematic diagram of a floating control in an embodiment of the present application. Figure 8 In the example, the shaking red packet 801 adsorbed on the side can be a floating control.

[0137] 4. Support multi-process operation.

[0138] As the functions within applications become more and more complex, the need for multiple tasks and users to switch between multiple tasks has emerged. For example, Fig. 9 , which is another schematic example diagram of a floating control in an embodiment of the present application. Fig. 9 (a) in FIG. 1 is a user interface diagram of a music playing page in which a user listens to music in application A. If the user wants to go to other pages of application A or to process other tasks in application B at this time, Fig. 9 As shown in (b) of FIG. 1 , the electronic device can display the music playing page in application A in miniature as a floating control 901. After the user completes other tasks, in response to the user clicking the floating control 901, the electronic device can display the music playing page in application A in miniature as a floating control 901. Fig. 9 The music playback page shown in (a) in FIG.

[0139] It is understandable that, in addition to using the floating control in the above-mentioned scenarios, in actual applications, there may be many other scenarios for using the floating control, which are not limited here.

[0140] (3) First preset area:

[0141] In the embodiment of the present application, the first preset area is an area of ​​a preset size surrounding the floating control on the display screen of the electronic device that does not include the floating control.

[0142] In a possible implementation, the first preset area is an area of ​​a preset size on the display screen of the electronic device that surrounds the floating control but does not include the floating control.

[0143] like Fig.10 , which is an exemplary schematic diagram of the first preset area in the embodiment of the present application. Among them, the area of ​​a preset size surrounding the floating control 1001 but not including the floating control 1001 on the display screen is the first preset area 1002.

[0144] It is understandable that if the floating control moves, the first preset area will also move accordingly.

[0145] Preferably, the first preset area may be an area surrounding the floating control and the center of the second preset area moving with the floating control, which is an area not including the floating control on the display screen of the electronic device.

[0146] It is understandable that the positional relationship between the center of the second preset area and the center of the floating control is not limited. For example, the center of the floating control can be above, below, to the left, to the right, in the upper left corner, in the lower left corner, in the upper right corner, in the lower right corner, etc., of the center of the second preset area, which is not limited here.

[0147] Preferably, the center of the second preset area is the center of the floating control.

[0148] The outer frame shape and size of the second preset area can be preset, for example, can be rectangular, circular, etc., which is not limited here. The outer frame shape and size of the second preset area can be preset at the factory or manually specified by the user in the setting interface of the electronic device, which is not limited here.

[0149] For example, if the outer frame shape of the second preset area is preset to be a rectangle, the center of the second preset area is the center of the floating control, and the side length of the second preset area is twice the length or diameter of the longest side of the floating control. Fig.11a , which is an exemplary schematic diagram of the first preset area and the second preset area in the embodiment of the present application. The rectangular area surrounding the floating control 1101 with a side length of twice the diameter of the floating control 1101 and taking the floating control 1101 as the center is the second preset area 1102. The area of ​​the second preset area 1102 in the display screen that does not include the floating control 1101 is the first preset area 1103.

[0150] For example, the user can move Fig.11a If the floating control 1101 is moved to the middle of the display screen, the second preset area will move accordingly. Since more areas of the second preset area enter the display screen, the size of the first preset area will change. Fig.11bFIG. 1 is another exemplary schematic diagram of the first preset area and the second preset area in the embodiment of the present application. The floating control 1101 moves to the middle position of the display screen, and the shape and size of the second preset area 1104 are the same as those of FIG. Fig.11a The second preset area 1102 is the same as that in the figure, and also moves to the middle position of the display screen along with the floating control 1001. Fig.11a The portion of the second preset area 1102 that does not appear on the display screen is Fig.11b The second preset area 1104 in the display screen appears. Therefore, Fig.11b The size of the first preset area 1105 is compared with Fig.11a The size of the first preset area 1103 in FIG. 1 is increased.

[0151] It is understandable that when the outer frame shape of the second preset area is other shapes, the size is other preset sizes, and the center is other preset center points, the area it represents and the impact on the size of the first preset area after following the movement of the floating control are the same as above. Fig.11a and Fig.11b The examples shown are similar and are not repeated here.

[0152] In a possible implementation, the first preset area does not surround the floating control.

[0153] Optionally, the position of the first preset area may vary accordingly with the position of the floating control on the display screen.

[0154] Exemplarily, when the floating control is located on the left side of the display screen, the first preset area may be located directly above the floating control. Fig.12a 1 is a set of exemplary schematic diagrams of the first preset area in the embodiment of the present application. Fig.12a As shown in (a) of FIG. 1 , the floating control 1202 is located on the left side of the display screen 1201, and the first preset area 1203 does not surround the floating control 1202, but is located directly above the floating control 1202. It can be understood that the shape and size of the first preset area 1203 may also be different depending on the setting. Fig.12a As shown in (b) in FIG. 1 , the shape of the first preset area 1204 may also be composed of two semicircular arcs.

[0155] Exemplarily, when the floating control is located at the right side or the center area of ​​the display screen, the position of the first preset area may be located at the upper left of the floating control. Figure 12b FIG. 2 is another exemplary schematic diagram of the first preset area in the embodiment of the present application. Figure 12b As shown in (a) of FIG. 1 , the floating control 1202 is located on the right side of the display screen 1201, and the first preset area 1205 is located on the upper left of the floating control 1202. Figure 12b As shown in (b), the floating control 1202 is located at the center of the display screen 1201, and the first preset area 1205 is located at the upper left of the floating control 1202.

[0156] It is understandable that the position of the first preset area relative to the floating control can be set according to actual needs and is not limited here.

[0157] It can be understood that the shape and size of the first preset area can be set according to actual needs and are not limited here.

[0158] Optionally, the boundary of the first preset area may or may not be in contact with the boundary of the floating control, which is not limited here. Fig.12c Another exemplary schematic diagram of the first preset area in the embodiment of the present application. The first preset area 1205 is located at the upper left of the floating control 1202, and the boundary of the first preset area does not touch the boundary of the floating control.

[0159] (4) First window;

[0160] In the embodiment of the present application, the first window is the window below the floating control displayed on the display screen.

[0161] like Fig.13 The figure is an exemplary schematic diagram of the first window in the embodiment of the present application.

[0162] For example, Fig.13 As shown in (a) of FIG. 1 , the first window may be a window in an application below the floating control 1301 displayed on the display screen. The floating control 1301 may be a floating control of the application or may not be a floating control of the application, which is not limited here.

[0163] For example, Fig.13 As shown in (b) in FIG. 1 , the first window may also be a window of a setting interface of a system of the electronic device below the floating control 1301 displayed on the display screen.

[0164] For example, Fig.13 As shown in (c) in FIG. 1 , the first window may also be a window of a main interface of an electronic device below the floating control 1301 displayed on the display screen.

[0165] It is understandable that the first window may also be a window below other types of floating controls displayed on the display screen, which is not limited here.

[0166] Fig.14 Schematic diagram of a scene of a control moving in the prior art. Fig.14As shown in (a) of FIG. 1 , the user is reading an article in the first window 1402, and the current position and direction of the user's reading is the first position 1403. The user finds that the floating control 1401 blocks the content that is about to be read, so the user touches the floating control 1401 and drags the floating control 1401 upward to drag the floating control 1401 away from the area that is about to be read. Fig.14 As shown in (b) of FIG. 1 , in response to the user's dragging operation on the floating control 1401 , the electronic device moves the floating control to the position specified by the user. After the user completes the dragging operation, the user can continue to read along the first direction 1403 .

[0167] In the prior art, when the floating control 1401 blocks the content, the user needs to manually drag the floating control 1401 to make it no longer block the content that he is about to read after discovering that the floating control 1401 blocks the content that he is about to read. If the user reads the location of the floating control 1401 again, the user needs to manually drag the floating control to another location again. Such an operation interrupts the user's reading continuity and greatly reduces the user's reading experience. If the floating control 1401 is closed, the user cannot enjoy the convenient function of the floating control 1401.

[0168] Fig.15 Schematic diagram of a scene in which a control moves in an embodiment of the present application. Fig.15 As shown in (a) of FIG. 1 , the user is reading an article in the first window 1502 below the floating control 1501, and the current position and direction of the user's reading is the second position 1503. When the electronic device detects that the user's eye gaze position is located in the first preset area 1504 around the floating control 1501 and exceeds the preset first time length, the electronic device automatically moves the floating control 1501. Fig.15 As shown in (b), the moved floating control 1501 no longer blocks the content that the user is about to read. The user does not need to perform any manual operation and can continue reading in the second position 1503 without hindrance, without worrying that the content to be read is blocked by the floating control.

[0169] By adopting the control moving method provided in the embodiment of the present application, the user no longer needs to manually move the floating control frequently to avoid the floating control blocking the content to be read, which reduces the reading experience. The electronic device will automatically move the floating control according to the user's reading position to avoid the floating control blocking the content to be read by the user. This allows the floating control to be used normally without affecting the user's reading and operation, greatly improving the user's reading experience.

[0170] The following first introduces an exemplary electronic device 100 provided in an embodiment of the present application.

[0171] Fig.16 It is a schematic diagram of the structure of the electronic device 100 provided in an embodiment of the present application.

[0172] The embodiment is described in detail below by taking the electronic device 100 as an example. It should be understood that the electronic device 100 may have more or fewer components than those shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and / or application specific integrated circuits.

[0173] 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, a subscriber identification module (SIM) card interface 195 and an infrared light emitter 196, etc. 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.

[0174] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, 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.

[0175] 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. Different processing units may be independent devices or integrated into one or more processors.

[0176] 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.

[0177] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, 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.

[0178] In some embodiments, 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.

[0179] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, 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. For example: 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.

[0180] The I2S interface can be used for audio communication. In some embodiments, 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. In some embodiments, 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.

[0181] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, 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.

[0182] 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. In some embodiments, the UART interface is generally used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, 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.

[0183] 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. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0184] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, 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.

[0185] The SIM interface can be used to communicate with the SIM card interface 195 to implement the function of transmitting data to the SIM card or reading data in the SIM card.

[0186] 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 transfer 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.

[0187] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0188] The charging management module 140 is used to receive charging input from a charger, where the charger can be a wireless charger or a wired charger.

[0189] 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 to power the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.

[0190] 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.

[0191] 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. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0192] 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 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0193] The modem processor may include a modulator and a demodulator. Among them, 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. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. 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. In some embodiments, the modem processor may be an independent device. In other embodiments, 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.

[0194] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. 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, 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 it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0195] In some embodiments, 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 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, and / or IR technology. 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).

[0196] 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.

[0197] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0198] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0199] 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.

[0200] 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. 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. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0201] In some embodiments, the electronic device 100 may include 1 or N infrared cameras, which can capture videos containing infrared light.

[0202] The infrared light emitter 196 is used to emit infrared light. In some embodiments, the infrared light emitted by the infrared light emitter 196 may be reflected by the user's eyeball. The electronic device 100 may include 1 or N infrared light emitters 196, where N is a positive integer greater than 1.

[0203] In the embodiment of the present application, the infrared camera and the infrared light emitter 196 in the electronic device 100 can form the hardware basis for implementing the eye tracking technology using the principle 3 in the above-mentioned term introduction (1) eye tracking technology.

[0204] In practical applications, if the eye tracking technology is implemented by using the principle 1 or principle 2 in the eye tracking technology described in the above terminology (1), the electronic device 100 may or may not have an infrared camera and an infrared transmitter 196, which is not limited here.

[0205] 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.

[0206] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, 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.

[0207] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.

[0208] 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, such as storing music, video and other files in the external memory card.

[0209] 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. Among them, the program storage area may store an operating system, applications required for at least one function (such as face recognition function, fingerprint recognition function, mobile payment function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as face information template data, fingerprint information template, etc.), etc. In addition, 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.

[0210] 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.

[0211] 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. In some embodiments, 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.

[0212] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.

[0213] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.

[0214] 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.

[0215] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130 or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.

[0216] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, 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. In some embodiments, 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.

[0217] The gyro sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyro sensor 180B. 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.

[0218] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.

[0219] 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. In some embodiments, 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.

[0220] 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.

[0221] 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.

[0222] 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.

[0223] The ambient light sensor 180L is used to sense the ambient light brightness. 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.

[0224] 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.

[0225] The temperature sensor 180J is used to detect temperature. In some embodiments, 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 reduces the performance of a processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.

[0226] 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. In other embodiments, 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.

[0227] 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.

[0228] 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. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0229] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0230] 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.

[0231] Fig.17 It is a software structure block diagram of the electronic device 100 according to an embodiment of the present application.

[0232] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the system is divided into four layers, from top to bottom: application layer, application framework layer, runtime and system library, and kernel layer.

[0233] The application layer can include a series of application packages.

[0234] like Fig.17 As shown, the application package may include control mobile modules, camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications (also referred to as applications).

[0235] Among them, the control movement module is used to determine the user's eye gaze position, and execute the control movement method in the embodiment of the present application according to the user's eye gaze position.

[0236] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0237] like Fig.17 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, an eye gaze position calculation module, and the like.

[0238] 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.

[0239] 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.

[0240] 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. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.

[0241] 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.).

[0242] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0243] 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 from applications running in the background, or a notification that appears on the screen in the form of a dialogue interface. 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.

[0244] The eye gaze position calculation module is used to obtain real-time video of the user's eye movement from the camera driver of the kernel layer, and calculate the user's eye gaze position on the display screen in real time based on eye tracking technology.

[0245] The eye gaze position calculation module can provide an eye gaze position interface, and the control movement module of the application layer can obtain the user's eye gaze position on the display screen in real time by calling the eye gaze position interface.

[0246] The runtime includes the core library and the virtual machine. The runtime is responsible for the scheduling and management of the system.

[0247] The core library consists of two parts: one part is the function that the programming language (for example, Java language) needs to call, and the other part is the core library of the system.

[0248] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the programming files of the application layer and the application framework layer (for example, java files) 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.

[0249] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0250] The surface manager is used to manage the display subsystem and provides the fusion of two-dimensional (2D) and three-dimensional (3D) layers for multiple applications.

[0251] 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.

[0252] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0253] A 2D graphics engine is a drawing engine for 2D drawings.

[0254] The kernel layer is a layer between hardware and software. The kernel layer includes at least a display driver, a camera driver, an audio driver, a sensor driver, and a virtual card driver. In some embodiments, the kernel layer may also include an infrared light emitter driver.

[0255] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.

[0256] When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, timestamp of the touch operation, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture static images or videos through the camera 193.

[0257] In some embodiments, the eye gaze position calculation module may also be in other layers of the software structure. For example, it may belong to the kernel layer, the system library, or the application layer, which is not limited here. When the eye gaze position calculation module is in the application layer, it may be a module independent of the control movement module, or a submodule in the control movement module, which is not limited here.

[0258] The following is an exemplary introduction to the control moving method in the embodiment of the present application in combination with the accompanying drawings and the software and hardware structure of the exemplary electronic device 100 described above:

[0259] The following is a description of a schematic user interface for setting relevant parameters in an embodiment of the present application:

[0260] Fig.18 A set of user interface schematic diagrams in an embodiment of the present application. Fig.18 (a) in FIG. 1 shows a user interface 1801. The user interface 1801 is a system setting interface of the electronic device 100, and is used to set system-related functions. In addition to some conventional setting items, the user interface 1801 may also include a floating control setting control 1802. The floating control setting control 1802 is used to provide setting options related to the floating control.

[0261] Understandably, Fig.18 (a) is an exemplary schematic diagram. In practical applications, the floating control setting control 1802 may or may not be in the system setting interface of the electronic device; and the floating control setting control 1802 may also be in the setting interface of a certain application, which is not limited here.

[0262] For example, in response to the user clicking the floating control setting control 1802, the electronic device 100 may display the following Fig.18 The user interface 1803 shown in (b) of FIG. 1803 is a floating control setting interface.

[0263] The user interface 1803 may include: a title bar 1804 , an avoidance function switch control 1805 , a priority avoidance mode selection control 1806 , a first preset area setting control 1807 , a first preset duration setting control 1808 and an exception setting control 1809 .

[0264] The title bar 1804 may include: a return key and a current page indicator. The return key may be used to return to the previous level of the menu. The previous level page of the user interface 1803 may be Fig.18The user interface 1801 shown in (a) of FIG. 18 is shown in FIG. 1802 . The current page indicator can be used to indicate the current page. For example, the text message "floating control settings" can be used to indicate that the current page is used to display the relevant content of the floating control settings. The current page indicator is not limited to text information, but can also be an icon, which is not limited here.

[0265] The avoidance function switch control 1805: is used to accept user operations (clicks or touches, etc.) to change the on or off state of the automatic avoidance function of the floating control. When the switch state of the avoidance function switch control 1805 is Off, it can indicate that the automatic avoidance function of the floating control is in the off state. When the switch state of the avoidance function switch control 1805 is On, it can indicate that the automatic avoidance function of the floating control is in the on state. When the automatic avoidance function of the floating control is in the on state, the electronic device can automatically execute the control moving method in the embodiment of the present application. When the automatic avoidance function of the floating control is in the off state, the electronic device may not execute the control moving method in the embodiment of the present application.

[0266] It is understandable that, in addition to receiving the user's direct operation on the avoidance function switch control 1805 to change the state of the avoidance function switch control 1805, the electronic device 100 can also receive other preset shortcut instructions to change the state of the avoidance function switch control 1805. For example, the electronic device can preset that when it is detected that the user draws the letter "B" on the display screen 194 of the electronic device 100, the state of the avoidance function switch control 1805 is changed to start; for another example, the electronic device can also preset that when it is detected that the user taps the display screen 194 of the electronic device 100 three times, the state of the avoidance function switch control 1805 is changed to start, etc., which is not limited here.

[0267] It should be noted that this is an illustrative example. In some embodiments, the electronic device 100 may not have the avoidance function switch control 1805, and the floating control automatic avoidance function is enabled by default, and the control moving method in the embodiment of the present application may be executed, which is not limited here.

[0268] The priority avoidance mode selection control 1806 is used to provide a selection option for the priority avoidance mode of the floating control.

[0269] The first preset area setting control 1807 is used to provide setting options for the first preset area;

[0270] The first preset duration setting control 1808 is used to provide setting options for the first preset duration.

[0271] The exception setting control 1809 is used to provide an option for automatically avoiding exceptions to floating controls.

[0272] like Fig.18 As shown in (b) in FIG. 1 , when the switch state of the avoidance function switch control 1805 is Off, it indicates that the automatic avoidance function of the floating control in the electronic device 100 is turned off. At this time, other controls on the floating control setting page, such as the priority avoidance mode selection control 1806, the first preset area setting control 1807, the first preset duration setting control 1808, and the exception setting control 1809, can be displayed as unavailable.

[0273] like Fig.19 As shown in (a) of FIG. 1 , in a possible implementation, in response to a user clicking on the avoidance function switch control 1805 in the user interface 1803, the electronic device 100 may display the following Fig.19 The user interface 1804 shown in (b) in FIG. 1804. In the user interface 1804, the switch state of the avoidance function switch control 1805 is changed to On. The automatic avoidance function of the floating control of the electronic device 100 is turned on. The priority avoidance mode selection control 1806, the first preset area setting control 1807, the first preset duration setting control 1808, and the exception setting control 1809 in the user interface 1804 can all be displayed as available.

[0274] like Fig. 20 As shown in (a) of FIG. 1 , in a possible implementation, in response to a user clicking on a priority avoidance mode control 1806 in the user interface 1804, the electronic device 100 may display the following Fig. 20 The user interface 2000 shown in (b) in FIG. 2000 is a priority avoidance mode setting interface.

[0275] The user interface 2000 may include: a title bar 2001 , a movement avoidance mode selection control 2002 , and a content avoidance mode selection control 2003 .

[0276] The title bar 2001 may include: a return key and a current page indicator. The return key may be used to return to the previous level of the menu. The previous level page of the user interface 2000 may be the user interface 1804. The current page indicator may be used to indicate the current page. For example, the text message "Priority avoidance mode setting" may be used to indicate that the current page is used to display the relevant content of the priority avoidance mode setting. The current page indicator is not limited to text information, but may also be an icon, which is not limited here.

[0277] The mobile avoidance mode selection control 2002 is used to receive the user's operation and determine that the preferred avoidance mode for the automatic avoidance of the floating control of the electronic device 100 is the mobile avoidance mode. The mobile avoidance mode means that whenever the electronic device 100 determines that the automatic avoidance condition of the floating control is currently met, the floating control will be moved in a preset moving direction and a preset moving distance to avoid the floating control from blocking the content that the user is about to read.

[0278] In an embodiment of the present application, when the electronic device 100 obtains the user's eye gaze position in real time through the eye gaze position calculation module, and determines through the control movement module that the user's eye gaze position on the display screen 194 is within a first preset area and exceeds a first preset time duration, the electronic device 100 can determine that the automatic avoidance conditions for the floating control are currently met.

[0279] The moving avoidance mode selection control 2002 may also include: an expansion sub-control 2002A, a priority moving direction setting control 2002B, and a preset moving distance setting control 2002C.

[0280] The expansion sub-control 2002A is used to expand or collapse the drop-down menu after receiving the user's operation. The drop-down menu may include a priority moving direction setting control 2002B and a preset moving distance setting control 2002C.

[0281] The priority moving direction setting control 2002B is used to provide setting options for the priority moving direction of the floating control;

[0282] The preset moving distance setting control 2002C is used to provide setting options for the preset moving distance of the floating control.

[0283] The content avoidance mode selection control 2003 is used to receive the user's operation and determine that the preferred avoidance mode for the automatic avoidance of the floating control of the electronic device 100 is the content avoidance mode. The content avoidance mode means that when the electronic device 100 determines that the automatic avoidance condition of the floating control is currently met, the display content on the display screen 194 of the electronic device 100 will be rearranged and displayed on the display screen 194 so that the display content is no longer blocked by the floating control.

[0284] It is understandable that this is an illustrative example. In some embodiments, the electronic device 100 may not have the priority avoidance mode control 1806, but directly use the default floating control avoidance mode to execute the control movement method in the embodiment of the present application, which is not limited here.

[0285] like Fig.21As shown in (a) of FIG. 1 , in a possible implementation, in response to a user clicking operation on a priority moving direction setting control 2002B in the user interface 2000, the electronic device 100 may display the following Fig.21 The user interface 2100 shown in (b) of FIG. 2100 is a priority moving direction setting interface.

[0286] The user interface 2100 may include: a title bar 2101, a default moving direction selection control 2102, a priority selection control to the right and then upward 2103, a priority selection control to the right and then downward 2104, a priority selection control to the left and then upward 2105, a priority selection control to the left and then downward 2106, a priority selection control to the top 2107, a priority selection control to the bottom 2108, and a priority selection control to the contentless area 2109.

[0287] The title bar 2101 may include: a return key and a current page indicator. The return key may be used to return to the previous level of the menu. The previous level page of the user interface 2100 may be the user interface 2000. The current page indicator may be used to indicate the current page. For example, the text message "priority moving direction setting" may be used to indicate that the current page is used to display the relevant content of the priority moving direction setting. The current page indicator is not limited to text information, but may also be an icon, which is not limited here.

[0288] The default moving direction selection control 2102 is used to receive a user's operation and determine that when the floating control of the electronic device 100 is automatically avoiding using the moving avoidance method, the default moving direction of the electronic device 100 is used for avoiding.

[0289] The default moving direction of the electronic device 100 can be a factory preset moving direction, which can be a single moving direction or a compound moving direction, or a combination of any one or more other optional moving directions, or a moving direction determined in real time based on the scene currently displayed on the display screen 194 of the electronic device 100 in combination with an artificial intelligence algorithm, which is not limited here.

[0290] The priority rightward and then upward selected control 2103 is used to receive the user's operation and determine that the floating control of the electronic device 100 is preferentially moved to the right when automatically avoiding in the moving avoidance mode. When it has moved to the rightmost side of the display screen 194 of the electronic device 100, it is preferentially moved upward.

[0291] The priority rightward and then downward selection control 2104 is used to receive the user's operation and determine that the floating control of the electronic device 100 is preferentially moved to the right when automatically avoiding in the moving avoidance manner. When it has moved to the rightmost side of the display screen 194 of the electronic device 100, it is preferentially moved downward.

[0292] The control 2105 that is selected leftward and then upward is used to receive the user's operation and determine that the floating control of the electronic device 100 is moved to the left first when automatically avoiding by moving avoidance mode. When it has moved to the leftmost side of the display screen 194 of the electronic device 100, it is moved upward first.

[0293] The control 2106 that is selected leftward and then downward is used to receive the user's operation and determine that the floating control of the electronic device 100 is moved to the left first when automatically avoiding by moving avoidance mode. When it has moved to the leftmost side of the display screen 194 of the electronic device 100, it is moved downward first.

[0294] The top priority selected control 2107 is used to receive the user's operation and determine that the floating control of the electronic device 100 is moved directly to the top of the display screen 194 in priority when automatically avoiding using the moving avoidance method.

[0295] The priority bottom selection control 2108 is used to receive the user's operation and determine that the floating control of the electronic device 100 is preferentially moved directly to the bottom of the display screen 194 when automatically avoiding using the moving avoidance method.

[0296] The control 2109 is used to receive the user's operation and determine that the floating control of the electronic device 100 is preferably moved directly to the area without displaying content on the display screen 194 when automatically avoiding using the moving avoidance method. When there is no area without displaying content on the display screen 194, the floating control moves in the default moving direction.

[0297] It is understood that this is an illustrative example. In some embodiments, the preferred movement direction options available in the user interface 2100 may be more specific. Fig.21 In some embodiments, the electronic device 100 may not have the priority movement direction setting control 2002B, but directly use the default floating control movement direction to execute the control movement method in the embodiment of the present application, which is not limited here.

[0298] like Fig. 22 As shown in (a) in FIG. 1 , in a possible implementation, in response to a user clicking operation on a preset moving distance setting control 2002C in the user interface 2000, the electronic device 100 may display the following Fig. 22 The user interface 2200 shown in (b) of FIG. 2200 is a preset moving distance setting interface.

[0299] The user interface 2200 may include: a title bar 2201 , a default moving distance selection control 2202 , and a custom setting area 2203 .

[0300] The title bar 2201 may include: a return key and a current page indicator. The return key may be used to return to the previous level of the menu. The previous level page of the user interface 2200 may be the user interface 2000. The current page indicator may be used to indicate the current page, for example, the text message "preset moving distance setting" may be used to indicate that the current page is used to display the relevant content of the preset moving distance setting. The current page indicator is not limited to text information, but may also be an icon, which is not limited here.

[0301] The default moving distance selection control 2202 is used to receive the user's operation and determine that the floating control of the electronic device 100 uses the default moving distance to move each time when automatically avoiding using the moving avoidance method.

[0302] The custom setting area 2203 is used to customize the moving distance of the floating control when performing automatic avoidance.

[0303] The custom setting area 2203 may include a control side length multiple setting control 2203A and a font height multiple setting control 2203B.

[0304] The control side length multiple setting control 2203A is used to receive user operations and set the floating control of the electronic device 100 to move a multiple of the side length / diameter of the floating control each time when the floating control is automatically avoided by moving avoidance.

[0305] The font height multiple setting control 2203B is used to receive user operations and set the floating control of the electronic device 100 to move a multiple of the font height each time when the floating control is automatically avoided by moving avoidance.

[0306] It is understood that this is an illustrative example. In some embodiments, the preset moving distance setting options available in the user interface 2200 can be more Fig. 22 In some embodiments, the electronic device 100 may not have the preset movement distance setting control 2002C, but directly use the default floating control movement distance to execute the control movement method in the embodiment of the present application, which is not limited here.

[0307] like Fig.23 As shown in (a) of FIG. 1 , in a possible implementation, in response to a user clicking operation on the first preset area setting control 1807 in the user interface 1804, the electronic device 100 may display the following Fig.23The user interface 2300 shown in (b) of FIG. 2300 is a first preset area setting interface.

[0308] The user interface 2300 may include: a title bar 2301 , a default preset area selection control 2302 , and a custom second preset area setting control 2303 .

[0309] The title bar 2201 may include: a return key and a current page indicator. The return key may be used to return to the previous level of the menu. The previous level page of the user interface 2300 may be the user interface 1804. The current page indicator may be used to indicate the current page, for example, the text message "first preset area setting" may be used to indicate that the current page is used to display the relevant content of the first preset area setting. The current page indicator is not limited to text information, but may also be an icon, which is not limited here.

[0310] The default preset area selection control 2302 is used to receive a user's operation and determine that the electronic device 100 uses a default first preset area. The first preset area is an area of ​​a preset size on the display screen of the electronic device that surrounds the floating control but does not include the floating control.

[0311] The second preset area setting control 2303 is used to receive a user operation to customize the second preset area. At this time, the first preset area can be an area of ​​the electronic device display screen that surrounds the floating control and the second preset area whose center moves with the floating control but does not contain the floating control.

[0312] The customized second preset area setting control 2303 may include: a center setting sub-control 2303A, a border shape setting sub-control 2303B and a side length / diameter setting sub-control 2303C.

[0313] The center setting subcontrol 2303A is used to set the center of the second preset area. The center of the second preset area moves with the floating control. Preferably, the center of the second preset area is the center of the floating control.

[0314] The border shape setting subcontrol 2303B is used to set the border shape of the second preset area. For example, the side length shape can be set to a rectangle, a circle, etc., which is not limited here.

[0315] The side length / diameter setting subcontrol 2303C is used to set the side length / diameter of the second preset area. For example, the side length of the second preset area can be set to be twice the side length / diameter of the floating control. The side length / diameter can also be set to a specific value, which is not limited here. It is understood that the side length / diameter of the second preset area is greater than the side length / diameter of the floating control.

[0316] It is understood that this is an illustrative example. In some embodiments, the first preset area setting option selectable in the user interface 2300 can be more Fig.23 In some embodiments, the electronic device 100 may not have the first preset area setting control 1807, but directly use the default first preset area to execute the control moving method in the embodiment of the present application, which is not limited here.

[0317] like Fig.24 As shown in (a) of FIG. 1 , in a possible implementation, in response to a user clicking on the first preset duration setting control 1808 in the user interface 1804, the electronic device 100 may display the following Fig.24 The user interface 2400 shown in (b) of FIG. 2400 is a first preset duration setting interface.

[0318] The user interface 2400 may include: a title bar 2401 , a default preset duration selection control 2402 , and a custom first preset duration setting control 2403 .

[0319] The title bar 2401 may include: a return key and a current page indicator. The return key may be used to return to the previous level of the menu. The previous level page of the user interface 2400 may be the user interface 1804. The current page indicator may be used to indicate the current page, for example, the text message "first preset duration setting" may be used to indicate that the current page is used to display the content related to the first preset duration setting. The current page indicator is not limited to text information, but may also be an icon, which is not limited here.

[0320] The default preset duration selection control 2402 is used to receive a user's operation and determine that the electronic device 100 uses a default first preset duration.

[0321] The custom first preset duration setting control 2403 is used to receive the user's operation and determine the custom setting of the first preset duration.

[0322] The custom first preset duration setting control 2403 may also include a duration setting sub-control 2403A. The duration setting sub-control 2403A is used to receive a custom first preset duration input by a user, such as 2 seconds, 3 seconds, etc., which is not limited here.

[0323] It is understood that this is an illustrative example. In some embodiments, the first preset duration setting option selectable in the user interface 2400 may be Fig.24In some embodiments, the electronic device 100 may not have the first preset duration setting control 1808, but directly use the default first preset duration to execute the control moving method in the embodiment of the present application, which is not limited here.

[0324] like Fig.25 As shown in (a) of FIG. 1 , in a possible implementation, in response to a user clicking operation on the first exception control 1809 in the user interface 1804, the electronic device 100 may display the following Fig.25 The user interface 2500 shown in (b) of FIG. 2500 is an exception setting interface.

[0325] The user interface 2500 may include: a title bar 2501, and a switch control 2502 that will not be moved if no content is blocked.

[0326] The title bar 2501 may include: a return key and a current page indicator. The return key may be used to return to the previous level of the menu. The previous level page of the user interface 2500 may be the user interface 1804. The current page indicator may be used to indicate the current page. For example, the text message "Exception" may be used to indicate that the current page is used to display the relevant content of the exception setting. The current page indicator is not limited to text information, but may also be an icon, which is not limited here.

[0327] The "do not move if no obstructing content" switch control 2502 is used to receive a user's operation and turn on or off the "do not move if no obstructing content" function.

[0328] When the function of not moving if there is no obstructed content is turned off, when the electronic device 100 determines that the user's eye gaze position on the display screen 194 is in the first preset area and exceeds the first preset time, the electronic device 100 will move the floating control so that the first preset area no longer covers the user's eye gaze position.

[0329] When the function of not moving if no content is blocked is turned on, when the electronic device 100 determines that the user's eye gaze position on the display screen 194 is in the first preset area and exceeds the first preset time, the electronic device will also determine whether the floating control blocks the content in the first window below the floating control. When it is determined that the floating control blocks the content in the first window, the electronic device 100 moves the floating control. Otherwise, the electronic device may not move the floating control.

[0330] It is understood that this is an illustrative example. In some embodiments, the exception options available for selection in the user interface 2500 may be more specific. Fig.25In some embodiments, the electronic device 100 may not have the exception control 1809, but directly enable or disable the functions in some exceptions by default, thereby executing the control moving method in the embodiment of the present application, which is not limited here.

[0331] In combination with the schematic user interface of the above parameter settings, the schematic user interface of the control movement scene in the embodiment of the present application is described in several cases:

[0332] Case 1: Move avoidance mode, no exceptions enabled.

[0333] Exemplarily, in a possible implementation, at this time, setting 1 may be:

[0334] like Fig.19 As shown in (b) in FIG. 1 , the avoidance function switch control 1805 in the user interface 1804 is in the On state, and the automatic avoidance function of the floating control of the electronic device 100 is turned on.

[0335] like Fig. 20 As shown in (b) in FIG. 2 , the moving avoidance mode selection control 2002 in the user interface 2000 is in a selected state, and the preferred avoidance mode for automatic avoidance of the floating control is the moving avoidance mode.

[0336] like Fig.26 As shown in (a) in the figure, the control 2103 selected rightwards and then upwards in the user interface 2100 is in the selected state, and the floating control is moved to the right first when automatically avoiding by moving avoidance mode. When it has moved to the rightmost side of the display screen 194 of the electronic device 100, it is moved upward first.

[0337] like Fig. 22 As shown in (b) in the figure, the default moving distance selection control 2202 in the user interface 2200 is in a selected state, and when the floating control automatically avoids using the moving avoidance method, it moves using the default moving distance.

[0338] like Fig.26 As shown in (b) of the figure, the second preset area setting control 2303 is selected in the user interface 2300. The center setting sub-control 2303A is set to the second preset area with the center of the floating control as the center, the border shape setting sub-control 2303B is set to the border shape of the second preset area as a rectangle, and the side length / diameter setting sub-control 2303C is set to the side length / diameter of the second preset area as twice the side length / diameter of the floating control.

[0339] like Fig.26As shown in (c) in FIG. 2 , the customized first preset duration setting control 2403 in the user interface 2400 is in a selected state, wherein the value in the duration setting sub-control 2403A is 2 seconds.

[0340] like Fig.25 As shown in (b) in the figure, the switch control 2502 for "Do not move if no content is blocked" in the user interface 2500 is in the Off state, and the function of "Do not move if no content is blocked" is not enabled.

[0341] Under setting 1, when the electronic device 100 detects that the user's eye gaze position is in the first preset area for a first preset time, the floating control automatically moves to the right. Fig. 27 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0342] like Fig. 27 As shown in (a) in FIG. 1 , a first window 2706 is currently displayed on the display screen 194 of the electronic device 100. The first window 2706 is a window of an application. A floating control 2701 is displayed above the first window 2706. The frame shape of the second preset area 2702 is a rectangle, with the center of the floating control 2701 as the center and the side length being twice the diameter of the floating control 2701. At this time, the second preset areas are all within the display range of the display screen 194 of the electronic device 100, so the areas in the second preset area 2702 except the floating control 2701 are all first preset areas 2703. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. When the user is reading the content in the first window 2706, the movement direction of the user's eye gaze position is the direction indicated by the arrow 2705. At this time, the user's eye gaze position is located at the first eye gaze position 2704.

[0343] like Fig. 27 As shown in (b) of FIG. 1 , the user continues to read in the direction indicated by arrow 2707. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the second eye gaze position 2708. The electronic device 100 can determine that the second eye gaze position 2708 is within the range of the first preset area 2703 and start timing.

[0344] It is understandable that the eye tracking technology used by the electronic device 100 is different, and the interval time of the eye tracking is set to be different. In some embodiments, the electronic device 100 can continuously and uninterruptedly monitor the user's eye gaze position on the display screen 194. In this case, the electronic device 100 can start timing when it determines that the eye gaze position is at the edge of the first preset area and just enters the range of the first preset area. In some embodiments, the electronic device 100 can periodically detect the user's eye gaze position on the display screen 194 according to a preset interval. In this case, it is possible that when the electronic device 100 determines the user's eye gaze position at a certain time, the eye gaze position is already in the first preset area, and the electronic device 100 can start timing from the first time it determines that the user's eye gaze position is located in the first preset area. This is not limited in the embodiments of the present application.

[0345] like Fig. 27 As shown in (c) in FIG. 1 , the user continues to read in the direction indicated by arrow 2709. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the third eye gaze position 2710. The electronic device 100 can also determine that the user's eye gaze position has reached the first preset time of 2 seconds from the second eye gaze position 2708 to the third eye gaze position 2710. At this time, the electronic device 100 can determine that the user is in a reading state and continues to read, and the floating control 2701 may block the content that the user is about to read.

[0346] like Fig. 27 As shown in (d), since the user's preferred rightward and then upward selection control 2103 in the user interface 2100 of the electronic device 100 is in the selected state, the electronic device 100 first moves the floating control 2701 to the right according to the preferred moving direction. At this time, the floating control 2701 is moved to the right side of the display screen 194, and the second preset area 2711 moves with the floating control 2701. Since the floating control 2701 is located on the right side of the display screen 194, part of the second preset area 2711 is no longer located in the display area of ​​the display screen 194. At this time, the first preset area 2712 is the part of the second preset area 2711 in the display screen 194 that does not include the floating control 2701. After the electronic device 100 automatically moves the floating control 2701, the first preset area 2712 at this time no longer covers the third eyeball gaze position 2710 where the user's eyeball is now looking. Therefore, for a period of time afterwards, the floating control 2701 will not block the content that the user is about to read.

[0347] Under setting 1, when the electronic device 100 detects that the user's eye gaze position is in the first preset area for a first preset time, the floating control automatically moves upward. Fig.28 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0348] like Fig.28 As shown in (a) in FIG. 1 , a first window 2806 is currently displayed on the display screen 194 of the electronic device 100. The first window 2806 is a window of an application. A floating control 2801 is displayed above the first window 2806. The frame shape of the second preset area 2802 is a rectangle, with the center of the floating control 2801 as the center and the length of the side being twice the diameter of the floating control 2801. At this time, since the floating control 2801 is located on the right side of the display screen 194, part of the second preset area 2802 is not within the display range of the display screen 194 of the electronic device 100. Therefore, the second preset area 2802 is in the display screen 194 and the area other than the floating control 2801 is the first preset area 2803. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. When the user is reading the content in the first window 2806, the movement direction of the user's eye gaze position is the direction indicated by the arrow 2805. At this time, the user's eye gaze position is located at the fourth eye gaze position 2804 .

[0349] like Fig.28 As shown in (b) of FIG. 1 , the user continues to read in the direction indicated by arrow 2807. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the fifth eye gaze position 2808. The electronic device 100 can determine that the fifth eye gaze position 2808 is within the range of the first preset area 2803 and start timing.

[0350] like Fig.28 As shown in (c) in FIG. 1 , the user continues to read in the direction indicated by arrow 2809. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the sixth eye gaze position 2810. The electronic device 100 can also determine that the user's eye gaze position has reached the first preset duration of 2 seconds from the fifth eye gaze position 2808 to the sixth eye gaze position 2810. At this time, the electronic device 100 can determine that the user is in a reading state and continues to read, and the floating control 2801 may block the content that the user is about to read.

[0351] like Fig.28As shown in (d), since the user has selected the control 2103 in the user interface 2100 of the electronic device 100 by first moving rightward and then upward, the control 2103 is in the selected state, and the floating control 2801 is already at the rightmost side of the display screen 194 at this time. Therefore, the floating control 2801 is moved upward by the electronic device 100 according to the preset moving distance. After the electronic device 100 moves the floating control 2801 upward, the second preset area that moves with the floating control 2801 is updated to the second preset area 2811. The part of the second preset area 2811 in the display screen 194 that does not include the floating control 2801 is the first preset area 2812. After the electronic device 100 automatically moves the floating control 2801, the first preset area 2812 at this time no longer covers the sixth eye gaze position 2810 where the user's eyeball is looking at at this time. Therefore, for a period of time afterwards, the floating control 2801 will not block the content that the user is about to read.

[0352] Under setting 1, the electronic device 100 may detect that the user's eye gaze position has moved to the floating control before reaching the first preset time in the first preset area, and the floating control does not move. Fig.29 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0353] like Fig.29 As shown in (a) in FIG. 1 , a first window 2905 is currently displayed on the display screen 194 of the electronic device 100. The first window 2905 is a window of an application. A floating control 2901 is displayed above the first window 2905. The frame shape of the second preset area 2902 is a rectangle, with the center of the floating control 2901 as the center and the length of the side being twice the diameter of the floating control 2901. At this time, since the floating control 2901 is located on the right side of the display screen 194, part of the second preset area 2902 is not within the display range of the display screen 194 of the electronic device 100. Therefore, the second preset area 2902 is in the display screen 194 and the area other than the floating control 2901 is the first preset area 2903. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. At this time, the user's eye gaze position is located at the seventh eye gaze position 2904 on the display screen 194.

[0354] like Fig.29 As shown in (b) of FIG. 1 , at a certain moment, the user's gaze moves toward the lower right of the display screen 194 in the direction of arrow 2906. The electronic device 100 detects that the user's eye gaze position on the display screen 194 at this time is the eighth eye gaze position 2907. The electronic device 100 can determine that the eighth eye gaze position 2907 is the range of the first preset area 2903 and start timing.

[0355] like Fig.29 As shown in (c) in FIG. 1 , before the first preset duration of 2 seconds is reached, the electronic device 100 detects that the user's eye gaze position on the display screen 194 has moved to the ninth eye gaze position 2909 in the direction of arrow 2908, leaving the range of the first preset area 2903. The electronic device 100 determines that the user's eye gaze position in the first preset area 2903 has not reached the first preset duration, so the electronic device 100 can determine that the user does not need to read the content around and below the floating control at this time. The electronic device 100 does not move the floating control 2901.

[0356] For example, in a possible implementation, when the electronic device 100 detects that the user's eye gaze position on the display screen 194 is maintained on the floating control 2901 for a second preset time, the electronic device 100 can open the window corresponding to the floating control 2901 and display it on the display screen 194. Fig.29 As shown in (d) in FIG. 1 , the electronic device 100 can display the music playback window corresponding to the floating control 2901 on the display screen 194 .

[0357] Under setting 1, the electronic device 100 may detect that the user's eye gaze position moves from the floating control to the first preset area, and after the first preset area reaches the first preset time, the floating control automatically moves upward. For example, Fig.30 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0358] like Fig.30 As shown in (a) in FIG. 1 , a first window 3005 is currently displayed on the display screen 194 of the electronic device 100. The first window 3005 is a window of an application. A floating control 3001 is displayed above the first window 3005. The frame shape of the second preset area 3002 is a rectangle, with the center of the floating control 3001 as the center and the length of the side being twice the diameter of the floating control 3001. At this time, since the floating control 3001 is located on the right side of the display screen 194, part of the second preset area 3002 is not within the display range of the display screen 194 of the electronic device 100. Therefore, the second preset area 3002 is in the display screen 194 and the area other than the floating control 3001 is the first preset area 3003. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. At this time, the user's eye gaze position is located at the tenth eye gaze position 3004 on the display screen 194. The tenth eye gaze position 3004 is on the floating control 3001 .

[0359] like Fig.30As shown in (b) in FIG. 1 , at a certain moment, the user's gaze moves in the direction of arrow 3006. The electronic device 100 detects that the user's eye gaze position on the display screen 194 at this time is the eleventh eye gaze position 3007, and the eleventh eye gaze position 3007 is at the edge of the floating control 3001. The electronic device 100 can determine that the eleventh eye gaze position 3007 is within the range of the first preset area 3003 and start timing.

[0360] like Fig.30 As shown in (c) in FIG. 1 , the user reads the content on the first window 3005 in the direction indicated by the arrow 3008. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the twelfth eye gaze position 3009. And the electronic device 100 can determine that the user's eye gaze position has reached the first preset time of 2 seconds from the eleventh eye gaze position 3007 to the twelfth eye gaze position 3009. At this time, the electronic device 100 can determine that the user is in a reading state and continues to read, and the floating control 3001 may block the content that the user is about to read.

[0361] like Fig.30 As shown in (d), since the user has selected the control 2103 in the user interface 2100 of the electronic device 100 by first moving rightward and then upward, the control 2103 is in the selected state, and the floating control 3001 is already at the rightmost side of the display screen 194 at this time. Therefore, the floating control 3001 is moved upward by the electronic device 100 according to the preset moving distance. After the electronic device 100 moves the floating control 3001 upward, the second preset area 3002 that moves with the floating control 3001 is updated to the second preset area 3010. The part of the second preset area 3010 in the display screen 194 that does not include the floating control 3001 is the first preset area 3011. After the electronic device 100 automatically moves the floating control 3001, the first preset area 3011 at this time no longer covers the twelfth eye gaze position 3009 where the user's eyeball is looking at at this time. Therefore, for a period of time afterwards, the floating control 3001 will not block the content that the user is about to read.

[0362] Under setting 1, the electronic device 100 may detect that the user's eye gaze position moves from the floating control to the first preset area, and leaves the first preset area before the first preset time has passed, and the floating control does not move. For example, Fig.31 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0363] like Fig.31As shown in (a) in FIG. 1 , a first window 3105 is currently displayed on the display screen 194 of the electronic device 100. The first window 3105 is a window of an application. A floating control 3101 is displayed above the first window 3105. The frame shape of the second preset area 3102 is a rectangle, with the center of the floating control 3101 as the center and the length of the side being twice the diameter of the floating control 3101. At this time, since the floating control 3101 is located on the right side of the display screen 194, part of the second preset area 3102 is not within the display range of the display screen 194 of the electronic device 100. Therefore, the second preset area 3102 is in the display screen 194 and the area other than the floating control 3101 is the first preset area 3103. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. At this time, the user's eye gaze position is located at the thirteenth eye gaze position 3104 on the display screen 194. The thirteenth eye gaze position 3104 is on the floating control 3101 .

[0364] like Fig.31 As shown in (b) of FIG. 1 , the user's gaze moves in the direction of arrow 3106. The electronic device 100 detects that the user's eye gaze position on the display screen 194 is the fourteenth eye gaze position 3107, and the fourteenth eye gaze position 3107 is at the edge of the floating control 3101. The electronic device 100 can determine that the fourteenth eye gaze position 3107 is within the range of the first preset area 3103 and start timing.

[0365] like Fig.31 As shown in (c) in FIG. 1 , the user's gaze moves in the direction of arrow 3108. The electronic device 100 detects that the user's eye gaze position on the display screen 194 at this time is the fifteenth eye gaze position 3109. The electronic device 100 can determine that the fifteenth eye gaze position 3109 is outside the range of the first preset area 3103. The electronic device 100 can determine that the user's eye gaze position from the fourteenth eye gaze position 3107 to the fifteenth eye gaze position 3109 does not reach the first preset duration of 2 seconds. The electronic device 100 determines that the user may not need to read the content around and below the floating control at this time, and does not move the floating control 3101.

[0366] like Fig.31 As shown in (d) in FIG. 1 , the user reads in the direction of arrow 3108. The electronic device 100 detects that the user's eye gaze position at this time is the sixteenth eye gaze position 3109. The floating control 3101 does not block the content that the user is about to read.

[0367] The above are examples of some scenes under setting 1. In actual applications, there may be more control movement scenes, which are not limited here.

[0368] It is understandable that setting 1 is an exemplary setting in the above situation 1, and in practical applications, there may be many other setting methods. Fig.26 In the user interface 2100 shown in (a) in FIG. 1 , the control 2107 is selected to the top first, or other controls are selected; for example, the control 2107 is selected to the top first, or other controls are selected; Fig.26 After the second preset area setting control 2303 in the user interface 2300 shown in (b) is opened, different parameters can be selected in its sub-controls to make the second preset area different; for example, Fig.26 The default preset duration selection control 2402 in the user interface 2400 shown in (c) is not limited here. Different settings in the first situation may also correspond to different control movement scenes, but you can refer to the schematic diagrams of each scene in the first situation above, which will not be repeated here.

[0369] It should be noted that after the floating control moves automatically, if after a period of time, the eye gaze position enters the first preset area after the movement again and reaches the first preset duration, the electronic device can move the floating control again according to the control movement method in the embodiment of the present application, which is not limited here.

[0370] Case 2: Move avoidance mode, enable exceptions.

[0371] Exemplarily, in a possible implementation, at this time, setting 2 may be:

[0372] like Fig.19 As shown in (b) in FIG. 1 , the avoidance function switch control 1805 in the user interface 1804 is in the On state, and the automatic avoidance function of the floating control of the electronic device 100 is turned on.

[0373] like Fig. 20 As shown in (b) in FIG. 2 , the moving avoidance mode selection control 2002 in the user interface 2000 is in a selected state, and the preferred avoidance mode for automatic avoidance of the floating control is the moving avoidance mode.

[0374] like Fig.26 As shown in (a) in the figure, the control 2103 selected rightwards and then upwards in the user interface 2100 is in the selected state, and the floating control is moved to the right first when automatically avoiding by moving avoidance mode. When it has moved to the rightmost side of the display screen 194 of the electronic device 100, it is moved upward first.

[0375] like Fig. 22As shown in (b) in the figure, the default moving distance selection control 2202 in the user interface 2200 is in a selected state, and when the floating control automatically avoids using the moving avoidance method, it moves using the default moving distance.

[0376] like Fig.26 As shown in (b) of the figure, the second preset area setting control 2303 is selected in the user interface 2300. The center setting sub-control 2303A is set to the second preset area with the center of the floating control as the center, the border shape setting sub-control 2303B is set to the border shape of the second preset area as a rectangle, and the side length / diameter setting sub-control 2303C is set to the side length / diameter of the second preset area as twice the side length / diameter of the floating control.

[0377] like Fig.26 As shown in (c) in FIG. 2 , the customized first preset duration setting control 2403 in the user interface 2400 is in a selected state, wherein the value in the duration setting sub-control 2403A is 2 seconds.

[0378] like Fig.32 As shown, the switch control 2502 for "Do not move if no obstructing content" in the user interface 2500 is in the On state, and the function of "Do not move if no obstructing content" is enabled.

[0379] Compared with the above setting 1, in setting 2, the switch control 2502 of "Do not move if there is no obstructing content" is changed from the Off state to the On state, thereby activating the function of "Do not move if there is no obstructing content".

[0380] Under setting 2, when the electronic device 100 detects that the user's eye gaze position is in the first preset area for a first preset time, it may determine whether the floating control blocks the content in the first window. If the floating control does not block the content in the first window, the floating control may not move. For example, Fig.33 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0381] like Fig.33As shown in (a) in FIG. 1 , a first window 3306 is currently displayed on the display screen 194 of the electronic device 100. The first window 3306 is a window of an application. A floating control 3301 is displayed above the first window 3306. The frame shape of the second preset area 3302 is a rectangle, with the center of the floating control 3301 as the center and the length of the side being twice the diameter of the floating control 3301. At this time, since the floating control 3301 is located on the right side of the display screen 194, part of the second preset area 3302 is not within the display range of the display screen 194 of the electronic device 100. Therefore, the second preset area 3302 is in the display screen 194 and the area other than the floating control 3301 is the first preset area 3303. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. When the user is reading the content in the first window 3306, the movement direction of the user's eye gaze position is the direction indicated by the arrow 3305. At this time, the user's eye gaze position is located at the seventeenth eye gaze position 3304 .

[0382] like Fig.33 As shown in (b) of FIG. 1 , the user continues to read in the direction indicated by arrow 3307. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the eighteenth eye gaze position 3308, and the eighteenth eye gaze position 3308 is the edge of the first preset area 3303. The electronic device 100 can determine that the eighteenth eye gaze position 3308 is the range of the first preset area 3303 and start timing.

[0383] like Fig.33 As shown in (c) in the figure, the user continues to read in the direction indicated by the arrow 3309, and the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the nineteenth eye gaze position 3310. And the electronic device 100 can determine that the user's eye gaze position has reached the first preset duration of 2 seconds from the eighteenth eye gaze position 3308 to the nineteenth eye gaze position 3310. Since there is no obstructed content in the user interface 2500, the switch control 2502 is in the On state. At this time, the electronic device 100 can detect and determine that there is no content displayed at the position of the floating control 3301 in the first window 3306. Therefore, the electronic device can determine that the floating control 3301 will not obstruct the content that the user is about to read, and the electronic device 100 does not need to move the floating control 3301.

[0384] like Fig.33As shown in (d) in FIG. 1 , the floating control 3301 does not move, and the user continues to read in the direction of arrow 3311. At this time, the electronic device can detect that the user's eye gaze position on the display screen 194 is located at the twentieth eye gaze position 3312. Since the floating control 3301 does not block the content in the first window, the user continues to read without affecting the user's reading.

[0385] Exemplarily, in a possible implementation, at this time, setting 3 may be:

[0386] like Fig.19 As shown in (b) in FIG. 1 , the avoidance function switch control 1805 in the user interface 1804 is in the On state, and the automatic avoidance function of the floating control of the electronic device 100 is turned on.

[0387] like Fig. 20 As shown in (b) in FIG. 2 , the moving avoidance mode selection control 2002 in the user interface 2000 is in a selected state, and the preferred avoidance mode for automatic avoidance of the floating control is the moving avoidance mode.

[0388] like Fig.34 As shown, the control 2109 in the user interface 2100 is in the selected state, and when the floating control automatically avoids by moving avoidance, it is preferentially moved directly to the area without displaying content on the display screen 194. When there is no area without displaying content on the display screen 194, the floating control moves in the default moving direction.

[0389] like Fig. 22 As shown in (b) in the figure, the default moving distance selection control 2202 in the user interface 2200 is in a selected state, and when the floating control automatically avoids using the moving avoidance method, it moves using the default moving distance.

[0390] like Fig.26 As shown in (b) of the figure, the second preset area setting control 2303 is selected in the user interface 2300. The center setting sub-control 2303A is set to the second preset area with the center of the floating control as the center, the border shape setting sub-control 2303B is set to the border shape of the second preset area as a rectangle, and the side length / diameter setting sub-control 2303C is set to the side length / diameter of the second preset area as twice the side length / diameter of the floating control.

[0391] like Fig.26 As shown in (c) in FIG. 2 , the customized first preset duration setting control 2403 in the user interface 2400 is in a selected state, wherein the value in the duration setting sub-control 2403A is 2 seconds.

[0392] like Fig.32As shown, the switch control 2502 for "Do not move if no obstructing content" in the user interface 2500 is in the On state, and the function of "Do not move if no obstructing content" is enabled.

[0393] Compared with the above setting 2, setting 3 is Fig.34 The user interface 2100 is shown with the prioritize selection to content-free areas control 2109 selected.

[0394] Under setting 3, when the electronic device 100 detects that the user's eye gaze position is in the first preset area for a first preset time, it may determine whether the floating control blocks the content in the first window. If so, the electronic device 100 may move the floating control to an area of ​​the display screen 194 where no content is displayed. For example, Fig.35 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0395] like Fig.35 As shown in (a) in FIG. 1 , a first window 3506 is currently displayed on the display screen 194 of the electronic device 100. The first window 3506 is a window of an application. A floating control 3501 is displayed above the first window 3506. The frame shape of the second preset area 3502 is a rectangle, with the center of the floating control 3501 as the center and the side length being twice the diameter of the floating control 3501. At this time, the second preset areas are all within the display range of the display screen 194 of the electronic device 100, so the areas in the second preset area 3502 except the floating control 3501 are all first preset areas 3503. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. When the user is reading the content in the first window 3506, the movement direction of the user's eye gaze position is the direction indicated by the arrow 3505. At this time, the user's eye gaze position is located at the twenty-first eye gaze position 3504.

[0396] like Fig.35 As shown in (b) of FIG. 1 , the user continues to read in the direction indicated by arrow 3507. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the 22nd eye gaze position 3508, and the 22nd eye gaze position 3308 is the edge of the first preset area 3503. The electronic device 100 can determine that the 22nd eye gaze position 3508 is the range of the first preset area 3503 and start timing.

[0397] like Fig.35As shown in (c) in the figure, the user continues to read in the direction indicated by the arrow 3509. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the 23rd eye gaze position 3510. And the electronic device 100 can determine that the user's eye gaze position has reached the first preset duration of 2 seconds from the 22nd eye gaze position 3508 to the 23rd eye gaze position 3510. At this time, the electronic device 100 can determine through detection that the first window 3506 has displayed content at the position of the floating control 3501, that is, the floating control 3501 has blocked the content displayed on the display screen 194. The electronic device 100 determines that the user is in a reading state and continues to read. The floating control 3501 may block the content that the user is about to read.

[0398] like Fig.35 As shown in (d), since the user has selected the control 2109 in the user interface 2100 of the electronic device 100 in the preferred direction to the area without content, the electronic device 100 moves the floating control 3501 to the area without content displayed on the display screen 194 according to the preferred moving direction. The moved floating control 3501 is displayed on the right side of the display screen 194, so part of the second preset area 3511 is no longer located in the display area of ​​the display screen 194. At this time, the first preset area 3512 is the part of the second preset area 3511 in the display screen 194 that does not include the floating control 3501. After the electronic device 100 automatically moves the floating control 3501, the floating control 3501 no longer blocks the content displayed in the first window 3506. Therefore, for a period of time afterwards, the user continues to read, and the floating control 2701 will not block the content that the user is about to read.

[0399] It is understandable that setting 2 or setting 3 is an exemplary setting in the above situation 2. In practical applications, there may be many other setting methods. Fig.26 In the user interface 2100 shown in (a) in FIG. 1 , the control 2107 is selected to the top first, or other controls are selected; for example, the control 2107 is selected to the top first, or other controls are selected; Fig.26 After the second preset area setting control 2303 in the user interface 2300 shown in (b) is opened, different parameters can be selected in its sub-controls to make the second preset area different; for example, Fig.26 The default preset duration selection control 2402 in the user interface 2400 shown in (c) is not limited here. Different settings in the second situation may also correspond to different control movement scenes, but you can refer to the schematic diagrams of each scene in the second situation above, which will not be repeated here.

[0400] Case 3: Content avoidance method.

[0401] Exemplarily, in a possible implementation, setting 4 at this time may be:

[0402] like Fig.19 As shown in (b) in FIG. 1 , the avoidance function switch control 1805 in the user interface 1804 is in the On state, and the automatic avoidance function of the floating control of the electronic device 100 is turned on.

[0403] like Fig.36 As shown, the content avoidance mode selection control 2003 in the user interface 2000 is in a selected state, and the priority avoidance mode for automatic avoidance of the floating control adopts the content avoidance mode.

[0404] like Fig.26 As shown in (b) of the figure, the second preset area setting control 2303 is selected in the user interface 2300. The center setting sub-control 2303A is set to the second preset area with the center of the floating control as the center, the border shape setting sub-control 2303B is set to the border shape of the second preset area as a rectangle, and the side length / diameter setting sub-control 2303C is set to the side length / diameter of the second preset area as twice the side length / diameter of the floating control.

[0405] like Fig.26 As shown in (c) in FIG. 2 , the customized first preset duration setting control 2403 in the user interface 2400 is in a selected state, wherein the value in the duration setting sub-control 2403A is 2 seconds.

[0406] like Fig.32 As shown, the switch control 2502 for "Do not move if no obstructing content" in the user interface 2500 is in the On state, and the function of "Do not move if no obstructing content" is enabled.

[0407] Compared with the above setting 3, setting 4 Fig.36 In the user interface 2000 shown, the movement avoidance mode selection control 2002 is no longer selected, but the content avoidance mode selection control is selected.

[0408] Under setting 4, when the electronic device 100 detects that the user's eye gaze position is in the first preset area for a first preset time, it will determine whether the floating control blocks the content in the first window. If the floating control blocks the content in the first window, the electronic device 100 will rearrange the display content on the display screen 194 so that the display content is no longer blocked by the floating control. For example, Fig.37 This is another schematic diagram of a control moving method in an embodiment of the present application.

[0409] like Fig.37As shown in (a) in FIG. 1 , a first window 3706 is currently displayed on the display screen 194 of the electronic device 100. The first window 3706 is a window of an application. A floating control 3701 is displayed above the first window 3706. The frame shape of the second preset area 3702 is a rectangle, with the center of the floating control 3701 as the center and the length of the side being twice the diameter of the floating control 3701. At this time, since the floating control 3701 is located on the right side of the display screen 194, part of the second preset area 3702 is not within the display range of the display screen 194 of the electronic device 100. Therefore, the second preset area 3702 is in the display screen 194 and the area other than the floating control 3701 is the first preset area 3703. Since the avoidance function switch control 1805 in the user interface 1804 is in the On state, the electronic device 100 can detect the user's eye gaze position in real time. When the user is reading the content in the first window 3706, the movement direction of the user's eye gaze position is the direction indicated by the arrow 3705. At this time, the user's eye gaze position is located at the twenty-fourth eye gaze position 3704 .

[0410] like Fig.37 As shown in (b) of FIG. 1 , the user continues to read in the direction indicated by arrow 3707. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the 25th eye gaze position 3708, and the 25th eye gaze position 3308 is the edge of the first preset area 3703. The electronic device 100 can determine that the 25th eye gaze position 3708 is the range of the first preset area 3703 and start timing.

[0411] like Fig.37 As shown in (c) of FIG. 1 , the user continues to read in the direction indicated by arrow 3709. At this time, the electronic device 100 can detect that the user's eye gaze position on the display screen 194 is located at the 26th eye gaze position 3710. The electronic device 100 can also determine that the user's eye gaze position has reached the first preset duration of 2 seconds from the 25th eye gaze position 3708 to the 26th eye gaze position 3710. At the same time, the electronic device 100 can detect that the first window 3706 has displayed content at the position of the floating control 3701.

[0412] like Fig.37 As shown in (d) in FIG. 1 , since the user selects the content avoidance mode control 2003 in the user interface 2000 of the electronic device 100 as being in the selected state, the electronic device 100 can rearrange the content displayed on the display screen 194 so that the displayed content is no longer blocked by the floating control 3701. Exemplarily, the content of the row where the floating control 3701 is located on the display screen 194 can be rearranged to other rows so that the row where the floating control 3701 is located is empty.

[0413] For example, Fig.38 As shown in (a) of FIG. 3 , the electronic device 100 may also rearrange the displayed content of the area covered by the floating control 3701 in the first window 3706 to other rows, so that the area covered by the floating control 3701 no longer blocks the content in the first window 3706. In this way, the user can continue to read in the direction of the arrow 3709.

[0414] For example, Fig.38 As shown in (b) of FIG. 1 , the electronic device 100 may also rearrange the displayed content in the preset second area 3702 in the first window 3706 to other rows, so that the preset second area 3702 no longer contains the content in the first window 3706. Therefore, the coverage area of ​​the floating control 3701 no longer blocks the content in the first window 3706. The user can continue reading from the twenty-sixth eye gaze position 3802 in the direction of the arrow 3801.

[0415] It is understandable that there may be other ways to rearrange the displayed content on the display screen 194 so that the floating control 3701 no longer blocks the displayed content in the first window 3706, which is not limited here.

[0416] It is understandable that setting 4 is an exemplary setting in the above situation 3. In practical applications, there are many other setting methods. Fig.26 After the second preset area setting control 2303 in the user interface 2300 shown in (b) is opened, different parameters can be selected in its sub-controls to make the second preset area different; for example, Fig.26 The default preset duration selection control 2402 in the user interface 2400 shown in (c) is not limited here. Different settings in situation three may also correspond to different control movement scenes, but you can refer to the schematic diagrams of each scene in situation three above, which will not be repeated here.

[0417] The following describes the control moving method in the embodiment of the present application in combination with the software and hardware structure of the exemplary electronic device 100 and the exemplary user interface:

[0418] like Fig.39 As shown, it is a flowchart of the control moving method in the embodiment of the present application:

[0419] S3901, the electronic device determines the eye gaze position on the display screen;

[0420] The electronic device 100 can determine the user's eye gaze position on the display screen 194 through eye tracking technology.

[0421] The specific process of determining the eye gaze position through eye tracking technology can be found in the relevant description of (1) eye tracking technology in the above term introduction, and will not be repeated here.

[0422] The electronic device 100 may determine the eye gaze position on the display screen in real time after being powered on by default; or the electronic device may require the user to turn on the corresponding function in the electronic device 100 before the electronic device starts to determine the eye gaze position on the display screen in real time; for example, the user may turn on the corresponding function in the electronic device 100. Fig.29 After the avoidance function switch control 1805 in the user interface 1803 shown in (a) is changed to the On state, the electronic device starts to determine the eye gaze position on the display screen in real time. This is not limited here.

[0423] S3902: The electronic device determines that the eye gaze position is located in a first preset area;

[0424] After the electronic device 100 determines the eye gaze position on the display screen 194, it can determine in real time whether the eye gaze position is located in the first preset area. When it is determined that the most recently calculated eye gaze position enters the first preset area, the electronic device 100 can determine that the eye gaze position is located in the first preset area.

[0425] The first preset area is an area of ​​a preset size on the display screen 194 of the electronic device 100 that surrounds the floating control but does not include the floating control.

[0426] Preferably, the first preset area may be an area surrounding the floating control and the center of the second preset area moving with the floating control, which is an area on the display screen of the electronic device that does not include the floating control.

[0427] It is understandable that the first preset area may also be a preset area of ​​other fixed size and shape, which is not limited here.

[0428] Specifically, the description of the first preset area and the second preset area can refer to the relevant description of the first preset area in (3) in the above term introduction, which will not be repeated here.

[0429] For examples of the first preset area and the second preset area, please refer to the examples in the above exemplary user interfaces, for example Fig. 27 The first preset area 2703 and the second preset area 2702 in (a); Fig. 27 The first preset area 2712 and the second preset area 2711 in (d) are not described in detail here.

[0430] It is understandable that as long as the electronic device 100 determines that the eye gaze position is located in the first preset area, step S3902 is met, and it is not limited to the direction from which the eye gaze position moves to the first preset area. Fig. 27 The middle eye gaze position enters the first preset area from left to right; Fig.29 The middle eyeball gaze position enters the first preset area from obliquely above; Fig.30 The eye gaze position moves from the floating control to the first preset area, etc., which will not be described in detail here.

[0431] S3903, the electronic device determines whether the eye gaze position is continuously located in the first preset area for a first preset time period;

[0432] After the electronic device 100 determines that the eye gaze position is located in the first preset area, the electronic device 100 may determine whether the eye gaze position continues to be located in the first preset area for a first preset time period;

[0433] It can be understood that within the first preset duration, the user's eye gaze position can be mobile. If the eye gaze position of the user determined by the electronic device 100 for the first time in the first preset area is the first eye gaze position. The timing starts from the time when the electronic device 100 determines the first eye gaze position, and the eye gaze position detected by the electronic device 100 after the first preset duration is the second eye gaze position. There can be many eye gaze positions of the user between the first eye gaze position and the second eye gaze position. As long as all the eye gaze positions from the first eye gaze position to the second eye gaze position are within the first preset area, the electronic device 100 can determine that the eye gaze position is located in the first preset area for the first preset duration. Otherwise, the electronic device 100 can determine that the eye gaze position is located in the first preset area for less than the first preset duration.

[0434] The first preset duration may be set by default by the electronic device 100, or may be manually set by a user, for example, Fig.24 The settings are performed in the user interface 2400 shown in (b), and are not limited here.

[0435] When the electronic device 100 determines that the eye gaze position is located in the first preset area for less than the first preset time, the electronic device 100 may execute step S3905. It is understandable that the electronic device executing step S905 may mean that the electronic device does not execute an operation.

[0436] Optionally, in a possible implementation, when the electronic device 100 determines that the eye gaze position has been in the first preset area for a first preset time period, the electronic device 100 may determine that the floating control may block the content that the user is about to read, and therefore, the electronic device 100 may directly execute step S3906.

[0437] Optionally, in a possible implementation, when the electronic device 100 determines that the eye gaze position has been in the first preset area for a first preset time period, the electronic device 100 may first execute step S3904, and only execute step S3906 after determining that the floating control blocks the content displayed in the first window.

[0438] For an exemplary user interface for the electronic device to determine whether the eye gaze position is located in the first preset area for a first preset time, please refer to the above Fig. 27 (b) and (c) in Fig.28 (b) and (c) in Fig.29 The user interfaces (b) and (c) in FIG. 1 are not described in detail here.

[0439] S3904: The electronic device determines whether the floating control blocks the content displayed in the first window;

[0440] In a possible implementation, when the electronic device 100 determines that the eye gaze position is located in the first preset area for a first preset time period, the electronic device 100 can determine whether the floating control blocks the content displayed in the first window.

[0441] The first window is the window below the floating control displayed on the display screen. For details, please refer to the relevant description of the first window in (4) in the above term introduction, which will not be repeated here.

[0442] Specifically, the electronic device 100 determines whether the floating control blocks the content displayed in the first window in two cases:

[0443] (1) The floating control and the first window both belong to a first application;

[0444] At this time, the first application can determine whether the floating control blocks the content displayed in the first window. Specifically, the first application can determine the position of its own floating control and whether there is content displayed under the floating control;

[0445] If the first application determines that there is displayed content below the floating control, the electronic device determines that the floating control has blocked the content displayed in the first window.

[0446] If the first application determines that there is no content displayed below the floating control, the electronic device determines that the floating control does not block the content displayed in the first window.

[0447] It is understandable that, in this case, the subsequent movement of the floating control may also be executed by the first application, which is not limited here.

[0448] (2) The floating control and the first window belong to different applications.

[0449] If the floating control belongs to the second application or the system function of the electronic device, the first window belongs to the third application. At this time, the electronic device 100 can first determine the control area of ​​the floating control, and then send the control area of ​​the floating control to the third application. After receiving the control area, the third application can determine whether there is content displayed in the control area in the first window, such as whether there is text, picture, video, etc.

[0450] If the third application displays content in the control area of ​​the first window, the third application can provide feedback that content is displayed in the control area. The electronic device 100 can determine that the floating control blocks the content displayed in the first window;

[0451] If the third application does not display content in the control area of ​​the first window, the third application can provide feedback that the control area does not display content. The electronic device 100 can determine that the floating control does not block the content displayed in the first window.

[0452] The electronic device 100 may also have other ways to determine whether the floating control blocks the content displayed in the first window, which are not limited here.

[0453] When the electronic device 100 determines that the floating control does not block the content displayed in the first window, the electronic device 100 may execute step S3905.

[0454] When the electronic device 100 determines that the floating control blocks the content displayed in the first window, the electronic device may execute step S3906.

[0455] It is understandable that in some embodiments, step S3904 may not be performed, for example, when the electronic device 100 does not perform step S3904 by default, or when the user Fig.25 In the user interface 2500 shown in (b), when the state of the switch control 2502 is set to Off if there is no obstructing content, the steps here are limited.

[0456] For an exemplary user interface for the electronic device to determine that the floating control does not block the content displayed in the first window, please refer to the above Fig.33 The user interfaces such as (c) in the figure will not be described in detail here.

[0457] For an exemplary user interface in which the electronic device determines that the floating control has blocked the content displayed in the first window, please refer to the above Fig.35 The user interfaces such as (c) in the figure will not be described in detail here.

[0458] S3905: The electronic device does not move the floating control;

[0459] When the electronic device 100 determines that the eye gaze position is located in the first preset area for less than the first preset time, the electronic device 100 does not move the floating control. The electronic device 100 does not need to perform a certain operation when not moving the floating control, but only needs not to perform an operation.

[0460] For an exemplary user interface in which the electronic device does not move the floating control, please refer to the above Fig.33 The user interfaces (c) and (d) in FIG. 1 are not described in detail here.

[0461] S3906. The electronic device moves the floating control so that the floating control is away from the eye gaze position.

[0462] In one possible implementation, when the electronic device 100 determines that the eye gaze position has been in the first preset area for a first preset time period; or in a possible implementation, when the electronic device 100 determines that the eye gaze position has been in the first preset area for a first preset time period, and the electronic device 100 determines that the floating control blocks the content displayed in the first window, the electronic device 100 may move the floating control so that the floating control is away from the most recently detected eye gaze position.

[0463] It can be understood that the most recently detected eye gaze position may be the eye gaze position determined by the electronic device 100 when the first preset time duration is reached.

[0464] There are many ways for the electronic device 100 to move the floating control:

[0465] Specifically, in a possible implementation,

[0466] S39061. The electronic device moves the floating control so that the first preset area no longer covers the eye gaze position;

[0467] At this time, the user's eye gaze position on the display screen 194 is in the first preset area, and the electronic device can move the floating control to the left, right, up, down, top, bottom, etc. Since the first preset area is an area of ​​a preset size around the floating control, it will move with the floating control, so the first preset area can no longer cover the eye gaze position.

[0468] The direction and distance in which the electronic device moves the floating control may be set by default or may be customized by the user. For example, the user may set Fig.21 In the user interface 2100 shown in (b) of FIG. 1 , the preferred moving direction can be selected. Fig. 22 The moving distance, etc. are set in the user interface 2200 shown in (b), but are not limited here.

[0469] For an exemplary user interface of an electronic device moving a floating control so that the first preset area no longer covers the eye gaze position, please refer to the above Fig. 27 (c) and (d) in Fig.28 The user interfaces (c) and (d) in FIG. 1 are not described in detail here.

[0470] Specifically, in a possible implementation, the electronic device 100 may move the floating control in the following manner:

[0471] S39062: The electronic device determines whether there is a first blank area in the display screen, the first blank area has no displayed content and is large enough to accommodate the floating control;

[0472] The electronic device 100 can detect whether there is a first blank area in the display screen 194, the first blank area has no displayed content and is large enough to accommodate the floating control.

[0473] Specifically, the electronic device 100 may first determine the size of the floating control from the application to which the floating control belongs, and then determine from the application to which the first window belongs whether there is a blank area with no displayed content that can accommodate the floating control in the currently displayed first window; if it is determined that there is a blank area with no displayed content that can accommodate the floating control, the electronic device 100 may determine that there is a first blank area in the display screen 194. If it is determined that there is no blank area with no displayed content that can accommodate the floating control, the electronic device 100 may determine that there is no first blank area in the display screen 194.

[0474] After the electronic device 100 determines that there is a first blank area in the display screen, the electronic device 100 may execute step S39063.

[0475] When the electronic device 100 determines that there is no first blank area in the display screen, the electronic device 100 may execute step S39061.

[0476] S39063. The electronic device moves the floating control to the first blank area.

[0477] When the electronic device 100 determines that there is a first blank area in the display screen, the electronic device 100 can move the floating control to the first blank area. In this way, the floating control will not block the content displayed in the first window, that is, it will no longer block the content that the user is about to read.

[0478] For an exemplary user interface of an electronic device moving a floating control to the first blank area, please refer to the above Fig.35 The user interfaces (c) and (d) in FIG. 1 are not described in detail here.

[0479] In an embodiment of the present application, when the electronic device 100 determines that the user's eye gaze position on the display screen 194 is in the first preset area and reaches the first preset duration, it can be determined that the floating control may block the content that the user is about to read. At this time, the electronic device 100 can move the floating control so that the floating control is away from the user's current eye gaze position. Therefore, the user no longer needs to manually move the floating control frequently to avoid the floating control blocking the content that is about to be read, resulting in a reduced reading experience. The electronic device will automatically move the floating control according to the user's reading position to avoid the floating control blocking the content that the user is about to read. This allows the floating control to be used normally without affecting the user's reading and operation, greatly improving the user's reading experience.

[0480] Exemplarily, in a possible implementation, after the above steps S3901 to S3905, when the electronic device 100 determines that the eye gaze position has been in the first preset area for a first preset time; or in a possible implementation, when the electronic device 100 determines that the eye gaze position has been in the first preset area for a first preset time, and the electronic device 100 determines that the floating control has blocked the content displayed in the first window, the electronic device 100 may also rearrange the content in the display screen 194 so that the floating control no longer blocks the content displayed in the first window.

[0481] For an exemplary user interface in which the electronic device 100 rearranges the content in the display screen 194 so that the floating control no longer blocks the content displayed in the first window, please refer to the above Fig.37 (c) and (d) in Fig.38 The user interfaces (a), (b) and (c) in FIG. 1 are not described in detail here.

[0482] It is understandable that the control moving method in the embodiment of the present application can be applied not only to the above electronic device 100, but also to other types of electronic devices. The electronic device in the embodiment of the present application can also adopt other hardware structures, which are not limited here.

[0483] For example, Fig.40 It is a structural diagram of an exemplary electronic device 200 provided in an embodiment of the present application.

[0484] The electronic device 200 may include: an input device 4001, an output device 4002, a processor 4003 and a memory 4004 (wherein the number of the processor 4003 in the electronic device 200 may be one or more, Fig.40 In some embodiments of the present application, the input device 4001, the output device 4002, the processor 4003 and the memory 4004 may be connected via a bus or other means, wherein: Fig.40 The example of connecting through bus is taken in the following.

[0485] The input device 4001 may include hardware required for implementing eye tracking technology, such as a high-definition camera or an infrared camera, etc. The output device 4002 may also include hardware required for implementing eye tracking technology, such as a display screen, an infrared light emitter, etc. The specific method may be determined according to the method for implementing the eye tracking technology, and is not limited here.

[0486] The processor 4003 calls the operation instruction stored in the memory 4004 to make the electronic device 200 execute the control moving method in the embodiment of the present application. The specific process is similar to the above electronic device 100 executing the control moving method in the embodiment of the present application, which will not be repeated here.

[0487] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0488] As used in the above embodiments, the term "when..." may be interpreted to mean "if..." or "after..." or "in response to determining..." or "in response to detecting...", depending on the context. Similarly, the phrases "upon determining..." or "if (the stated condition or event) is detected" may be interpreted to mean "if determining..." or "in response to determining..." or "upon detecting (the stated condition or event)" or "in response to detecting (the stated condition or event)", depending on the context.

[0489] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integration. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0490] Those skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by computer programs to instruct related hardware, and the programs can be stored in computer-readable storage media. When the programs are executed, they can include the processes of the above-mentioned method embodiments. The aforementioned storage media include: ROM or random access memory RAM, magnetic disk or optical disk and other media that can store program codes.

Claims

1. A control moving method, characterized in that: include: The electronic device determines the user's eye gaze position on the display screen; When the electronic device determines that the user's eye gaze position enters the first preset area, the electronic device determines whether the eye gaze position continues in the first preset area for a first preset time period; The first preset area is an area of ​​a preset size around the floating control on the display screen that does not include the floating control; The electronic device determines whether the floating control blocks content displayed in a first window, where the first window is a window below the floating control displayed on the display screen; When the electronic device determines that the eye gaze position continues in the first preset area for a first preset time period and the floating control blocks the content displayed in the first window, the electronic device moves the floating control so that the floating control is away from the eye gaze position.

2. The method according to claim 1, characterized in that The first preset area is an area of ​​a preset size on the display screen that surrounds the floating control but does not include the floating control.

3. The method according to claim 2, characterized in that The first preset area is an area on the display screen that does not include the floating control, and the second preset area surrounds the floating control and its center moves with the floating control.

4. The method according to claim 1, characterized in that: The first preset area does not surround the floating control; the boundary of the first preset area touches or does not touch the boundary of the floating control.

5. The method according to claim 4, characterized in that The position of the first preset area changes according to the change of the position of the floating control in the display screen.

6. The method according to claim 1, characterized in that The floating control and the first window belong to the same application; The electronic device determines whether the floating control blocks the content displayed in the first window, specifically including: The application to which the floating control and the first window belong in the electronic device determines whether the floating control blocks content displayed in the first window.

7. The method according to claim 1, characterized in that The floating control and the first window do not belong to the same application; The electronic device determines whether the floating control blocks the content displayed in the first window, specifically including: The electronic device obtains a location area of ​​the floating control from an application to which the floating control belongs; The electronic device determines, from the application to which the first window belongs, whether content is displayed in the location area of ​​the floating control; When the electronic device determines that the application to which the first window belongs displays content in the location area of ​​the floating control, the electronic device determines that the floating control blocks the content displayed in the first window; When the electronic device determines that the application to which the first window belongs does not display content in the location area of ​​the floating control, the electronic device determines that the floating control does not block the content displayed in the first window.

8. The method according to claim 6, characterized in that Before the step of the electronic device determining whether the floating control blocks the content displayed in the first window, the method further includes: In response to a first operation by the user, the electronic device activates a first function, where the first function is used to move the floating control only when the floating control blocks displayed content, and otherwise not to move the floating control.

9. The method according to claim 7, characterized in that: Before the step of the electronic device determining whether the floating control blocks the content displayed in the first window, the method further includes: In response to a first operation by the user, the electronic device activates a first function, where the first function is used to move the floating control only when the floating control blocks displayed content, and otherwise not to move the floating control.

10. The method according to any one of claims 1 to 9, characterized in that The electronic device moves the floating control so that the floating control is away from the eye gaze position, specifically comprising: The electronic device moves the floating control so that the first preset area no longer covers the eye gaze position.

11. The method according to any one of claims 1 to 9, characterized in that The electronic device moves the floating control so that the floating control is away from the eye gaze position, specifically comprising: The electronic device determines whether there is a first blank area on the display screen, where the first blank area has no displayed content and is large enough to accommodate the floating control; When it is determined that there is the first blank area on the display screen, the electronic device moves the floating control to the first blank area; When it is determined that there is no first blank area on the display screen, the electronic device moves the floating control so that the first preset area no longer covers the eye gaze position.

12. The method according to any one of claims 1 to 9, characterized in that Before the step of the electronic device determining the eye gaze position of the user on the display screen, the method further includes: In response to a second operation by the user, the electronic device activates a second function, where the second function is used to move the floating control when the eye gaze position remains in the first preset area for a period of time that reaches the first preset time.

13. An electronic device, characterized in that: The electronic device comprises: one or more processors, a memory and a display screen; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to cause the electronic device to execute: Determining the user's eye gaze position on the display screen; When it is determined that the user's eye gaze position enters a first preset area, determining whether the eye gaze position continues in the first preset area for a first preset time; the first preset area is an area of ​​a preset size around the floating control on the display screen that does not include the floating control; Determining whether the floating control blocks content displayed in a first window, where the first window is a window below the floating control displayed on the display screen; When it is determined that the eye gaze position continues in the first preset area for a first preset time period and the floating control blocks the content displayed in the first window, the floating control is moved so that the floating control is away from the eye gaze position.

14. The electronic device according to claim 13, characterized in that: The first preset area is an area of ​​a preset size on the display screen that surrounds the floating control but does not include the floating control.

15. The electronic device according to claim 14, characterized in that: The first preset area is an area on the display screen that does not include the floating control, and the second preset area surrounds the floating control and its center moves with the floating control.

16. The electronic device according to claim 13, characterized in that: The first preset area does not surround the floating control; the boundary of the first preset area touches or does not touch the boundary of the floating control.

17. The electronic device according to claim 16, characterized in that: The position of the first preset area changes according to the change of the position of the floating control in the display screen.

18. The electronic device according to claim 13, characterized in that: The floating control and the first window belong to the same application; The one or more processors are specifically configured to call the computer instructions so that the electronic device executes: The floating control and the application to which the first window belongs determine whether the floating control blocks content displayed in the first window.

19. The electronic device according to claim 13, characterized in that: The floating control and the first window do not belong to the same application; The one or more processors are specifically configured to call the computer instructions so that the electronic device executes: Acquire a location area of ​​the floating control from the application to which the floating control belongs; Determining from the application to which the first window belongs whether content is displayed in the location area of ​​the floating control; When it is determined that the application to which the first window belongs displays content in the location area of ​​the floating control, it is determined that the floating control blocks the content displayed in the first window; When it is determined that the application to which the first window belongs does not display content in the location area of ​​the floating control, it is determined that the floating control does not block the content displayed in the first window.

20. The electronic device according to claim 18, characterized in that The one or more processors are further configured to call the computer instructions so that the electronic device executes: In response to a first operation of the user, a first function is started, wherein the first function is used to move the floating control only when the floating control blocks displayed content, and otherwise, the floating control is not moved.

21. The electronic device according to claim 19, characterized in that: The one or more processors are further configured to call the computer instructions so that the electronic device executes: In response to a first operation of the user, a first function is started, wherein the first function is used to move the floating control only when the floating control blocks displayed content, and otherwise, the floating control is not moved.

22. The electronic device according to any one of claims 13 to 21, characterized in that: The one or more processors are specifically configured to call the computer instructions so that the electronic device executes: The floating control is moved so that the first preset area no longer covers the eye gaze position.

23. The electronic device according to any one of claims 13 to 21, characterized in that: The one or more processors are specifically configured to call the computer instructions so that the electronic device executes: Determine whether there is a first blank area on the display screen, where the first blank area has no displayed content and is large enough to accommodate the floating control; When it is determined that there is the first blank area on the display screen, moving the floating control to the first blank area; When it is determined that there is no first blank area on the display screen, the floating control is moved so that the first preset area no longer covers the eye gaze position.

24. The electronic device according to any one of claims 13 to 21, characterized in that: The one or more processors are further configured to call the computer instructions so that the electronic device executes: In response to a second operation of the user, a second function is started, where the second function is used to move the floating control when the eye gaze position remains in the first preset area for a period of time that reaches the first preset time.

25. A chip system, wherein the chip system is applied to an electronic device, the chip comprising one or more processors, and the processor is used to call computer instructions so that the electronic device executes the method as described in any one of claims 1-12.

26. A computer program product comprising instructions, characterized in that When the computer program product is executed on an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 12.

27. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 12.

Citation Information

Patent Citations

  • Information display method and mobile terminal

    CN108089801A

  • Image display method of head-up display and head-up display system

    CN110435539A