WO2020011074A1 - 锁屏方法及电子设备 - Google Patents

锁屏方法及电子设备 Download PDF

Info

Publication number
WO2020011074A1
WO2020011074A1 PCT/CN2019/094484 CN2019094484W WO2020011074A1 WO 2020011074 A1 WO2020011074 A1 WO 2020011074A1 CN 2019094484 W CN2019094484 W CN 2019094484W WO 2020011074 A1 WO2020011074 A1 WO 2020011074A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
area
input
electronic device
target area
Prior art date
Application number
PCT/CN2019/094484
Other languages
English (en)
French (fr)
Inventor
潘伟科
喻勇
Original Assignee
维沃移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2020011074A1 publication Critical patent/WO2020011074A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/70Protecting specific internal or peripheral components, in which the protection of a component leads to protection of the entire computer
    • G06F21/82Protecting input, output or interconnection devices
    • G06F21/84Protecting input, output or interconnection devices output devices, e.g. displays or monitors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04803Split screen, i.e. subdividing the display area or the window area into separate subareas

Definitions

  • Embodiments of the present disclosure relate to the field of communication technologies, and in particular, to a screen lock method and an electronic device.
  • the electronic device in the related art has a problem that the user operation is inconvenient after the screen is locked.
  • the embodiments of the present disclosure provide a screen lock method and an electronic device, so as to solve the problem that the electronic device in the related art is relatively inconvenient for a user to operate after the screen is locked.
  • an embodiment of the present disclosure provides a screen lock method, which is applied to an electronic device and includes:
  • the target area is a part of a display area of a display screen of an electronic device.
  • an electronic device including:
  • a first receiving module configured to receive a first input from a user
  • a locking module configured to lock a target area in response to the first input
  • the target area is a part of a display area of a display screen of an electronic device.
  • an embodiment of the present disclosure provides an electronic device including a processor, a memory, and a computer program stored on the memory and executable on the processor.
  • the computer program When the computer program is executed by the processor, Implement the steps in the lock screen method described above.
  • an embodiment of the present disclosure provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the lock screen method are implemented.
  • the electronic device may receive and respond to the first input of the user, and lock a part of the display area of the display screen of the electronic device, so that the user may control a part of the electronic device through the first input. It is in a locked state. In this way, when the electronic device is in a partially locked screen state, the user can still operate the electronic device normally and lock the target area, which is not only easier to operate, but also makes the screen lock method more novel and flexible.
  • FIG. 1 is a flowchart of a lock screen method according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of another lock screen method according to an embodiment of the present disclosure
  • 3a is a schematic diagram of an entry area lock screen function setting page according to an embodiment of the present disclosure
  • 3b is a schematic diagram of an area lock screen function setting page after the area lock screen function is enabled according to an embodiment of the present disclosure
  • 3c is a schematic diagram of a lock screen mode setting page according to an embodiment of the present disclosure.
  • 3d is a schematic diagram of an unlocking mode setting page according to an embodiment of the present disclosure.
  • FIG. 4a is a schematic diagram of a target area in a horizontal lock screen mode according to an embodiment of the present disclosure
  • 4b is a schematic diagram of a target area in a vertical lock screen mode according to an embodiment of the present disclosure
  • 4c is one of the schematic diagrams of a target area in a combined lock screen mode provided by an embodiment of the present disclosure
  • 4d is a second schematic diagram of a target area in a combined lock screen mode according to an embodiment of the present disclosure
  • FIG. 5 is a schematic diagram of an interface for unlocking a first target area by using a password according to an embodiment of the present disclosure
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of another electronic device according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
  • FIG. 1 is a flowchart of a lock screen method provided by an embodiment of the present disclosure, which is applied to an electronic device. As shown in FIG. 1, the method includes the following steps:
  • Step 101 Receive a first input from a user.
  • the electronic device may be pre-configured with an area lock screen function, so that the electronic device may trigger the area lock screen function when receiving a first input from a user.
  • the first input may be a preset touch input for triggering an area lock screen, for example, a touch area lock screen shortcut key, a touch preset physical key, a preset gesture sliding input, and an area selection input. , A touch input of a preset duration, a touch input of a preset position, or another type of touch input, etc .; the first input may also be a preset voice input instruction for triggering an area lock screen or a preset Somatosensory operation for triggering area lock screen.
  • an area lock screen shortcut key can be added to the pull-up menu of the electronic device as an entry into the area lock screen mode, so that the user can quickly trigger the area lock screen function.
  • a region lock screen shortcut key is generated in the pull-up menu as the region lock screen entry mode. Quick entry. In this way, when a user's finger slides upward from the bottom of the screen of the electronic device to pull up the pull-up menu, and clicks on the region lock screen shortcut displayed in the pull-up menu, the electronic device receives a region lock trigger trigger. Screen first input.
  • Step 102 In response to the first input, lock a target area, where the target area is a part of a display area of a display screen of an electronic device.
  • the electronic device after receiving the first input from the user, locks a target area in response to the first input, where the target area may be a preset area or may be The area associated with the first input, for example, the electronic device may preset a certain area on the display area of the display screen as the default screen-to-be-locked area, or determine the display screen according to the operation parameter of the first input A certain area on the display area of is the screen-to-be-locked area, and the screen-to-be-locked area is the target area.
  • the display position of the target area may also be indicated, for example, the outline of the target area may be highlighted, or the display color or brightness of the target area may be changed.
  • the display position of the target area may also be indicated, for example, the outline of the target area may be highlighted, or the display color or brightness of the target area may be changed.
  • the electronic device is preset to be located at the top of the display screen and occupy the entire display.
  • One fifth of the screen area is the default screen area to be locked. In this way, after receiving the first input for triggering the area screen lock, the electronic device may first indicate the area of the default screen area to be locked on the display screen. For the display position, the user may further adjust the size of the target area, and finally lock the target area.
  • the target area may also be determined according to the display interface on the display area of the display screen of the electronic device, for example, if multiple application interfaces are displayed in the display area of the display screen of the electronic device After receiving the first input, a display area of any one of the application interfaces may be randomly selected as the target area, or a display area of the selected application interface may be used as the target area according to a user's selection input, or It is also possible to intelligently identify the display content of the multiple application interfaces, and use the display area of the application interface related to user privacy as the target area to achieve the purpose of preventing user privacy from being leaked.
  • the locked target area may specifically be that the target area is in a locked state, and the locked target area will no longer respond to any touch input by the user in the area until the target area is released.
  • the target area is locked.
  • the electronic device after receiving the first input for triggering the area lock screen, the electronic device will lock a part of the display area of the display screen of the electronic device, so that it will not affect the normal operation of the electronic device by the user.
  • the electronic device may be any device having a storage medium, such as a computer, a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant.
  • a storage medium such as a computer, a mobile phone, a tablet computer, a laptop computer, and a personal digital assistant.
  • PDA Personal Digital Assistant
  • MID Mobile Internet Device
  • Wearable Device Wearable Device
  • the electronic device can receive and respond to the first input of the user, and lock a part of the display area of the display screen of the electronic device, so that the user can control the electronic device through the first input. Part of the area is locked. In this way, when the electronic device is in a partially locked screen state, the user can still operate the electronic device normally and lock the target area, which is not only easier to operate, but also makes the screen lock method more novel and flexible.
  • FIG. 2 is a flowchart of another lock screen method provided by an embodiment of the present disclosure, which is applied to an electronic device. This embodiment is based on the embodiment shown in FIG. The first input, the step of locking the target area is further detailed, so that the way of determining the target area is more clear and specific. As shown in Figure 2, the method includes the following steps:
  • Step 201 Receive a first input from a user.
  • step 101 For the specific implementation of this step, refer to the implementation of step 101 in the method embodiment shown in FIG. 1. To avoid repetition, details are not described herein again.
  • the method further includes:
  • the area lock screen function can be turned on in the setting page to enable the area lock screen function, and set the number of lock screen areas, the lock screen mode, and the unlock method of each lock screen area.
  • An area lock screen shortcut key is generated in the pull-up menu as a shortcut entry to enter the area lock screen mode.
  • the first input may be receiving a user's input to the area lock screen shortcut key in the pull-up menu, thereby The first input has the characteristics of simple operation, and enables the electronic device to quickly determine and lock a target area on the display area according to a preset number of lock screen areas and a lock screen mode.
  • the user can click the setting application to enter the system settings page, find the area lock screen function option, click this option to enter the area lock screen function setting page 30, as shown in Figure 3a, and then click the start button 31 To turn on the area lock screen function.
  • the lock screen mode setting option 32 and the unlocking mode setting option 33 can be displayed on the area lock screen function setting page 30, as shown in FIG. 3b.
  • the user Under the lock screen mode setting page 34, the user can set the number of lock screen areas, such as 1, 2, or 3, and there are three types
  • the lock screen mode is selectable, that is, the user can choose to enable the horizontal lock screen mode, the vertical lock screen mode, or the combined lock screen mode, as shown in FIG. 3c.
  • the unlock mode setting page 35 can be displayed The number of lock screen areas, the corresponding value will be updated synchronously according to the number of lock screen areas set by the user on the lock screen setting page 34; the unlock mode setting page 35 may also display a unified unlock function option, which can be located at It is turned on by default.
  • unlocking modes can be displayed below the unified unlocking function option for users to choose, such as password unlocking, graphic unlocking, fingerprint unlocking, face unlocking, etc .; after choosing any one of the unlocking methods, the user can choose to use You can also choose to re-enter the secret key that the system has stored, such as the password, graphics, fingerprint, or face image that the user has entered; the details can be shown in Figure 3d.
  • the unlock method and key of each lock screen area can be set separately. In this way, after the area lock screen function is enabled, the user needs to adopt the corresponding Unlock method and key to unlock each lock screen area one by one.
  • This mode is more suitable for scenarios where multiple users share electronic devices. For example, parents and children share an electronic device. Parents and children can set different lock screen areas and different unlocking methods and keys. When using them, Parents and children can lock their desired areas separately, and only after unlocking each locked area separately can a complete experience be used.
  • the area lock screen function of the electronic device can be arbitrarily set, and the user can customize the number of area lock screens, lock screen modes, unlocking methods, etc. according to his own needs, so that the area of the electronic device
  • the lock screen feature is more flexible and practical.
  • Step 202 Obtain the first input operation parameter, where the operation parameter includes at least one of an operation trajectory, an operation duration, an operation position, and an operation type.
  • the above operation parameter may be an operation parameter associated with the first input, and may specifically be an operation trajectory, an operation duration, an operation position, an operation type, and the like, for example, when the first input is on a display screen of the electronic device
  • an operation trajectory of the first input on the display area may be obtained to determine a target area selected by the user on the display area according to the operation trajectory;
  • the operation duration of the first input can be obtained to determine the specific position of the target area on the display area according to the different operation duration;
  • an operation position of the first input may be acquired to determine a specific position of the target area on the display area according to the different operation positions;
  • It may also be an operation type of acquiring the first input, such as a sliding operation, a pressing operation, an operation of touching a target virtual key, etc., according to the operation type.
  • the plurality of operation parameters of the first input may be obtained to combine the plurality of operation parameters to determine that the target area is in the display area. For example, when the first input is a touch input of a target position on the display area, the operation position and operation duration of the first input may be obtained to determine the position on the display area. A target area corresponding to the operation position and operation duration of the first input.
  • Step 203 Determine a target area according to the first input operation parameter.
  • the target area may be determined based on the obtained operation parameters of the first input. Specifically, the target area may be determined by setting different operation parameters in advance, so that the target area may be determined according to the first input. Operation parameter of the target region, and more specifically, a correspondence relationship between the operation parameter and the region can also be set in advance, so that the target region on the display region can be determined according to the reference parameter. Specific location.
  • the operation trajectory of the first input may be used as the outline of the target area, so that the area delimited by the outline is determined as the target area; If the first input operation parameter is an operation duration or operation position, a target area corresponding to the first input operation duration or operation position may be determined according to a preset relationship between the operation duration or operation position and the area. A specific position of; if the first input operation type, a target area corresponding to the operation type that is set in advance may be determined.
  • the step 203 includes:
  • the operation parameter of the first input is the first operation parameter, determining a region selected by the first input as a target region.
  • the first operation parameter may be an operation trajectory or an operation position.
  • the area selected by the first input may be determined as The target area, for example, if the first input selects an input of an area by an operation track on the display area, the area within the operation track may be determined as the target area selected by the first input; If there are multiple areas to be determined displayed on the display area, the area to be determined selected by the first input may be determined as the target area according to the operation position of the first input, where the operation position Located in the target area.
  • the area selected by the first input is determined as the target area, so that the selected area can be determined according to the user's selection.
  • the target area can further ensure that the target area meets the user's expectations, and also makes the lock screen method convenient and flexible.
  • the step 203 may further include:
  • a target lock screen area corresponding to the target lock screen mode is determined according to a preset correspondence between the lock screen mode and the lock screen area, and the target lock screen area is determined as the target area.
  • the second operation parameter may be a specific operation duration or a specific operation type, wherein the specific operation type may be a touch input to a region lock screen shortcut key, for example, bringing up a pull-up menu and clicking the pull-up menu Area on the screen lock shortcut.
  • the target region may be determined according to a preset lock screen mode.
  • the target lock screen mode may be obtained in advance, and then the target lock screen area corresponding to the target lock screen mode is determined according to the preset correspondence between the lock screen mode and the lock screen area, and the target lock screen area is determined.
  • the target lock screen area is determined as the target area.
  • the preset target lock screen mode may be set by the system by default, or may be preset by a user. For example, the user may enter a system setting page in advance and set a desired setting before performing the first input.
  • the electronic device may provide multiple lock screen modes for the user to select.
  • the lock screen mode may include a horizontal lock screen mode, a vertical lock screen mode, or a combination lock screen mode. Different lock screen modes The corresponding target area is displayed differently. As shown in FIG. 4a, in the horizontal lock screen mode, the vertical edge of the target area 41 coincides with the vertical edge of the electronic device display 40. As shown in FIG.
  • the vertical lock In the screen mode the lateral edges of the target area 42 coincide with the lateral edges of the electronic device display 40, as shown in FIGS. 4c and 4d.
  • the combined lock screen mode at least two adjacent borders of the target area 43 and The boundaries of the display screen 40 of the electronic device do not overlap.
  • the electronic device can be set in advance in different lock screen modes and different numbers of lock screen areas, and the size and display position of the corresponding target area respectively.
  • the size and display position of the corresponding target area In the horizontal lock screen mode, When the number of lock screen areas is 1, 2, and 3 respectively, the size and display position of the corresponding target area; in the vertical lock screen mode, the number of lock screen areas is 1, 2, and 3, respectively.
  • a display position of a corresponding target area in the display screen of the electronic device can be determined.
  • the preset lock screen mode and the corresponding relationship between the preset lock screen mode and the lock screen area can be quickly determined with the preset lock screen mode.
  • the target lock screen area corresponding to the target lock screen mode does not require the user to manually select the target area, so that the lock screen method has the advantages of being fast, accurate, and simple.
  • the method further includes:
  • the target lock screen mode is a horizontal lock screen mode
  • the target lock screen mode is a vertical lock screen mode
  • the target lock screen mode is a combined lock screen mode
  • the size of the target area is adjusted according to a user's drag operation on the boundary of the target area.
  • the user may further adjust the size of the target area, so that the user can determine the final locked area according to his needs.
  • a user may drag a horizontal edge of the target area to adjust the size of the target area, for example, as shown in FIG. 4a, the target area 41
  • the vertical edge of the screen coincides with the vertical edge of the display screen 40 of the electronic device and cannot be dragged.
  • the user can drag the horizontal side A or the horizontal side C of the target area 41 to adjust the size of the target area 41.
  • the lock screen mode is a vertical lock screen mode
  • the user can drag the vertical edge of the target area to adjust the size of the target area.
  • the horizontal side of the target area 42 It coincides with the horizontal side of the display screen 40 of the electronic device and cannot be dragged.
  • the user can drag the vertical side B or vertical side D of the target area 42 to adjust the size of the target area 42.
  • the user can drag either the vertical edge of the target area, the horizontal edge of the target area, or the vertices of the target area.
  • the user can drag the horizontal side A, the horizontal side C, the vertical side B, or the vertical side D of the target area 43, or the target area 43. Drag any one of the four vertices P1, P2, P3, and P4 to adjust the size of the target area 43.
  • the arrow only indicates the direction in which the boundary of the target area can be dragged, but it is not limited that the boundary can only be dragged in the direction indicated by the arrow.
  • the user in addition to dragging the boundary of the target area to adjust the size of the target area, the user can also drag the target area to adjust the target area in the The position in the display screen of the electronic device. In this way, when the user is not satisfied with the position of the target area preset by the system, the user can adjust the position of the target area.
  • the system can lock the adjusted target area.
  • the user can also perform a confirmation operation on the adjusted target area, for example, clicking the confirmation button, double-clicking the adjusted target area, etc.
  • a confirmation operation on the adjusted target area, for example, clicking the confirmation button, double-clicking the adjusted target area, etc.
  • the user can adjust the size of the target area through corresponding drag operations, so that the area lock screen method of the electronic device is more flexible and more satisfying.
  • step 202 and the step 203 are replaceable.
  • step 202 and the step 203 may be replaced with:
  • a display area of the target application interface is determined as a target area.
  • the target area may also be determined by intelligent identification. Specifically, after receiving the first input from the user, it may be determined whether at least two are displayed in the display area of the display screen of the electronic device.
  • An application interface where the at least two application interfaces may be interfaces of different applications or different interfaces of the same application; when at least two application interfaces are displayed in a display area of a display screen of the electronic device, it may be identified
  • the types of the at least two application interfaces may specifically identify each of the at least two application interfaces by acquiring attribute information of the at least two application interfaces or acquiring display content on the at least two application interfaces. The type to which the application interface belongs.
  • the application interface of the at least two application interfaces whose type is a preset type may be determined as a target application interface, where the preset type may be a conversation type, a payment type, a diary type, a social type, or other content containing privacy Therefore, the target application interface is an application interface with a certain privacy content among the at least two application interfaces.
  • the display area where the target application interface is located can be determined as the target area, so that the electronic device can lock the application interface with privacy content among at least two application interfaces currently displayed by the electronic device.
  • the user is not required to set the number of lock screen areas and the lock screen mode in advance, and the user does not need to manually select the target area, thereby having the characteristics of intelligence, accuracy, simplicity and speed.
  • determining the display area of the target application interface as the target area includes:
  • the target application interface is blocked by an application interface other than the target application interface among the at least two application interfaces, and the occupied display area of the target application interface is relative to the display area of the target application interface. Determining that the display area of the target application interface that is not blocked is the target area when the ratio does not exceed a preset ratio;
  • the display area of the target application interface includes preset type information
  • the display area of the preset type information is determined as the target area.
  • the target area may also be determined according to whether the display content on the target application interface is obstructed by other application interfaces. Specifically, if it is determined that the target application interface is blocked The application interface occlusion of the at least two application interfaces other than the target application interface may further calculate the proportion of the display area of the target application interface that is blocked relative to the display area of the target application interface, and may In a case where the ratio does not exceed a preset ratio, the display area of the target application interface that is not blocked is determined as the target area.
  • the preset ratio can range from 50% to 90%. If the preset ratio is 90%, there is no need to perform a lock operation if more than 90% of the area of the target application interface is blocked.
  • the display area of the target application interface includes preset type information
  • the display area of the preset type information may be determined as the target area, so that the electronic device may The display area of the target application interface containing the preset type of information is locked.
  • the preset type may be sensitive information, such as information such as an ID number, account number, and password. In this way, the user can continue to view or operate the display area on the target application interface other than the preset type of information, and at the same time can achieve the purpose of preventing privacy leakage.
  • the target application interface is blocked by an application interface other than the target application interface among the at least two application interfaces, or identifying whether a display area of the target application interface includes a pre- Set the type of information to determine the target area on the target application interface, so as to achieve the purpose of preventing privacy leakage and reduce the size of the target area as much as possible to ensure that a larger area exists on the display area Unlocked display area for easy viewing or operation.
  • Step 204 Lock the target area.
  • step 102 For the specific implementation of this step, reference may be made to the related implementation of step 102 in the method embodiment shown in FIG. 1, and the same beneficial effects can be achieved. To avoid repetition, details are not repeated here.
  • the step 204 includes:
  • the target area is covered with a preset layer, so that the display content in the target area is invisible.
  • the specific way to lock the target area may be to extinguish the target area, and even if the target area is off the screen and does not display any content, it may also cover the target area with a preset layer,
  • the preset layer may be a picture of a preset color or a preset layer mask. When the preset layer is used After the target area is covered, the display content in the target area will be invisible.
  • the purpose of locking the target area can be achieved, and the display content in the target area can be protected to prevent the user's privacy from leaking, or can Help the user focus on the display content on the display area of the display screen of the electronic device other than the target area.
  • the number of the target regions is at least two;
  • the method further includes:
  • the first target area is unlocked.
  • the electronic device can unlock different locked target areas respectively.
  • the unlocking key input from the second input may be obtained, where the second input may be Key input for unlocking the first target area, such as input of a touch fingerprint module, input of a digital password, or input for triggering a face unlock, etc.
  • the first target area is the second input
  • the number of specific to-be-unlocked regions may be one or more, that is, the user may unlock one or more of the at least two target regions at a time; if the unlock key and the first If the preset unlock key of the target area matches, the lock on the first target area may be released, where the preset unlock key may be a preset key for releasing the first target area .
  • a second input for the first target area may be input, so that the electronic device obtains the second input location. Enter the unlock key.
  • the specific method for obtaining the unlocking key may be determined by the preset unlocking method of the first target area. For example, as shown in FIG. 5, if the unlocking method of the first target area 50 is password unlocking, After receiving the second input, the password input field 51 is displayed on the display screen of the electronic device, and the password entered by the user in the password input field 51 is obtained, and the electronic device can obtain the user input in the password input field 51 Unlock password.
  • the screen fingerprint icon may be highlighted on the display of the electronic device to prompt the user If a fingerprint is input at the screen fingerprint icon, the electronic device can collect the unlock fingerprint input by the user at the screen fingerprint icon; if the unlocking method of the first target area is facial recognition unlocking, the first After the two inputs, the camera of the electronic device is turned on and a face image of the user is collected through the camera.
  • the user when the number of the target areas is at least two, the user can unlock different locked target areas respectively, and can adopt the preset unlocking method of each target area to adopt Corresponding unlocking method and entering a matching unlocking key to unlock the target area that is expected to be unlocked, so as to have flexible and diverse unlocking methods.
  • this unlocking mode is particularly suitable for scenarios where multiple users share electronic devices for unlocking, each user can lock different areas of the electronic device respectively, and each area can be unlocked using different unlocking methods, or You can use the same unlock method but different unlock keys.
  • each user can separately protect his / her desired privacy content from being seen by other users, and the completeness of the electronic device can be obtained only when each user is authorized to unlock the content.
  • the lock screen method when a user's first input is received, by acquiring the operation parameter of the first input, and determining a target area according to the operation parameter of the first input, and finally locking the target area, it is possible to According to different operation parameters of the first input, a corresponding target region is determined, so that the lock screen method has the advantages of flexibility and simplicity.
  • FIG. 1 a variety of optional implementation manners are added to the embodiment shown in FIG. 1. These optional implementation manners can be implemented in combination with each other, or can be implemented separately, and can be implemented in electronic equipment. In the area of screen lock, users can still operate electronic devices normally, which is not only easier to operate, but also makes the screen lock method more novel and flexible.
  • FIG. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in FIG. 6, the electronic device 600 includes:
  • a locking module 602 configured to lock a target area in response to the first input
  • the target area is a part of a display area of a display screen of the electronic device 600.
  • the locking module 602 includes:
  • An acquisition submodule 6021 configured to acquire the first input operation parameter, where the operation parameter includes at least one of an operation trajectory, an operation duration, an operation position, and an operation type;
  • a determining sub-module 6022 configured to determine a target area according to the first input operation parameter
  • the locking sub-module 6023 is configured to lock the target area.
  • the determining sub-module 6022 is configured to determine a region selected by the first input as a target region when the operation parameter of the first input is the first operation parameter.
  • the determining sub-module 6022 includes:
  • An obtaining unit 60221, configured to obtain a preset target lock screen mode when the first input operation parameter is a second operation parameter
  • a determining unit 60222 is configured to determine a target lock screen area corresponding to the target lock screen mode according to a preset correspondence relationship between the lock screen mode and the lock screen area, and determine the target lock screen area as a target area.
  • the electronic device 600 further includes:
  • An identification module 603, configured to identify types of the at least two application interfaces in a case where at least two application interfaces are displayed in a display area of a display screen of the electronic device 600;
  • a first determining module 604 configured to determine an application interface of a preset type among the at least two application interfaces as a target application interface;
  • the second determining module 605 is configured to determine a display area of the target application interface as a target area.
  • the second determining module 605 is configured to display that the target application interface is blocked by application interfaces other than the target application interface among the at least two application interfaces, and the target application interface is blocked If the proportion of the area relative to the display area of the target application interface does not exceed a preset ratio, determining a display area that is not blocked by the target application interface as the target area;
  • the second determining module 605 is configured to determine a display area of the preset type of information as a target area when the display area of the target application interface includes information of a preset type.
  • the number of the target regions is at least two;
  • the electronic device 600 further includes:
  • a second receiving module 606, configured to receive a second input from a user to a first target area of at least two target areas
  • An obtaining module 607 configured to obtain an unlocking key input by the second input
  • a release module 608 is configured to unlock the first target area in response to the second input if the unlock key matches a preset unlock key of the first target area.
  • the electronic device 600 can implement various processes implemented by the electronic device in the method embodiments in FIG. 1 to FIG. 2. To avoid repetition, details are not described herein again.
  • the electronic device 600 in the embodiment of the present disclosure may receive and respond to a first input from a user, and lock a partial area of a display area of the display screen of the electronic device, so that the user may control a partial area of the electronic device 600 through the first input. It is in a locked state. In this way, when the electronic device 600 is in a partially locked screen state, the user can still operate the electronic device 600 normally and lock the target area, which is not only easier to operate, but also makes the screen lock method more novel and flexible.
  • the electronic device 1100 includes, but is not limited to, a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, and a display unit. 1106, a user input unit 1107, an interface unit 1108, a memory 1109, a processor 1110, and a power supply 1111.
  • the structure of the electronic device shown in FIG. 11 does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine some components, or different components. Layout.
  • the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a car terminal, a wearable device, a pedometer, and the like.
  • the processor 1110 is configured to receive a first input from a user
  • the target area is a part of a display area of a display screen of an electronic device.
  • the processor 1110 is further configured to: obtain the first input operation parameter, where the operation parameter includes at least one of an operation trajectory, an operation duration, an operation position, and an operation type;
  • the processor 1110 is further configured to: if the operation parameter of the first input is the first operation parameter, determine a region selected by the first input as a target region.
  • the processor 1110 is further configured to: if the first input operation parameter is the second operation parameter, obtain a preset target lock screen mode;
  • a target lock screen area corresponding to the target lock screen mode is determined according to a preset correspondence between the lock screen mode and the lock screen area, and the target lock screen area is determined as the target area.
  • the processor 1110 is further configured to: when at least two application interfaces are displayed in a display area of a display screen of the electronic device, identify the types of the at least two application interfaces;
  • a display area of the target application interface is determined as a target area.
  • the processor 1110 is further configured to: the target application interface is blocked by an application interface other than the target application interface among the at least two application interfaces, and the display area of the target application interface that is blocked is relatively Determining that the display area of the target application interface that is not blocked by the target application interface does not exceed a preset ratio, as the target area;
  • the display area of the target application interface includes preset type information
  • the display area of the preset type information is determined as the target area.
  • the number of the target regions is at least two;
  • the processor 1110 is further configured to: receive a second input from the user to a first target area of the at least two target areas;
  • the first target area is unlocked.
  • the electronic device 1100 can implement the processes implemented by the electronic device in the foregoing embodiments. To avoid repetition, details are not described herein again.
  • the electronic device 1100 according to the embodiment of the present disclosure may receive and respond to a user's first input, and lock a part of the display area of the display screen of the electronic device, so that the user can control the part of the electronic device to be located through the first input. Locked state. In this way, when the electronic device is in a partially locked screen state, the user can still operate the electronic device normally and lock the target area, which is not only easier to operate, but also makes the screen lock method more novel and flexible.
  • the radio frequency unit 1101 may be used for receiving and sending signals during the process of receiving and sending information or during a call. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1110; The uplink data is sent to the base station.
  • the radio frequency unit 1101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 1101 can also communicate with a network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 1102, such as helping users to send and receive email, browse web pages, and access streaming media.
  • the audio output unit 1103 may convert audio data received by the radio frequency unit 1101 or the network module 1102 or stored in the memory 1109 into audio signals and output them as sound. Also, the audio output unit 1103 may also provide audio output (for example, a call signal receiving sound, a message receiving sound, etc.) related to a specific function performed by the electronic device 1100.
  • the audio output unit 1103 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 1104 is used to receive audio or video signals.
  • the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU for short) 11041 and a microphone 11042.
  • the graphics processor 11041 is configured to process a still picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Image data is processed.
  • the processed image frames may be displayed on the display unit 1106.
  • the image frames processed by the graphics processor 11041 may be stored in the memory 1109 (or other storage medium) or transmitted via the radio frequency unit 1101 or the network module 1102.
  • the microphone 11042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 1101 in the case of a telephone call mode and output.
  • the electronic device 1100 further includes at least one sensor 1105, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 11061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 11061 and the electronic device 1100 when the electronic device 1100 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when it is stationary.
  • sensor 1105 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensors, etc. are not repeated here.
  • the display unit 1106 is used to display information input by the user or information provided to the user.
  • the display unit 1106 may include a display panel 11061.
  • the display panel 11061 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD for short), an organic light emitting diode (Organic Light-Emitting Diode, OLED for short), and the like.
  • the user input unit 1107 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the electronic device.
  • the user input unit 1107 includes a touch panel 11071 and other input devices 11072.
  • Touch panel 11071 also known as touch screen, can collect user's touch operations on or near it (for example, the user uses a finger, stylus or any suitable object or accessory on touch panel 11071 or near touch panel 11071 operating).
  • the touch panel 11071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it
  • the processor 1110 receives a command sent by the processor 1110 and executes the command.
  • the touch panel 11071 may be implemented in various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave.
  • the user input unit 1107 may also include other input devices 11072.
  • other input devices 11072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
  • the touch panel 11071 may be overlaid on the display panel 11061. After the touch panel 11071 detects a touch operation on or near the touch panel 11071, it is transmitted to the processor 1110 to determine the type of the touch event, and the processor 1110 then The type of event provides corresponding visual output on the display panel 11061.
  • the touch panel 11071 and the display panel 11061 are implemented as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 11071 and the display panel 11061 can be integrated. The implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 1108 is an interface through which an external device is connected to the electronic device 1100.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input / output (I / O) port, video I / O port, headphone port, and more.
  • the interface unit 1108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 1100 or may be used to connect the electronic device 1100 and an external device. Transfer data between devices.
  • the memory 1109 may be used to store software programs and various data.
  • the memory 1109 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, and the like), etc .; the storage data area may store data according to Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 1109 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage device.
  • the processor 1110 is a control center of an electronic device, and uses various interfaces and lines to connect various parts of the entire electronic device, by running or executing software programs and / or modules stored in the memory 1109, and calling data stored in the memory 1109 , Perform various functions and process data of the electronic device, so as to monitor the electronic device as a whole.
  • the processor 1110 may include one or more processing units; optionally, the processor 1110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc.
  • the tuning processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1110.
  • the electronic device 1100 may further include a power supply 1111 (such as a battery) for supplying power to various components.
  • a power supply 1111 (such as a battery) for supplying power to various components.
  • the power supply 1111 may be logically connected to the processor 1110 through a power management system, thereby implementing management of charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 1100 includes some functional modules that are not shown, and details are not described herein again.
  • an embodiment of the present disclosure further provides an electronic device including a processor 1110 and a memory 1109.
  • a computer program stored in the memory 1109 and executable on the processor 1110 is executed by the processor 1110.
  • each process of the embodiment of the screen lock method is implemented, and the same technical effects can be achieved. To avoid repetition, details are not described herein again.
  • An embodiment of the present disclosure also provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the processes of the foregoing lock screen method embodiments are implemented, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here.
  • the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种锁屏方法及电子设备,该方法包括:接收用户的第一输入(101);响应于所述第一输入,锁定目标区域(102)。其中,所述目标区域为电子设备显示屏的显示区的部分区域。

Description

锁屏方法及电子设备
相关申请的交叉引用
本申请主张在2018年7月12日在中国提交的中国专利申请号No.201810762974.1的优先权,其全部内容通过引用包含于此。
技术领域
本公开实施例涉及通信技术领域,尤其涉及一种锁屏方法及电子设备。
背景技术
随着移动互联网技术的不断发展和电子产品的日渐普及,电子设备已成为人们生活中不可或缺的重要信息工具。目前,电子设备的锁屏技术在不断升级,相应的解锁方式也从最初的密码解锁发展到现在普及的指纹解锁,甚至是面部识别解锁。
然而,相关技术中的锁屏技术大都专注于解锁方式上的设计,而在锁屏方式上并无实质改进,目前都是统一采用对电子设备的整个显示屏幕进行锁定的方式,这种锁屏模式下,若用户需要使用电子设备的特定功能,只能解锁后才能正常操作使用。
可见,相关技术中的电子设备存在锁屏后用户操作较为不便的问题。
发明内容
本公开实施例提供一种锁屏方法及电子设备,以解决相关技术中的电子设备在锁屏后用户操作较为不便的问题。
为解决上述技术问题,本公开是这样实现的:
第一方面,本公开实施例提供了一种锁屏方法,应用于电子设备,包括:
接收用户的第一输入;
响应于所述第一输入,锁定目标区域;
其中,所述目标区域为电子设备显示屏的显示区的部分区域。
第二方面,本公开实施例提供一种电子设备,包括:
第一接收模块,用于接收用户的第一输入;
锁定模块,用于响应于所述第一输入,锁定目标区域;
其中,所述目标区域为电子设备显示屏的显示区的部分区域。
第三方面,本公开实施例提供一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述锁屏方法中的步骤。
第四方面,本公开实施例提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述锁屏方法中的步骤。
在本公开实施例中,电子设备可以接收并响应于用户的第一输入,锁定所述电子设备显示屏的显示区的部分区域,从而用户可以通过所述第一输入来控制电子设备的部分区域处于锁定状态,这样,在电子设备处于部分锁屏状态下,用户仍可以正常操作电子设备,又能锁定目标区域,不仅操作较为方便,还使锁屏方式更为新颖灵活。
附图说明
图1是本公开实施例提供的一种锁屏方法的流程图;
图2是本公开实施例提供的另一种锁屏方法的流程图;
图3a是本公开实施例提供的进入区域锁屏功能设置页面的示意图;
图3b是本公开实施例提供的开启区域锁屏功能后的区域锁屏功能设置页面示意图;
图3c是本公开实施例提供的锁屏模式设置页面示意图;
图3d是本公开实施例提供的解锁方式设置页面示意图;
图4a是本公开实施例提供的横向锁屏模式下目标区域的示意图;
图4b是本公开实施例提供的纵向锁屏模式下目标区域的示意图;
图4c是本公开实施例提供的组合锁屏模式下目标区域的示意图之一;
图4d是本公开实施例提供的组合锁屏模式下目标区域的示意图之二;
图5是本公开实施例提供的采用密码解锁第一目标区域的界面示意图;
图6是本公开实施例提供的一种电子设备的结构示意图;
图7是本公开实施例提供的另一种电子设备的结构示意图;
图8是本公开实施例提供的另一种电子设备的结构示意图;
图9是本公开实施例提供的另一种电子设备的结构示意图;
图10是本公开实施例提供的另一种电子设备的结构示意图;
图11是本公开实施例提供的一种电子设备的硬件结构示意图。
具体实施方式
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
参见图1,图1是本公开实施例提供的一种锁屏方法的流程图,应用于电子设备,如图1所示,所述方法包括以下步骤:
步骤101、接收用户的第一输入。
本实施例中,所述电子设备可以预先配置有区域锁屏功能,从而所述电子设备可以在接收到用户的第一输入的情况下,触发区域锁屏功能。
其中,所述第一输入可以是预设的用于触发区域锁屏的触控输入,例如:触控区域锁屏快捷键、触控预设物理按键、预设手势的滑动输入、区域选择输入、预设时长的触控输入、预设位置的触控输入或其他方式的触控输入等;所述第一输入还可以是预设的用于触发区域锁屏的语音输入指令或预设的用于触发区域锁屏的体感操作。
可选地,可以在所述电子设备的上拉菜单中添加区域锁屏快捷键,作为进入区域锁屏模式的入口,以方便用户快速触发区域锁屏功能。具体地,可以是在检测到用户在设置页面中开启区域锁屏功能,以启用区域锁屏功能,并进行相应设置后,在上拉菜单中生成区域锁屏快捷键,作为进入区域锁屏模式的快捷入口。这样,当用户手指自所述电子设备的屏幕底端向上滑动拉出上拉菜单,并点击所述上拉菜单中显示的区域锁屏快捷键时,所述电子设备接收到用于触发区域锁屏的第一输入。
步骤102、响应于所述第一输入,锁定目标区域,其中,所述目标区域 为电子设备显示屏的显示区的部分区域。
本实施例中,所述电子设备在接收到用户的第一输入后,将响应于所述第一输入,锁定目标区域,其中,所述目标区域可以是预先设定好的区域,也可以是与所述第一输入相关联的区域,如所述电子设备可以预先设定了显示屏的显示区上的某区域为默认待锁屏区域,或者根据所述第一输入的操作参数确定显示屏的显示区上的某区域为待锁屏区域,所述待锁屏区域即为所述目标区域。
更为具体地,在锁定所述目标区域之前,还可以先示意所述目标区域的显示位置,例如:可以突出显示所述目标区域的轮廓,或者改变所述目标区域的显示颜色或显示亮度,以提示用户即将锁定的目标区域所在的位置。其中,需指出的是,在示意所述目标区域后,还可以提供用户可对所述目标区域的大小进行调整的功能,例如:所述电子设备预先设定了位于显示屏顶端且占整个显示屏五分之一的区域为默认待锁屏区域,这样,所述电子设备在接收到用于触发区域锁屏的第一输入后,可以先在显示屏上示意所述默认待锁屏区域的显示位置,用户也可以对所述目标区域的大小作进一步调整,最后锁定所述目标区域。
需说明的是,所述目标区域还可以根据所述电子设备显示屏的显示区上的显示界面来确定,例如:若在所述电子设备显示屏的显示区显示了多个应用界面的情况下接收所述第一输入,则可以随机选择其中任一应用界面的显示区域作为所述目标区域,或者可以根据用户的选择输入,将其中被选中的应用界面的显示区域作为所述目标区域,或者还可以通过智能识别所述多个应用界面的显示内容,将涉及到用户隐私的应用界面的显示区域作为所述目标区域,以达到防止用户隐私泄露的目的。
本实施例中,所述锁定目标区域,具体可以是使所述目标区域处于锁定状态,且锁定后的所述目标区域将不再响应于用户在该区域的任何触控输入,直至解除对所述目标区域的锁定。
这样,所述电子设备在接收到用于触发区域锁屏的第一输入之后,将对所述电子设备显示屏的显示区的部分区域进行锁定,从而不仅不会影响用户正常操作所述电子设备,还能在某些场景下达到防干扰、隐私保护、利于用 户视觉聚焦等目的,例如:锁定显示屏顶端的横幅栏显示区域,防止横幅通知消息干扰用户阅览显示区的显示内容;锁定显示屏上显示有隐私内容的区域,防止用户在与他人分享电子设备显示的内容时造成的隐私泄露;锁定显示屏上的不相关区域,只保留用户感兴趣的显示区域,以帮助用户视觉聚焦。
本公开实施例中,上述电子设备可以是任何具有存储媒介的设备,例如:计算机(Computer)、手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,简称MID)或可穿戴式设备(Wearable Device)等终端设备。
本实施例中的锁屏方法,电子设备可以接收并响应于用户的第一输入,锁定所述电子设备显示屏的显示区的部分区域,从而用户可以通过所述第一输入来控制电子设备的部分区域处于锁定状态,这样,在电子设备处于部分锁屏状态下,用户仍可以正常操作电子设备,又能锁定目标区域,不仅操作较为方便,还使锁屏方式更为新颖灵活。
参见图2,图2是本公开实施例提供的另一种锁屏方法的流程图,应用于电子设备,本实施例在图1所示的实施例的基础上,对所述响应于所述第一输入,锁定目标区域的步骤进行了进一步细化,使得如何确定目标区域的方式更为清楚具体。如图2所示,所述方法包括以下步骤:
步骤201、接收用户的第一输入。
该步骤的具体实施方式可以参见图1所示的方法实施例中步骤101的实施方式,为避免重复,这里不再赘述。
可选的,所述步骤201之前,所述方法还包括:
在所述电子设备的设置页面中开启区域锁屏功能;
设置锁屏区域数量和锁屏模式;
设置每个锁屏区域的解锁方式;
在上拉菜单中生成区域锁屏快捷键。
该实施方式中,可以在设置页面中开启区域锁屏功能,以启用区域锁屏功能,并对锁屏区域数量和锁屏模式,及每个锁屏区域的解锁方式进行设置,设置完毕后,在上拉菜单中生成区域锁屏快捷键,作为进入区域锁屏模式的 快捷入口,这样,所述第一输入可以是接收用户对所述上拉菜单中的区域锁屏快捷键的输入,从而使得所述第一输入具备操作简便的特点,且能使所述电子设备根据预先设置的锁屏区域数量和锁屏模式,快速确定并锁定所述显示区上的目标区域。
在实际操作中,用户可以通过点击设置应用程序进入系统设置页面,找到区域锁屏功能选项,点击该选项后进入区域锁屏功能设置页面30,具体可如图3a所示,然后点击启动按钮31,以开启区域锁屏功能。
在开启区域锁屏功能后,可以在区域锁屏功能设置页面30显示锁屏模式设置选项32和解锁方式设置选项33,具体可如图3b所示。
用户点击锁屏模式设置选项32后进入锁屏模式设置页面34,在锁屏模式设置页面34下,用户可以设置锁屏区域数量,如设置为1个、2个或3个等,并且有三种锁屏模式可供选择,即用户可以选择启用横向锁屏模式、纵向锁屏模式或组合锁屏模式,具体可如图3c所示。
设置完锁屏模式后,可以点击返回键以回到区域锁屏功能设置页面30,此时用户可以点击解锁方式设置选项33,以进入解锁方式设置页面35,解锁方式设置页面35上可显示有锁屏区域数量,对应的数值将根据用户在锁屏模式设置页面34设置的锁屏区域数量进行同步更新;解锁方式设置页面35上还可显示有统一解锁功能选项,该统一解锁功能选项可以处于默认开启状态,该统一解锁功能选项的下方可以显示多种解锁方式以供用户选择,如密码解锁、图形解锁、指纹解锁、面部解锁等;用户在选择其中任一种解锁方式后,可以选择使用系统已存储的秘钥,如用户已录入的密码、图形、指纹或人脸图像,也可以选择重新录入秘钥;具体可如图3d所示。
若用户设置了多个锁屏区域,且选择不启用统一解锁功能,则可以分别对每个锁屏区域的解锁方式及秘钥进行设置,这样,在启用区域锁屏功能后,用户需采用对应的解锁方式和秘钥对每个锁屏区域进行一一解锁。这种模式较适用于多用户共用电子设备的场景,例如:父母和孩子共用一部电子设备,父母和孩子可以分别设置不同的锁屏区域及不同的解锁方式和秘钥,以在使用时,父母和孩子可分别对各自期望的区域进行锁定,并且只有分别对各自锁定的区域进行解锁后,才可获得完整的使用体验。
这样,该实施方式中,所述电子设备的区域锁屏功能可以被任意设置,用户可以根据自身需求自定义设置区域锁屏数量、锁屏模式、解锁方式等,从而使得所述电子设备的区域锁屏功能更具灵活性和实用性。
步骤202、获取所述第一输入的操作参数,其中,所述操作参数包括操作轨迹、操作时长、操作位置和操作类型中的至少一项;
上述操作参数可以是与所述第一输入相关联的操作参数,具体可以是操作轨迹、操作时长、操作位置、操作类型等,例如:当所述第一输入为在所述电子设备显示屏的显示区上的区域选择输入时,可以获取所述第一输入在所述显示区上的操作轨迹,以根据所述操作轨迹,确定用户在所述显示区上选择的目标区域;当所述第一输入为在所述显示区上的触摸输入时,可以获取所述第一输入的操作时长,以根据所述操作时长的不同,确定目标区域在所述显示区上的具体位置;当所述第一输入为在所述显示区上的目标位置的输入时,可以获取所述第一输入的操作位置,以根据所述操作位置的不同,确定目标区域在所述显示区上的具体位置;还可以是获取所述第一输入的操作类型,如滑动操作、按压操作、触控目标虚拟按键的操作等,以根据所述操作类型的不同,确定所述显示区上与所述第一输入的操作类型相对应的目标区域。
需说明的是,若所述第一输入包括多个操作参数,则可以获取所述第一输入的多个操作参数,以结合所述多个操作参数,确定所述目标区域在所述显示区上的具体位置,例如:当所述第一输入为在所述显示区上的目标位置的触控输入时,可以获取所述第一输入的操作位置和操作时长,以确定所述显示区上与所述第一输入的操作位置和操作时长对应的目标区域。
步骤203、根据所述第一输入的操作参数,确定目标区域。
该步骤中,可以基于获取到的所述第一输入的操作参数,确定目标区域,具体地,可以是预先设置了不同的操作参数对应不同的目标区域确定方式,从而可以根据所述第一输入的操作参数,确定所述目标区域的确定方式,且更为具体地,还可以预先设置操作参数与区域的对应关系,从而可以根据所述参照参数确定所述目标区域在所述显示区上的具体位置。
例如:若所述第一输入的操作参数为操作轨迹,则可以将所述第一输入 的操作轨迹作为所述目标区域的轮廓,从而将该轮廓所圈定的区域确定为所述目标区域;若所述第一输入的操作参数为操作时长或操作位置,则可以根据预先设定的操作时长或操作位置与区域的对应关系,确定与所述第一输入的操作时长或操作位置对应的目标区域的具体位置;若所述第一输入的操作类型,则可以确定预先设定的与所述操作类型相对应的目标区域。
可选的,所述步骤203包括:
在所述第一输入的操作参数为第一操作参数的情况下,将所述第一输入所选取的区域确定为目标区域。
上述第一操作参数可以是操作轨迹或操作位置等,该实施方式中,可以在所述第一输入的操作参数为第一操作参数的情况下,将所述第一输入所选取的区域确定为目标区域,例如:若所述第一输入在所述显示区上通过操作轨迹选取区域的输入,则可以将位于所述操作轨迹内的区域确定为所述第一输入所选取的目标区域;若所述显示区上显示有多个待确定区域,则可以根据所述第一输入的操作位置,将所述第一输入所选择的待确定区域确定为所述目标区域,其中,所述操作位置位于所述目标区域之中。
这样,该实施方式中,在所述第一输入的操作参数为第一操作参数的情况下,通过将所述第一输入所选取的区域确定为目标区域,从而可以根据用户的选择来确定所述目标区域,进而能够保证所述目标区域符合用户的期望,也使得所述锁屏方法具备方便、灵活的特点。
可选的,所述步骤203还可以包括:
在所述第一输入的操作参数为第二操作参数的情况下,获取预先设定的目标锁屏模式;
根据预设的锁屏模式与锁屏区域的对应关系,确定与所述目标锁屏模式对应的目标锁屏区域,并将所述目标锁屏区域确定为目标区域。
上述第二操作参数可以是特定操作时长或特定操作类型,其中,所述特定操作类型可以是对区域锁屏快捷键的触控输入,例如:调出上拉菜单,并点击所述上拉菜单上的区域锁屏快捷键。
这样,该实施方式中,可以在所述第一输入达到特定操作时长或所述第一输入为特定操作类型的情况下,根据预先设定的锁屏模式,确定所述目标 区域。具体地,可以是先获取预先设定的目标锁屏模式,再根据预设的锁屏模式与锁屏区域的对应关系,确定与所述目标锁屏模式对应的目标锁屏区域,并将所述目标锁屏区域确定为目标区域。
其中,所述预先设定的目标锁屏模式可以是系统默认设定的,也可以是用户预先设置的,例如:用户可以在执行所述第一输入之前,预先进入系统设置页面,设置期望的目标锁屏模式。该实施方式中,所述电子设备可以提供多种锁屏模式以供用户选择,例如:所述锁屏模式可包括横向锁屏模式、纵向锁屏模式或组合锁屏模式,不同的锁屏模式对应的目标区域的显示方式不同,如图4a所示,在横向锁屏模式下,目标区域41的竖边与所述电子设备显示屏40的竖边重合,如图4b所示,在纵向锁屏模式下,目标区域42的横边与所述电子设备显示屏40的横边重合,如图4c和4d所示,在组合锁屏模式下,目标区域43的至少两条相邻的边界与所述电子设备显示屏40的边界均不重合。
更为具体地,所述电子设备可以预先设置在不同的锁屏模式和不同的锁屏区域数量下,所分别对应的目标区域的大小和显示位置,例如:可以预先设置横向锁屏模式下,锁屏区域数量分别为1个、2个和3个时,所分别对应的目标区域的大小和显示位置;预先设置纵向锁屏模式下,锁屏区域数量分别为1个、2个和3个时,所分别对应的目标区域的大小和显示位置,以及预先设置组合锁屏模式下,锁屏区域数量分别为1个、2个和3个时,所分别对应的目标区域的大小和显示位置。这样,根据预先设置的锁屏区域数量和预先设置的锁屏模式,便可以确定对应的目标区域在所述电子设备显示屏中的显示位置。
这样,该实施方式中,在接收到用户的第一输入时,可以通过获取预先设定的目标锁屏模式,以及预设的锁屏模式与锁屏区域的对应关系,快速地确定与所述目标锁屏模式对应的目标锁屏区域,而无需用户手动选取目标区域,进而使所述锁屏方法具备快速、准确和简便的优点。
可选的,所述根据预设的锁屏模式与锁屏区域的对应关系,确定与所述目标锁屏模式对应的目标锁屏区域,并将所述目标锁屏区域确定为目标区域之后,所述锁定所述目标区域之前,所述方法还包括:
在所述目标锁屏模式为横向锁屏模式的情况下,根据用户对所述目标区域的横边的拖拽操作,调整所述目标区域的大小;或者
在所述目标锁屏模式为纵向锁屏模式的情况下,根据用户对所述目标区域的竖边的拖拽操作,调整所述目标区域的大小;或者
在所述目标锁屏模式为组合锁屏模式的情况下,根据用户对所述目标区域的边界的拖拽操作,调整所述目标区域的大小。
该实施方式中,在确定所述目标区域之后,用户还可以对所述目标区域的大小进行进一步调整,以使用户可以自身需求确定最终锁定的区域。
具体地,在所述锁屏模式为横向锁屏模式的情况下,用户可以拖拽所述目标区域的横边,以调整所述目标区域的大小,例如:如图4a所示,目标区域41的竖边与所述电子设备显示屏40的竖边重合,且不可拖拽,此时,用户可以对目标区域41的横边A或横边C进行拖拽,以调整目标区域41的大小。
在所述锁屏模式为纵向锁屏模式的情况下,用户可以拖拽所述目标区域的竖边,以调整所述目标区域的大小,例如:如图4b所示,目标区域42的横边与所述电子设备显示屏40的横边重合,且不可拖拽,此时,用户可以对目标区域42的竖边B或竖边D进行拖拽,以调整目标区域42的大小。
在所述锁屏模式为组合锁屏模式的情况下,用户既可以拖拽所述目标区域的竖边,也可以拖拽所述目标区域的横边,还可以拖拽所述目标区域的顶点,以调整所述目标区域的大小,例如:如图4c所示,用户可以对目标区域43的横边A、横边C、竖边B或竖边D进行拖拽,也可以对目标区域43的四个顶点P1、P2、P3和P4中的任意一个顶点进行拖拽,以调整目标区域43的大小。
需说明的是,图4a至图4c中,箭头仅示意目标区域的边界可拖拽的方向,但并不限定该边界只能往箭头所示方向拖拽。
还需说明的是,该实施方式中,用户除了可以通过拖拽所述目标区域的边界以调整所述目标区域的大小,还可以通过拖拽所述目标区域以调整所述目标区域在所述电子设备显示屏中的位置,这样,当用户对系统预设的目标区域的位置不满意时,用户可以对所述目标区域的位置进行调整。
在对所述目标区域的大小进行调整后,系统可以锁定调整后的目标区域,具体地,用户还可以对调整后的目标区域进行确认操作,例如:点击确认按键、双击调整后的目标区域等,以使所述电子设备响应于所述确认操作,锁定调整后的目标区域。
这样,该实施方式中,在不同的锁屏模式下,用户可以通过相应的拖拽操作对所述目标区域的大小进行调整,使得所述电子设备的区域锁屏方式更为灵活,更能满足用户的多样化需求。
需说明的是,本实施例中,所述步骤202和所述步骤203是可替换的,例如,可将所述步骤202和所述步骤203替换为:
在所述电子设备显示屏的显示区显示至少两个应用界面的情况下,识别所述至少两个应用界面的类型;
将所述至少两个应用界面中类型为预设类型的应用界面确定为目标应用界面;
将所述目标应用界面的显示区域确定为目标区域。
本实施例中,也可以是通过智能识别的方式确定所述目标区域,具体地,在接收到用户的第一输入后,可以先判断所述电子设备显示屏的显示区是否显示有至少两个应用界面,其中,所述至少两个应用界面可以是不同应用的界面,也可以是同一应用的不同界面;在所述电子设备显示屏的显示区显示至少两个应用界面的情况下,可以识别所述至少两个应用界面的类型,具体可以通过获取所述至少两个应用界面的属性信息或获取所述至少两个应用界面上的显示内容,来识别所述至少两个应用界面中每个应用界面所属的类型。
然后可以将所述至少两个应用界面中类型为预设类型的应用界面确定为目标应用界面,其中,所述预设类型可以是会话类、支付类、日记类、社交类或其他包含隐私内容的类型,因此,所述目标应用界面为所述至少两个应用界面中具备一定隐私内容的应用界面。
最后,便可以将所述目标应用界面所处的显示区域确定为目标区域,以使所述电子设备可以对所述电子设备当前显示的至少两个应用界面中,具有隐私内容的应用界面进行锁定,达到防止用户隐私泄露的目的,且这种方式中,无需用户预先设置锁屏区域数量和锁屏模式,且无需用户手动选择目标 区域,从而具备智能、准确和简便快速的特点。
可选的,所述将所述目标应用界面的显示区域确定为目标区域,包括:
在所述目标应用界面被所述至少两个应用界面中除所述目标应用界面外的应用界面遮挡,且所述目标应用界面被遮挡的显示区域相对于所述目标应用界面的显示区域的占比不超过预设比例的情况下,将所述目标应用界面未被遮挡的显示区域确定为目标区域;
或者,在所述目标应用界面的显示区域中包含预设类型的信息的情况下,将所述预设类型的信息的显示区域确定为目标区域。
该实施方式中,在确定目标应用界面后,还可以根据所述目标应用界面上的显示内容是否存在被其他应用界面遮挡的情况,来确定目标区域,具体地,若确定所述目标应用界面被所述至少两个应用界面中除所述目标应用界面外的应用界面遮挡,则可以进一步计算所述目标应用界面被遮挡的显示区域相对于所述目标应用界面的显示区域的占比,并可以在所述占比不超过预设比例的情况下,将所述目标应用界面未被遮挡的显示区域确定为目标区域。例如,预设比例的取值范围可以是50%至90%,如预设比例是90%,则在目标应用界面有超过90%的区域被遮挡的情况下,就没有必要执行锁定操作,这样,可以避免在所述目标应用界面被遮挡的情况下,因将所述目标应用界面锁定而导致所述至少两个应用界面中除所述目标应用界面外的应用界面上的内容被锁定,致使用户无法正常查看所述至少两个应用界面中除所述目标应用界面外的应用界面上的内容,还可省略不必要的锁定操作。
该实施方式中,还可以在所述目标应用界面的显示区域中包含预设类型的信息的情况下,将所述预设类型的信息的显示区域确定为目标区域,以使所述电子设备将所述目标应用界面上包含所述预设类型的信息的显示区域锁定,例如,预设类型,可以是敏感信息,例如身份证号、账号、密码等信息。这样,用户还能继续对所述目标应用界面上除所述预设类型的信息外的显示区域进行查看或操作,同时又能达到防止隐私泄露的目的。
这样,该实施方式中,通过识别所述目标应用界面是否被所述至少两个应用界面中除所述目标应用界面外的应用界面遮挡,或者识别所述目标应用界面的显示区域中是否包含预设类型的信息,来确定所述目标应用界面上的 目标区域,从而既能达到防止隐私泄露的目的,又能尽可能地减少所述目标区域的大小,以保证所述显示区上存在较大的未被锁定的显示区域,以方便用户查看或操作。
步骤204、锁定所述目标区域。
该步骤的具体实施方式可以参见图1所示的方法实施例中步骤102的相关实施方式,且能达到相同的有益效果,为避免重复,这里不再赘述。
可选的,所述步骤204包括:
熄灭所述目标区域;或者
利用预设图层覆盖所述目标区域,以使所述目标区域中的显示内容为不可见状态。
该实施方式中,锁定所述目标区域的具体方式可以是熄灭所述目标区域,即使所述目标区域处于熄屏状态,不显示任何内容,也可以是利用预设图层覆盖所述目标区域,以使所述目标区域中的显示内容为不可见状态,其中,所述预设图层可以是预设颜色的图片,也可以是预设的图层蒙版,当使用所述预设图层覆盖所述目标区域后,所述目标区域中的显示内容将为不可见状态。
这样,通过熄灭所述目标区域或者利用预设图层覆盖所述目标区域,均可以达到锁定所述目标区域的目的,且能保护所述目标区域中的显示内容,防止用户隐私泄露,或者能够帮助用户聚焦于所述电子设备显示屏的显示区上除所述目标区域外的显示内容。
当然,该实施方式同样可以应用到图1所示的实施例中,且能达到相同有益效果。
可选的,所述目标区域的数量为至少两个;
所述步骤204之后,所述方法还包括:
接收用户对至少两个目标区域中的第一目标区域的第二输入;
获取所述第二输入所输入的解锁秘钥;
在所述解锁秘钥与所述第一目标区域的预设解锁秘钥相匹配的情况下,响应于所述第二输入,解锁所述第一目标区域。
该实施方式中,当所述目标区域的数量为至少两个时,所述电子设备可 以对不同的已锁定的目标区域分别进行解锁。具体地,可以在接收到用户对至少两个目标区域中的第一目标区域的第二输入的情况下,获取所述第二输入所输入的解锁秘钥,其中,所述第二输入可以是用于解锁所述第一目标区域的秘钥输入,如触控指纹模组的输入、输入数字密码的输入或用于触发面部解锁的输入等,所述第一目标区域为所述第二输入具体所针对的待解锁区域,其数量可以是一个或多个,即用户可以一次对所述至少两个目标区域中的一个或多个区域进行解锁;若所述解锁秘钥与所述第一目标区域的预设解锁秘钥相匹配,则可以解除对所述第一目标区域的锁定,其中,所述预设解锁秘钥可以是预先设置的用于解除所述第一目标区域的秘钥。
这样,当用户需对所述至少两个目标区域中的第一目标区域进行解锁时,可以输入针对所述第一目标区域的第二输入,以使所述电子设备获取所述第二输入所输入的解锁秘钥。
其中,获取解锁秘钥的具体方式可以由所述第一目标区域的预设解锁方式决定,例如:如图5所示,若所述第一目标区域50的解锁方式为密码解锁,则可以在接收到所述第二输入后,在所述电子设备显示屏上显示密码输入栏51,并获取用户在该密码输入栏51输入的密码,所述电子设备便可在密码输入栏51获取用户输入的解锁密码。
又例如:若所述第一目标区域的解锁方式为屏幕指纹解锁,则可以在接收到所述第二输入后,在所述电子设备显示屏上高亮显示屏幕指纹图标,以提示用户在该屏幕指纹图标处输入指纹,所述电子设备便可在所述屏幕指纹图标处采集用户输入的解锁指纹;若所述第一目标区域的解锁方式为面部识别解锁,则可以在接收到所述第二输入后,开启所述电子设备的摄像头并通过所述摄像头采集用户的人脸图像。
这样,该实施方式中,在所述目标区域的数量为至少两个的情况下,用户可以分别对不同的已锁定的目标区域进行解锁,且可根据预先设置的各目标区域的解锁方式,采用相对应的解锁方式并输入相匹配的解锁秘钥对期望解锁的目标区域进行解锁,从而具备解锁方式的灵活多样性。
需说明的是,这种解锁模式尤其适用于多用户共用电子设备进行解锁的场景,每个用户可以分别锁定所述电子设备的不同区域,且每个区域可以采 用不同的解锁方式进行解锁,或者可以采用相同的解锁方式但采用不同的解锁秘钥进行解锁。这样,通过该实施方式中的分区域解锁方式,每个用户可以分别保护自己期望的隐私内容不被其他用户看见,只有在每个用户都授权解锁的情况下,才能获得所述电子设备的完整体验。
当然,该实施方式中,同样可以应用到图1所示的实施例中,且能达到相同有益效果。
本实施例中,在接收到用户的第一输入时,通过获取所述第一输入的操作参数,并根据所述第一输入的操作参数,确定目标区域,最终锁定所述目标区域,从而可以根据所述第一输入的操作参数的不同,确定相对应的目标区域,使得所述锁屏方法具备灵活简便的优点。
另外,本实施例在图1所示的实施例的基础上还增加了多种可选的实施方式,这些可选的实施方式可以相互结合实现,也可以单独实现,且都能达到在电子设备处于区域锁屏状态下,用户仍可以正常操作电子设备,不仅操作较为方便,还使锁屏方式更为新颖灵活的技术效果。
参见图6,图6是本公开实施例提供的一种电子设备的结构示意图,如图6所示,电子设备600包括:
第一接收模块601,用于接收用户的第一输入;
锁定模块602,用于响应于所述第一输入,锁定目标区域;
其中,所述目标区域为电子设备600显示屏的显示区的部分区域。
可选的,如图7所示,所述锁定模块602包括:
获取子模块6021,用于获取所述第一输入的操作参数,其中,所述操作参数包括操作轨迹、操作时长、操作位置和操作类型中的至少一项;
确定子模块6022,用于根据所述第一输入的操作参数,确定目标区域;
锁定子模块6023,用于锁定所述目标区域。
可选的,所述确定子模块6022用于在所述第一输入的操作参数为第一操作参数的情况下,将所述第一输入所选取的区域确定为目标区域。
可选的,如图8所示,所述确定子模块6022包括:
获取单元60221,用于在所述第一输入的操作参数为第二操作参数的情况下,获取预先设定的目标锁屏模式;
确定单元60222,用于根据预设的锁屏模式与锁屏区域的对应关系,确定与所述目标锁屏模式对应的目标锁屏区域,并将所述目标锁屏区域确定为目标区域。
可选的,如图9所示,所述电子设备600还包括:
识别模块603,用于在所述电子设备600显示屏的显示区显示至少两个应用界面的情况下,识别所述至少两个应用界面的类型;
第一确定模块604,用于将所述至少两个应用界面中类型为预设类型的应用界面确定为目标应用界面;
第二确定模块605,用于将所述目标应用界面的显示区域确定为目标区域。
可选的,所述第二确定模块605用于在所述目标应用界面被所述至少两个应用界面中除所述目标应用界面外的应用界面遮挡,且所述目标应用界面被遮挡的显示区域相对于所述目标应用界面的显示区域的占比不超过预设比例的情况下,将所述目标应用界面未被遮挡的显示区域确定为目标区域;
或者,所述第二确定模块605用于在所述目标应用界面的显示区域中包含预设类型的信息的情况下,将所述预设类型的信息的显示区域确定为目标区域。
可选的,所述目标区域的数量为至少两个;
如图10所示,所述电子设备600还包括:
第二接收模块606,用于接收用户对至少两个目标区域中的第一目标区域的第二输入;
获取模块607,用于获取所述第二输入所输入的解锁秘钥;
解除模块608,用于在所述解锁秘钥与所述第一目标区域的预设解锁秘钥相匹配的情况下,响应于所述第二输入,解锁所述第一目标区域。
电子设备600能够实现图1至图2的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。本公开实施例的电子设备600可以接收并响应于用户的第一输入,锁定所述电子设备显示屏的显示区的部分区域,从而用户可以通过所述第一输入来控制电子设备600的部分区域处于锁定状态,这样,在电子设备600处于部分锁屏状态下,用户仍可以正常操作电子 设备600,又能锁定目标区域,不仅操作较为方便,还使锁屏方式更为新颖灵活。
图11为实现本公开各个实施例的一种电子设备的硬件结构示意图,该电子设备1100包括但不限于:射频单元1101、网络模块1102、音频输出单元1103、输入单元1104、传感器1105、显示单元1106、用户输入单元1107、接口单元1108、存储器1109、处理器1110、以及电源1111等部件。本领域技术人员可以理解,图11中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
其中,处理器1110,用于接收用户的第一输入;
响应于所述第一输入,锁定目标区域;
其中,所述目标区域为电子设备显示屏的显示区的部分区域。
可选的,处理器1110还用于:获取所述第一输入的操作参数,其中,所述操作参数包括操作轨迹、操作时长、操作位置和操作类型中的至少一项;
根据所述第一输入的操作参数,确定目标区域;
锁定所述目标区域。
可选的,处理器1110还用于:在所述第一输入的操作参数为第一操作参数的情况下,将所述第一输入所选取的区域确定为目标区域。
可选的,处理器1110还用于:在所述第一输入的操作参数为第二操作参数的情况下,获取预先设定的目标锁屏模式;
根据预设的锁屏模式与锁屏区域的对应关系,确定与所述目标锁屏模式对应的目标锁屏区域,并将所述目标锁屏区域确定为目标区域。
可选的,处理器1110还用于:在所述电子设备显示屏的显示区显示至少两个应用界面的情况下,识别所述至少两个应用界面的类型;
将所述至少两个应用界面中类型为预设类型的应用界面确定为目标应用界面;
将所述目标应用界面的显示区域确定为目标区域。
可选的,处理器1110还用于:在所述目标应用界面被所述至少两个应用 界面中除所述目标应用界面外的应用界面遮挡,且所述目标应用界面被遮挡的显示区域相对于所述目标应用界面的显示区域的占比不超过预设比例的情况下,将所述目标应用界面未被遮挡的显示区域确定为目标区域;
或者,在所述目标应用界面的显示区域中包含预设类型的信息的情况下,将所述预设类型的信息的显示区域确定为目标区域。
可选的,所述目标区域的数量为至少两个;
处理器1110还用于:接收用户对至少两个目标区域中的第一目标区域的第二输入;
获取所述第二输入所输入的解锁秘钥;
在所述解锁秘钥与所述第一目标区域的预设解锁秘钥相匹配的情况下,响应于所述第二输入,解锁所述第一目标区域。
电子设备1100能够实现前述实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。本公开实施例的电子设备1100可以接收并响应于用户的第一输入,锁定所述电子设备显示屏的显示区的部分区域,从而用户可以通过所述第一输入来控制电子设备的部分区域处于锁定状态,这样,在电子设备处于部分锁屏状态下,用户仍可以正常操作电子设备,又能锁定目标区域,不仅操作较为方便,还使锁屏方式更为新颖灵活。
应理解的是,本公开实施例中,射频单元1101可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1110处理;另外,将上行的数据发送给基站。通常,射频单元1101包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1101还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块1102为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元1103可以将射频单元1101或网络模块1102接收的或者在存储器1109中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1103还可以提供与电子设备1100执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1103包括扬声器、蜂鸣器以及受话器等。
输入单元1104用于接收音频或视频信号。输入单元1104可以包括图形处理器(Graphics Processing Unit,简称GPU)11041和麦克风11042,图形处理器11041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1106上。经图形处理器11041处理后的图像帧可以存储在存储器1109(或其它存储介质)中或者经由射频单元1101或网络模块1102进行发送。麦克风11042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1101发送到移动通信基站的格式输出。
电子设备1100还包括至少一种传感器1105,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板11061的亮度,接近传感器可在电子设备1100移动到耳边时,关闭显示面板11061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1105还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元1106用于显示由用户输入的信息或提供给用户的信息。显示单元1106可包括显示面板11061,可以采用液晶显示器(Liquid Crystal Display,简称LCD)、有机发光二极管(Organic Light-Emitting Diode,简称OLED)等形式来配置显示面板11061。
用户输入单元1107可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1107包括触控面板11071以及其他输入设备11072。触控面板11071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板11071上或在触控面板11071附近的操作)。触控面板11071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测 装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1110,接收处理器1110发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板11071。除了触控面板11071,用户输入单元1107还可以包括其他输入设备11072。具体地,其他输入设备11072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板11071可覆盖在显示面板11061上,当触控面板11071检测到在其上或附近的触摸操作后,传送给处理器1110以确定触摸事件的类型,随后处理器1110根据触摸事件的类型在显示面板11061上提供相应的视觉输出。虽然在图11中,触控面板11071与显示面板11061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板11071与显示面板11061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元1108为外部装置与电子设备1100连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1108可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备1100内的一个或多个元件或者可以用于在电子设备1100和外部装置之间传输数据。
存储器1109可用于存储软件程序以及各种数据。存储器1109可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1109可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器1110是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1109内的软件程序和/或模 块,以及调用存储在存储器1109内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器1110可包括一个或多个处理单元;可选的,处理器1110可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1110中。
电子设备1100还可以包括给各个部件供电的电源1111(比如电池),可选的,电源1111可以通过电源管理系统与处理器1110逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备1100包括一些未示出的功能模块,在此不再赘述。
可选的,本公开实施例还提供一种电子设备,包括处理器1110,存储器1109,存储在存储器1109上并可在所述处理器1110上运行的计算机程序,该计算机程序被处理器1110执行时实现上述锁屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述锁屏方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体 现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。

Claims (15)

  1. 一种锁屏方法,应用于电子设备,包括:
    接收用户的第一输入;
    响应于所述第一输入,锁定目标区域;
    其中,所述目标区域为电子设备显示屏的显示区的部分区域。
  2. 根据权利要求1所述的方法,其中,所述响应于所述第一输入,锁定目标区域,包括:
    获取所述第一输入的操作参数,其中,所述操作参数包括操作轨迹、操作时长、操作位置和操作类型中的至少一项;
    根据所述第一输入的操作参数,确定目标区域;
    锁定所述目标区域。
  3. 根据权利要求2所述的方法,其中,所述根据所述第一输入的操作参数,确定目标区域,包括:
    在所述第一输入的操作参数为第一操作参数的情况下,将所述第一输入所选取的区域确定为目标区域。
  4. 根据权利要求2所述的方法,其中,所述根据所述第一输入的操作参数,确定目标区域,包括:
    在所述第一输入的操作参数为第二操作参数的情况下,获取预先设定的目标锁屏模式;
    根据预设的锁屏模式与锁屏区域的对应关系,确定与所述目标锁屏模式对应的目标锁屏区域,并将所述目标锁屏区域确定为目标区域。
  5. 根据权利要求1所述的方法,其中,所述锁定目标区域之前,所述方法还包括:
    在所述电子设备显示屏的显示区显示至少两个应用界面的情况下,识别所述至少两个应用界面的类型;
    将所述至少两个应用界面中类型为预设类型的应用界面确定为目标应用界面;
    将所述目标应用界面的显示区域确定为目标区域。
  6. 根据权利要求5所述的方法,其中,所述将所述目标应用界面的显示区域确定为目标区域,包括:
    在所述目标应用界面被所述至少两个应用界面中除所述目标应用界面外的应用界面遮挡,且所述目标应用界面被遮挡的显示区域相对于所述目标应用界面的显示区域的占比不超过预设比例的情况下,将所述目标应用界面未被遮挡的显示区域确定为目标区域;
    或者,在所述目标应用界面的显示区域中包含预设类型的信息的情况下,将所述预设类型的信息的显示区域确定为目标区域。
  7. 根据权利要求1所述的方法,其中,所述目标区域的数量为至少两个;
    所述锁定目标区域之后,所述方法还包括:
    接收用户对至少两个目标区域中的第一目标区域的第二输入;
    获取所述第二输入所输入的解锁秘钥;
    在所述解锁秘钥与所述第一目标区域的预设解锁秘钥相匹配的情况下,响应于所述第二输入,解锁所述第一目标区域。
  8. 一种电子设备,包括:
    第一接收模块,用于接收用户的第一输入;
    锁定模块,用于响应于所述第一输入,锁定目标区域;
    其中,所述目标区域为电子设备显示屏的显示区的部分区域。
  9. 根据权利要求8所述的电子设备,其中,所述锁定模块包括:
    获取子模块,用于获取所述第一输入的操作参数,其中,所述操作参数包括操作轨迹、操作时长、操作位置和操作类型中的至少一项;
    确定子模块,用于根据所述第一输入的操作参数,确定目标区域;
    锁定子模块,用于锁定所述目标区域。
  10. 根据权利要求9所述的电子设备,其中,所述确定子模块用于在所述第一输入的操作参数为第一操作参数的情况下,将所述第一输入所选取的区域确定为目标区域。
  11. 根据权利要求9所述的电子设备,其中,所述确定子模块包括:
    获取单元,用于在所述第一输入的操作参数为第二操作参数的情况下,获取预先设定的目标锁屏模式;
    确定单元,用于根据预设的锁屏模式与锁屏区域的对应关系,确定与所述目标锁屏模式对应的目标锁屏区域,并将所述目标锁屏区域确定为目标区域。
  12. 根据权利要求8所述的电子设备,其中,所述电子设备还包括:
    识别模块,用于在所述电子设备显示屏的显示区显示至少两个应用界面的情况下,识别所述至少两个应用界面的类型;
    第一确定模块,用于将所述至少两个应用界面中类型为预设类型的应用界面确定为目标应用界面;
    第二确定模块,用于将所述目标应用界面的显示区域确定为目标区域。
  13. 根据权利要求12所述的电子设备,其中,所述第二确定模块用于在所述目标应用界面被所述至少两个应用界面中除所述目标应用界面外的应用界面遮挡,且所述目标应用界面被遮挡的显示区域相对于所述目标应用界面的显示区域的占比不超过预设比例的情况下,将所述目标应用界面未被遮挡的显示区域确定为目标区域;
    或者,所述第二确定模块用于在所述目标应用界面的显示区域中包含预设类型的信息的情况下,将所述预设类型的信息的显示区域确定为目标区域。
  14. 根据权利要求8所述的电子设备,其中,所述目标区域的数量为至少两个;所述电子设备还包括:
    第二接收模块,用于接收用户对至少两个目标区域中的第一目标区域的第二输入;
    获取模块,用于获取所述第二输入所输入的解锁秘钥;
    解锁模块,用于在所述解锁秘钥与所述第一目标区域的预设解锁秘钥相匹配的情况下,响应于所述第二输入,解锁所述第一目标区域。
  15. 一种电子设备,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至7中任一项所述的锁屏方法中的步骤。
PCT/CN2019/094484 2018-07-12 2019-07-03 锁屏方法及电子设备 WO2020011074A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810762974.1A CN109002340B (zh) 2018-07-12 2018-07-12 一种锁屏方法及电子设备
CN201810762974.1 2018-07-12

Publications (1)

Publication Number Publication Date
WO2020011074A1 true WO2020011074A1 (zh) 2020-01-16

Family

ID=64599493

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/094484 WO2020011074A1 (zh) 2018-07-12 2019-07-03 锁屏方法及电子设备

Country Status (2)

Country Link
CN (1) CN109002340B (zh)
WO (1) WO2020011074A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109002340B (zh) * 2018-07-12 2021-05-28 维沃移动通信有限公司 一种锁屏方法及电子设备
CN109783710B (zh) * 2018-12-24 2022-02-01 维沃移动通信有限公司 一种文档显示方法及终端设备
CN109740312B (zh) * 2019-01-28 2021-04-06 维沃移动通信有限公司 一种应用控制方法及终端设备
CN111722817B (zh) * 2019-03-20 2023-04-07 比亚迪股份有限公司 车辆的多屏显示调节方法、显示系统及车辆
CN110262652A (zh) * 2019-05-31 2019-09-20 联想(北京)有限公司 一种电子设备及其锁屏方法
CN111290810B (zh) * 2020-01-19 2021-10-15 维沃移动通信有限公司 一种图像显示方法及电子设备
CN113126840B (zh) * 2021-04-02 2023-02-21 广州三星通信技术研究有限公司 电子设备的应用界面管理方法和装置
CN113179345A (zh) * 2021-04-28 2021-07-27 维沃移动通信有限公司 显示控制方法及装置
CN115442475B (zh) * 2022-08-30 2024-02-20 维沃移动通信有限公司 显示方法及显示装置

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788880A (zh) * 2010-01-08 2010-07-28 张盛毅 一种手持设备的锁屏方法
CN102750066A (zh) * 2011-04-20 2012-10-24 上海三旗通信科技股份有限公司 触屏终端在锁屏状态下实现特定功能控制方式
CN103164130A (zh) * 2011-12-12 2013-06-19 联想(北京)有限公司 电子设备及其锁屏控制方法
US20140258937A1 (en) * 2013-03-11 2014-09-11 Samsung Electronics Co., Ltd. Method for controlling display and an electronic device thereof
CN104641340A (zh) * 2012-09-20 2015-05-20 谷歌公司 用以防止非故意输入的交互式覆盖图
CN109002340A (zh) * 2018-07-12 2018-12-14 维沃移动通信有限公司 一种锁屏方法及电子设备

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20100123108A (ko) * 2009-05-14 2010-11-24 삼성전자주식회사 휴대 단말기의 아이콘 위치 이동 운용 방법 및 이를 지원하는 휴대 단말기
KR101685363B1 (ko) * 2010-09-27 2016-12-12 엘지전자 주식회사 휴대 단말기 및 그 동작 방법
US8887081B2 (en) * 2011-09-24 2014-11-11 VIZIO Inc. Touch display unlock mechanism
CN102707888B (zh) * 2012-05-15 2014-07-02 中兴通讯股份有限公司 一种终端控制方法及终端
KR101921161B1 (ko) * 2012-05-15 2018-11-22 삼성전자 주식회사 메모 기능 수행을 위한 단말의 제어 방법 및 그 단말
EP2741199B1 (en) * 2012-12-06 2020-08-05 Samsung Electronics Co., Ltd Application individual lock mechanism for a touch screen device
KR102089707B1 (ko) * 2012-12-06 2020-03-16 삼성전자주식회사 디스플레이 장치 및 그 제어 방법
US9298361B2 (en) * 2013-03-15 2016-03-29 Apple Inc. Analyzing applications for different access modes
CN103761120B (zh) * 2013-12-31 2018-04-06 上海斐讯数据通信技术有限公司 一种快速启动移动终端应用程序的方法及移动终端
CN105183461A (zh) * 2015-08-24 2015-12-23 努比亚技术有限公司 一种电子设备及控制方法
CN106383637A (zh) * 2016-11-02 2017-02-08 青岛海信移动通信技术股份有限公司 屏幕锁屏方法及装置、终端设备
CN106845184B (zh) * 2017-01-25 2019-12-03 Oppo广东移动通信有限公司 锁屏方法、装置和终端
CN108073266B (zh) * 2017-12-15 2020-12-04 麒麟合盛网络技术股份有限公司 移动终端的锁屏方法及装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101788880A (zh) * 2010-01-08 2010-07-28 张盛毅 一种手持设备的锁屏方法
CN102750066A (zh) * 2011-04-20 2012-10-24 上海三旗通信科技股份有限公司 触屏终端在锁屏状态下实现特定功能控制方式
CN103164130A (zh) * 2011-12-12 2013-06-19 联想(北京)有限公司 电子设备及其锁屏控制方法
CN104641340A (zh) * 2012-09-20 2015-05-20 谷歌公司 用以防止非故意输入的交互式覆盖图
US20140258937A1 (en) * 2013-03-11 2014-09-11 Samsung Electronics Co., Ltd. Method for controlling display and an electronic device thereof
CN109002340A (zh) * 2018-07-12 2018-12-14 维沃移动通信有限公司 一种锁屏方法及电子设备

Also Published As

Publication number Publication date
CN109002340B (zh) 2021-05-28
CN109002340A (zh) 2018-12-14

Similar Documents

Publication Publication Date Title
WO2020011074A1 (zh) 锁屏方法及电子设备
WO2021098678A1 (zh) 投屏控制方法及电子设备
CN111107222B (zh) 一种界面共享方法及电子设备
WO2020134813A1 (zh) 操作控制方法及终端
WO2019174611A1 (zh) 应用程序的设置方法及移动终端
WO2020063091A1 (zh) 一种图片处理方法及终端设备
WO2020042785A1 (zh) 应用显示方法和移动终端
WO2019105227A1 (zh) 应用图标的显示方法、终端及计算机可读存储介质
WO2021169959A1 (zh) 应用程序启动方法及电子设备
WO2019206036A1 (zh) 消息管理方法及终端
WO2021004327A1 (zh) 应用权限设置方法及终端设备
WO2020057258A1 (zh) 信息处理方法及终端
WO2020220873A1 (zh) 图像显示方法及终端设备
WO2020199987A1 (zh) 信息显示方法及移动终端
WO2019114522A1 (zh) 屏幕控制方法、屏幕控制装置及移动终端
CN109815676B (zh) 一种隐私空间操作方法及终端设备
WO2020057257A1 (zh) 应用界面切换方法及移动终端
WO2021017749A1 (zh) 图标显示方法及移动终端
WO2021057301A1 (zh) 文件控制方法及电子设备
WO2020211596A1 (zh) 控制方法及终端设备
WO2020078234A1 (zh) 显示控制方法及终端
CN109284150A (zh) 一种启动应用程序的方法及终端
CN108710806B (zh) 一种终端解锁方法、移动终端
WO2021098696A1 (zh) 触控方法及电子设备
WO2021017691A1 (zh) 内容显示方法及终端设备

Legal Events

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

Ref document number: 19833173

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19833173

Country of ref document: EP

Kind code of ref document: A1