Function control method for application, electronic device, and readable storage medium
By detecting and monitoring the status of the target button, the microphone or camera can be automatically turned on and off, solving the privacy leakage problem caused by the user forgetting to turn off the function, simplifying the operation process and improving the user experience.
Patent Information
- Application Number
- PCT/CN2024/094432
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-29
- Filing Date
- 2024-05-21
- Publication Date
- 2025-01-02
AI Technical Summary
In online meetings, users tend to forget to turn off the microphone or camera, resulting in user privacy leaks or interfering with the conference process. Traditional methods require users to enter the application interface for functional control, reducing the user experience.
By detecting the touch or pressing operation of the target key, the target function of the target application is turned on or off, and the control function remains on or off while the touch or pressing state is continuously maintained, preventing the user from forgetting to turn off the microphone or camera.
Simplifies function control operations, prevents privacy leakage, improves user experience, and avoids the need for long-term pressing or touching to maintain functional status.
Smart Images

Figure CN2024094432_02012025_PF_FP_ABST
Abstract
Description
Application function control method, electronic device and readable storage medium
[0001] Cross-references
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on June 29, 2023, with application number 202310786001.2 and application name “Application Function Control Method, Electronic Device and Readable Storage Medium”. The entire contents of the application are incorporated by reference into this application. Technical Field
[0003] The present application relates to the field of network technology, and in particular to a function control method for an application program, an electronic device, and a computer-readable storage medium. Background Art
[0004] With the development of mobile Internet, remote work and online conferencing through smart terminals are becoming increasingly popular. Currently, people participate in online conferences through conference applications on smart terminals. On the interface of the conference application, there are virtual buttons for turning on or off corresponding functions (such as microphones or cameras). However, controlling the corresponding functions through virtual buttons requires the user to remain in the interface of the conference application, or the user needs to light up the screen to find the virtual button of the corresponding function, so as to turn on or off the microphone or camera through the virtual button. If the user forgets to turn off the microphone or camera, it is easy to lead to the leakage of user privacy or interfere with the speech of others during the meeting, which reduces the user experience.
[0005] Summary of the Invention
[0006] The main purpose of the embodiments of the present application is to provide a function control method of an application program, an electronic device, and a storage medium.
[0007] To achieve the above-mentioned purpose, an embodiment of the present application provides a function control method for an application, the method comprising: turning on or off a target function of a target application when a touch or press operation of a target button is detected; and controlling the target function to remain in an on or off state when the touch or press operation of the target button is continued.
[0008] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides an electronic device, which includes a processor, a memory, and a function control program of an application stored on the memory and executable by the processor, wherein when the function control program of the application is executed by the processor, the steps of the function control method of the application as described above are implemented.
[0009] In addition, to achieve the above-mentioned purpose, an embodiment of the present application also provides a computer-readable storage medium, on which a function control program of an application is stored, wherein when the function control program of the application is executed by a processor, the steps of the function control method of the application as described above are implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] FIG1 is a schematic diagram of the hardware structure of an electronic device involved in an embodiment of the present application;
[0011] FIG2 is a flow chart of a first embodiment of a method for controlling application functions according to an embodiment of the present application;
[0012] FIG3 is a flow chart of a second embodiment of a method for controlling application functions according to an embodiment of the present application;
[0013] FIG4 is a flow chart of a third embodiment of a method for controlling a function of an application program according to an embodiment of the present application;
[0014] FIG5 is a schematic diagram of interaction between the interactive terminals according to an embodiment of the present application;
[0015] FIG6 is a schematic diagram of a conference application interface in an embodiment of the present application;
[0016] FIG7 is a schematic diagram of an interface of a specific position of the touch screen in an embodiment of the present application.
[0017] The realization of the objectives, functional features and advantages of the embodiments of the present application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0018] It should be understood that the specific embodiments described herein are only used to explain the embodiments of the present application and are not used to limit the embodiments of the present application.
[0019] The function control method of the application involved in the embodiment of the present application is mainly applied to electronic devices, which can be PCs, portable computers, mobile terminals and other devices with display and processing functions.
[0020] Referring to Figure 1, Figure 1 is a schematic diagram of the hardware structure of the electronic device involved in the embodiment of the present application. In the embodiment of the present application, the electronic device may include a processor 1001 (such as a central processing unit (CPU)), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard); the network interface 1004 may optionally include a standard wired interface, a wireless interface (such as a wireless fidelity (Wireless Fidelity, Wi-Fi) interface); the memory 1005 may be a high-speed random access memory (Random Access Memory, RAM), or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0021] Those skilled in the art will understand that the hardware structure shown in FIG1 does not constitute a limitation on the electronic device, and may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.
[0022] Continuing to refer to FIG. 1 , the memory 1005 as a computer-readable storage medium in FIG. 1 may include an operating system, a network communication module, and a function control program of an application program.
[0023] In Figure 1, the network communication module is mainly used to connect to the server and communicate data with the server; and the processor 1001 can call the function control program of the application stored in the memory 1005 and execute the function control method of the application provided in the embodiment of the present application.
[0024] An embodiment of the present application provides a method for controlling the functions of an application.
[0025] Refer to Figure 2, which is a flow chart of a first embodiment of a method for controlling the functions of an application program according to an embodiment of the present application.
[0026] In this embodiment, the function control method of the application program includes the following steps:
[0027] Step S10 , when a touch or press operation of a target button is detected, a target function of a target application is turned on or off.
[0028] Currently, when users use virtual buttons to turn on or off the microphone or camera in an online conference application or a web conference application, they may easily forget to turn off the microphone or camera, which may lead to the leakage of user privacy or interfere with the speeches of others during the meeting. For example, when a user wants to speak, he forgets to turn on the microphone or camera and needs to light up the screen to enter the conference application and then turn on the microphone or camera, or forget to turn off the microphone or camera after finishing speaking.
[0029] In order to solve the above problems, an embodiment of the present application proposes a function control method for an application, which triggers the switching process of the target function state of the target application based on the touch or press operation of the target button, and then turns the target function on or off based on the touch state of the target button, and maintains the state control of the target function by continuously maintaining the touch state, thereby preventing the user from forgetting to turn off the target function (such as a microphone or camera) and causing user privacy leakage.
[0030] In this embodiment, when a touch or press operation of a target button is detected, a target function of a target application is turned on or off.
[0031] The target button can be a preset button set by the user according to actual needs, or a default button. The target button includes at least one of a hardware button, a fingerprint module or a virtual button. Specifically, the target button can be a fingerprint module set on the outside of the smart terminal, a hardware button (such as a power button, a volume button or other physical button) or a virtual button of the smart terminal (such as the home virtual button on the mobile phone homepage or a virtual button in the target application), that is, by identifying whether the user touches the fingerprint module, or by identifying whether the user presses the preset hardware button or virtual button, the microphone or camera is turned on (or off); the target button can also be a combination of two or more of the fingerprint module, hardware button or virtual button, that is, when the user presses two or more preset hardware buttons (such as the power button and the volume button) at the same time; or when the user presses a preset hardware button and touches the fingerprint module at the same time; or when the user presses a preset hardware button and touches a preset virtual button at the same time, one or more functions of the target application are controlled to be turned on (or off), such as the microphone or camera function in the network conference application.
[0032] In an exemplary embodiment, before turning on or off a target function of a target application when a touch or press operation of a target button is detected, the method includes obtaining at least one of a microphone or a camera of the target application as the target function.
[0033] In this embodiment, the target function can be a function in the target application or multiple functions. The target button can be used to control each preset function in the target application (such as a microphone or a camera) separately, or the target button can be used to control multiple preset functions in the target application (microphones and cameras) simultaneously.
[0034] Step S20: When the target button is continuously touched or pressed, the target function is controlled to remain in an on or off state.
[0035] In this embodiment, the key state of the target key is monitored in real time, and when it is detected that the target key is pressed or touched, the corresponding target function is turned on or off. The key state of the target key is then continuously monitored, and when the target key is continuously pressed or touched, the target function is kept turned on or off.
[0036] The fingerprint module, hardware button or virtual button in the smart terminal (the virtual button can be the main control button on the terminal homepage or a virtual button in the target application) is used as a state-maintaining switch. For example, when the finger is placed on the fingerprint module, the microphone or camera in the conference application is turned on, and when the finger is removed, the microphone or camera is turned off. The two states of the user's finger touch operation correspond to the continuous control of the target function on or off state. When the user does not need to speak, the microphone or camera can be turned off by removing the finger, and there will be no mic or camera turned on due to misoperation. It not only prevents privacy leaks, but also eliminates the need for users to enter the target application interface to control the target function, simplifying the control operation of the target function and improving the user experience.
[0037] This embodiment provides a function control method for an application, which turns on or off a target function of a target application when a touch or press operation of a target button is detected, and controls the target function to remain in an on state or an off state when the touch or press operation of the target button is continued. In the above manner, the present application triggers a switching process of the target function state of the target application based on the touch or press operation of the target button, and then turns on or off the target function based on the touch state of the target button, and maintains the state control of the target function by continuously maintaining the touch state, thereby preventing the user from forgetting to turn off the target function (such as a microphone or camera) and causing the leakage of user privacy, thereby improving the user experience and solving the technical problem that the function control method of the application in the traditional technology easily causes the leakage of user privacy.
[0038] Refer to FIG3 , which is a flow chart of a second embodiment of a method for controlling the functions of an application program according to an embodiment of the present application.
[0039] Based on the embodiment shown in FIG2 , in this embodiment, after step S20, the following steps are further performed:
[0040] Step S30: Obtain a first touch duration or a first press duration of the target button, and generate a first reminder message to stop touching or stopping pressing when the first touch duration or the first press duration reaches a first duration threshold.
[0041] Step S40: When it is detected that the target button is switched to a non-touch state, the target function is controlled to maintain an original state.
[0042] In this embodiment, to prevent the user from pressing or touching the target button for a long time to keep the microphone or camera on or off, a reminder message (i.e., a first reminder message) can be generated after it is recognized that the duration of the user pressing or touching the target button (i.e., the first touch duration or the first press duration) reaches a preset duration (i.e., the first duration threshold) to remind the user to stop touching or pressing the target button. When it is recognized that the user stops touching or pressing the target button, that is, when it is detected that the current state of the target button switches from the touch state to the non-touch state, the target function is kept in the original state (e.g., the on state). And when it is recognized that the user switches the operation again, the current state of the target function is switched (e.g., the target function is switched from the on state to the off state). The original state is the state in which the target function is kept. It can be understood that when the user keeps the target function on by touching the target button, the original state is the on state; when the user keeps the target function off by touching the target button, the original state is the off state. In a specific embodiment, upon subsequent detection of a user switching operation, such as a re-touch, press, or continuous touch or press of a key or key combination, the target function can be switched to another state, for example, from an on state to an off state, or vice versa. This avoids the user having to touch or press the target key for a long time to keep the target function on or off, further simplifying user operations and improving the user experience.
[0043] It is understandable that when the target button is a fingerprint module or a virtual button, the button state is a touch state or a non-touch state; when the target button is a hardware button, the button state can be a pressed state or a non-pressed state.
[0044] In an exemplary embodiment, turning on or off a target function of a target application when a touch or press operation of a target key is detected includes: when a touch or press operation of the target key is detected, obtaining current fingerprint information of the touch or press of the target key; and turning on or off the target function when the current fingerprint information matches the preset fingerprint information.
[0045] In this embodiment, the target button or one of the target buttons can be a fingerprint module on the terminal (such as a side or rear fingerprint button), that is, the fingerprint module is used as a control switch for the target function, for example, as a switch for a mic or camera. When it is recognized that the user touches the fingerprint module, that is, when the state of the target button is the touch state, the current fingerprint information of the current user is further obtained as the target button parameter. The current fingerprint information is compared with the preset fingerprint information. Among them, the preset fingerprint information can be the fingerprint information of a legitimate user or the user fingerprint information set by the user according to actual needs. Specifically, when it is recognized that the user's finger touches the fingerprint module and the current fingerprint information of the user touching the fingerprint module belongs to the preset user, the target function is turned on, that is, the mic or camera is turned on. When it is recognized that the user's finger leaves the fingerprint module, the mic or camera is turned off. Thus, the user can turn on the mic or camera by touching the fingerprint module, and turn off the mic or camera by removing the finger touching the fingerprint module, which simplifies the user operation, improves the user experience, and further prevents the leakage of user privacy.
[0046] In a specific embodiment, the mic and camera can be turned on or off simultaneously, or the mic and camera can be turned on or off separately by setting the corresponding relationship between different fingerprints and the mic and camera.
[0047] It is understandable that the current fingerprint information in this embodiment may also be the fingerprint information of any user, that is, the target function can be turned on or off by identifying the fingerprint information of the user.
[0048] In an exemplary embodiment, turning on or off the target function when the current fingerprint information matches the preset fingerprint information includes: obtaining a correspondence between the fingerprint information and the preset control function when the current fingerprint information matches the preset fingerprint information; and turning on or off the target function when it is determined based on the correspondence that the current fingerprint information is the preset fingerprint information for controlling the target function.
[0049] In this embodiment, in order to avoid the microphone or camera being turned on or off due to accidental touch, after identifying that the current fingerprint information matches the preset fingerprint information, it is further determined based on the correspondence between the fingerprint information and the preset control function whether the current fingerprint information is specific fingerprint information. The specific fingerprint is the fingerprint information preset by the user for controlling the target function. And when the current fingerprint information is the preset fingerprint information for controlling the target function, the target function is turned on or off. It is understandable that the specific fingerprint information can be a non-unlocking fingerprint, thereby avoiding the user from accidentally turning on or off the microphone or camera when unlocking the terminal. In a specific embodiment, the specific fingerprint information can also be an unlocking fingerprint. When the specific fingerprint information is an unlocking fingerprint, a corresponding reminder message can be generated for the user to choose whether to unlock the terminal or control the target function.
[0050] Refer to Figure 4, which is a flow chart of a third embodiment of the function control method of an application program according to an embodiment of the present application.
[0051] Based on the embodiment shown in FIG2 , in this embodiment, the method includes:
[0052] Step S50 : Displaying a control button switch for the target function, so that the user can select from a plurality of control button modes corresponding to the target function.
[0053] Step S60: Switch the control button and the target function based on the selected control button mode, and generate a second prompt message.
[0054] In this embodiment, in order to further improve the convenience of user operation, a control button switch option is set and displayed in the user interface, and the user selects the control method of the camera or microphone from a variety of control button methods (such as hardware buttons, virtual buttons or fingerprint modules). When the control button switch is displayed, a second reminder message is generated based on the current functional state of the target function and the functional state after switching the control button method, so as to prompt the user of the current state of the microphone or camera and the state after switching. For example, if the microphone is in the on state and switches to the control method of the present technical solution, after the switch, the microphone will be turned off because it is in an untouched state. Therefore, the functional state has been switched accordingly when the control switch is switched. The subsequent switching of the control function button based on the control button switch is a process of self-control by the user and no prompt is required.
[0055] In an exemplary embodiment, before turning on or off the target function of the target application when a touch or press operation of the target key is detected, it also includes: obtaining a second touch duration or a second press duration of the target key; when the second touch duration or the second press duration reaches a second duration threshold, determining that a touch or press operation of the target key is detected.
[0056] In this embodiment, when a touch action or a pressing action is detected, that is, when the target button is detected to be in a touch state, the target function can be controlled to be turned on; when it is detected that the user removes the finger, that is, when the target button is in a non-touch state, the target function can be controlled to be turned off.
[0057] In a specific embodiment, in order to further prevent accidental touches, after identifying that the pressing or touching duration of the target button (i.e., the second touch duration) reaches a certain duration (i.e., the second duration threshold), the target button state is determined to be continuously maintained in the touch state, that is, it is determined that the user is long pressing the target button state to turn on the relevant function (such as turning on the mic or camera).
[0058] In addition, the embodiments of the present application are further described in conjunction with the application scenarios of this solution and the necessary network environment:
[0059] As shown in Figure 5, the interactive end involved in this application includes a smart terminal 101, a conference application 102, and a cloud server 103. The conference application 102 is installed on the smart terminal 101. The smart terminal 101 sends the collected voice and video data information to the cloud server 103, and receives the voice and video data information returned by the cloud server 103. The video screen is displayed on the display screen of the smart terminal 101 or a display screen connected to the smart terminal 101, and the sound is output through the speaker or receiver.
[0060] Specifically, the smart terminal 101 includes a Mic module, a camera module, a display module, a battery module, a fingerprint module, a voice output module, a memory and storage module, and a central processing unit.
[0061] Among them, the Mic module is used to collect the sound around the smart terminal, and then use the vibration of the metal sheet in the capacitor component to convert the sound signal into the amplitude and frequency of the metal sheet vibration, and then convert the amplitude and frequency of the metal sheet vibration into the size of the charge in the capacitor and the speed of charging. Finally, the size of the charge in the capacitor and the speed of charging are converted into digital signals, thereby realizing sound collection.
[0062] The camera module includes parts such as the lens and image sensor. Light enters the image sensor through the lens. The image sensor collects different amounts of charge according to the amount of light irradiated at different pixel positions and generates a digital image based on the different amounts of charge.
[0063] The display module includes a variety of display screens, such as LCD, OLED, etc., which are used to display image information on the display screen integrated circuit sent by the central processing unit.
[0064] The battery module is used to provide power for the smart terminal.
[0065] The fingerprint module is used to collect fingerprint information of human fingers and store the fingerprint data in a designated storage area. During fingerprint recognition, the fingerprint module matches the current fingerprint information collected with the stored preset fingerprint information and outputs a result of successful or unsuccessful matching.
[0066] The voice output module includes a receiver, speaker, earphones, Bluetooth, etc., which is used to convert the voice information sent by the central processing unit into a vibrating sound signal.
[0067] Conference application 102 receives data from cloud server 103 and calls various modules on smart terminal 101 to output data, including audio and video. Conference application 102 uses hardware modules on smart terminal 101. By selecting different virtual buttons on the graphical interface displayed on the screen, corresponding functions are implemented, such as turning different functions on and off, collecting audio and video information, and joining and exiting the conference.
[0068] The cloud server 103 is used to interact with the smart terminal 101, receive voice, video or other file data sent by the conference application 102 on the smart terminal 101, and send the above data to the applications of other users accessing the conference.
[0069] In a specific embodiment, the solution process of this application is as follows:
[0070] 1) Enter the online meeting through the conference application, access the meeting through the conference application, and connect to the cloud server. After the connection is successful, call different modules of the smart terminal to collect data.
[0071] 2) The fingerprint module is called by the conference application. The conference application calls the fingerprint module according to the set time interval. The fingerprint module provides the conference application with information on whether a fingerprint touches the fingerprint module based on the fingerprint information collected by the fingerprint module.
[0072] 3) The conference application calls the mic or camera module. Based on the information fed back by the fingerprint module, when a fingerprint touches the fingerprint module, the conference application calls the mic or camera module and uploads the voice data collected by the mic and the video data collected by the camera to the cloud server.
[0073] The conference application in this embodiment calls the fingerprint module and monitors the fingerprint data collected by the fingerprint module in real time, and uses the on and off of the finger contacting the fingerprint module to turn on or off the microphone or camera.
[0074] Specifically, the conference application calls the fingerprint module to collect user fingerprint information. When the fingerprint module does not collect fingerprint information, the fingerprint module will send an idle command to the conference application. When the conference application receives the idle command, it will not call the mic or camera module. When the fingerprint module collects fingerprint information, the fingerprint module will match the current fingerprint information collected with the stored preset fingerprint information. When the fingerprint match is successful, it will send a successful match command to the conference application. The conference application calls the mic or camera module to collect data and sends the collected data to the cloud server. The time interval for the conference application to call the fingerprint module can be set according to actual needs. For example, it can be set to call once every 100 milliseconds. After receiving the information returned by the fingerprint module, the conference application will execute the call to the mic or camera module according to the successful fingerprint match command; according to the idle command or fingerprint match failure, the mic or camera module will not be called.
[0075] In another embodiment, when the fingerprint module collects information, the collected information is judged through the collected fingerprint image and the features on the fingerprint are identified. If it is determined that the collected information is fingerprint information, an instruction to collect the fingerprint is sent to the conference application. The conference application calls the mic or camera module and sends the data collected by the mic or camera to the cloud server.
[0076] As shown in Figure 6, the conference application can configure the microphone or camera through the virtual buttons on the interface. The configuration options include: using the button on the interface to turn on the microphone, using the button on the interface to turn on the camera, using the fingerprint to turn on the microphone, or using the fingerprint to turn on the camera. When the virtual button on the interface is selected to turn on the microphone, the microphone is always on and continuously collects the user's voice information; when the virtual button on the interface is selected to turn on the camera, the camera is always on and continuously collects the user's image information; when the fingerprint is selected to turn on the microphone, the microphone turns on when the user touches the fingerprint module and turns off when the user leaves the fingerprint module; when the fingerprint is selected to turn on the camera, the camera turns on when the user touches the fingerprint module and turns off when the user leaves the fingerprint module.
[0077] As shown in Figure 6, User 1, User 2, User 3, and User 4 on the conference application interface represent users participating in the conference. Mic On is a virtual button for turning the microphone on and off; Front Camera On is a virtual button for turning the front camera on and off; Fingerprint Mic is a button for turning the microphone on and off using a fingerprint; Front Camera On is a button for turning the front camera on and off using a fingerprint; Speaker On is a button for turning the speaker on and off; and Beauty On is a button for turning the beauty function on and off. Other function buttons can also be added.
[0078] Specifically, when using fingerprint to control the opening or closing of the microphone or camera, it includes:
[0079] (1) Use the specified fingerprint to turn on or off the microphone or camera.
[0080] (2) During an online meeting, if the display screen is off, the screen can be turned on and unlocked by fingerprint recognition and pressing the power button. At this time, the screen is recognized as being turned on and the operating system is unlocked without turning on the microphone.
[0081] In addition to turning on the mic through fingerprints, the above functions can also be achieved by touching a specific position on the touch screen. As shown in Figure 7, in an online meeting, a specific position on the touch screen is set as the position to turn on the mic. When the touch screen recognizes that a finger is touching this position, the mic is turned on; when the touch screen recognizes that no finger is touching this position, the mic is turned off. When the screen is off, when a finger touches a specific position, the motor vibrates to remind the user that the finger has touched this specific position, and then the mic is turned on. The touch screen scans the user's finger touch status in real time, and executes or does not call the mic or camera module according to the finger touch or no touch status.
[0082] In addition, an embodiment of the present application also provides a computer-readable storage medium.
[0083] In an embodiment of the present application, a function control program of an application is stored on a computer-readable storage medium, wherein when the function control program of the application is executed by a processor, the steps of the function control method of the application as described above are implemented.
[0084] Among them, the method implemented when the function control program of the application is executed can refer to the various embodiments of the function control method of the application in the embodiments of the present application, and will not be repeated here.
[0085] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or system. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or system comprising the element.
[0086] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0087] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, and the like. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments in which tasks are performed by remote processing devices connected via a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the method described in each embodiment of the embodiment of the present application.
[0089] The above are only preferred embodiments of the embodiments of the present application, and do not limit the patent scope of the embodiments of the present application. Any equivalent structure or equivalent process transformation made using the contents of the description and drawings of the embodiments of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the embodiments of the present application.
Claims
1. A method for controlling a function of an application, the method comprising: When a touch or press operation of a target button is detected, a target function of a target application is turned on or off; When the target button is continuously touched or pressed, the target function is controlled to remain in an on state or an off state.
2. The function control method according to claim 1, wherein: The step of turning on or off a target function of a target application program when a touch or press operation of a target button is detected includes: When a touch or press operation of the target key is detected, obtaining current fingerprint information of the touch or press operation of the target key; When the current fingerprint information matches the preset fingerprint information, the target function is turned on or off.
3. The function control method according to claim 2, wherein: When the current fingerprint information matches the preset fingerprint information, turning on or off the target function includes: When the current fingerprint information matches the preset fingerprint information, obtaining a corresponding relationship between the fingerprint information and the preset control function; In a case where it is determined based on the corresponding relationship that the current fingerprint information is preset fingerprint information for controlling the target function, the target function is turned on or off.
4. The function control method according to claim 1, wherein: Before turning on or off the target function of the target application when the target key operation is detected, the method includes: At least one of a microphone or a camera of the target application is obtained as the target function.
5. The function control method according to claim 1, wherein: The target key includes at least one of a hardware key, a fingerprint module or a virtual key.
6. The function control method according to claim 1, wherein: After the target function is controlled to remain in an on state or in an off state while the target key operation is continuously touched or pressed, the method includes: Acquire a first touch duration or a first pressing duration of the target key, and generate a first reminder message indicating that the touch or pressing can be stopped when the first touch duration or the first pressing duration reaches a first duration threshold; When it is detected that the target button is switched to a non-touch state, the target function is controlled to remain in the state Maintain original status.
7. The function control method according to claim 1, wherein: Before turning on or off the target function of the target application when the target key operation is detected, the method further includes: Obtaining a second touch duration or a second pressing duration of the target key; When the second touch duration or the second press duration reaches a second duration threshold, it is determined that a touch or press operation of the target key is detected.
8. The function control method according to any one of claims 1 to 7, wherein: The method comprises: Displaying a control button switch of the target function, so that the user can select from a plurality of control button modes corresponding to the target function; The control button and the target function are switched based on the selected control button mode, and a second prompt message is generated.
9. An electronic device comprising a processor, a memory, and a function control program of an application stored in the memory and executable by the processor, wherein when the function control program of the application is executed by the processor, the steps of the function control method as described in any one of claims 1 to 8 are implemented.
10. A computer-readable storage medium storing a function control program of an application program, wherein when the function control program of the application program is executed by a processor, the steps of the function control method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Method, device and system for rapidly recording by mobile terminal
CN105045458A
Method and apparatus for carrying out sound recording based on fingerprints and volume keys under standby mode
CN105141739A
Intelligent keyboard and control method thereof
CN107608538A
Function triggering method and device of application program
CN108958863A
An information control method and device
CN109710131A