Application function control method and device, electronic equipment and storage medium

By providing control methods for application functions in terminal electronic devices, using user operations and preset correspondence relationships to control the opening or closing of application functions in real time, the problem of inconvenience of opening and closing of personalized application functions is solved, and the user experience and equipment are improved reliability.

CN119512629APending Publication Date: 2025-02-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311078673.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-24
Publication Date
2025-02-25

AI Technical Summary

Technical Problem

In existing terminal electronic devices, personalized application functions such as black screen gesture recognition function are inconvenient to enable and close, especially for users who are not familiar with the settings of mobile phone systems, and personalized application functions are not commonly used, and failure to close in time may lead to the device. Misjudgment issue.

Method used

Provides a control method for application functions, by obtaining target user operations when the target application function is in a pre-open state, and controlling the opening or closing of application functions in real time according to the corresponding relationship between the preset user operations and the control operation of application functions. .

Benefits of technology

It realizes that users can turn on or off the application functions quickly and conveniently, reduces operation complexity, avoids device misjudgment problems, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119512629A_ABST
    Figure CN119512629A_ABST
Patent Text Reader

Abstract

The invention discloses an application function control method and device, electronic equipment and a storage medium. The method comprises the steps that under the condition that a target application function is in a pre-starting state, target user operation is obtained, and the pre-starting state is the state after the target application function is started through system setting of the electronic equipment; and according to the target user operation and a corresponding relationship between a preset user operation and a control operation of an application function, controlling the target application function to be opened or closed. According to the method, the effect that a user rapidly and conveniently opens or closes the application function is achieved, and the user can conveniently use the method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of terminal technology, and relate to but are not limited to a method and device for controlling an application function, an electronic device, and a storage medium. Background Art

[0002] Existing terminal electronic devices such as mobile phones and watches are usually equipped with personalized application functions that users can choose to use, such as the black screen gesture recognition function. The personalized application function is usually enabled by the user through the system configuration, that is, the user needs to set it up in the system settings and then turn it on. When the user wants to turn off the personalized application function, he must enter the system settings to set it up.

[0003] For users who are not familiar with the system settings of their mobile phones, turning on and off the personalized application function is very inconvenient, and the personalized application function is not a function that users will use for a long time. After turning on the personalized application function, if it is not turned off in time, it may cause device misjudgment problems and cause inconvenience to users. Summary of the invention

[0004] In view of this, the control method and device, electronic device, and storage medium of the application function provided in the embodiments of the present application can control the application function to be turned on or off in real time through simple user operations after the application function enters the pre-opening state, thereby achieving the effect of users quickly and conveniently turning on or off the application function, which is convenient for users to use.

[0005] In a first aspect, a method for controlling an application function provided in an embodiment of the present application is applied to an electronic device, including:

[0006] When the target application function is in a pre-enabling state, obtaining a target user operation, wherein the pre-enabling state is a state after the target application function is enabled through a system setting of the electronic device;

[0007] According to the target user operation and the correspondence between the preset user operation and the control operation of the application function, the target application function is controlled to be turned on or off.

[0008] In a second aspect, an application function control device provided in an embodiment of the present application is applied to an electronic device, including:

[0009] A user operation acquisition module, used to acquire a target user operation when the target application function is in a pre-enabling state, wherein the pre-enabling state is a state after the target application function is enabled through the system setting of the electronic device;

[0010] The application function control module is used to control the target application function to be turned on or off according to the target user operation and the corresponding relationship between the preset user operation and the control operation of the application function.

[0011] In a third aspect, an electronic device provided in an embodiment of the present application includes a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, the steps of the control method of the application function provided in the first aspect of the embodiment of the present application are implemented.

[0012] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the control method of the application function provided in the first aspect of the embodiment of the present application are implemented.

[0013] The control method, device, electronic device and computer-readable storage medium of the application function provided in the embodiments of the present application can control the application function to be turned on or off in real time through simple user operations after the application function enters the pre-opening state, thereby achieving the effect of users turning on or off the application function quickly and conveniently, facilitating user use, thereby solving the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0015] Figure 1 A schematic diagram of an implementation flow of a method for controlling an application function provided in an embodiment of the present application;

[0016] Figure 2 A schematic diagram of an implementation flow of a method for controlling a target application function switch provided in an embodiment of the present application;

[0017] Figure 3 A schematic diagram of an implementation flow of another method for controlling a target application function switch provided in an embodiment of the present application;

[0018] Figure 4 A schematic diagram of an implementation flow of another method for controlling an application function provided in an embodiment of the present application;

[0019] Figure 5 An overall flow chart of a method for switching a black screen gesture function provided in an embodiment of the present application;

[0020] Figure 6 A schematic diagram of a system setting interface provided in an embodiment of the present application;

[0021] Figure 7A schematic diagram of another black screen gesture function setting provided in an embodiment of the present application;

[0022] Figure 8 A scene diagram for setting a function on / off provided in an embodiment of the present application;

[0023] Fig. 9 A scene diagram of a black screen gesture setting provided in an embodiment of the present application;

[0024] Fig.10 An application scenario diagram of a black screen gesture setting provided in an embodiment of the present application;

[0025] Fig.11 A schematic diagram of the structure of a control device for an application function provided in an embodiment of the present application;

[0026] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0028] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0029] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0030] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0031] Existing terminal electronic devices such as mobile phones and watches are usually equipped with personalized application functions that users can choose to use, such as the black screen gesture recognition function. The personalized application function is usually enabled by the user through the system configuration, that is, the user needs to set it up in the system settings and then turn it on. When the user wants to turn off the personalized application function, he must enter the system settings to set it up.

[0032] For users who are not familiar with the system settings of their mobile phones, turning on and off the personalized application function is very inconvenient, and the personalized application function is not a function that users will use for a long time. After turning on the personalized application function, if it is not turned off in time, it may cause device misjudgment problems and cause inconvenience to users.

[0033] In view of this, the embodiment of the present application provides a method for controlling an application function, which obtains a target user operation when the target application function is in a pre-opening state; and then controls the target application function to be turned on or off according to the target user operation and the correspondence between the preset user operation and the control operation of the application function. This method can control the application function to be turned on or off in real time through a simple user operation after the application function enters the pre-opening state, thereby achieving the effect of users turning on or off the application function quickly and conveniently, and is convenient for users to use.

[0034] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0035] Figure 1 A schematic diagram of the implementation flow of a control method for an application function provided in an embodiment of the present application. The control method for the application function can be applied to an electronic device, which can be various types of devices with information processing capabilities during implementation. For example, the electronic device can include a personal computer, a laptop computer, a PDA or a server, etc.; the electronic device can also be a mobile terminal, for example, the mobile terminal can include a mobile phone, a car computer, a tablet computer or a projector, etc.

[0036] Step 101: When a target application function is in a pre-enabling state, a target user operation is obtained, wherein the pre-enabling state is a state after the target application function is enabled through a system setting of the electronic device.

[0037] It should be noted that after the target application function is enabled through the system settings of the electronic device, the target application function is in a pre-enabled state, which can also be called an activated state, and the target application function is not actually enabled at this time. The electronic device may obtain the target user operation by receiving the operation information through the touch screen of the electronic device or by receiving the key information through the physical keys of the electronic device. The embodiment of the present application does not limit the method of obtaining the target user operation.

[0038] Among them, the target user operation can be a user's gesture operation, such as a single-click operation, a double-click operation, a sliding operation, etc., or it can be a user's operation on a physical button, such as operating the power button and volume button of an electronic device. The embodiment of the present application does not limit the type of target user operation.

[0039] In some embodiments, the target user operation may be obtained by the user operating a physical button of the electronic device in a preset operation mode, wherein the preset operation mode includes one of long pressing a power button, long pressing a volume button, regularly pressing a power button, and regularly pressing a volume button, or a combination of operations. For example, the preset operation mode may be that the user short presses the volume up button three times.

[0040] Step 102: According to the target user operation and the correspondence between the preset user operation and the control operation of the application function, the target application function is controlled to be turned on or off.

[0041] It should be noted that after obtaining the target user operation, the target application function can be controlled to be turned on or off according to the correspondence between the preset user operation and the control operation of the application function. The method can be to determine the corresponding target application opening operation or closing operation according to the correspondence between the preset user operation and the control operation of the application function, thereby controlling the target application function to be turned on or off. The embodiment of the present application does not limit the method of controlling the target application function to be turned on or off according to the target user operation and the correspondence between the preset user operation and the control operation of the application function.

[0042] The control method of the application function provided in the embodiment of the present application can control the application function to be turned on or off in real time through simple user operations after the application function enters the pre-opening state, thereby enabling the user to quickly and conveniently turn on or off the application function, which is convenient for users to use.

[0043] It is understandable that there are many types of target application functions, such as a black screen gesture function, a sliding screen gesture function, etc. As long as it is a very common application function, the method provided in the embodiment of the present application can be adopted. The embodiment of the present application does not limit the type of target application function.

[0044] In some embodiments, the correspondence between preset user operations and control operations of application functions can be in two forms. One form is that the opening operation and closing operation of the application function have different corresponding relationships respectively. The other form is that the opening operation and closing operation of the application function have only one corresponding relationship, namely, the state switching operation, which is opened and closed according to the current state of the application function and the corresponding relationship.

[0045] The following is an explanation of the first form of the correspondence between the preset user operation and the control operation of the application function.

[0046] Figure 2 The following is a schematic diagram of the implementation flow of a method for controlling a target application function switch provided in an embodiment of the present application. Figure 2 As shown, in Figure 1 Based on the embodiment shown, the preset correspondence between the user operation and the control operation of the application function includes the correspondence between the user operation and the opening operation of the application function, and the correspondence between the user operation and the closing operation of the application function. In step 102, according to the target user operation and the preset correspondence between the user operation and the control operation of the application function, controlling the opening or closing of the target application function may include:

[0047] Step 201: According to the target user operation and the correspondence between the preset user operation and the control operation of the application function, determine the target application function opening operation or the target application function closing operation corresponding to the target user operation.

[0048] After the target user operation is acquired, it is determined whether it is an on operation or a off operation corresponding to the target application function according to the correspondence between the preset user operation and the control operation of the application function.

[0049] Step 202: If the target user operation corresponds to an opening operation of a target application function, the target application function is controlled to be opened.

[0050] If the operation determined according to the corresponding relationship is to enable the target application function, the target application function is controlled to be enabled.

[0051] Step 203: If the target user operation corresponds to a closing operation of the target application function, the target application function is controlled to be closed.

[0052] If the corresponding relationship determines that the operation is a shutdown operation for a function that has no application, the control target should be functionally shut down.

[0053] In the above embodiment, different preset corresponding relationships are set for the opening operation and closing operation of the application function, so that the control operation for the target application function can be directly determined according to the user operation, thereby speeding up the processing speed.

[0054] The following is an explanation of the second form of the correspondence between the preset user operation and the control operation of the application function. Figure 3 A schematic diagram of the implementation flow of another method for controlling the target application function switch provided in an embodiment of the present application. Figure 3 As shown, in Figure 1Based on the illustrated embodiment, the correspondence between the preset user operation and the control operation of the application function may include the correspondence between the user operation and the state switching operation of the application function. In step 102, according to the target user operation and the correspondence between the preset user operation and the control operation of the application function, controlling the target application function to be turned on or off may include:

[0055] Step 301: According to the target user operation and the correspondence between the preset user operation and the control operation of the application function, determine the state switching operation of the target application function corresponding to the target user operation.

[0056] After the target user operation is acquired, it is determined that it is a state switching operation corresponding to the target application function according to the correspondence between the preset user operation and the control operation of the application function.

[0057] Step 302: Determine the current state of the target application function according to the state switching operation of the target application function.

[0058] After determining that the target user operation corresponds to the state switching operation of the target application function, the target application function can be determined, and the current state of the target application function can be obtained according to the target application function. The acquisition method can be reading the state data of the target application function, etc. The embodiment of the present application does not limit the method of determining the current state of the target application function according to the state switching operation of the target application function.

[0059] Step 303: According to the current state of the target application function and the state switching operation of the target application function, control the target application function to be turned on or off.

[0060] After obtaining the current state of the target application function and the state switching operation of the target application function, the target application function is controlled to be turned on or off.

[0061] Furthermore, controlling the target application function to be turned on or off according to the current state of the target application function and the state switching operation of the target application function may include: if the current state of the target application function is an on state, controlling the target application function to be turned off according to the state switching operation of the target application function; if the current state of the target application function is an off state, controlling the target application function to be turned on according to the state switching operation of the target application function.

[0062] In the above embodiment, only one preset corresponding relationship is set for the opening operation and closing operation of the application function, which can reduce the time for the user to set the opening operation and closing operation and facilitate the user's operation.

[0063] In some embodiments, before actually controlling the target application function, it is necessary to set a correspondence between the user operation and the control operation of the application function.

[0064] Figure 4 A schematic diagram of the implementation flow of another control method for application functions provided in an embodiment of the present application. Figure 4 As shown, in Figure 1 On the basis of the illustrated embodiment, when the target application function is in the pre-enabling state in step 101, before obtaining the target user operation, the method may further include:

[0065] Step 401: Obtain the correspondence between the preset user operation and the control operation of the application function.

[0066] There are many ways to obtain the correspondence between the preset user operation and the control operation of the application function, for example, the user can set it in the system setting interface, or it can be transmitted from other devices. The embodiment of the present application does not limit the way to obtain the correspondence between the preset user operation and the control operation of the application function.

[0067] Furthermore, obtaining the correspondence between the preset user operation and the control operation of the application function may include: when the electronic device displays a function setting interface, receiving a first user operation, the function setting interface being used to set the user operation corresponding to the control operation of the preset function; and generating a correspondence between the control operation of the preset function and the first user operation.

[0068] It should be noted that the electronic device includes a function setting interface, and the function setting interface is used to set the corresponding relationship between the control operation of the preset function and the user operation. When the user enters the function setting interface, that is, the electronic device displays the function setting interface, the user can input the user operation that he wants to set to generate a corresponding relationship. After the user inputs the first user operation, such as clicking a physical button or inputting a gesture operation, the electronic device receives the first user operation, and then the electronic device establishes the corresponding relationship between the first user operation and the control operation of the preset function. For example, when the user enters the function setting interface corresponding to the target application function, and inputs the user operation of short pressing the volume up button three times in a row, the corresponding relationship between the start operation of the target application function and the user operation of short pressing the volume up button three times in a row is established.

[0069] The first user operation may be obtained by the user operating a physical button of the electronic device. For example, the first user operation may be a user operation of short pressing the volume up button three times in a row, or a user operation of short pressing the volume down button twice in a row.

[0070] In some embodiments, the target application function may include a black screen gesture function, and the method further includes: when the electronic device displays a gesture setting interface, receiving a second user operation, the gesture setting interface is used to set a user gesture corresponding to the black screen operation, and the second user operation is a gesture operation; generating a correspondence between the second user operation and the black screen operation function.

[0071] It should be noted that when the target application function is the black screen gesture function, in addition to setting the correspondence between the user operation and the control operation of the black screen gesture function, it is also necessary to set the correspondence between the black screen operation and the user gesture. After entering the gesture setting interface, a second user operation is received, wherein the gesture setting interface is used to set the user gesture corresponding to the black screen operation, and the second user operation is a gesture operation; the electronic device generates a correspondence between the second user operation and the black screen operation. After the black screen gesture function is officially turned on, when the electronic device is in a black screen state, if the second user operation is input, the screen light operation of the electronic device can be realized.

[0072] It can be understood that the embodiments of the present application are not limited to the black screen gesture function, and any uncommon application function can be applied to the method provided in the embodiments of the present application.

[0073] The following takes the black screen gesture function as an example to illustrate an exemplary application of an embodiment of the present application in an actual application scenario.

[0074] At present, the screen-off gesture usually requires the user to enter the system settings interface to set up related gesture functions. The usual process is as follows: (1) The user enters the system settings; (2) The user finds the black screen gesture function item; (3) Use a custom gesture or the system default gesture setting; (4) Turn on / off the black screen gesture function in the system settings interface; (5) The setting takes effect.

[0075] Among them, when the user completes the black screen gesture function setting in the system setting interface, the function of turning on / off the black screen gesture is turned on. The disadvantage of this method is also obvious. The black screen gesture function itself is not a function that users use for a long time. Users may only want to use the black screen gesture function in certain situations, rather than turning on the function all the time. Therefore, the existing method of setting through the system lacks flexibility and is not the best way for user experience.

[0076] Figure 5 This is a general flow chart of a method for switching a black screen gesture function provided in an embodiment of the present application. Figure 5 As shown, the method includes the following steps 501 to 507:

[0077] Step 501, the electronic device displays a system setting interface, and the user clicks an activation button corresponding to the black screen gesture function, and the black screen gesture function enters a pre-activation state.

[0078] Figure 6 This is a schematic diagram of a system setting interface provided in an embodiment of the present application. Figure 6 As shown, the system setting interface includes multiple personalized application functions that can be set. Users can select the application functions they need to set according to their needs. The current black screen gesture function is not enabled, and the enable button corresponding to the black screen gesture function is not selected. When the user clicks the enable button corresponding to the black screen gesture function, the black screen gesture function is in a pre-enabled state.

[0079] Step 502: The user clicks on the black screen gesture function setting item to enter the black screen gesture function setting interface.

[0080] Figure 7 This is a schematic diagram of another black screen gesture function setting provided in an embodiment of the present application. Figure 7 As shown in the figure, after the user clicks the corresponding turn-on button of the black screen gesture function, the turn-on button of the black screen gesture function becomes selected, and the black screen gesture function is in the pre-turn-on state. The user clicks the black screen gesture function setting item to enter the setting interface of the black screen gesture function. Among them, if the user has made detailed settings before, he or she can also not set them here and exit directly.

[0081] Step 503: The user clicks on the function on / off setting item in the setting interface of the black screen gesture function to enter the setting interface for turning on / off the black screen gesture function. The user short presses the volume up button three times to generate a correspondence between the function on / off operation and the user operation.

[0082] Figure 8 A scene diagram of a function on / off setting provided in an embodiment of the present application. Figure 8 As shown, the user clicks on the function on / off setting item to enter the setting interface for turning on / off the black screen gesture function. The interface displays "Please enter the physical button operation". Then the user short presses the volume up button three times. The interface displays that the setting has been completed, that is, the correspondence between the function on / off operation and the user operation is generated. Then the user clicks back to return to the setting interface of the black screen gesture function.

[0083] Step 504: the user clicks on the black screen gesture setting item in the setting interface of the black screen gesture function to enter the setting interface of the black screen gesture, and the user inputs the gesture to generate a corresponding relationship between the black screen operation and the user gesture.

[0084] Fig. 9 A scene diagram of a black screen gesture setting provided in an embodiment of the present application. Fig. 9As shown, the user clicks on the black screen gesture setting item to enter the black screen gesture setting interface. The interface displays "Please enter the gesture operation". Then the user extends his right hand and draws a semicircle. The interface displays that the setting has been completed, that is, the corresponding relationship between the black screen gesture setting and the user gesture is generated. Then the user clicks back to return to the black screen gesture function setting interface. Among them, the user can apply custom gestures or system default gesture settings.

[0085] It can be understood that steps 501-504 complete all settings of the black screen gesture function. The following is an introduction to the control method of the application scenario.

[0086] Step 505: When the black screen gesture function is in the pre-enabled state, the user short presses the volume up button three times, and the interface displays that the black screen gesture function is enabled.

[0087] Fig.10 This is an application scenario diagram of a black screen gesture setting provided in an embodiment of the present application. Fig.10 As shown, when the black screen gesture function is in the pre-enabled state, it detects whether there is a corresponding user operation, and receives the user's short press of the volume up button on the electronic device three times, and matches it with the preset corresponding relationship. If the match is successful, the interface will display that the black screen gesture function is enabled, indicating that the black screen gesture function has been officially enabled. Then the user can use the previously set gestures to perform related operations under the black screen, such as lighting the screen.

[0088] Similarly, if the user presses the volume up button three times on the electronic device when the black screen gesture function is officially turned on, the interface will show that the black screen gesture function has been turned off, that is, the black screen gesture function is in the pre-on state again. If the user wants to completely turn off the black screen gesture function, he needs to enter the system settings interface and turn the black screen gesture function on button to unchecked, which will not be repeated here.

[0089] Among them, physical buttons of electronic devices, such as volume button, power button, etc. Such buttons have the characteristics of real-time and high reliability, and are particularly suitable for the current operation of turning on and off non-real-time functions. For example, the power button, under the existing power button long press operation, is generally a restart and shutdown operation. The volume button includes functions such as volume adjustment. This solution reuses the functions of physical buttons to achieve the effect of turning on and off the black screen gesture function. The physical button methods that can be used may include: the usual power button / volume button operations, including but not limited to long press, combination or regular operations.

[0090] The above embodiment proposes a method for turning on / off the black screen gesture function by using a physical button of an electronic device, that is, a solution for turning on / off the black screen gesture function by a hard setting solution. The above solution itself does not focus on the optimization of black screen gesture recognition or the black screen gesture function solution itself, wherein the reuse of physical buttons of electronic products is fast and efficient, and can achieve the effect of quickly turning on or off application functions.

[0091] Among them, the present application provides a way to turn on / off application functions that are not conventionally used / used in special scenarios. When the user sets to turn on the relevant application, the relevant application enters a pre-turn on / off state, and the user is required to turn on / off the relevant application functions through other confirmatory methods.

[0092] It is understandable that electronic products usually contain more functional applications, among which there are many functional applications that are not commonly used or are only used in special scenarios. If you choose to open them in real time, the opening itself is relatively complicated or may bring other side effects such as power consumption, performance misjudgment, etc. You can adopt an idea similar to the current solution, set the functions that need to be turned on in the system settings, and enter the pre-open / closed state, and realize the opening and closing of functions through the hard settings of the user's mobile phone, taking into account both safety and efficiency.

[0093] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.

[0094] Based on the foregoing embodiments, the embodiments of the present application provide a control device for an application function, and the modules included in the device and the units included in the modules can be implemented by a processor; of course, they can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0095] Fig.11 A schematic diagram of a control device for an application function provided in an embodiment of the present application is shown in FIG. Fig.11As shown, the device 600 includes a user operation acquisition module 601 and an application function control module 603, wherein:

[0096] The user operation acquisition module 601 is used to acquire a target user operation when the target application function is in a pre-enabling state, wherein the pre-enabling state is a state after the target application function is enabled through the system setting of the electronic device;

[0097] The application function control module 602 is used to control the target application function to be turned on or off according to the target user operation and the corresponding relationship between the preset user operation and the control operation of the application function.

[0098] In some embodiments, the preset correspondence between the user operation and the control operation of the application function includes the correspondence between the user operation and the opening operation of the application function, and the correspondence between the user operation and the closing operation of the application function. The application function control module 602 includes a first determining unit, a first executing unit and a second executing unit, wherein:

[0099] The first determining unit is used to determine, according to the target user operation and the correspondence between the preset user operation and the control operation of the application function, an opening operation of the target application function or a closing operation of the target application function corresponding to the target user operation;

[0100] The first execution unit is configured to control the target application function to be enabled if the target user performs an enabling operation corresponding to the target application function;

[0101] The second execution unit is configured to control the target application function to be closed if the target user operation corresponds to a closing operation of the target application function.

[0102] In some embodiments, the correspondence between the preset user operation and the control operation of the application function includes the correspondence between the user operation and the state switching operation of the application function, and the application function control module 602 includes a second determination unit, a third determination unit and a third execution unit, wherein:

[0103] The second determining unit is used to determine the state switching operation of the target application function corresponding to the target user operation according to the target user operation and the correspondence relationship between the preset user operation and the control operation of the application function;

[0104] The third determining unit is used to determine the current state of the target application function according to the state switching operation of the target application function;

[0105] The third execution unit is used to control the target application function to be turned on or off according to the current state of the target application function and the state switching operation of the target application function.

[0106] In some embodiments, the third execution unit is specifically used to: if the current state of the target application function is an on state, control the target application function to be turned off according to the state switching operation of the target application function; if the current state of the target application function is an off state, control the target application function to be turned on according to the state switching operation of the target application function.

[0107] In some embodiments, the device further includes a relationship acquisition module, and the relationship acquisition module is used to acquire the corresponding relationship between the preset user operation and the control operation of the application function.

[0108] In some embodiments, the relationship acquisition module includes an operation receiving unit and a relationship generating unit, wherein:

[0109] The operation receiving unit is used to receive a first user operation when the electronic device displays a function setting interface, where the function setting interface is used to set a user operation corresponding to a control operation of a preset function;

[0110] The relationship generating unit is used to generate a corresponding relationship between the control operation of the preset function and the first user operation.

[0111] In some embodiments, the target application function includes a black screen gesture function, and the device also includes a gesture setting module, which is specifically used to: when the electronic device displays a gesture setting interface, receive a second user operation, the gesture setting interface is used to set a black screen gesture corresponding to the black screen operation function, and the second user operation is a gesture operation; generate a correspondence between the second user operation and the black screen operation function.

[0112] In some embodiments, the target user operation is obtained by the user operating the physical buttons of the electronic device in a preset operation mode, and the preset operation mode includes long pressing the power button, long pressing the volume button, regularly pressing the power button, regularly pressing the volume button, or a combination of operations.

[0113] In the embodiment of the present application, after the application function enters the pre-opening state, the application function can be turned on or off in real time through simple user operation control, thereby enabling users to quickly and conveniently turn on or off the application function, which is convenient for users to use.

[0114] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0115] It should be noted that in the embodiments of this application Fig.11 The division of modules in the control device of the application function shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0116] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0117] Fig.12 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.12 As shown, the electronic device 100 may include a processor 110, a memory 120, a wireless communication module 130, an audio module 140, a camera 150, a USB interface 160, a display screen 170, and the like.

[0118] The processor 110 may include one or more processing units. For example, the processor 110 is a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs). Different processing units may be independent devices or integrated into one or more processors.

[0119] The memory 120 can be used to store computer executable program codes, which include instructions. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, video data, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.

[0120] The wireless communication module 130 can provide solutions for wireless communication including WLAN, such as Wi-Fi network, Bluetooth, NFC, IR, etc., applied to the electronic device 100. The wireless communication module 130 can be one or more devices integrating at least one communication processing module. In some embodiments of the present application, the electronic device 100 can establish a wireless communication connection with other electronic devices through the wireless communication module 130.

[0121] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 140 , the speaker 140A, the receiver 140B, the microphone 140C, the headphone jack 140D, and the application processor.

[0122] The audio module 140 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 140 can also be used to encode and decode audio signals. In some embodiments, the audio module 140 can be arranged in the processor 110, or some functional modules of the audio module 140 can be arranged in the processor 110.

[0123] The camera 150 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 150, where N is a positive integer greater than 1.

[0124] The USB interface 160 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 160 can be used to connect other electronic devices. In some other embodiments, the electronic device 100 can also be connected to an external camera through the USB interface 160 to capture images.

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

[0126] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0127] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps in the control method of the application function provided in the above embodiment are implemented.

[0128] The above-mentioned computer-readable storage medium can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, - but not limited to - an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM) or flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0129] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0130] The program code embodied on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, radio frequency (RF), etc., or any suitable combination of the foregoing.

[0131] Computer program code for performing the operations of the present specification may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0132] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the method for controlling the application function provided in the above method embodiment.

[0133] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center to another website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0134] It should be noted here that the description of the above storage medium, program product and device embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiment of this application for understanding.

[0135] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0136] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0137] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0138] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0139] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0140] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0141] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0142] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0143] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment. The features disclosed in the several product embodiments provided in this application can be arbitrarily combined without conflict to obtain a new product embodiment. The features disclosed in the several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain a new method embodiment or device embodiment.

[0144] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for controlling an application function, characterized in that: Used in electronic equipment, including: When the target application function is in a pre-enabling state, obtaining a target user operation, wherein the pre-enabling state is a state after the target application function is enabled through a system setting of the electronic device; According to the target user operation and the correspondence between the preset user operation and the control operation of the application function, the target application function is controlled to be turned on or off.

2. The method according to claim 1, characterized in that The correspondence between the preset user operation and the control operation of the application function includes a correspondence between the user operation and the opening operation of the application function, and a correspondence between the user operation and the closing operation of the application function. According to the target user operation and the correspondence between the preset user operation and the control operation of the application function, controlling the target application function to be opened or closed includes: Determine, according to the target user operation and the correspondence between the preset user operation and the control operation of the application function, an on operation of the target application function or a off operation of the target application function corresponding to the target user operation; If the target user operation corresponds to the start operation of the target application function, controlling the start of the target application function; If the target user operation corresponds to a closing operation of a target application function, the target application function is controlled to be closed.

3. The method according to claim 1, characterized in that The correspondence between the preset user operation and the control operation of the application function includes the correspondence between the user operation and the state switching operation of the application function, and the control of turning on or off the target application function according to the target user operation and the correspondence between the preset user operation and the control operation of the application function includes: Determining a state switching operation of a target application function corresponding to the target user operation according to the target user operation and the correspondence between the preset user operation and the control operation of the application function; Determining the current state of the target application function according to the state switching operation of the target application function; According to the current state of the target application function and the state switching operation of the target application function, the target application function is controlled to be turned on or off.

4. The method according to claim 3, characterized in that The controlling the target application function to be turned on or off according to the current state of the target application function and the state switching operation of the target application function includes: If the current state of the target application function is an on state, controlling the target application function to be turned off according to the state switching operation of the target application function; If the current state of the target application function is a closed state, the target application function is controlled to be opened according to a state switching operation of the target application function.

5. The method according to claim 1, characterized in that When the target application function is in a pre-enabling state, before obtaining the target user operation, the method further includes: Obtaining a correspondence between the preset user operation and the control operation of the application function.

6. The method according to claim 5, characterized in that The obtaining of the correspondence between the preset user operation and the control operation of the application function includes: In the case where the electronic device displays a function setting interface, a first user operation is received, wherein the function setting interface is used to set a user operation corresponding to a control operation of a preset function; A correspondence between the control operation of the preset function and the first user operation is generated.

7. The method according to claim 6, characterized in that The first user operation is obtained by a user operating a physical button of the electronic device.

8. The method according to claim 5, characterized in that The target application function includes a black screen gesture function, and the method further includes: When the electronic device displays a gesture setting interface, a second user operation is received, wherein the gesture setting interface is used to set a user gesture corresponding to a black screen operation, and the second user operation is a gesture operation; A correspondence between the second user operation and the black screen operation is generated.

9. The method according to claim 1, characterized in that: The target user operation is obtained by the user operating the physical buttons of the electronic device in a preset operation mode, and the preset operation mode includes one of long pressing the power button, long pressing the volume button, regularly pressing the power button, and regularly pressing the volume button, or a combination of operations.

10. A control device for an application function, characterized in that: Used in electronic equipment, including: A user operation acquisition module, used to acquire a target user operation when the target application function is in a pre-enabling state, wherein the pre-enabling state is a state after the target application function is enabled through the system setting of the electronic device; The application function control module is used to control the target application function to be turned on or off according to the target user operation and the corresponding relationship between the preset user operation and the control operation of the application function.

11. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method for controlling the application function of any one of claims 1 to 9 are implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the control method of the application function as claimed in any one of claims 1 to 9 are implemented.

Citation Information

Cited By

  • Electronic equipment operation control method, electronic equipment, server and storage medium

    CN120909665A