CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a U.S. National Stage of International Patent Application No. PCT/CN2018/092680 filed on Jun. 25, 2018, which is hereby incorporated by reference in its entirety.

TECHNICAL FIELD

This application relates to the field of user interface technologies, and in particular, to a user interface (User Interface, UI for short) display method of a terminal, and a terminal.

BACKGROUND

In the prior art, as shown inFIG. 1, to prevent a misoperation of a user or protect user privacy, a terminal usually displays a lock screen1after a screen of the terminal is lit up, and the terminal is in a lock screen state. If the terminal is not unlocked, the user cannot enter an unlocked interface to use a complete function of the terminal. Only after unlocking, the user can use the complete function of the terminal, for example, use a system function of the terminal or an installed application program (“application” or “APP” for short). The user can unlock the terminal in a plurality of manners, such as sliding to unlock, fingerprint unlocking, iris unlocking, and facial recognition unlocking. For example, referring toFIG. 3A, the terminal has a rear-facing fingerprint module3. As shown inFIG. 3B, in the lock screen1, the user needs to perform at least one operation of touching or pressing the rear-facing fingerprint module3for unlocking. As shown inFIG. 3CandFIG. 3D, after unlocking, the terminal displays an unlocked interface. In this case, the user further needs to perform at least another operation to trigger the terminal to execute a function of an operating system. For example, the user needs to tap an icon of an application, for example, WeChat, in the unlocked interface to open the application.

In addition, some terminals provide, in lock screens, some application quick entries that do not relate to user privacy and security, for example, provide a shortcut of “Camera” (for example, an icon of “Camera”) in the lock screens. As shown inFIG. 4A,FIG. 4B, andFIG. 4C, the user can tap the shortcut, or touch and hold the shortcut and drag the shortcut along a preset direction by a distance, to open the “Camera” application and use a photographing function of “Camera”. In this case, the user can use the “Camera” application, but cannot use the complete function of the terminal within rights of the user because the operating system of the terminal is not unlocked. After the “Camera” application entered by using this shortcut is exited, the terminal still keeps a lock screen state. For example, the terminal returns to the lock screen1, and prompts the user to unlock the terminal.

It can be learned from the foregoing description that in the prior art, a user cannot use a continuous operation to both unlock a screen of a terminal and execute a function (for example, open an application), and therefore the user has poor operation experience.

SUMMARY

Embodiments of this application provide a user interface display method of a terminal, and a terminal, so that a user can use a coherent operation to both unlock a terminal and enable the terminal to execute a function, thereby improving operation efficiency.

To achieve the foregoing objective, the following technical solutions are used in the embodiments of this application:

According to a first aspect, an embodiment of this application provides a user interface display method of a terminal, including:

when a screen of the terminal is of for the terminal displays a first interface, the terminal receives a first operation that is entered by a user to unlock the terminal, where the first interface is a lock screen of the terminal;

the terminal displays a third user interface when determining that the first operation meets a preset unlock condition and that the user does not stop operating the terminal after entering the first operation; and

in the third user interface, the terminal receives a second operation entered by the user, and executes a function corresponding to the second operation.

In this embodiment of this application, the terminal provides the third user interface when determining that the user does not stop operating the terminal after entering the unlock operation, and the second operation is entered in the interface, so that the terminal can directly execute the function corresponding to the second operation. Therefore, the user can continuously enter the first operation and the second operation without stopping operating the terminal; in other words, the user can use a coherent operation to both unlock the terminal and enable the terminal to execute a function, thereby improving operation efficiency.

In a possible design method, that the terminal determines that the first operation meets a preset unlock condition is specifically:

the terminal determines that the first operation is a sliding operation detected on a touch sensor, or

the terminal determines that the first operation is an operation of drawing a pattern in the unlock interface by using a touch sensor, and that the pattern matches a preset pattern; or

the terminal determines that the first operation is an operation of entering a fingerprint by using a fingerprint sensor, and that the entered fingerprint matches a preset fingerprint; or

the terminal determines that the first operation is an operation of entering an iris by using an iris sensor, and that the entered iris matches a preset iris; or

the terminal determines that the first operation is an operation of entering a face image by using a face sensor, and that the entered face image matches a preset face.

In a possible design method, the method may further include:

the terminal displays a second user interface if the first operation meets the preset unlock condition and the user stops operating the terminal after entering the first operation, where the second user interface is an unlocked user interface of the terminal.

In a possible design method, the terminal receives the first operation by using a first sensor, and that the terminal determines that the user does not stop operating the terminal after entering the first operation includes:

after receiving, by using the first sensor, the first operation that meets the preset unlock condition, the terminal detects that the user keeps operating the first sensor.

In a possible design method, the first sensor is a fingerprint sensor, and the receiving the first operation that meets the preset unlock condition is specifically:

collecting, by using the fingerprint sensor, a fingerprint entered by the user, where the fingerprint entered by the user matches a preset fingerprint; and

the detecting that the user keeps operating the first sensor includes:

the terminal determines whether duration of a press or touch operation performed by the user on the fingerprint sensor is greater than first threshold duration; and if the duration is greater than the first threshold duration and the collected fingerprint matches the preset fingerprint, after determining that the user enters the first operation that meets the preset unlock condition, the terminal detects that the user keeps operating the first sensor; or

the terminal determines whether duration during which the user operates the sensor after the user determines that the collected fingerprint matches the prestored fingerprint is greater than second threshold duration; and if the duration is greater than the second threshold duration, the terminal determines that the user keeps operating the first sensor after entering the first operation that meets the preset unlock condition.

In a possible design method, the terminal receives the first operation by using a first sensor, and receives, by using a second sensor, a third operation entered by the user, and

that the terminal determines that the user does not stop operating the terminal after entering the first operation includes:

if the terminal detects, before detecting the first operation that meets the preset unlock condition, that the user starts to enter the third operation and that duration during which the third operation exists after the first operation is greater than third threshold duration, the user does not stop the input operation on the terminal after entering the first operation.

In a possible design method, the first sensor is a fingerprint sensor, the second sensor is a touch sensor, and that the terminal detects, before detecting the first operation that meets the preset unlock condition, that the user starts to enter the third operation is specifically:

before detecting, by using the fingerprint sensor, a fingerprint that matches a preset fingerprint, the terminal detects a touch operation that is entered by the user by using the touch sensor, and

that duration during which the third operation exists after the first operation is greater than third threshold duration is specifically:

after the terminal detects, by using the fingerprint sensor, the fingerprint that matches the preset fingerprint, duration of the touch operation that is entered by the user by using the touch sensor exceeds the third threshold duration.

In a possible design method, one or more shortcuts are displayed in the third user interface, and each of the one or more shortcuts corresponds to one function in the terminal; and the receiving a second operation entered by the user, and executing a function corresponding to the second operation is specifically:

the terminal receives the second operation entered by the user, and determines that the second operation is used to trigger a first shortcut in the one or more shortcuts; and

executes a function corresponding to the first shortcut.

In a possible design method, the displaying a third user interface includes:

if a touchscreen of the terminal detects a touch operation of the user when the terminal determines that the first operation meets the preset unlock condition and that the user does not stop operating the terminal after entering the first operation, the terminal displays the one or more shortcuts in the third interface based on a location of a touch point of the touch operation of the user on the touchscreen.

In a possible design method, the receiving a second operation entered by the user, and executing a function corresponding to the second operation is specifically:

receiving a first gesture entered by the user, and determining, based on a preset correspondence between a gesture and a function of the terminal, a first function corresponding to the first gesture entered by the user; and

executing the first function.

In a possible design method, mapping information is displayed in the third user interface, and the mapping information is used to indicate a gesture corresponding to one or more functions.

In a possible design method, the third user interface is displayed on the second user interface in a superimposed manner, the second user interface displayed under the third user interface does not respond to a user operation, and the second user interface is an unlocked user interface of the terminal.

In a possible design method, before the terminal executes the function corresponding to the second operation, the method further includes:

the terminal determines that the terminal continuously detects, within a time period from time at which the first operation is detected to time at which the second operation is detected, an input operation performed by the user on the terminal.

In a possible design method, the first sensor is a fingerprint sensor, the second sensor is a touch sensor, and both the second operation and the third operation are entered by using the touch sensor.

In a possible design method, before the executing a function corresponding to the second operation, the method further includes: the terminal determines that the user continuously performs an input operation during the third operation and the second operation by using the touch sensor.

In a possible design method, the first operation is an operation that the user enters a fingerprint by using an in-screen fingerprint sensor, where the in-screen fingerprint sensor is configured to detect a fingerprint entered by the user in a screen display area;

the determining that the first operation meets a preset unlock condition is specifically:

the terminal determines that a fingerprint entered by the user by using the fingerprint sensor matches a preset fingerprint; and

that the terminal determines that the user does not stop operating the terminal after entering the first operation is specifically:

the terminal determines that the user still keeps touching the screen of the terminal with a finger after entering the matched fingerprint, where

the second operation is an operation entered by the user when the user keeps touching the screen with the finger after entering the first operation.

According to a second aspect, an embodiment of this application provides a terminal. The terminal includes:

an interactive device, configured to: when the terminal is in a screen-off state or displays a first interface, receive a first operation that is entered by a user to unlock the terminal, where the first interface is a lock screen of the terminal;

a processor, configured to determine whether the first operation meets a preset unlock condition and whether the user does not stop operating the terminal after entering the first operation; and

a display device, configured to display a third user interface when the processor determines that the first operation meets the preset unlock condition and that the user does not stop operating the terminal after entering the first operation, where

the interactive device is further configured to: when the terminal displays the third user interface, receive a second operation entered by the user; and

the processor is further configured to control the terminal to execute a function corresponding to the second operation.

In a possible design method, the display device is further configured to display a second user interface when the processor determines that the first operation meets the preset unlock condition and that the user stops operating the terminal after entering the first operation, where the second user interface is an unlocked user interface of the terminal.

In a possible design method, the interactive device includes:

a first sensor, configured to receive the first operation; and

that the processor determines that the user does not stop operating the terminal after entering the first operation includes:

the processor determines that the first sensor continuously detects an operation of the user after the first sensor receives the first operation that meets the preset unlock condition.

In a possible design method, the first sensor is a fingerprint sensor, and is specifically configured to collect a fingerprint entered by the user;

that the processor determines that the first sensor receives the first operation that meets the preset unlock condition is specifically:

the processor determines that a fingerprint collected by the fingerprint sensor matches a preset fingerprint; and

that the processor determines that the first sensor continuously detects an operation of the user includes:

the processor determines whether duration of a press or touch operation performed by the user on the fingerprint sensor is greater than first threshold duration; and if the duration is greater than the first threshold duration and the collected fingerprint matches the preset fingerprint, after determining that the user enters the first operation that meets the preset unlock condition, the processor detects that the user keeps operating the first sensor; or

the processor determines whether duration during which the user operates the sensor after the user determines that the collected fingerprint matches the prestored fingerprint is greater than second threshold duration; and if the duration is greater than the second threshold duration, the processor determines that the user keeps operating the first sensor after entering the first operation that meets the preset unlock condition.

In a possible design method, the interactive device includes:

a first sensor, configured to receive the first operation; and

a second sensor, configured to receive a third operation entered by the user; and

that the processor determines that the user does not stop operating the terminal after entering the first operation includes:

the processor detects, by using the second sensor before determining that the first sensor receives the first operation that meets the preset unlock condition, that the user starts to enter the third operation and that duration during which the third operation exists after the first operation is greater than third threshold duration.

In a possible design method, the first sensor is a fingerprint sensor, the second sensor is a touch sensor, and that the processor detects, by using the second sensor before determining that the first sensor receives the first operation that meets the preset unlock condition, that the user starts to enter the third operation is specifically:

before detecting, by using the fingerprint sensor, a fingerprint that matches a preset fingerprint, the processor detects a touch operation that is entered by the user by using the touch sensor, and

that the processor determines that duration during which the third operation exists after the first operation is greater than third threshold duration is specifically:

after detecting, by using the fingerprint sensor, the fingerprint that matches the preset fingerprint, the processor detects that duration of the touch operation that is entered by the user by using the touch sensor exceeds the third threshold duration.

In a possible design method, one or more shortcuts are displayed in the third user interface, and each of the one or more shortcuts corresponds to one function in the terminal; and

that the processor controls the terminal to execute a function corresponding to the second operation is specifically:

the processor determines that the second operation is used to trigger a first shortcut in the one or more shortcuts; and

the processor controls the terminal to execute a function corresponding to the first shortcut.

In a possible design method, that a display device displays a third user interface includes:

if a touchscreen of the terminal detects a touch operation of the user when the processor determines that the first operation meets the preset unlock condition and that the user does not stop operating the terminal after entering the first operation, the display device displays the one or more shortcuts in the third interface based on a touch point of the touch operation of the user on the touchscreen.

In a possible design method, the second operation is a first gesture operation entered by the user, and that the processor controls the terminal to execute a function corresponding to the second operation is specifically:

the processor determines, based on a preset correspondence between a gesture and a function of the terminal, a first function corresponding to the first gesture entered by the user; and

the processor controls the terminal to execute the first function.

In a possible design method, mapping information is displayed in the third user interface, and the mapping information is used to indicate a gesture corresponding to one or more functions.

In a possible design method, the processor is further configured to: before controlling the terminal to execute the function corresponding to the second operation, determine that the interactive device continuously detects, within a time period from time at which the first operation is detected to time at which the second operation is detected, an input operation performed by the user on the terminal.

In a possible design method, the first sensor is a fingerprint sensor, the second sensor is a touch sensor, and both the second operation and the third operation are entered by using the touch sensor.

In a possible design method, the processor is further configured to: before controlling the terminal to execute the function corresponding to the second operation, determine that the user continuously performs an input operation during the third operation and the second operation by using the touch sensor.

In a possible design method, the display device is a touchscreen integrating a screen of the terminal and a touch sensor, the interactive device is an in-screen fingerprint sensor configured to detect a fingerprint entered by the user in a screen display area, and the first operation is an operation that the user touches or presses the screen display area with a finger to enter a fingerprint; that the processor determines that the first operation meets the preset unlock condition is specifically:

the processor determines that a fingerprint entered by the user by using the in-screen fingerprint sensor matches a preset fingerprint;

the interactive device further includes a touchscreen, configured to detect a touch operation of the user; and

that the processor determines that the user does not stop operating the terminal after entering the first operation is specifically:

the processor determines that the user still keeps touching the touchscreen with a finger after entering the matched fingerprint, where

the second operation is an operation entered by the user when the user keeps touching the screen with the finger after entering the first operation.

According to a third aspect, an embodiment of this application provides a computer-readable storage medium. The computer-readable storage medium stores an instruction. When running on a terminal, the instruction enables the terminal to perform the interface display method according to the first aspect.

According to a fourth aspect, an embodiment of this application provides a computer program product including an instruction. When running on a terminal, the computer program product enables the terminal to perform the interface display method according to the first aspect.

