Functional component control method and device, electronic equipment and readable storage medium
By displaying the application's use requirements for functional components in electronic devices, the problem that users cannot clearly perceive and select applications that occupy functional components is solved, and more accurate functional component usage and higher user experience are achieved .
Patent Information
- Application Number
- CN202311015474.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-11
- Publication Date
- 2025-02-18
AI Technical Summary
In electronic devices, when multiple applications need to use the same functional component at the same time, the user cannot clearly perceive the application that currently occupies the functional component, nor can he freely select the application that occupies the functional component, resulting in an error in use.
By obtaining the usage requirements of each application in the electronic device for the target functional components, when at least two applications need to use the target functional components at the same time, prompt information is displayed for characterizing the usage requirements, allowing the user to pass the prompt The information defines the application currently occupies the target feature and switches it on its own.
This allows users to identify applications that currently occupy target functional components, avoid usage errors, and improve user experience.
Smart Images

Figure CN119473460A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a control method and device for a functional component, an electronic device, and a readable storage medium. Background Art
[0002] At present, many functional components are installed in electronic devices, and different functional components have different functions. For example, a microphone is used to record audio and make calls (i.e., receive sound function), and a speaker is used to play audio and make calls (i.e., output sound function). Usually, applications in electronic devices need to call functional components to complete corresponding activities. Therefore, it is possible that multiple applications need to use the same functional component at the same time at a certain time. However, a functional component can only be occupied by one application at a certain time.
[0003] In the related art, when multiple applications need to use the same functional component at the same time, the user can neither clearly perceive the application currently occupying the functional component nor freely select the application occupying the functional component, which can easily lead to errors when the user uses the functional component. Summary of the invention
[0004] The present disclosure provides a control method and device for a functional component, an electronic device, and a readable storage medium to address deficiencies in the related art.
[0005] According to a first aspect of an embodiment of the present disclosure, a method for controlling a functional component is provided, which is applied to an electronic device equipped with a target functional component. The method includes:
[0006] Obtaining usage requirements of the target functional component by various application programs in the electronic device;
[0007] In the case where at least two applications have usage requirements for the target functional component at the same time, prompt information representing the usage requirements is displayed.
[0008] Optionally, the displaying of prompt information for characterizing the usage demand situation includes: displaying information of a first application occupying the target functional component at the same time.
[0009] Optionally, the display of prompt information used to characterize the usage demand situation includes: separately displaying information of the first application, and information of a second application that has a usage demand for the target functional component at the same time and is different from the first application; wherein the display method of the information of the first application is different from that of the information of the second application.
[0010] Optionally, the display of prompt information for characterizing the usage requirement situation includes: displaying the prompt information as a corresponding abbreviated identifier; and when a trigger operation for the abbreviated identifier is detected, displaying the usage requirement situation for the target functional component corresponding to the prompt information.
[0011] Optionally, the method further includes: in response to a user selecting a target application through the prompt information, switching an application occupying the target functional component to the target application.
[0012] Optionally, the electronic device runs a management service and an assistance service for the target functional component; the obtaining of the usage requirements of the target functional component by each application in the electronic device includes: determining the usage requirements of the target functional component by any application when the management service receives a notification that the target functional component is called by any application; the displaying of prompt information characterizing the usage requirements includes: displaying prompt information characterizing the usage requirements when the assistance service receives a notification that at least two applications have usage requirements for the target functional component at the same time.
[0013] Optionally, the target functional component includes a microphone and / or a camera.
[0014] According to a second aspect of an embodiment of the present disclosure, a control device for a functional component is provided, which is applied to an electronic device equipped with a target functional component, and the device includes:
[0015] An acquisition module, used for acquiring usage requirements of the target functional component by various application programs in the electronic device;
[0016] The display module is used to display prompt information representing the usage demand situation when at least two applications have usage demand for the target functional component at the same time.
[0017] According to a third aspect of an embodiment of the present disclosure, a control system of a functional component is provided, the control system comprising:
[0018] A management service, running on an electronic device equipped with a target functional component, is used to obtain usage requirements of the target functional component by various applications running on the electronic device, and send a prompt notification to the assistance service when it is determined that at least two applications have usage requirements for the target functional component at the same time;
[0019] The assistance service is used to display prompt information representing the usage demand situation in response to the prompt notification.
[0020] According to a fourth aspect of an embodiment of the present disclosure, an electronic device is provided, including:
[0021] processor;
[0022] a memory for storing processor-executable instructions;
[0023] The processor is configured to implement the method described in the embodiment of the first aspect above.
[0024] According to a fifth aspect of the embodiments of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the steps of the method described in the embodiments of the first aspect are implemented.
[0025] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0026] It can be seen from the above embodiments that the present disclosure obtains the usage requirements of the target functional components by various applications in the electronic device, and when it is determined that there are at least two applications that need to use the target functional components at the same time, prompt information for characterizing the usage requirements for the target functional components is displayed in the electronic device. As a result, the user can clearly understand the application currently occupying the target functional component through the prompt information, and the user can switch the application occupying the target functional component by himself through the prompt information, thereby avoiding errors when the user uses the target functional component, which helps to improve the user's usage experience of the target functional component.
[0027] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0029] Figure 1 It is a schematic flow chart of a control method of a functional component according to an embodiment of the present disclosure.
[0030] Figure 2a It is a schematic diagram showing information of a first application according to an embodiment of the present disclosure.
[0031] Figure 2b It is a schematic diagram showing another method of displaying information of a first application according to an embodiment of the present disclosure.
[0032] Figure 3 It is a schematic diagram showing information of a first application and information of a second application according to an embodiment of the present disclosure.
[0033] Figure 4 It is a schematic diagram showing a thumbnail logo according to an embodiment of the present disclosure.
[0034] Figure 5 It is a flowchart showing the interaction between a management service and an assistance service according to an embodiment of the present disclosure.
[0035] Figure 6 It is a schematic diagram showing prompt information of usage requirements for two target functional components according to an embodiment of the present disclosure.
[0036] Figure 7 It is a schematic block diagram of a control device of a functional component according to an embodiment of the present disclosure.
[0037] Figure 8 It is a schematic diagram of the architecture of a control system of a functional component according to an embodiment of the present disclosure.
[0038] Fig. 9 It is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present disclosure.
[0040] The terms used in the disclosed embodiments are only for the purpose of describing specific embodiments and are not intended to limit the disclosed embodiments. The singular forms of "a", "an" and "the" used in the disclosed embodiments and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0041] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the disclosed embodiments, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the disclosed embodiments, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0042] For the purpose of brevity and ease of understanding, the terms used herein to characterize size relationships are "greater than" or "less than", "higher than" or "lower than". However, those skilled in the art can understand that the term "greater than" also covers the meaning of "greater than or equal to", and "less than" also covers the meaning of "less than or equal to"; the term "higher than" covers the meaning of "higher than or equal to", and "lower than" also covers the meaning of "lower than or equal to".
[0043] In the related art, when multiple applications use the same functional component at the same time in an electronic device, the user can neither clearly perceive the application currently occupying the functional component nor freely select the application occupying the functional component. For example, when a user receives a voice call from a communication software while conducting a voice conference through a microphone in an office software, and the user chooses to answer the voice call. At this time, both the communication software and the office software have a demand for the use of the microphone. In other words, there will be a situation where two voice calls, a voice conference of the office software and a voice call of the communication software, coexist. Since the user can neither clearly perceive whether the application currently occupying the microphone is a communication software or an office software, nor can he actively select an application to conduct a voice call in the two-way voice call, the user cannot determine which voice call the person he is currently talking to through the microphone belongs to, which leads to errors in the content of the conversation during the call.
[0044] In order to solve the above problems, the present disclosure proposes a control method for a functional component. When it is determined that at least two applications need to use a target functional component at the same time, prompt information for representing the use demand for the target functional component is displayed in an electronic device, so that the user can clearly know the application currently occupying the target functional component through the prompt information, and the user can switch the application occupying the target functional component by himself through the prompt information, thereby avoiding errors when the user uses the target functional component, which helps to improve the user's use experience of the target functional component. Next, one or more embodiments of the present disclosure are described in detail.
[0045] Figure 1It is a schematic flow chart of a control method of a functional component according to an embodiment of the present disclosure. The control method of the functional component shown in this embodiment can be executed by an electronic device equipped with a target functional component, and the electronic device includes but is not limited to a mobile phone, a tablet computer, a wearable device, a sensor, an Internet of Things device and other communication devices. The electronic device can communicate with a network device, and the network device includes but is not limited to a network device in a 4G, 5G, 6G and other communication systems, such as a base station, a core network, etc.
[0046] like Figure 1 As shown, the control method of the functional component may include the following steps:
[0047] S101: Obtaining usage requirements of the target functional component by various application programs in the electronic device.
[0048] Electronic devices are usually equipped with several functional components, and different functional components can provide different functions. For example, the touch screen can be used to input information, and the camera can be used to take photos and record videos. The target functional component can be any functional component installed in the electronic device.
[0049] An application is software installed and run in an electronic device. Usually, an application needs to call functional components to provide users with corresponding functions. For example, communication software needs to call functional components such as cameras and microphones to provide users with video call functions, and music applications need to call speakers to provide users with music output functions. When an application calls a target functional component, it means that the application has a use demand for the target functional component.
[0050] S102: When at least two applications have usage requirements for the target functional component at the same time, display prompt information for representing the usage requirements.
[0051] The prompt information can be displayed in any form at any position in the display page of the electronic device. The display form can include text form, pattern form, pop-up form, message notification form. The display position can include top display, fixed position display, and scrolling display in the display page. Regarding the display method of the prompt information (including display form, display position, etc.), those skilled in the art can set it according to actual needs, and this disclosure does not limit this.
[0052] In the above embodiment, by displaying prompt information on the usage requirements of each application for the target functional component, the user can clearly understand the application currently occupying the target functional component through the prompt information. At the same time, the user can switch the application occupying the target functional component by himself through the prompt information, thereby avoiding errors when the user uses the target functional component, which helps to improve the user's usage experience of the target functional component.
[0053] In one embodiment, displaying prompt information for representing the usage demand situation of the target functional component may specifically include: displaying information of the first application that occupies the target functional component at the same time.
[0054] Since the target functional component can only be occupied by one application at the same time, when there are at least two applications that require the target functional component, only one application is occupying the target functional component, and the other applications are in a state of waiting to occupy the target functional component.
[0055] Taking the aforementioned voice conference of office software and voice call of communication software as an example, it is assumed that the first application currently occupying the microphone is the office software. Figure 2a FIG. 1 is a schematic diagram showing information of a first application program provided by an exemplary embodiment. Figure 2a As shown, a pop-up window can be displayed on the display page of the electronic device, and the icon of the office software and the microphone logo can be displayed in the pop-up window to indicate that the office software is currently occupying the microphone. Of course, the information of the first application can also be displayed in text form at the top position of the display page to indicate that the office software is currently occupying the microphone, such as Figure 2b By showing the user the prompt information that the microphone is occupied by office software, the user can clearly know the identity of the current call partner and the scene of the call, thereby avoiding the user from inputting content irrelevant to the meeting during the voice conference of the office software.
[0056] In this embodiment, by displaying the information of the first application that occupies the target functional component at the same time, the user can use this information to clearly identify the first application that currently occupies the target functional component, thereby clarifying the usage scenario of the target functional component, which helps the user to take operations consistent with the first application and avoid errors during the use of the first application.
[0057] In one embodiment, in addition to displaying the information of the first application occupying the target functional component at the same time, the information of the second application that has a demand for the target functional component at the same time and is different from the first application can also be displayed. The display method of the information of the first application is different from that of the information of the second application.
[0058] For at least two applications that have a need to use the target functional component at the same time, the application that is occupying the target functional component at the same time can be called a first application, and the other application that has a need to use the target functional component at the same time can be called a second application. By displaying the information of the second application together with the information of the first application, the user can clearly know the second application waiting to use the target functional component and the number of the second application, which helps the user determine whether to switch the application occupying the target functional component based on the information of the second application, and helps to avoid the situation where the second application waits for a long time to use the target functional component. In addition, in the case where the number of second applications exceeds 2, the priority of the second application can be determined based on the information of each second application, so that the application occupying the target functional component can be switched according to the priority.
[0059] The display method of the information of the first application program is different from that of the information of the second application program, which can be that the information of the first application program is displayed separately by flashing, or the display color of the information of the first application program is set to be different from the display color of the information of the second application program, or the information of the first application program can be displayed differently by adding a special mark. Of course, the information of the first application program and the information of the second application program can also be displayed differently by other methods, which are not limited by the present disclosure.
[0060] Figure 3 FIG. 1 is a schematic diagram showing information of a first application and information of a second application provided by an exemplary embodiment. Figure 3 As shown, the target functional component is a microphone, and the applications that need to use the microphone at the same time are an office software, a communication software, and a game software. Among them, the communication software is the first application that is occupying the microphone, and the office software and the game software are the second applications. The information of the first application is the icon of the communication software, and the information of the second application is the icon of the office software and the icon of the game software. By adding a microphone logo next to the icon of the communication software, the information of the first application and the information of the second application are displayed separately.
[0061] according to Figure 3 From the prompt information shown, the user can clearly see that two applications are waiting to occupy the microphone, and based on the usage scenarios of office software and game software, it can be determined that the priority of office software in using the microphone is higher than that of game software. Therefore, the user can choose to pause the call on the communication software and switch the application occupying the microphone to office software first, so as to avoid work errors caused by the office software waiting for the microphone for a long time.
[0062] In one embodiment, in order to reduce the obstruction of the display page by the prompt information, the prompt information can be first displayed as a corresponding thumbnail logo, and then when a trigger operation for the thumbnail logo is detected, the usage requirement for the target functional component corresponding to the prompt information is displayed.
[0063] The thumbnail logo may be a logo including an outer frame and having a certain degree of transparency. Among them, the outer frame may be various shapes such as a polygonal frame or a circular frame. The thumbnail logo may be displayed on the side or corner of the display page, thereby further reducing the obstruction of the display page and avoiding interference with the user's use of the electronic device. Different thumbnail logos may also be set for different functional components. For example, when the prompt information is used to characterize the use requirements for a microphone, the thumbnail logo corresponding to the prompt information may be set as a circular logo or a microphone logo; when the prompt information is used to characterize the use requirements for a camera, the thumbnail logo corresponding to the prompt information may be set as a square logo or a lens logo. Of course, those skilled in the art may set the form, size, shape and other elements of the thumbnail logo by themselves, and the present disclosure does not limit this.
[0064] Figure 4 A schematic diagram showing a thumbnail logo is provided for an exemplary embodiment. Figure 4 As shown in the middle left figure, the thumbnail logo is displayed on the left side of the display page of the electronic device with a square frame. When the user triggers the thumbnail logo, the usage requirements for the target functional component corresponding to the prompt information will be displayed on the display page, as shown in the following figure. Figure 4 As shown in the middle right picture.
[0065] In one embodiment, in response to the user selecting the target application through the prompt information, the application occupying the target functional component can be switched to the target application.
[0066] Combination Figure 3 In the embodiment shown, when the microphone is occupied by communication software and office software and game software need to use the microphone at the same time, since the priority of office software is usually higher than that of communication software and game software, if the call made by the communication software is not very urgent, the user can select the office software as the target application and switch the application occupying the target functional component from the communication software to the office software by selecting the office software. Specifically, the user can click Figure 3 The icons of office software in the prompt information shown are used to switch the application occupying the target functional component.
[0067] In this embodiment, the user can select the target application through the prompt information to switch the application occupying the target functional component, thereby enabling the user to actively select the application occupying the target functional component, effectively improving the user's experience of using the target functional component.
[0068] In one embodiment, the electronic device runs a management service and an assistance service for a target functional component. The management service is used to receive a notification that any application calls a target functional component, so as to determine the usage requirements of any application for the target functional component based on the call notification. In addition, the usage mode of the target functional component can also be set through the management service. For example, the management service for the microphone can set the usage mode of the microphone to the handset mode or the speaker mode. The assistance service is used to receive a notification that at least two applications have usage requirements for the target functional component at the same time, and then display prompt information based on the notification.
[0069] Figure 5 A flowchart of the interaction between a management service and an assistance service provided by an exemplary embodiment. Figure 5 , the interaction process may include the following steps:
[0070] S501: The application sends a notification of calling a target functional component to the management service for the target functional component.
[0071] When any application calls a target functional component, it will send a corresponding call notification to the management service for the target functional component. The application can achieve cross-process communication with the management service through the binder.
[0072] S502: The management service determines, based on the received call notification for the target functional component, that any application program has a use demand for the target functional component.
[0073] The management service may determine the number of application programs that have usage requirements for the target functional component based on the number of received call notifications.
[0074] S503: When at least two applications have usage requirements for the target functional component at the same time, the management service sends a notification of the usage requirements to the assistance service for the target functional component.
[0075] S504: After receiving the notification of the usage requirement, the assistance service displays prompt information for representing the usage requirement for the target functional component.
[0076] After receiving the notification, the assistance service determines the first application currently occupying the target functional component, and displays the information of the first application occupying the target functional component at the same time, as well as the information of the second application that has a use demand for the target functional component at the same time in addition to the first application.
[0077] S505: The assistance service determines the target application in response to the user's selection operation on the target application.
[0078] S506: The assistance service sends a notification of switching to the target application to the management service.
[0079] S507: The management service switches the application occupying the target functional component to the target application according to the switching notification.
[0080] In this embodiment, the management service for the target functional component determines the usage requirements of each application for the target functional component, and then the assistance service displays prompt information for representing the usage requirements when at least two applications have usage requirements for the target functional component at the same time. Since the management service needs to be responsible for the basic management of the target functional component, the assistance service is responsible for displaying the prompt information, which helps to reduce the service pressure of the management service.
[0081] In one embodiment, the target functional component includes a microphone and / or a camera. In combination with the above embodiment, the microphone can be used to provide functions such as making calls, and the camera can be used to take photos and record videos. When the number of target functional components used by at least two applications at the same time exceeds one, the usage requirements of multiple target functional components can be displayed simultaneously.
[0082] Figure 6 This is a schematic diagram of a method provided by an exemplary embodiment for displaying prompt information on the usage requirements of two target functional components. Assume that when a user uses a camera and a microphone in a communication software to make a video call, there is a shooting software that needs to use the camera, and an office software that needs to use the microphone. Then, for the target functional component of the camera, the first application that occupies the target functional component is the communication software, and the second application that has the usage requirement is the shooting software. For the target functional component of the microphone, the first application that occupies the target functional component is the communication software, and the second application that has the usage requirement is the office software. Therefore, two pop-up windows can be displayed separately in the display page of the electronic device, one of which is used to display prompt information on the usage requirements of the camera, and the other is used to display prompt information on the usage requirements of the microphone. See FIG. Figure 6Of course, you can also combine and display the prompt information for the usage requirements of the microphone and camera. Figure 6 In the right picture in the figure, you can add a microphone icon and a camera icon next to the communication software icon at the same time. The "*" icon indicates that the pop-up window is used to display prompt information for the use requirements of the microphone, and the "×" icon indicates that the pop-up window is used to display prompt information for the use requirements of the camera. By combining the display, all the prompt information can be combined and displayed as a thumbnail icon, so that the user only needs to trigger the thumbnail icon once to display all the prompt information.
[0083] Corresponding to the above-mentioned embodiments of the control method of the functional component, the present disclosure also provides embodiments of the control device of the functional component.
[0084] See also Figure 7 , Figure 7 This is a schematic block diagram of a control device for a functional component provided by an exemplary embodiment. The device is applied to an electronic device equipped with a target functional component, and the device may include: an acquisition module 702 and a display module 704. Among them:
[0085] The acquisition module 702 is configured to acquire usage requirements of the target functional component by each application in the electronic device.
[0086] The display module 704 is configured to display prompt information representing the usage demand situation when at least two applications have usage demand for the target functional component at the same time.
[0087] Optionally, the display module 704 is specifically used to display information of the first application occupying the target functional component at the same time.
[0088] Optionally, the display module 704 is specifically used to separately display information of the first application and information of a second application that has a demand for use of the target functional component at the same time and is different from the first application; wherein the display method for the information of the first application is different from that for the information of the second application.
[0089] Optionally, the display module 704 is specifically used to display the prompt information as a corresponding thumbnail mark; when a trigger operation for the thumbnail mark is detected, the usage requirement for the target functional component corresponding to the prompt information is displayed.
[0090] Optionally, the device further comprises:
[0091] The switching module 706 is configured to switch the application occupying the target functional component to the target application in response to the user selecting the target application through the prompt information.
[0092] Optionally, the electronic device runs a management service and an assistance service for the target functional component; the acquisition module 702 is used to determine the usage requirement of the target functional component by any application when the management service receives a notification that any application calls the target functional component; the display module 704 is used to display prompt information representing the usage requirement when the assistance service receives a notification that at least two applications have usage requirements for the target functional component at the same time.
[0093] Optionally, the target functional component includes a microphone and / or a camera.
[0094] Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the relevant method, and will not be elaborated here.
[0095] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the disclosed solution. A person of ordinary skill in the art can understand and implement it without paying creative labor.
[0096] Figure 8 is a schematic diagram of the architecture of a control system of a functional component according to an embodiment of the present disclosure. Figure 8 , the control system includes management services and assistance services running on electronic devices equipped with target functional components. Among them, ① means that when any application running on the electronic device calls the target functional component, it will send a corresponding call notification to the management service for the target functional component, so that the management service can determine the usage requirements of any application for the target functional component based on the received call notification. In addition, any application can also send a setting instruction about the usage mode of the target functional component to the management service, such as Figure 8 ② in. The management service can set the usage mode of the target functional component by the application program in response to the setting instruction.
[0097] When the management service determines that at least two applications have usage requirements for the target functional component at the same time, the management service will send a corresponding prompt notification (such as Figure 8 ③ in the figure). The assistance service responds to the prompt notification and displays prompt information used to characterize the usage demand situation. ④ indicates that when the assistance service receives the user's selection operation for the target application, the assistance service sends a notification to the management service to switch the application occupying the target functional component to the target application, so that the management service switches the application occupying the target functional component in response to the notification.
[0098] Fig. 9 900 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure. For example, the electronic device 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0099] Reference Fig. 9 , the electronic device 900 may include one or more of the following components: a processing component 902 , a memory 904 , a power component 906 , a multimedia component 908 , an audio component 910 , an input / output (I / O) interface 912 , a sensor component 914 , and a communication component 916 .
[0100] The processing component 902 generally controls the overall operation of the electronic device 900, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 902 may include one or more modules to facilitate the interaction between the processing component 902 and other components. For example, the processing component 902 may include a multimedia module to facilitate the interaction between the multimedia component 908 and the processing component 902.
[0101] The memory 904 is configured to store various types of data to support operations on the electronic device 900. Examples of such data include instructions for any application or method operating on the electronic device 900, contact data, phone book data, messages, pictures, videos, etc. The memory 904 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0102] The power supply component 906 provides power to the various components of the electronic device 900. The power supply component 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 900.
[0103] The multimedia component 908 includes a screen that provides an output interface between the electronic device 900 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front camera and / or a rear camera. When the electronic device 900 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0104] The audio component 910 is configured to output and / or input audio signals. For example, the audio component 910 includes a microphone (MIC), and when the electronic device 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 904 or sent via the communication component 916. In some embodiments, the audio component 910 also includes a speaker for outputting audio signals.
[0105] I / O interface 912 provides an interface between processing component 902 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.
[0106] The sensor assembly 914 includes one or more sensors for providing various aspects of status assessment for the electronic device 900. For example, the sensor assembly 914 can detect the open / closed state of the electronic device 900, the relative positioning of components, such as the display and keypad of the electronic device 900, and the sensor assembly 914 can also detect the position change of the electronic device 900 or a component of the electronic device 900, the presence or absence of user contact with the electronic device 900, the orientation or acceleration / deceleration of the electronic device 900, and the temperature change of the electronic device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0107] The communication component 916 is configured to facilitate wired or wireless communication between the electronic device 900 and other devices. The electronic device 900 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 916 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0108] In an exemplary embodiment, the electronic device 900 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to execute the method described in any of the above embodiments.
[0109] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 904 including instructions, and the instructions can be executed by a processor 920 of an electronic device 900 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0110] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0111] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A control method for a functional component, characterized in that: Applied to an electronic device equipped with a target functional component, the method comprises: Obtaining usage requirements of the target functional component by various application programs in the electronic device; In the case where at least two applications have usage requirements for the target functional component at the same time, prompt information representing the usage requirements is displayed.
2. The method according to claim 1, characterized in that The display of prompt information for characterizing the usage demand situation includes: Information of a first application occupying the target functional component at the same time is displayed.
3. The method according to claim 2, characterized in that The display of prompt information for characterizing the usage demand situation includes: Displaying information of the first application and information of a second application that has a use demand for the target functional component at the same time and is different from the first application respectively; The display method of the information of the first application is different from that of the information of the second application.
4. The method according to claim 1, characterized in that The display of prompt information for characterizing the usage demand situation includes: Displaying the prompt information as a corresponding abbreviated mark; When a trigger operation for the abbreviated identifier is detected, the usage requirement for the target functional component corresponding to the prompt information is displayed.
5. The method according to claim 1, characterized in that The method further comprises: In response to the user selecting the target application through the prompt information, the application occupying the target functional component is switched to the target application.
6. The method according to claim 1, characterized in that The electronic device runs a management service and an assistance service for the target functional component; The obtaining of the usage requirements of the target functional component by each application in the electronic device includes: determining the usage requirements of any application for the target functional component when the management service receives a notification that any application calls the target functional component; The display of prompt information for characterizing the usage demand situation includes: when the assistance service receives a notification that at least two applications have usage demands for the target functional component at the same time, displaying prompt information for characterizing the usage demand situation.
7. The method according to claim 1, characterized in that The target functional components include a microphone and / or a camera.
8. A control device for a functional component, characterized in that: Applicable to electronic equipment equipped with a target functional component, the device comprises: An acquisition module, used for acquiring usage requirements of the target functional component by various application programs in the electronic device; The display module is used to display prompt information representing the usage demand situation when at least two applications have usage demand for the target functional component at the same time.
9. A control system for a functional component, characterized in that: The control system comprises: A management service, running on an electronic device equipped with a target functional component, is used to obtain usage requirements of the target functional component by various applications running on the electronic device, and send a prompt notification to the assistance service when it is determined that at least two applications have usage requirements for the target functional component at the same time; The assistance service is used to display prompt information representing the usage demand situation in response to the prompt notification.
10. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 7.
11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.