Interface locking method and device
By detecting and generating a matching lock interface, the problem of restricted interface locking function in the prior art is solved, and flexible locking of the interface displayed on the screen of any electronic device is achieved.
Patent Information
- Application Number
- CN202311285416.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-28
- Publication Date
- 2025-03-28
AI Technical Summary
In the prior art, only some video applications can be locked during full screen playback, and other applications or interfaces lack interface locking function.
By detecting a lock operation for the target interface displayed on the screen of the electronic device, a lock interface matching the target display area is generated, so that the target interface cannot respond to the trigger operation for the target display area.
The interface locking is achieved without being limited to video applications. The interface displayed on the screen of any electronic device can be locked, improving the flexibility and efficiency of interface locking.
Smart Images

Figure CN119718133A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of human-computer interaction technology, and in particular to an interface locking method and device. Background Art
[0002] An interface may refer to a human-machine interface displayed on the screen of an electronic device for interaction with a user, such as a system control interface for configuring system settings, or an application interface corresponding to an application on an electronic device. A user may perform a trigger operation on a certain display area on the screen, and the interface corresponding to the display area may respond to the user's trigger operation. Summary of the invention
[0003] The present disclosure provides an interface locking method and device to solve the deficiencies in the related art.
[0004] According to a first aspect of an embodiment of the present disclosure, an interface locking method is proposed, which is applied to an electronic device, and the method comprises: detecting a locking operation on a target interface displayed on a screen of the electronic device, wherein the target interface is displayed in a target display area on the screen; and generating a locking interface matching the target display area so that the target interface cannot respond to a trigger operation on the target display area.
[0005] According to the second aspect of an embodiment of the present disclosure, an interface locking device is proposed, which is applied to an electronic device, and the device includes: a detection unit: detecting a locking operation on a target interface displayed on a screen of the electronic device, wherein the target interface is displayed in a target display area on the screen; a generation unit: generating a locking interface matching the target display area, so that the target interface cannot respond to a trigger operation on the target display area.
[0006] According to a third aspect of an embodiment of the present disclosure, an electronic device is proposed, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is configured to implement the method described in the first aspect.
[0007] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps in the method described in the first aspect are implemented.
[0008] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0009] As can be seen from the above embodiments, the present disclosure generates a locking interface that matches the target display area of the target interface on the screen of the electronic device when a locking operation is detected for the target interface displayed on the screen, so that the target interface cannot respond to the triggering operation for the target display area. Since the target interface is not limited to the application interface corresponding to the video application, it can be any interface displayed on the screen of the electronic device, so the present disclosure implements interface locking that is not limited to the video application.
[0010] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0012] Figure 1 The figure is a schematic flowchart of an interface locking method according to an embodiment of the present disclosure.
[0013] Figure 2 It is a schematic diagram of a target selection interface according to an embodiment of the present disclosure.
[0014] Figure 3a It is a schematic diagram of a calling operation of a system control interface according to an embodiment of the present disclosure.
[0015] Figure 3b It is a schematic diagram of another system control interface calling operation according to an embodiment of the present disclosure.
[0016] Figure 4a It is a schematic diagram of a system control interface according to an embodiment of the present disclosure.
[0017] Figure 4b is a schematic diagram showing a shortcut gesture according to an embodiment of the present disclosure.
[0018] Figure 5a is a schematic diagram of a locking interface according to an embodiment of the present disclosure.
[0019] Figure 5b is a schematic diagram showing another locking interface according to an embodiment of the present disclosure.
[0020] Figure 6 It is a schematic diagram of an interface display hierarchy according to an embodiment of the present disclosure.
[0021] Figure 7 It is a schematic diagram of another system control interface according to an embodiment of the present disclosure.
[0022] Figure 8 It is a schematic diagram showing a locking alarm according to an embodiment of the present disclosure.
[0023] Fig. 9 It is a schematic flow chart showing a complete interface locking according to an embodiment of the present disclosure.
[0024] Fig.10 The present invention is a schematic block diagram of a device for locking an interface according to an embodiment of the present invention.
[0025] Fig.11 It is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0027] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments and are not intended to limit the disclosed embodiments. The singular forms of "a", "an" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0028] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0029] For the purpose of brevity and ease of understanding, the terms used herein to characterize size relationships are "greater than" or "less than", "higher than" or "lower than". However, those skilled in the art can understand that the term "greater than" also covers the meaning of "greater than or equal to", and "less than" also covers the meaning of "less than or equal to"; the term "higher than" covers the meaning of "higher than or equal to", and "lower than" also covers the meaning of "lower than or equal to".
[0030] An interface may refer to a human-machine interface displayed on the screen of an electronic device for interacting with a user, such as a system control interface for configuring system settings, or an application interface corresponding to an application on an electronic device. A user may perform a trigger operation on a display area on the screen, and the interface corresponding to the display area may respond to the user's trigger operation. A user may lock an interface by locking it, and when the interface is locked, the interface cannot respond to the user's trigger operation. Only after unlocking can the interface resume responding to the user's trigger operation.
[0031] In the related art, only the interfaces corresponding to some video applications can be locked during full-screen playback, while other applications or interfaces do not have this function.
[0032] In order to solve the deficiencies in the related art, the present disclosure proposes an interface locking method.
[0033] Figure 1 1 is a schematic flow chart of an interface locking method according to an embodiment of the present disclosure. The interface locking method shown in this embodiment can be executed by an electronic device equipped with a screen, and the electronic device includes but is not limited to a mobile phone, a tablet computer, a wearable device, an Internet of Things device and other communication devices. Figure 1 As shown, the interface locking method may include the following steps:
[0034] In step S102, a locking operation on a target interface displayed on the screen of the electronic device is detected, and the target interface is displayed in a target display area on the screen.
[0035] The target interface can be any interface displayed on the screen. Figure 2 As shown, two interfaces (interface 202 and interface 203) are displayed on screen 201. The user can select one of the interfaces and perform a selection operation on the interface to make the interface the target interface. For example, the user can touch the display area corresponding to interface 202 on screen 201 with a finger to determine interface 202 as the target interface. In this embodiment, the selection operation for any interface displayed on the screen is determined as the determination operation of the target interface, so that the user can select any interface on the screen as the target interface, thereby ensuring the flexibility of interface selection.
[0036] The target display area is the display area of the target interface on the screen, such as the display area of the interface 202 is the area corresponding to the bold black frame.
[0037] The locking operation on the target interface may refer to an operation performed by a user to lock the target interface.
[0038] In one embodiment, the detection of a lock operation on the target interface displayed on the screen of the electronic device includes at least one of the following: when a call-up operation for a preset system interface is detected, the preset system interface is displayed, and a selection operation for a lock option contained in the preset system interface is determined as the lock operation; when a trigger operation for a physical lock button on the electronic device is detected, the trigger operation for the physical lock button is determined as the lock operation; when a shortcut gesture operation for the target display area is detected, a shortcut gesture operation matching the preset lock gesture is determined as the lock operation.
[0039] The preset system interface may be a pre-set system-level interface, for example, it may include: a system control interface, a quick center interface, a side toolbar interface, etc. Taking the system control interface as an example, the invoking operation for the system control interface may refer to the operation for controlling the screen display of the system control interface of the electronic device. Figure 3a As shown, the user can press and hold the screen and slide downward to call out the system control interface; or Figure 3b As shown, the user can press and hold the screen and slide upwards to call out the system control interface. Of course, the calling operation may not be limited to the above two methods, for example, it may also include: triggering a physical button on the electronic device, or clicking a virtual button on the screen. The present disclosure does not limit the specific calling operation. The system control interface may be a shortcut bar of the electronic device, and the system control interface may display options corresponding to some commonly used functions in the electronic device, so that the user can quickly trigger these commonly used functions. Figure 4a As shown, a system control interface 402 is displayed on screen 401, and the system control interface 402 includes three common function options (option 403-option 405). Among them, option 403 is an interface lock option, which is used to lock the target interface; option 404 is a night mode option, which is used to adjust the screen to night mode; option 405 is a wireless network option, which is used to turn on the wireless local area network of the electronic device. Of course, in actual circumstances, the common function options of the system control interface may also include: alarm options, flashlight options, flight mode options, etc., and the present disclosure does not limit this. The user can select option 403 to trigger the interface lock function. The selection operation can be a click operation or a touch operation for option 403.
[0040] The triggering operation on the physical lock button may refer to the triggering operation on a single physical button mounted on the electronic device, or may refer to the triggering operation on multiple physical buttons on the electronic device. Figure 4a As shown, button 406-button 408 are three physical buttons installed on the electronic device, wherein button 406 and button 407 are volume up button and volume down button respectively, and button 408 is a lock button. The lock operation can be an operation of pressing button 408, or it can be pressing button 406 and button 407 at the same time. Of course, the triggering operation for multiple physical buttons is not limited to the above-mentioned simultaneous pressing operation, and can also be pressing two physical buttons in a preset order, or long pressing a physical button and lightly pressing another physical button, which is not limited by the present disclosure.
[0041] The electronic device can detect the shortcut gesture operation for the target display area and determine the shortcut gesture operation matching the preset lock gesture as the lock operation. Figure 4b As shown, the preset lock gesture is an arc shape as shown in gesture 409. When the user draws the arc shape gesture on the screen of the electronic device, the electronic device can recognize the arc shape gesture. If the arc shape gesture matches the preset lock gesture, the target display area is locked. Of course, the preset lock gesture is not limited to Figure 4b The arc shown may also be any shape such as a triangle, a square, etc., and the present disclosure is not limited to this.
[0042] In this embodiment, by fixing the commonly used interface locking options to the control system interface that is easily transmitted, the user can quickly lock the interface, thereby simplifying the user's operation process of locking the interface and improving the interface locking efficiency.
[0043] In combination with the above embodiments, the complete operation of selecting the target interface and locking the target interface can be: click interface 202 to determine interface 202 as the target interface; press the screen and slide downward to call out system control interface 402; click option 403 included in system control interface 402 to lock interface 202.
[0044] In step S104, a locking interface matching the target display area is generated so that the target interface cannot respond to a triggering operation directed to the target display area.
[0045] When a lock operation is detected for the interface 202 , the electronic device may generate a lock interface 501 . The lock interface 501 matches the display area corresponding to the interface 202 .
[0046] In one embodiment, the method further includes: setting the display level of the lock interface on the screen to be higher than the target interface. The display level of the screen may refer to the priority of the interface displayed on the screen. The interface at the upper level of the display level may cover the interface at the lower level of the display level. In other words, the lock interface 501 may cover the interface 202. Figure 6 As shown, the display level of the lock interface 602 is higher than the display level of the target interface 603, and the display level of the system control interface 601 is higher than the display level of the lock interface 602 ( Figure 6 The interface stacking relationship shown in the figure is used to represent the display level of the interface at the logical level, and has nothing to do with the screen display interface in the actual situation). In this embodiment, by setting the display level of the lock interface to be higher than the target interface, the lock interface can cover the target interface. On the one hand, it is used to prompt the user that the target interface has been locked; on the other hand, the lock interface can respond to the trigger time instead of the target interface, thereby achieving the effect of locking the interface.
[0047] When determining that the interface 202 is the target interface, the electronic device may determine a target display area corresponding to the target interface, where the determination of the target display area includes the size and position of the target display area.
[0048] Specifically, a coordinate system can be established with the lower left corner of the screen as the origin. The coordinate information of the target display area on the coordinate system is determined as the position information of the target display area, and the size of the target display area can be calculated based on the coordinate information of the target display area. After determining the size of the target display area, the electronic device can generate a lock interface that matches the size of the target display area, and display the lock interface in the target display area based on the position information of the target display area. In this embodiment, the size and position of the target display area are determined by the coordinate system, so that the generated lock interface can match the size of the target display area and cover the target display area.
[0049] In one embodiment, in response to a trigger operation detected in the target display area, a trigger event generated according to the trigger operation is distributed to the lock interface.
[0050] The trigger operation may refer to any operation performed on the screen of the electronic device. When the electronic device is a mobile device (such as a mobile phone), the trigger operation may be a touch operation (such as a tap operation, a slide operation) on the screen of the mobile device; when the electronic device is a computer, the trigger operation may be a click operation implemented by a virtual mark displayed on the screen (such as a cursor controlled by a mouse). Of course, the trigger operation may also include many other operations, such as a selection operation implemented by a physical button or voice recognition, etc. The present disclosure does not limit the specific form of the trigger operation.
[0051] The electronic device can detect the trigger operation. When the trigger operation is detected, the electronic device can determine the display area targeted by the trigger operation. If the display area targeted by the trigger operation is the target display area, the electronic device can distribute the trigger event corresponding to the trigger operation to the lock interface for processing. In other words, the lock interface responds to the trigger event instead of the target interface.
[0052] In this embodiment, when the electronic device detects a lock operation on the target interface displayed on the screen of the electronic device, it generates a lock interface that matches the target display area of the target interface on the screen, so that the target interface cannot respond to the trigger operation on the target display area. Since the target interface is not limited to the application interface corresponding to the video application, it can be any interface displayed on the screen of the electronic device, so the present disclosure implements interface locking that is not limited to video applications.
[0053] In one embodiment, the method further includes: detecting an unlocking operation on the target display area, and closing the lock interface.
[0054] When distributing trigger events generated according to trigger operations, electronic devices can identify trigger events. If the trigger event is a system-level event (such as a call-out event corresponding to a call-out operation on a system control interface), the electronic device will not distribute the trigger event to any interface, but will directly process the trigger event. Events corresponding to lock and unlock operations are both system-level events. If the trigger event is an application-level event, the electronic device can determine the display area targeted by the trigger operation, and distribute the trigger event to the interface corresponding to the determined display area for consumption.
[0055] After the lock interface is closed, the electronic device can distribute the trigger event generated according to the trigger operation on the target display area to the target interface for consumption, that is, the target interface resumes responding to the trigger operation.
[0056] In this embodiment, by detecting an unlocking operation on the target display area, when the unlocking operation is detected, the electronic device can close the lock interface and restore the target interface to respond to the triggering operation.
[0057] Furthermore, the detection of an unlocking operation for the target display area on the screen includes at least one of the following: when a call-up operation for a preset system interface is detected, the preset system interface is displayed, and a selection operation for an unlock option contained in the preset system interface is determined as the unlocking operation; when a triggering operation for a physical unlocking button on the electronic device is detected, the triggering operation for the physical unlocking button is determined as the unlocking operation; when a shortcut gesture operation for the target display area is detected, a shortcut gesture operation matching the preset unlocking gesture is determined as the unlocking operation.
[0058] like Figure 7 As shown, a system control interface 702 is displayed on screen 701, and the system control interface 702 includes three common function options (option 703-option 705). Among them, option 703 is an interface unlock option, which is used to close the lock interface for the target interface; option 704 is a night mode option, which is used to adjust the screen to night mode; option 705 is a wireless network option, which is used to turn on the wireless local area network of the electronic device. Of course, in actual situations, the common function options of the system control interface may also include: alarm options, flashlight options, flight mode options, etc., and the present disclosure does not limit this. The user can select option 703 to trigger the interface unlock function. The selection operation can be a click operation or a touch operation for option 703. The other two cases (physical buttons, shortcut gestures) are similar to the lock operation, and the present disclosure will not repeat them.
[0059] In this embodiment, by fixing the commonly used interface unlocking options to the control system interface that is easily transmitted, the user can quickly unlock the locked interface, thereby simplifying the operation process of unlocking the interface and improving the efficiency of interface unlocking.
[0060] In one embodiment, the manner in which the locking interface consumes the triggering event includes at least one of the following: shielding the triggering event and issuing a locking alarm.
[0061] Different interfaces have different consumption logics for the same trigger event, and the same interface also has different consumption logics for different trigger events. For example, the consumption logic corresponding to the pull-down operation on the video playback interface is to lower the volume of the live broadcast, while the consumption logic corresponding to the double-click operation on the video playback interface is to pause the video being played; the consumption logic corresponding to the double-click operation on the photo interface can be to start taking a photo.
[0062] The way in which the lock interface consumes trigger events may be the consumption logic of the lock interface for different trigger events. In the case where the mode is to shield the trigger event, the lock interface does not respond to any trigger event. In the case where the mode is to issue a lock alarm, the consumption logic of the lock interface for any trigger event for the lock interface is to issue a lock alarm. The way to issue a lock alarm may be to display an alarm on the lock interface or to issue an alarm in the form of voice, video, etc., which is not limited by the present disclosure.
[0063] like Figure 8 As shown, the target display area corresponding to the target interface is full screen. When a trigger operation is detected for the target display area, a lock alarm 802 is displayed on the lock interface 801. The lock alarm 802 includes the words "This interface is locked, please unlock" to warn the user to unlock before operating.
[0064] In this embodiment, by setting the consumption logic of the lock interface to shield or issue a lock alarm, when the target interface is locked, the trigger operation on the target interface will not receive the original response, thereby achieving the effect of locking the interface.
[0065] In one embodiment, the target interface is an application-level interface corresponding to an application program in the electronic device, and the lock interface is a system-level interface generated by the electronic device.
[0066] Since the target interface is an application-level interface and the lock interface is a system-level interface, the lock interface can be generated for the interface of any application, so that the electronic device implementing the interface lock function will not be limited to video applications, but can implement interface lock for the interface of any application.
[0067] In this embodiment, since the target interface is not limited to the application interface corresponding to video applications, it can be any interface displayed on the screen of an electronic device. Therefore, when a trigger operation is detected for the target display area, the present invention distributes the trigger event generated according to the trigger operation to the lock interface instead of the target interface, so that the trigger event originally consumed by the target interface is consumed by the lock interface instead, thereby achieving interface locking that is not limited to video applications.
[0068] In one embodiment, the target display area is part or all of the display area of the screen; generating a lock interface matching the target display area includes: generating a lock interface that at least covers the target display area.
[0069] The target display area of the target interface may be a portion of the display area of the screen (eg Figure 2 ), or all (as shown Figure 8In the case where the target display area is part of the display area of the screen, the lock interface at least covers the target display area, so that all trigger operations for the target display area can be consumed by the lock interface. There are two situations in which the lock interface at least covers the target display area. One is that the display area of the lock interface is the same as the target display area (such as Figure 2 As shown); one is that the display area of the lock interface is larger than the target display area, such as Figure 5b As shown, compared with the lock interface 501, the lock interface 502 exceeds the target display area corresponding to the interface 202. In actual situations, the user may accidentally touch, for example, he wants to perform a trigger operation on the interface 202, but accidentally touches the display area of the interface 203. For this special case, the electronic device can generate a lock interface larger than the target display area, so that the lock interface covers part of the display area around the target display area, so as to additionally shield the trigger operation on the part of the display area.
[0070] In this embodiment, on the one hand, by generating a locking interface that at least covers the target display area, all trigger operations on the target display area can be consumed by the locking interface; on the other hand, by generating a locking interface that is larger than the target display area, the locking interface covers a portion of the display area around the target display area, so as to additionally shield the trigger operations on this portion of the display area.
[0071] In one embodiment, the locking interface does not change the content originally displayed in the target display area. Figure 5a After the lock interface covers the target interface, the content displayed on the target interface is blocked, that is, the lock interface changes the content originally displayed on the target display area. If the content currently displayed on the target interface is a live video interface or a navigation interface, the lock interface will interfere with the user's viewing of the live broadcast or navigation. Therefore, the lock interface does not change the content originally displayed on the target display area, so that the user can view the content currently displayed on the target interface when the target interface is locked.
[0072] Furthermore, the locking interface is a transparent interface.
[0073] Although the lock interface can cover the target interface, when the lock interface is a transparent interface, the user can still view the content currently displayed on the target interface. For example, when the target interface is playing a video, even if the target interface is locked, the user can still watch the video being played on the target interface through the transparent lock interface. In this embodiment, by setting the lock interface as a transparent interface, the user can view the content currently displayed on the target interface when the target interface is locked.
[0074] Of course, in addition to the transparent interface method, the electronic device can also set the content displayed on the lock interface to be the same as the target interface. At this time, the content displayed in the target display area has not changed, but the area has been locked.
[0075] Combine the following Fig. 9 The interface locking method proposed in the present disclosure is fully described. Fig. 9 FIG. 1 is a schematic flow chart of a complete interface locking method according to an embodiment of the present disclosure, and the method is applied to an electronic device. Fig. 9 As shown, the interface locking method may include the following steps:
[0076] In step S902, a selection operation on the target display area is detected. Figure 2 As shown, the user can use a finger to touch the display area corresponding to the interface 202 on the screen 201, thereby determining the interface 202 as the target interface.
[0077] In step S904, a lock operation on the target display area is detected. When a call-out operation on the preset system interface is detected, the preset system interface is displayed, and the selection operation on the lock option included in the preset system interface is determined as a lock operation. Figure 3a As shown in , the user can press and hold the screen and slide downward to call out the system control interface. Figure 4a As shown, a system control interface 402 is displayed on screen 401, and the system control interface 402 includes three common function options (option 403-option 405). Among them, option 403 is an interface lock option, which is used to lock the target interface. The user can select option 403 to trigger the interface lock function. The selection operation can be a click operation or a touch operation on option 403.
[0078] In step S906, a lock interface is generated. The electronic device may generate a lock interface that matches the target display area, and the lock interface may be a transparent interface.
[0079] In step S908, the display level of the lock interface on the screen is set to be higher than the target interface. Figure 6 As shown, the display level of the lock interface 602 is higher than the display level of the target interface 603 , and the display level of the system control interface 601 is higher than the display level of the lock interface 602 .
[0080] In step S910, a trigger operation for the target display area is detected, and a trigger event corresponding to the trigger operation is distributed to the lock interface. The electronic device can detect the trigger operation. When the trigger operation is detected, the electronic device can determine the display area targeted by the trigger operation. If the display area targeted by the trigger operation is the target display area, the electronic device can distribute the trigger event corresponding to the trigger operation to the lock interface for processing. In other words, the lock interface responds to the trigger event instead of the target interface.
[0081] In step S912, the lock interface issues a lock alarm. Figure 8 As shown, the target display area corresponding to the target interface is full screen. When a trigger operation is detected for the target display area, a lock alarm 802 is displayed on the lock interface 801. The lock alarm 802 includes the words "This interface is locked, please unlock" to warn the user to unlock before operating.
[0082] In step S914, an unlocking operation on the target display area is detected, and the lock interface is closed. Figure 7 As shown, a system control interface 702 is displayed on screen 701, and the system control interface 702 includes three common function options (option 703-option 705). Among them, option 703 is an interface unlocking option, which is used to close the lock interface for the target interface.
[0083] In this embodiment, by generating a lock interface that matches the target display area of the target interface on the screen, the target interface cannot respond to the trigger operation on the target display area. Since the target interface is not limited to the application interface corresponding to the video application, it can be any interface displayed on the screen of the electronic device, so the present disclosure implements interface locking that is not limited to video applications.
[0084] Corresponding to the aforementioned embodiment of the interface locking method, the present disclosure also provides an embodiment of an interface locking device.
[0085] Fig.10 FIG. 1 is a schematic block diagram of a device for locking an interface according to an embodiment of the present disclosure. Fig.10 As shown, the device is applied to electronic equipment, and the device includes:
[0086] A detection unit 1002 is configured to detect a locking operation on a target interface displayed on a screen of the electronic device, wherein the target interface is displayed in a target display area on the screen;
[0087] The generating unit 1004 is configured to generate a locking interface matching the target display area, so that the target interface cannot respond to a triggering operation on the target display area.
[0088] Optionally, the detection unit 1002 is specifically used for:
[0089] In the case where a call-out operation for a preset system interface is detected, the preset system interface is displayed, and a selection operation for a lock option included in the preset system interface is determined as the lock operation;
[0090] In case of detecting a trigger operation on a physical lock button on the electronic device, determining the trigger operation on the physical lock button as the lock operation;
[0091] When a shortcut gesture operation directed to the target display area is detected, a shortcut gesture operation matching a preset lock gesture is determined as the lock operation.
[0092] Optionally, the method further includes:
[0093] The setting unit 1006 is configured to set the display level of the lock interface on the screen to be higher than the target interface.
[0094] Optionally, the method further includes:
[0095] The distribution unit 1008 is configured to distribute, in response to a trigger operation detected in the target display area, a trigger event generated according to the trigger operation to the lock interface.
[0096] Optionally, the method further includes:
[0097] The closing unit 1010 is configured to detect an unlocking operation on the target display area and close the locking interface.
[0098] Optionally, the closing unit 1010 is specifically used for:
[0099] In the case of detecting a call-out operation for a preset system interface, displaying the preset system interface, and determining a selection operation for an unlock option included in the preset system interface as the unlock operation;
[0100] In the case where a trigger operation on a physical unlock button on the electronic device is detected, determining the trigger operation on the physical unlock button as the unlock operation;
[0101] When a shortcut gesture operation directed to the target display area is detected, a shortcut gesture operation matching a preset unlocking gesture is determined as the unlocking operation.
[0102] Optionally, the manner in which the locking interface consumes the triggering event includes at least one of the following: shielding the triggering event and issuing a locking alarm.
[0103] Optionally, the target interface is an application-level interface corresponding to an application in the electronic device, and the lock interface is a system-level interface generated by the electronic device.
[0104] Optionally, the target display area is part or all of the display area of the screen; the generating unit 1004 is specifically configured to:
[0105] A locking interface is generated that at least covers the target display area.
[0106] Optionally, the locking interface does not change the content originally displayed in the target display area.
[0107] Optionally, the locking interface is a transparent interface.
[0108] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the relevant method, and will not be elaborated here.
[0109] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0110] The embodiment of the present disclosure further provides an electronic device, including:
[0111] processor;
[0112] a memory for storing processor-executable instructions;
[0113] The processor is configured to implement the method described in any of the above embodiments.
[0114] The embodiments of the present disclosure further provide a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in any of the above embodiments when the program is executed by a processor.
[0115] Reference Fig.11 , the device 1100 may include one or more of the following components: a processing component 1102 , a memory 1104 , a power component 1106 , a multimedia component 1108 , an audio component 1110 , an input / output (I / O) interface 1112 , a sensor component 1114 , and a communication component 1116 .
[0116] The processing component 1102 generally controls the overall operation of the device 1100, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1102 may include one or more processors 1120 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 1102 may include one or more modules to facilitate interaction between the processing component 1102 and other components. For example, the processing component 1102 may include a multimedia module to facilitate interaction between the multimedia component 1108 and the processing component 1102.
[0117] The memory 1104 is configured to store various types of data to support the operation of the device 1100. Examples of such data include instructions for any application or method operating on the device 1100, contact data, phone book data, messages, pictures, videos, etc. The memory 1104 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0118] The power supply component 1106 provides power to the various components of the device 1100. The power supply component 1106 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device 1100.
[0119] The multimedia component 1108 includes a screen that provides an output interface between the device 1100 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1108 includes a front camera and / or a rear camera. When the device 1100 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0120] The audio component 1110 is configured to output and / or input audio signals. For example, the audio component 1110 includes a microphone (MIC), and when the device 1100 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1104 or sent via the communication component 1116. In some embodiments, the audio component 1110 also includes a speaker for outputting audio signals.
[0121] I / O interface 1112 provides an interface between processing component 1102 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0122] The sensor assembly 1114 includes one or more sensors for providing various aspects of the status assessment of the device 1100. For example, the sensor assembly 1114 can detect the open / closed state of the device 1100, the relative positioning of components, such as the display and keypad of the device 1100, the sensor assembly 1114 can also detect the position change of the device 1100 or a component of the device 1100, the presence or absence of user contact with the device 1100, the orientation or acceleration / deceleration of the device 1100, and the temperature change of the device 1100. The sensor assembly 1114 can include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1114 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1114 can also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0123] The communication component 1116 is configured to facilitate wired or wireless communication between the device 1100 and other devices. The device 1100 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 1116 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1116 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0124] In an exemplary embodiment, the device 1100 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the methods described in any of the above embodiments.
[0125] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1104 including instructions, and the instructions can be executed by the processor 1120 of the device 1100 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0126] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0127] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. An interface locking method, characterized in that: Applied to electronic equipment, the method comprises: detecting a locking operation on a target interface displayed on a screen of the electronic device, the target interface being displayed in a target display area on the screen; A locking interface matching the target display area is generated so that the target interface cannot respond to a triggering operation directed to the target display area.
2. The method according to claim 1, characterized in that The detecting a locking operation on the target interface displayed on the screen of the electronic device includes at least one of the following: In the case where a call-out operation for a preset system interface is detected, the preset system interface is displayed, and a selection operation for a lock option included in the preset system interface is determined as the lock operation; In case of detecting a trigger operation on a physical lock button on the electronic device, determining the trigger operation on the physical lock button as the lock operation; When a shortcut gesture operation directed to the target display area is detected, a shortcut gesture operation matching a preset lock gesture is determined as the lock operation.
3. The method according to claim 1, characterized in that The method further comprises: The display level of the lock interface on the screen is set to be higher than the target interface.
4. The method according to claim 1, characterized in that The method further comprises: In response to a trigger operation detected in the target display area, a trigger event generated according to the trigger operation is distributed to the lock interface.
5. The method according to claim 1, characterized in that The method further comprises: An unlocking operation on the target display area is detected, and the lock interface is closed.
6. The method according to claim 5, characterized in that The detecting of an unlocking operation on the target display area on the screen includes at least one of the following: In the case of detecting a call-out operation for a preset system interface, displaying the preset system interface, and determining a selection operation for an unlock option included in the preset system interface as the unlock operation; In the case where a trigger operation on a physical unlock button on the electronic device is detected, determining the trigger operation on the physical unlock button as the unlock operation; When a shortcut gesture operation directed to the target display area is detected, a shortcut gesture operation matching a preset unlocking gesture is determined as the unlocking operation.
7. The method according to claim 1, characterized in that The manner in which the locking interface consumes the triggering event includes at least one of the following: shielding the triggering event and issuing a locking alarm.
8. The method according to claim 1, characterized in that The target interface is an application-level interface corresponding to an application program in the electronic device, and the lock interface is a system-level interface generated by the electronic device.
9. The method according to claim 1, characterized in that: The target display area is part or all of the display area of the screen; and generating a lock interface matching the target display area includes: A locking interface is generated that at least covers the target display area.
10. The method according to claim 1, characterized in that The locking interface does not change the content originally displayed in the target display area.
11. The method according to claim 10, characterized in that The locking interface is a transparent interface.
12. An interface locking device, characterized in that: Applied to electronic equipment, the device comprises: A detection unit: detecting a locking operation on a target interface displayed on a screen of the electronic device, wherein the target interface is displayed in a target display area on the screen; A generating unit is configured to generate a locking interface matching the target display area, so that the target interface cannot respond to a triggering operation directed to the target display area.
13. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 11.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.