WO2022179248A1 - 桌面插件控制方法及装置、存储介质和电子设备 - Google Patents

桌面插件控制方法及装置、存储介质和电子设备 Download PDF

Info

Publication number
WO2022179248A1
WO2022179248A1 PCT/CN2021/137185 CN2021137185W WO2022179248A1 WO 2022179248 A1 WO2022179248 A1 WO 2022179248A1 CN 2021137185 W CN2021137185 W CN 2021137185W WO 2022179248 A1 WO2022179248 A1 WO 2022179248A1
Authority
WO
WIPO (PCT)
Prior art keywords
desktop plug
desktop
plug
switching
component
Prior art date
Application number
PCT/CN2021/137185
Other languages
English (en)
French (fr)
Inventor
莫博宇
Original Assignee
Oppo广东移动通信有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2022179248A1 publication Critical patent/WO2022179248A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Definitions

  • the present disclosure relates to the technical field of terminal control, and in particular, to a desktop plug-in control method, a desktop plug-in control apparatus, a computer-readable storage medium, and an electronic device.
  • the desktop plug-in can display information and provide some functions, which helps to improve the user's efficiency of using the application, and provides convenience for the user's work and life to a certain extent.
  • desktop plug-ins are usually configured on the desktop or negative screen, and cannot be rendered on other interfaces (such as application interface).
  • other interfaces such as application interface.
  • a method for controlling a desktop plug-in including: when a switching trigger event for the desktop plug-in is detected, switching the desktop plug-in to a floating component; wherein the floating component is displayed in the form of a floating layer On the screen interface, and the data of the floating component comes from the application corresponding to the desktop plug-in.
  • a desktop plug-in control device comprising: a first switching module configured to switch the desktop plug-in to a floating component when a switching trigger event for the desktop plug-in is detected; wherein, The suspension component is displayed on the screen interface in the form of a floating layer, and the data of the suspension component comes from the application corresponding to the desktop plug-in.
  • a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the above-mentioned desktop plug-in control method is implemented.
  • an electronic device comprising a processor; a memory configured to store one or more programs, which, when executed by the processor, cause the processor to implement the above-mentioned The desktop plug-in control method.
  • FIG. 1 shows a schematic diagram of an interactive control manner of a desktop plug-in control solution according to an embodiment of the present disclosure
  • FIG. 2 shows a schematic structural diagram of an electronic device suitable for implementing an embodiment of the present disclosure
  • FIG. 3 schematically shows a flowchart of a desktop plug-in control method according to some embodiments of the present disclosure
  • FIG. 4 schematically shows a flowchart of a processing procedure for determining a designated area in an embodiment of the present disclosure
  • Fig. 5 shows a kind of schematic diagram of human-computer interaction corresponding to the flowchart of Fig. 3;
  • FIG. 6 schematically shows a flowchart of a desktop plug-in control method according to other embodiments of the present disclosure
  • FIG. 7 shows a schematic diagram of human-computer interaction corresponding to steps S62 to S64 in the flowchart of FIG. 6;
  • FIG. 8 shows a schematic diagram of human-computer interaction corresponding to steps S66 to S68 in the flowchart of FIG. 6;
  • FIG. 9 schematically shows a flowchart of a desktop plug-in control method according to further embodiments of the present disclosure.
  • Fig. 10 shows the schematic diagram of human-computer interaction corresponding to the flowchart of Fig. 9;
  • FIG. 11 schematically shows a flowchart of a method for controlling a desktop plug-in according to further embodiments of the present disclosure
  • Fig. 12 shows a schematic diagram of human-computer interaction corresponding to the flowchart of Fig. 11;
  • FIG. 13 schematically shows a block diagram of a desktop plug-in control apparatus according to an exemplary embodiment of the present disclosure
  • FIG. 14 schematically shows a block diagram of a desktop plug-in control apparatus according to another exemplary embodiment of the present disclosure
  • FIG. 15 schematically shows a block diagram of a desktop plug-in control apparatus according to yet another exemplary embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
  • numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure.
  • those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed.
  • well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
  • FIG. 1 shows a schematic diagram of an interactive control manner of a desktop plug-in control solution according to an embodiment of the present disclosure.
  • the desktop plug-in 1001 of the application program exists on the desktop of the electronic device, when the electronic device detects the occurrence of a switching trigger event (referred to as the first switching trigger event) for the desktop plug-in 1001, the desktop plug-in 1001 can be switched to be suspended Component 1002.
  • the first switching trigger event referred to as the first switching trigger event
  • the floating component 1002 When the electronic device detects the occurrence of a switching trigger event (referred to as the second switching trigger event) for the floating component 1002 , the floating component 1002 can be switched back to the desktop plug-in 1001 .
  • a switching trigger event referred to as the second switching trigger event
  • the desktop plug-in 1001 may be a technology in the operating system to facilitate the user to quickly use the application function without entering the application program.
  • the application provides various services that enable the plug-in to be applied, including providing a loading method so that the plug-in can be loaded into the application and network transmission protocol, so as to exchange data with the plug-in.
  • plugins need to depend on the application to function, and stand-alone plugins cannot function properly. In the process of using the desktop plug-in, the application still runs in the background.
  • the desktop plug-in may also be referred to as a desktop part, a desktop component, a desktop widget, a desktop tool, a desktop widget, and the like.
  • the floating component 1002 can be a floating window component, and in the exemplary solution of the present disclosure, it can also be referred to as a floating component for short, which is, for example, a view component provided by the Android operating system. Specifically, it can be generated and generated by a method provided by the Android operating system. added to the screen interface.
  • the floating component 1002 may be displayed on a screen interface in the form of a floating layer, and the screen interface described in the present disclosure may include a desktop, a negative one-screen interface, an application program interface of each application program, and the like.
  • the suspension component 1002 can be displayed on the application program interface, that is, the display layer of the suspension component 1002 can be considered to be above the display layer of the application program interface, or referred to as
  • the display level of the floating component 1002 is higher than the display level of the application interface.
  • the data of the floating component 1002 comes from the application program corresponding to the desktop plug-in 1001 . That is, the floating component 1002 can reflect the information of the application.
  • the data of the floating component 1002 may be consistent with the data of the desktop plug-in 1001, that is, the content displayed and the functions implemented by the floating component 1002 may be consistent with the desktop plug-in 1001.
  • the data of the floating component 1002 can be configured to be less than the data obtained by the desktop plug-in 1001 from the application, that is, the content displayed by the floating component 1002 and/or Implemented less functionality than the desktop plugin 1001.
  • the desktop plug-in 1001 can be used to display the recording timing, and the recording can be started or stopped in response to the user's operation.
  • the generated suspension component 1002 can also display recording timing information, and can start or stop recording in response to a user's operation. In other embodiments of the present disclosure, the generated suspension component 1002 can only display recording timing information, but cannot start or stop recording.
  • the suspension component 1002 may include functions or display effects not possessed by the desktop plug-in 1001 in addition to the content displayed and implemented by the desktop plug-in 1001 , which is not limited in this disclosure. .
  • the desktop plug-in 1001 and the corresponding suspension component 1002 both acquire data from the same application, and the process of acquiring the data will not affect the process of the application.
  • the data generated by the desktop plug-in 1001 in response to the user's operation can be acquired by the application running in the background.
  • the data generated by the floating component 1002 in response to the user's operation can be acquired by an application running in the background.
  • the application can send the data to the desktop plug-in 1001 .
  • the desktop plug-in 1001 is immovable when the desktop is in a non-editing state, that is, when the desktop is in a non-editing state, the position of the desktop plug-in 1001 on the desktop is fixed.
  • the floating component 1002 when the desktop is in a non-editing state, the floating component 1002 can be moved, for example, it can be moved in response to a user's drag operation on the floating component 1002.
  • the suspension component 1002 can be suspended on the desktop icons (eg, various application icons), while the desktop plug-in 1001 cannot be suspended on the desktop icons.
  • the desktop plug-in control method of the present disclosure can be executed by an electronic device capable of installing application programs and generating desktop plug-in 1001 and suspension
  • the devices of component 1002 may also be referred to as terminal devices, terminals, mobile devices, mobile terminals, and the like.
  • electronic devices may include cell phones, tablet computers, personal computers, and the like.
  • the following desktop plug-in control apparatus can be configured in the electronic device.
  • FIG. 2 shows a schematic diagram of an electronic device suitable for use in implementing exemplary embodiments of the present disclosure. It should be noted that the electronic device shown in FIG. 2 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • the electronic device of the present disclosure includes at least a processor and a memory, and the memory is configured to store one or more programs.
  • the processor can implement the desktop plug-in method of the exemplary embodiment of the present disclosure. .
  • the electronic device 200 may include: a processor 210, an internal memory 221, an external memory interface 222, a Universal Serial Bus (USB) interface 230, a charging management module 240, and a power management module 241, battery 242, antenna 1, antenna 2, mobile communication module 250, wireless communication module 260, audio module 270, speaker 271, receiver 272, microphone 273, headphone jack 274, sensor module 280, display screen 290, camera module 291 , an indicator 292, a motor 293, a key 294, a Subscriber Identification Module (SIM) card interface 295, and the like.
  • SIM Subscriber Identification Module
  • the sensor module 280 may include a depth sensor, a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
  • the structures illustrated in the embodiments of the present disclosure do not constitute a specific limitation on the electronic device 200 .
  • the electronic device 200 may include more or less components than shown, or some components may be combined, or some components may be split, or different component arrangements.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (Application Processor, AP), a modem processor, a graphics processor (Graphics Processing Unit, GPU), an image signal processor (Image Signal Processor, ISP), controller, video codec, digital signal processor (Digital Signal Processor, DSP), baseband processor and/or Neural-network Processing Unit (NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • a memory may also be provided in the processor 210 for storing instructions and data.
  • the electronic device 200 can realize the shooting function through the ISP, the camera module 291, the video codec, the GPU, the display screen 290, the application processor, and the like.
  • the electronic device 200 may include one or N camera modules 291 , where N is a positive integer greater than 1. If the electronic device 200 includes N cameras, one of the N cameras is the main camera.
  • Internal memory 221 may be used to store computer executable program code, which includes instructions.
  • the internal memory 221 may include a storage program area and a storage data area.
  • the external memory interface 222 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 200.
  • the present disclosure also provides a computer-readable storage medium.
  • the computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist alone without being assembled into the electronic device.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), fiber optics, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
  • a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • the computer-readable storage medium can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer-readable storage medium may be transmitted using any suitable medium including, but not limited to, wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
  • the computer-readable storage medium carries one or more programs, which, when executed by an electronic device, cause the electronic device to implement the methods described in the following embodiments.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more logical functions for implementing the specified functions executable instructions.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • the units involved in the embodiments of the present disclosure may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • FIG. 3 schematically shows a flowchart of a desktop plug-in control method according to some embodiments of the present disclosure.
  • the desktop plug-in control methods of these embodiments may include the following steps:
  • the switching triggering event for the desktop plug-in is a switching triggering operation for the desktop plug-in.
  • the switching triggering operation for the desktop plug-in may include, but is not limited to, a single-click operation, a double-click operation, a hovering operation, a sliding operation, a long-pressing operation and other touch-screen operations for the desktop plug-in.
  • the switching trigger operation may also be a user's shaking operation of the electronic device, a device rotation operation, etc.
  • These operations can be detected by an inertial device (eg, a gyroscope) equipped in the electronic device, for example.
  • an inertial device eg, a gyroscope
  • the desktop plug-in can be switched to a floating component. After that, even if the screen interface changes, the position of the floating component on the screen will not change, and it will not be covered by other interface elements.
  • the suspension component can be configured to be displayed in a designated area on the application interface in the form of a floating layer. That is, the electronic device can display the floating component in a designated area on the application program interface in response to a display operation of an application program interface.
  • the display operation of the application program interface includes the start-up operation of the application program. It can be understood that, when the application program is started, the screen displays the application program interface. However, in the case that the application program itself is already running, the operation of invoking the application program interface to be displayed on the screen also belongs to the display operation of the application program interface.
  • the designated area on the application program interface may be the default area, for example, the default area may be the area in the upper right corner of the application program interface, that is, the area in the upper right corner of the screen interface.
  • the default area can be set by the user or a fixed area set by the system before leaving the factory. It should be noted that the default area on the application interface of different applications can be the same or different.
  • the designated area on the application program interface may be an area determined based on historical usage.
  • the process of determining the designated area may be a pre-executed process, and the designated area on the application program interface of different applications is usually different.
  • an area on the application program interface with the least degree of user attention may be determined in advance according to the user's historical operations on the application program interface, as the designated area on the application program interface.
  • FIG. 4 schematically shows a flowchart of a processing procedure for determining a designated area in an embodiment of the present disclosure.
  • step S402 the user's historical operation data on the application program interface is acquired.
  • the historical operation data may be all operation data of the user for the application program interface in history, wherein the operation data may include data of the user clicking on the application program interface, and specifically, the operation data may include the user's operation data for the application program interface Clicks in different regions.
  • the historical operation data may be operation data for the application program interface within a current predetermined time period (eg, one week, one month, etc.), which is not limited in the present disclosure.
  • step S404 based on the historical operation data, an area on the application program interface with the least degree of user attention is determined as a designated area.
  • the number of clicks may be used to determine the degree of attention. Specifically, the more the number of clicks in an area, the greater the degree of attention; the less the number of clicks, the lower the degree of attention.
  • the application program interface can be divided into blocks in advance to obtain various sub-interfaces, and the size of each sub-interface is the same as that of the suspension component.
  • the screen area corresponding to the sub-interface with the least number of clicks may be determined as the area with the least degree of user attention, that is, the designated area.
  • the present disclosure takes the number of clicks as an example to describe the degree of attention.
  • the degree of attention can also be measured by parameters such as the dwell time of the interface, which is not limited in the present disclosure.
  • the user when determining the user's attention, the user may only be the holder of the electronic device, that is, a user. In addition, the user may also be all users or some users who use the application, which is not limited in the present disclosure.
  • the electronic device can respond to the position adjustment operation for the floating component,
  • the display position of the component can be adjusted so that the user can decide the display position of the floating component.
  • the position adjustment operation may be, for example, a drag operation for the floating component.
  • the size of the floating layer component is configured to be smaller than the size of the desktop plug-in.
  • the floating component may be configured to be displayed with a predetermined transparency.
  • the predetermined transparency may be, for example, 0.5, 0.8, and the like.
  • the floating component can also be set to have adjustable transparency, so that the user can set the transparency according to their own preferences.
  • the electronic device may also switch the floating component back to the desktop plug-in.
  • the switching triggering operation for the floating component may include, but is not limited to, a single-click operation, a double-click operation, a hovering operation, a sliding operation, a long-pressing operation and other touch-screen operations for a desktop plug-in.
  • the switching trigger operation may also be a user's shaking operation of the electronic device, a device rotating operation, or the like.
  • the switched back desktop plugin will be displayed in the desktop area where the desktop plugin was originally configured. If the desktop area is occupied, the electronic device may automatically select an area with sufficient size on the desktop, and configure the switched-back desktop plug-in to display in the area.
  • desktop plug-in switched back in step S34 and the desktop plug-in in step S32 are the same desktop plug-in.
  • the user can long press the desktop plug-in 51 to switch the desktop plug-in 51 to the floating component 52 .
  • the embodiment of the present disclosure does not limit the time of the long press. For example, after the long press for 3 seconds, the electronic device switches the desktop plug-in 51 to the suspension component 52 .
  • the user can long press the suspension component 52 to switch the suspension component 52 back to the desktop plugin 51 .
  • the long-pressing operation is only an example of the switching triggering operation, and for the solution exemplarily depicted in FIG. 5 , the switching triggering operation may also be a double-click operation, a sliding operation, or the like.
  • the above switching triggering operation may also be a switching determination operation for the switching control.
  • the electronic device can switch the desktop plug-in to a floating component in response to the switching determination operation of the switching control of the desktop plug-in.
  • the switching control of the desktop plug-in can be configured on the desktop plug-in, that is, there is a switching control (button) on the displayed desktop plug-in, and the user can click the switching control to realize the operation of switching the desktop plug-in to a floating component.
  • the electronic device may switch the floating component back to the desktop plug-in in response to the switching determination operation of the switching control of the floating component.
  • the switching control of the floating component can be configured on the floating component, that is, there is a switching control (button) on the displayed floating component, and the user can click the switching control to realize the operation of switching the floating component back to the desktop plug-in.
  • the toggle control may also be configured in the toggle menu. These embodiments will be described below with reference to FIGS. 6 to 8 .
  • the desktop plug-in control method of other embodiments of the present disclosure may include the following steps:
  • the menu evoking operation for the desktop plug-in may include, but is not limited to, a single-click operation, a double-click operation, a hovering operation, a sliding operation, a long-pressing operation and other touch-screen operations for the desktop plug-in.
  • the menu evoking operation may also be a user's shaking operation of the electronic device, a device rotation operation, etc. These operations can be detected by an inertial device (eg, a gyroscope) equipped in the electronic device, for example.
  • the evoked toggle menu can be configured to be displayed around the desktop plug-in, and the present disclosure does not limit the transparency, size, shape, etc. of the toggle menu.
  • the switching determination operation may be a single-click operation for the switching control, however, it is not limited to this, and may also be any one of a double-click operation, a hovering operation, a sliding operation, a long-pressing operation, and the like.
  • the desktop plug-in can be switched to a floating component. After that, even if the screen interface changes, the position of the floating component on the screen will not occur. changes without being overwritten by other interface elements.
  • the suspension component can be configured to be displayed in a designated area on the application interface in the form of a floating layer. That is, the electronic device can display the floating component in a designated area on the application program interface in response to a display operation of an application program interface.
  • the display operation of the application program interface includes the start-up operation of the application program. It can be understood that, when the application program is started, the screen displays the application program interface. However, in the case that the application program itself is already running, the operation of invoking the application program interface to be displayed on the screen also belongs to the display operation of the application program interface.
  • the designated area on the application program interface may be the default area, for example, the default area may be the area in the upper right corner of the application program interface, that is, the area in the upper right corner of the screen interface.
  • the default area can be set by the user or a fixed area set by the system before leaving the factory. It should be noted that the default area on the application interface of different applications can be the same or different.
  • the designated area on the application program interface may be an area determined based on historical usage.
  • the process of determining the designated area may be a pre-executed process, and the designated area on the application program interface of different applications is usually different.
  • an area on the application program interface with the least degree of user attention may be determined in advance according to the user's historical operations on the application program interface, as the designated area on the application program interface. Refer to FIG. 4 for details, and details are not repeated here.
  • the electronic device can respond to the position adjustment operation for the floating component,
  • the display position of the component can be adjusted so that the user can decide the display position of the floating component.
  • the position adjustment operation may be, for example, a drag operation for the floating component.
  • the size of the floating layer component is configured to be smaller than the size of the desktop plug-in.
  • the floating component may be configured to be displayed with a predetermined transparency.
  • the predetermined transparency may be, for example, 0.5, 0.8, and the like.
  • the floating component can also be set to have adjustable transparency, so that the user can set the transparency according to their own preferences.
  • the user can long press the desktop plug-in 71 to invoke the switching menu 700 of the desktop plug-in 71 .
  • the switch menu 700 includes at least switch controls. Next, the user can click the switching control (the control corresponding to the “floating element” in the figure), thus, the desktop plug-in 71 can be switched to the floating component 72 .
  • the long-press operation is only an example of the menu evoking operation
  • the single-click operation is also only an example of the switching determination operation.
  • these operations can also be a double-click operation and a sliding operation. Wait.
  • the electronic device may also switch the floating component back to the desktop plug-in.
  • the menu evoking operation for the floating component may include, but is not limited to, a single-click operation, a double-click operation, a hovering operation, a sliding operation, a long-pressing operation, and other touch-screen operations for the floating component.
  • the menu evoking operation may also be a user's shaking operation of the electronic device, a device rotation operation, etc. These operations can be detected by an inertial device (eg, a gyroscope) equipped in the electronic device, for example.
  • the evoked toggle menu can be configured to be displayed around the floating component, and the present disclosure does not limit the transparency, size, shape, etc. of the toggle menu.
  • the switching determination operation may be a single-click operation for the switching control, however, it is not limited to this, and may also be any one of a double-click operation, a hovering operation, a sliding operation, a long-pressing operation, and the like.
  • the floating component can be switched to the desktop plug-in.
  • the switched back desktop plugin will be displayed in the desktop area where the desktop plugin was originally configured. If the desktop area is occupied, the electronic device may automatically select an area with sufficient size on the desktop, and configure the switched-back desktop plug-in to display in the area.
  • step S68 the desktop plug-in switched back in step S68 and the desktop plug-in in step S62 are the same desktop plug-in.
  • the process of step S62 can be returned.
  • the user can long press the floating component 81 to invoke the switching menu 800 of the floating component 81 .
  • the switch menu 800 includes at least switch controls. Next, the user can click the switch control (the control corresponding to “plug-in” is shown in the figure), thus, the floating component 81 can be switched to the desktop plug-in 82 .
  • the long-press operation is only an example of the menu evoking operation
  • the single-click operation is also only an example of the switch determination operation.
  • these operations can also be a double-click operation, a sliding operation Wait.
  • FIG. 9 schematically shows a flowchart of a method for controlling a desktop plug-in according to further embodiments of the present disclosure.
  • the desktop plug-in control methods of these embodiments may include the following steps:
  • the switching trigger event for the desktop plug-in is the startup operation of the desktop plug-in.
  • the startup operation may be different.
  • the start operation may be an operation to start recording.
  • the starting operation may be an operation of starting to play music, or an operation of pausing. It can be understood by those skilled in the art that the operations that enable the desktop plug-in to start to perform the corresponding task of the application program all belong to the start-up operation of the desktop plug-in.
  • the desktop plug-in can be switched to a floating component. After that, even if the screen interface changes, the position of the floating component on the screen will not change, and it will not be covered by other interface elements.
  • the suspension component can be configured to be displayed in a designated area on the application interface in the form of a floating layer. That is, the electronic device can display the floating component in a designated area on the application program interface in response to a display operation of an application program interface.
  • the display operation of the application program interface includes the start-up operation of the application program. It can be understood that, when the application program is started, the screen displays the application program interface. However, in the case that the application program itself is already running, the operation of invoking the application program interface to be displayed on the screen also belongs to the display operation of the application program interface.
  • the designated area on the application program interface may be the default area, for example, the default area may be the area in the upper right corner of the application program interface, that is, the area in the upper right corner of the screen interface.
  • the default area can be set by the user or a fixed area set by the system before leaving the factory. It should be noted that the default area on the application interface of different applications can be the same or different.
  • the designated area on the application program interface may be an area determined based on historical usage.
  • the process of determining the designated area may be a pre-executed process, and the designated area on the application program interface of different applications is usually different.
  • an area on the application program interface with the least degree of user attention may be determined in advance according to the user's historical operations on the application program interface, as the designated area on the application program interface. Refer to FIG. 4 for details, and details are not repeated here.
  • the electronic device can respond to the position adjustment operation for the floating component,
  • the display position of the component can be adjusted so that the user can decide the display position of the floating component.
  • the position adjustment operation may be, for example, a drag operation for the floating component.
  • the size of the floating layer component is configured to be smaller than the size of the desktop plug-in.
  • the floating component may be configured to be displayed with a predetermined transparency.
  • the predetermined transparency may be, for example, 0.5, 0.8, and the like.
  • the floating component can also be set to have adjustable transparency, so that the user can set the transparency according to their own preferences.
  • the electronic device may also switch the floating component back to the desktop plug-in.
  • the task performed by the desktop plug-in is an automatically ended task, for example, a scheduled task.
  • the electronic device can switch the floating component back to the desktop plug-in.
  • the task performed by the desktop plug-in needs to be completed in response to the user's operation, for example, a recording task, a music playing task, and the like.
  • the electronic device can switch the floating component back to the desktop in response to the task end operation.
  • the switched back desktop plugin will be displayed in the desktop area where the desktop plugin was originally configured. If the desktop area is occupied, the electronic device may automatically select an area with sufficient size on the desktop, and configure the switched-back desktop plug-in to display in the area.
  • desktop plug-in switched back in step S94 and the desktop plug-in in step S92 are the same desktop plug-in.
  • FIG. 10 still taking the application corresponding to the desktop plug-in as a recording application as an example, the control process of the desktop plug-in shown in FIG. 9 is exemplarily described.
  • the user can click the button to start recording on the desktop plug-in 101 to switch the desktop plug-in 101 to the floating component 102 . Subsequently, when the user clicks the button of the recording completion on the floating component 102 , the electronic device can switch the floating component 102 back to the desktop plug-in 101 .
  • the switching trigger event may also be: the desktop plug-in is started and a display operation of the application program interface is detected. Specifically, when the desktop plug-in is activated, the electronic device responds to a display operation of an application program interface, and switches the desktop plug-in to a floating component, so that the floating component is displayed on the application program interface in the form of a floating layer.
  • the application program corresponding to the application program interface may be an application program other than the application program corresponding to the desktop plug-in, or may be an application program corresponding to the desktop plug-in, which is not limited in the present disclosure.
  • the desktop plug-in control methods of these embodiments may include the following steps:
  • the startup operation may be different.
  • the start operation may be an operation to start recording.
  • the starting operation may be the operation of starting to play the music, or the operation of suspending the operation.
  • the operation of enabling the desktop plug-in to start to perform the corresponding task of the application is both an operation. Belongs to the launch action of the desktop plug-in.
  • the display operation of the application program interface includes the start-up operation of the application program. It can be understood that when the application program is started, the screen displays the application program interface. However, in the case that the application program itself is already running, the operation of invoking the application program interface to be displayed on the screen also belongs to the display operation of the application program interface.
  • the desktop plug-in can be switched to the floating component. After that, even if the screen interface changes, the position of the floating component on the screen will not change, and it will not be covered by other interface elements.
  • the floating component is displayed in a designated area on the application program interface.
  • the designated area on the application program interface may be the default area, for example, the default area may be the area in the upper right corner of the application program interface, that is, the area in the upper right corner of the screen interface.
  • the default area can be set by the user or a fixed area set by the system before leaving the factory. It should be noted that the default area on the application interface of different applications can be the same or different.
  • the designated area on the application program interface may be an area determined based on historical usage.
  • the process of determining the designated area may be a pre-executed process, and the designated area on the application program interface of different applications is usually different.
  • an area on the application program interface with the least degree of user attention may be determined in advance according to the user's historical operations on the application program interface, as the designated area on the application program interface. Refer to FIG. 4 for details, and details are not repeated here.
  • the electronic device can respond to the position adjustment operation for the floating component,
  • the display position of the component can be adjusted so that the user can decide the display position of the floating component.
  • the position adjustment operation may be, for example, a drag operation for the floating component.
  • the size of the floating layer component is configured to be smaller than the size of the desktop plug-in.
  • the floating component may be configured to be displayed with a predetermined transparency.
  • the predetermined transparency may be, for example, 0.5, 0.8, and the like.
  • the floating component can also be set to have adjustable transparency, so that the user can set the transparency according to their own preferences.
  • the task performed by the desktop plug-in is an automatically ended task, for example, a scheduled task.
  • the electronic device can switch the floating component back to the desktop plug-in.
  • the task performed by the desktop plug-in needs to be completed in response to the user's operation, for example, a recording task, a music playing task, and the like.
  • the electronic device can switch the floating component back to the desktop in response to the task end operation.
  • the switched back desktop plugin will be displayed in the desktop area where the desktop plugin was originally configured. If the desktop area is occupied, the electronic device may automatically select an area with sufficient size on the desktop, and configure the switched-back desktop plug-in to display in the area.
  • desktop plug-in switched back in step S116 and the desktop plug-in in step S112 are the same desktop plug-in.
  • FIG. 12 still taking the application corresponding to the desktop plug-in as a recording application as an example, the control process of the desktop plug-in shown in FIG. 11 is exemplarily described.
  • the user can click the button to start recording on the desktop plug-in 121, and at this time, the desktop plug-in 121 remains unchanged.
  • the electronic device switches the desktop plug-in 121 to the floating component 122 and displays it on the application interface of the photo album application in the form of a floating layer.
  • the application program of the photo album application The interface includes a plurality of photos, and the floating component 122 can be displayed on the photos in the form of a floating layer.
  • the electronic device can switch the floating component 122 back to the desktop plug-in 111 .
  • the screen interface is the application program interface of the album application and the user is using it
  • the floating component 122 will not be displayed on the screen interface, and the user's perception is the floating component. 122 disappears in the current screen interface. In this case, if the user controls the electronic device to return to the desktop, the desktop plug-in 111 can be viewed on the desktop.
  • the floating component 122 when the floating component 122 is displayed on the album application interface in the form of a floating layer, if the user exits the album application without operating the recording state of the floating component 122, the floating component 122 does not switch, and Keep the recording status unchanged.
  • the present exemplary embodiment also provides a desktop plug-in control apparatus.
  • FIG. 13 schematically shows a block diagram of a desktop plug-in control apparatus according to an exemplary embodiment of the present disclosure.
  • the desktop plug-in control apparatus 13 may include a first switching module 131.
  • the first switching module 131 can be configured to switch the desktop plug-in to a floating component when detecting the occurrence of a switching trigger event for the desktop plug-in; wherein the floating component is displayed on the screen interface in the form of a floating layer, and is suspended in the form of a floating layer.
  • the data of the component comes from the application corresponding to the desktop plug-in.
  • the first switching module 131 may be further configured to perform: switching the desktop plug-in to a floating component in response to a switching trigger operation for the desktop plug-in.
  • the desktop plug-in control apparatus 14 may further include a second switching module 141 .
  • the second switching module 141 may be configured to switch the floating component back to the desktop plug-in in response to a switching trigger operation for the floating component after switching the desktop plug-in to the floating component.
  • the first switching module 131 may be further configured to perform: switching the desktop plug-in to a floating component in response to a switching determination operation for the switching control of the desktop plug-in.
  • the switching control of the desktop plug-in is configured in the switching menu of the desktop plug-in.
  • the first switching module 131 may be further configured to perform: in response to the menu evoking operation for the desktop plug-in, evoke the switching menu of the desktop plug-in, so as to respond to the switching determination operation of the switching control for the desktop plug-in, the desktop plug-in Switch to floating component.
  • the second switching module 141 may be further configured to perform: switching the floating component back to the desktop plug-in in response to a switching determination operation for the switching control of the floating component.
  • the switching control of the floating component is configured in the switching menu of the floating component.
  • the second switching module 141 may also be configured to perform: in response to the menu evoking operation for the floating component, evoke the switching menu of the floating component, so as to respond to the switching determination operation of the switching control for the floating component, switch the floating component Switch back to the desktop plugin.
  • the first switching module 131 may be further configured to perform: switching the desktop plug-in to a floating component in response to a start-up operation of the desktop plug-in.
  • the first switching module 131 may be further configured to perform: when the desktop plug-in is activated, in response to a display operation of an application program interface, switch the desktop plug-in to a floating component, so that the floating component can be The form of the floating layer is displayed on the application interface.
  • the second switching module 141 may be further configured to perform: when the task performed by the desktop plug-in ends, switch the floating component back to the desktop plug-in.
  • the first switching module 131 may be further configured to perform: after the desktop plug-in is switched to a floating component, in response to a display operation of an application program interface, displaying the floating component on the application program interface specific area.
  • the desktop plug-in control apparatus 15 may further include a designated area determination module 151 .
  • the designated area determination module 151 may be configured to determine the area on the application program interface with the least attention of the user according to the user's historical operations on the application program interface in advance, as the designated area on the application program interface.
  • the first switching module 131 may be further configured to perform: after displaying the floating component in a designated area on the application program interface, in response to a position adjustment operation for the floating component, display the floating component position to adjust.
  • the size of the suspension component is configured to be smaller than the size of the desktop plug-in.
  • the suspension component is configured to be displayed with a predetermined transparency, or configured to be adjustable in transparency.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a terminal device, or a network device, etc.
  • modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.

Landscapes

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

Abstract

一种桌面插件控制方法、桌面插件控制装置、计算机可读存储介质和电子设备,涉及终端控制技术领域。该桌面插件控制方法包括:当检测到针对桌面插件(1001)的切换触发事件发生时,将桌面插件(1001)切换为悬浮组件(1002);其中,悬浮组件(1002)以浮层的形式显示在屏幕界面上,并且悬浮组件(1002)的数据来源于桌面插件(1001)对应的应用程序。该方法可以将桌面插件切换为悬浮组件,以便通过悬浮组件在任意屏幕界面上呈现桌面插件对应的应用程序的信息。

Description

桌面插件控制方法及装置、存储介质和电子设备
相关申请的交叉引用
本申请要求于2021年02月24日提交的申请号为202110209205.0、名称为“桌面插件控制方法及装置、存储介质和电子设备”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。
技术领域
本公开涉及终端控制技术领域,具体而言,涉及一种桌面插件控制方法、桌面插件控制装置、计算机可读存储介质和电子设备。
背景技术
作为应用程序的一种快捷使用方式,桌面插件可以显示信息并提供一些功能,有助于提高应用程序的用户使用效率,在一定程度上为用户的工作和生活提供了便利。
目前,桌面插件通常配置在桌面或负一屏,而在其他界面(如应用程序界面)上无法呈现。在用户想要关注相关应用程序的信息时,需要退回桌面或负一屏通过桌面插件进行查看,或者打开应用程序进行查看,操作不便利。
发明内容
根据本公开的第一方面,提供了一种桌面插件控制方法,包括:当检测到针对桌面插件的切换触发事件发生时,将桌面插件切换为悬浮组件;其中,悬浮组件以浮层的形式显示在屏幕界面上,并且悬浮组件的数据来源于桌面插件对应的应用程序。
根据本公开的第二方面,提供了一种桌面插件控制装置,包括:第一切换模块,被配置为当检测到针对桌面插件的切换触发事件发生时,将桌面插件切换为悬浮组件;其中,悬浮组件以浮层的形式显示在屏幕界面上,并且悬浮组件的数据来源于桌面插件对应的应用程序。
根据本公开的第三方面,提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的桌面插件控制方法。
根据本公开的第四方面,提供了一种电子设备,包括处理器;存储器,被配置为存储一个或多个程序,当一个或多个程序被处理器执行时,使得所述处理器实现上述的桌面插件控制方法。
附图说明
图1示出了本公开实施例的桌面插件控制方案的交互控制方式的示意图;
图2示出了适于用来实现本公开实施例的电子设备的结构示意图;
图3示意性示出了本公开一些实施例的桌面插件控制方法的流程图;
图4示意性示出了本公开实施例中确定指定区域的一种处理过程的流程图;
图5示出了与图3流程图对应的一种人机交互示意图;
图6示意性示出了本公开另一些实施例的桌面插件控制方法的流程图;
图7示出了与图6流程图中步骤S62至步骤S64对应的人机交互示意图;
图8示出了与图6流程图中步骤S66至步骤S68对应的人机交互示意图;
图9示意性示出了本公开再一些实施例的桌面插件控制方法的流程图;
图10示出了与图9流程图对应的人机交互示意图;
图11示意性示出了本公开又一些实施例的桌面插件控制方法的流程图;
图12示出了与图11流程图对应的人机交互示意图;
图13示意性示出了根据本公开示例性实施方式的桌面插件控制装置的方框图;
图14示意性示出了根据本公开另一示例性实施方式的桌面插件控制装置的方框图;
图15示意性示出了根据本公开又一示例性实施方式的桌面插件控制装置的方框图。
具体实施方式
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。
附图中所示的流程图仅是示例性说明,不是必须包括所有的步骤。例如,有的步骤还可以分解,而有的步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。另外,下面所有的术语“第一”、“第二”仅是为了区分的目的,不应作为本公开内容的限制。
图1示出了本公开实施例的桌面插件控制方案的交互控制方式的示意图。
在电子设备的桌面上存在应用程序的桌面插件1001的情况下,当电子设备检测到针对桌面插件1001的切换触发事件(记为第一切换触发事件)发生时,可以将桌面插件1001切换为悬浮组件1002。
当电子设备检测到针对悬浮组件1002的切换触发事件(记为第二切换触发事件)发生时,可以将悬浮组件1002切换回桌面插件1001。
针对桌面插件1001,可以是操作***中为了方便用户在不进入应用程序的情况下,快速使用应用功能的技术。应用程序提供使插件能够应用的各项服务,其中包括提供加载方式,使插件可以加载到应用程序和网络传输协议中,从而和插件进行数据交换。通常,插件需要依赖于应用程序才能发挥自身功能,单独的插件无法正常运行。在使用桌面插件的过程中,应用程序依然在后台运行。
另外,在不同的场景或产品中,桌面插件又可被称为桌面部件、桌面组件、桌面小组件、桌面工具、桌面小工具等。
针对悬浮组件1002,可以是浮窗组件,在本公开示例性方案中,还可以简称为浮件,其例如是安卓操作***提供的一个视图组件,具体可以通过安卓操作***提供的方法而生成并添加于屏幕界面上。
一方面,悬浮组件1002可以以浮层的形式显示在屏幕界面上,本公开所述的屏幕界面可以包括桌面、负一屏界面、各应用程序的应用程序界面等。
由此,在电子设备上安装的应用程序运行时,悬浮组件1002可以显示在应用程序界面上,即,可以认为悬浮组件1002的显示图层在应用程序界面的显示图层之上,或称为悬浮组件1002的显示层级高于应用程序界面的显示层级。
另一方面,该悬浮组件1002的数据来源于桌面插件1001对应的应用程序。也就是说,悬浮组件1002可以反映出该应用程序的信息。
应当注意的是,悬浮组件1002的数据可以与桌面插件1001的数据一致,即,悬浮组 件1002所展现的内容及实现的功能可以与桌面插件1001一致。另外,为了减少悬浮组件1002的尺寸以避免遮挡屏幕界面,可以将悬浮组件1002的数据配置为少于桌面插件1001从应用程序获取的数据,也就是说,悬浮组件1002所展现的内容和/或实现的功能少于桌面插件1001。
以录音应用程序为例,可以通过桌面插件1001实现录音计时的展示,并能够响应用户的操作开启或停止录音。在本公开一些实施例中,生成的悬浮组件1002也可以显示出录音计时的信息,并能够响应用户的操作开启或停止录音。而在本公开另一些实施例中,生成的悬浮组件1002仅能够显示出录音计时的信息,而不能开启或停止录音。
此外,在本公开另一些实施例中,悬浮组件1002除包含桌面插件1001所展现的内容及实现的功能外,还可以包含桌面插件1001不具有的功能或展示效果,本公开对此不做限制。
需要说明的是,桌面插件1001和对应的悬浮组件1002均从同一应用程序中获取数据,获取数据的过程不会影响该应用程序的进程。
另外,桌面插件1001响应用户的操作而产生的数据,可以由后台运行的应用程序获取,当桌面插件1001切换为悬浮组件1002时,应用程序又可以将这些数据发送给悬浮组件1002。
类似地,悬浮组件1002响应用户的操作而产生的数据,可以由后台运行的应用程序获取,当悬浮组件1002切换为桌面插件1001时,应用程序又可以将这些数据发送给桌面插件1001。
应当注意的是,通常,桌面插件1001在桌面处于非编辑状态下是不可移动的,也就是说,在桌面处于非编辑状态下,桌面插件1001在桌面上的位置是固定的。而针对悬浮组件1002,在桌面处于非编辑状态时,悬浮组件1002是可以移动的,例如,可以响应用户针对悬浮组件1002的拖拽操作进行移动。
此外,在屏幕界面为桌面的情况下,悬浮组件1002可以悬浮于桌面图标(如各应用程序图标)上,而桌面插件1001不能悬浮于桌面图标。
在对本公开示例性桌面插件控制方法的详细过程进行说明之前,需要强调的是,本公开的桌面插件控制方法可以由电子设备执行,该电子设备是能够安装应用程序并能够生成桌面插件1001和悬浮组件1002的设备,又可被称为终端设备、终端、移动设备、移动终端等。例如,电子设备可以包括手机、平板电脑、个人计算机等。
相应的,下述桌面插件控制装置可以配置在电子设备中。
图2示出了适于用来实现本公开示例性实施方式的电子设备的示意图。需要说明的是,图2示出的电子设备仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。
本公开的电子设备至少包括处理器和存储器,存储器被配置为存储一个或多个程序,当一个或多个程序被处理器执行时,使得处理器可以实现本公开示例性实施方式的桌面插件方法。
具体的,如图2所示,电子设备200可以包括:处理器210、内部存储器221、外部存储器接口222、通用串行总线(Universal Serial Bus,USB)接口230、充电管理模块240、电源管理模块241、电池242、天线1、天线2、移动通信模块250、无线通信模块260、音频模块270、扬声器271、受话器272、麦克风273、耳机接口274、传感器模块280、显示屏290、摄像模组291、指示器292、马达293、按键294以及用户标识模块(Subscriber Identification Module,SIM)卡接口295等。其中传感器模块280可以包括深度传感器、压力传感器、陀螺仪传感器、气压传感器、磁传感器、加速度传感器、距离传感器、接近光传感器、指纹传感器、温度传感器、触摸传感器、环境光传感器及骨传导传感器等。
可以理解的是,本公开实施例示意的结构并不构成对电子设备200的具体限定。在本公开另一些实施例中,电子设备200可以包括比图示更多或更少的部件,或者组合某些部 件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件、软件或软件和硬件的组合实现。
处理器210可以包括一个或多个处理单元,例如:处理器210可以包括应用处理器(Application Processor,AP)、调制解调处理器、图形处理器(Graphics Processing Unit,GPU)、图像信号处理器(Image Signal Processor,ISP)、控制器、视频编解码器、数字信号处理器(Digital Signal Processor,DSP)、基带处理器和/或神经网络处理器(Neural-network Processing Unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。另外,处理器210中还可以设置存储器,用于存储指令和数据。
电子设备200可以通过ISP、摄像模组291、视频编解码器、GPU、显示屏290及应用处理器等实现拍摄功能。在一些实施例中,电子设备200可以包括1个或N个摄像模组291,N为大于1的正整数,若电子设备200包括N个摄像头,N个摄像头中有一个是主摄像头。
内部存储器221可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器221可以包括存储程序区和存储数据区。外部存储器接口222可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备200的存储能力。
本公开还提供了一种计算机可读存储介质,该计算机可读存储介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的***、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本公开中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行***、装置或者器件使用或者与其结合使用。
计算机可读存储介质可以发送、传播或者传输用于由指令执行***、装置或者器件使用或者与其结合使用的程序。计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。
计算机可读存储介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现如下述实施例中所述的方法。
附图中的流程图和框图,图示了按照本公开各种实施例的***、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的***来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本公开实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。
图3示意性示出了本公开一些实施例的桌面插件控制方法的流程图。参考图3,这些实施例的桌面插件控制方法可以包括以下步骤:
S32.响应针对桌面插件的切换触发操作,将桌面插件切换为悬浮组件。
在本公开的这些实施例中,针对桌面插件的切换触发事件为针对桌面插件的切换触发操作。
本公开一些实施例中针对桌面插件的切换触发操作可以包括但不限于针对桌面插件的单击操作、双击操作、悬停操作、滑动操作、长按操作等触屏操作。
此外,为了增加便利性,切换触发操作还可以是用户对电子设备的摇动操作、设备旋转操作等,这些操作例如可以通过电子设备中配备的惯性装置(例如陀螺仪)检测出。
在电子设备检测出针对桌面插件存在切换触发操作时,可以将该桌面插件切换为悬浮组件。此后,即使屏幕界面发生变化,该悬浮组件在屏幕上的位置也不会发生变化,且不会被其他界面元素覆盖。
在将桌面插件切换为悬浮组件之后,在屏幕显示应用程序对应的应用程序界面时,悬浮组件可以被配置为以浮层的形式显示在该应用程序界面上的指定区域。也就是说,电子设备可以响应一应用程序界面的显示操作,将悬浮组件显示在应用程序界面上的指定区域。
需要说明的是,应用程序界面的显示操作包括应用程序的启动操作,可以理解的是,在应用程序启动时,屏幕显示应用程序界面。然而,在应用程序本身已处于运行的情况下,调取应用程序界面显示于屏幕的操作也属于应用程序界面的显示操作。
根据本公开的一个实施例,应用程序界面上的指定区域可以是默认区域,例如,默认区域可以是应用程序界面右上角的区域,即屏幕界面右上角的区域。默认区域可以由用户设置或是***出厂前设置的固定区域。需要注意的是,不同应用程序的应用程序界面上的默认区域可以相同,也可以不相同。
根据本公开的另一个实施例,应用程序界面上的指定区域可以基于历史使用情况而确定出的区域。在这种情况下,确定指定区域的过程可以是预先执行的过程,并且不同应用程序的应用程序界面上的指定区域通常有所区别。
具体的,可以预先根据用户针对应用程序界面的历史操作,确定应用程序界面上用户关注度最小的区域,作为应用程序界面上的指定区域。
图4示意性示出了本公开实施例中确定指定区域的一种处理过程的流程图。
在步骤S402中,获取用户针对应用程序界面的历史操作数据。
在一个实施例中,历史操作数据可以是用户历史上针对该应用程序界面的所有操作数据,其中,操作数据可以包括用户点击应用程序界面的数据,具体的,操作数据可以包括用户针对应用程序界面不同区域的点击次数。在另一个实施例中,历史操作数据可以是距当前预定时间段(例如,一周、一个月等)内针对应用程序界面的操作数据,本公开对此不做限制。
在步骤S404中,基于历史操作数据,确定应用程序界面上用户关注度最小的区域,作为指定区域。
本公开实施例可以采用点击次数来确定关注度,具体的,一个区域点击次数越多,则关注度越大;点击次数越少,则关注度越小。
预先可以对应用程序界面进行分块,以得到各子界面,每个子界面的尺寸与悬浮组件的尺寸相同。确定各子界面的点击次数,可以将点击次数最少的子界面对应的屏幕区域确定为用户关注度最小的区域,即指定区域。
需要说明的是,一方面,本公开以点击次数为例对关注度进行说明,然而,关注度还可以例如采用界面的停留时间等参数衡量,本公开对此不做限制。另一方面,确定用户关注度时,用户可以仅是该电子设备的持有者,也就是说,是一个用户。另外,用户还可以是使用该应用程序的所有用户或部分用户,本公开对此不做限制。
此外,无论在将悬浮组件显示在应用程序界面上的指定区域后,还是在将桌面插件切换为悬浮组件且屏幕界面仍为桌面的情况,电子设备可以响应针对悬浮组件的位置调整操作,对悬浮组件的显示位置进行调整,以便用户自行决定悬浮组件的显示位置。其中,位置调整操作可以例如是针对悬浮组件的拖拽操作。
为了减轻浮层状态下的悬浮组件遮挡屏幕界面的程度,通常,浮层组件的尺寸被配置 为小于桌面插件的尺寸。
为了进一步减轻悬浮组件可能遮挡屏幕界面的程度,悬浮组件可以被配置为按预定透明度显示。以透明度参数范围为0至1的数值为例,该预定透明度可以例如为0.5、0.8等。另外,悬浮组件还可以被设置为透明度可调,以便由用户根据喜好自行设置透明度。
在将桌面插件切换为悬浮组件之后,电子设备还可以将悬浮组件切换回桌面插件。
S34.响应针对悬浮组件的切换触发操作,将悬浮组件切换为桌面插件。
类似地,本公开一些实施例中针对悬浮组件的切换触发操作可以包括但不限于针对桌面插件的单击操作、双击操作、悬停操作、滑动操作、长按操作等触屏操作。此外,为了增加便利性,切换触发操作还可以是用户对电子设备的摇动操作、设备旋转操作等。
应当注意的是,切换回的桌面插件会显示在该桌面插件原先被配置的桌面区域。如果该桌面区域被占据,则电子设备可以自动选取桌面上尺寸足够区域,并将切换回的桌面插件配置在该区域显示。
另外,步骤S34中切换回的桌面插件与步骤S32中的桌面插件为同一桌面插件。
下面以桌面插件对应的应用程序为录音应用程序为例,参考图5对图3所示桌面插件控制过程进行示例性说明。
用户可以长按桌面插件51,将桌面插件51切换为悬浮组件52。本公开实施例对长按的时间不做限制,例如,长按3秒后,电子设备将桌面插件51切换为悬浮组件52。
在桌面插件51切换为悬浮组件52之后,用户可以长按悬浮组件52,将悬浮组件52切换回桌面插件51。
应当理解的是,长按操作仅是切换触发操作的一个举例,针对图5示例性所绘的方案,切换触发操作还可以是双击操作、滑动操作等。
上述切换触发操作还可以是针对切换控件的切换确定操作。
一方面,电子设备可以响应桌面插件的切换控件的切换确定操作,将桌面插件切换为悬浮组件。其中,桌面插件的切换控件可以配置在桌面插件上,也就是说,显示的桌面插件上存在一个切换控件(按钮),用户可以点击该切换控件,实现将桌面插件切换为悬浮组件的操作。
另一方面,电子设备可以响应悬浮组件的切换控件的切换确定操作,将悬浮组件切换回桌面插件。其中,悬浮组件的切换控件可以配置在悬浮组件上,也就是说,显示的悬浮组件上存在一个切换控件(按钮),用户可以点击该切换控件,实现将悬浮组件切换回桌面插件的操作。
此外,在另一些实施例中,切换控件还可以被配置在切换菜单中。下面将参考图6至图8对这些实施例进行说明。
参考图6,本公开另一些实施例的桌面插件控制方法可以包括以下步骤:
S62.响应针对桌面插件的菜单唤起操作,唤起桌面插件的切换菜单。
本公开实施例中针对桌面插件的菜单唤起操作可以包括但不限于针对桌面插件的单击操作、双击操作、悬停操作、滑动操作、长按操作等触屏操作。此外,为了增加便利性,该菜单唤起操作还可以是用户对电子设备的摇动操作、设备旋转操作等,这些操作例如可以通过电子设备中配备的惯性装置(例如陀螺仪)检测出。
唤起的切换菜单可以被配置为显示在桌面插件的周围,本公开对切换菜单的透明度、尺寸、形状等均不做限制。
S64.响应针对桌面插件的切换菜单中切换控件的切换确定操作,将桌面插件切换为悬浮组件。
通常,该切换确定操作可以是针对切换控件的单击操作,然而,不限于此,还可以是双击操作、悬停操作、滑动操作、长按操作等中任意一种操作。
在电子设备检测出针对桌面插件的切换菜单中切换控件的切换确定操作时,可以将该 桌面插件切换为悬浮组件,此后,即使屏幕界面发生变化,该悬浮组件在屏幕上的位置也不会发生变化,且不会被其他界面元素覆盖。
在将桌面插件切换为悬浮组件之后,在显示应用程序对应的应用程序界面时,悬浮组件可以被配置为以浮层的形式显示在该应用程序界面上的指定区域。也就是说,电子设备可以响应一应用程序界面的显示操作,将悬浮组件显示在应用程序界面上的指定区域。
需要说明的是,应用程序界面的显示操作包括应用程序的启动操作,可以理解的是,在应用程序启动时,屏幕显示应用程序界面。然而,在应用程序本身已处于运行的情况下,调取应用程序界面显示于屏幕的操作也属于应用程序界面的显示操作。
根据本公开的一个实施例,应用程序界面上的指定区域可以是默认区域,例如,默认区域可以是应用程序界面右上角的区域,即屏幕界面右上角的区域。默认区域可以由用户设置或是***出厂前设置的固定区域。需要注意的是,不同应用程序的应用程序界面上的默认区域可以相同,也可以不相同。
根据本公开的另一个实施例,应用程序界面上的指定区域可以基于历史使用情况而确定出的区域。在这种情况下,确定指定区域的过程可以是预先执行的过程,并且不同应用程序的应用程序界面上的指定区域通常有所区别。
具体的,可以预先根据用户针对应用程序界面的历史操作,确定应用程序界面上用户关注度最小的区域,作为应用程序界面上的指定区域。具体参见图4,在此不再赘述。
此外,无论在将悬浮组件显示在应用程序界面上的指定区域后,还是在将桌面插件切换为悬浮组件且屏幕界面仍为桌面的情况,电子设备可以响应针对悬浮组件的位置调整操作,对悬浮组件的显示位置进行调整,以便用户自行决定悬浮组件的显示位置。其中,位置调整操作可以例如是针对悬浮组件的拖拽操作。
为了减轻浮层状态下的悬浮组件遮挡屏幕界面的程度,通常,浮层组件的尺寸被配置为小于桌面插件的尺寸。
为了进一步减轻悬浮组件可能遮挡屏幕界面的程度,悬浮组件可以被配置为按预定透明度显示。以透明度参数范围为0至1的数值为例,该预定透明度可以例如为0.5、0.8等。另外,悬浮组件还可以被设置为透明度可调,以便由用户根据喜好自行设置透明度。
参考图7,仍以桌面插件对应的应用程序为录音应用程序为例,对利用切换菜单上的切换控件将桌面插件切换为悬浮组件的过程进行说明。
用户可以长按桌面插件71,唤起桌面插件71的切换菜单700。其中,切换菜单700中至少包括切换控件。接下来,用户可以单击切换控件(图示为“浮件”对应的控件),由此,可以将桌面插件71切换为悬浮组件72。
应当理解的是,长按操作仅是菜单唤起操作的一个示例,单击操作也仅是切换确定操作的一个示例,针对图7示例性所绘的方案,这些操作还可以是双击操作、滑动操作等。
继续参考图6,在将桌面插件切换为悬浮组件之后,电子设备还可以将悬浮组件切换回桌面插件。
S66.响应针对悬浮组件的菜单唤起操作,唤起悬浮组件的切换菜单。
本公开实施例中针对悬浮组件的菜单唤起操作可以包括但不限于针对悬浮组件的单击操作、双击操作、悬停操作、滑动操作、长按操作等触屏操作。此外,为了增加便利性,该菜单唤起操作还可以是用户对电子设备的摇动操作、设备旋转操作等,这些操作例如可以通过电子设备中配备的惯性装置(例如陀螺仪)检测出。
唤起的切换菜单可以被配置为显示在悬浮组件的周围,本公开对该切换菜单的透明度、尺寸、形状等均不做限制。
S68.响应针对悬浮组件的切换菜单中切换控件的切换确定操作,将悬浮组件切换为桌面插件。
通常,该切换确定操作可以是针对切换控件的单击操作,然而,不限于此,还可以是 双击操作、悬停操作、滑动操作、长按操作等中任意一种操作。
在电子设备检测出针对悬浮组件的切换菜单中切换控件的切换确定操作时,可以将悬浮组件切换为桌面插件。应当注意的是,切换回的桌面插件会显示在该桌面插件原先被配置的桌面区域。如果该桌面区域被占据,则电子设备可以自动选取桌面上尺寸足够区域,并将切换回的桌面插件配置在该区域显示。
另外,步骤S68中切换回的桌面插件与步骤S62中的桌面插件为同一桌面插件。由此,当出现针对桌面插件的菜单唤起操作时,又可返回至步骤S62的过程。
参考图8,以悬浮组件对应的应用程序为录音应用程序为例,对利用切换菜单上的切换控件将悬浮组件切换为桌面插件的过程进行说明。
用户可以长按悬浮组件81,唤起悬浮组件81的切换菜单800。其中,切换菜单800中至少包括切换控件。接下来,用户可以单击切换控件(图示为“插件”对应的控件),由此,可以将悬浮组件81切换为桌面插件82。
应当理解的是,长按操作仅是菜单唤起操作的一个示例,单击操作也仅是切换确定操作的一个示例,针对图8示例性所绘的方案,这些操作还可以是双击操作、滑动操作等。
图9示意性示出了本公开再一些实施例的桌面插件控制方法的流程图。参考图9,这些实施例的桌面插件控制方法可以包括以下步骤:
S92.响应桌面插件的启动操作,将桌面插件切换为悬浮组件。
在本公开的这些实施例中,针对桌面插件的切换触发事件为桌面插件的启动操作。
桌面插件对应应用程序的不同,启动操作可能存在差异。例如,以录音应用程序为例,启动操作可以是开始录音的操作。又例如,以音乐播放应用程序为例,启动操作可以是开始播放音乐的操作,亦或者是暂停操作。本领域技术人员可以理解的是,能够使桌面插件启动以执行应用程序相应任务的操作,均属于桌面插件的启动操作。
在电子设备检测出桌面插件的启动操作时,可以将该桌面插件切换为悬浮组件。此后,即使屏幕界面发生变化,该悬浮组件在屏幕上的位置也不会发生变化,且不会被其他界面元素覆盖。
在将桌面插件切换为悬浮组件之后,在屏幕显示应用程序对应的应用程序界面时,悬浮组件可以被配置为以浮层的形式显示在该应用程序界面上的指定区域。也就是说,电子设备可以响应一应用程序界面的显示操作,将悬浮组件显示在应用程序界面上的指定区域。
需要说明的是,应用程序界面的显示操作包括应用程序的启动操作,可以理解的是,在应用程序启动时,屏幕显示应用程序界面。然而,在应用程序本身已处于运行的情况下,调取应用程序界面显示于屏幕的操作也属于应用程序界面的显示操作。
根据本公开的一个实施例,应用程序界面上的指定区域可以是默认区域,例如,默认区域可以是应用程序界面右上角的区域,即屏幕界面右上角的区域。默认区域可以由用户设置或是***出厂前设置的固定区域。需要注意的是,不同应用程序的应用程序界面上的默认区域可以相同,也可以不相同。
根据本公开的另一个实施例,应用程序界面上的指定区域可以基于历史使用情况而确定出的区域。在这种情况下,确定指定区域的过程可以是预先执行的过程,并且不同应用程序的应用程序界面上的指定区域通常有所区别。
具体的,可以预先根据用户针对应用程序界面的历史操作,确定应用程序界面上用户关注度最小的区域,作为应用程序界面上的指定区域。具体参见图4,在此不再赘述。
此外,无论在将悬浮组件显示在应用程序界面上的指定区域后,还是在将桌面插件切换为悬浮组件且屏幕界面仍为桌面的情况,电子设备可以响应针对悬浮组件的位置调整操作,对悬浮组件的显示位置进行调整,以便用户自行决定悬浮组件的显示位置。其中,位置调整操作可以例如是针对悬浮组件的拖拽操作。
为了减轻浮层状态下的悬浮组件遮挡屏幕界面的程度,通常,浮层组件的尺寸被配置 为小于桌面插件的尺寸。
为了进一步减轻悬浮组件可能遮挡屏幕界面的程度,悬浮组件可以被配置为按预定透明度显示。以透明度参数范围为0至1的数值为例,该预定透明度可以例如为0.5、0.8等。另外,悬浮组件还可以被设置为透明度可调,以便由用户根据喜好自行设置透明度。
在将桌面插件切换为悬浮组件之后,电子设备还可以将悬浮组件切换回桌面插件。
S94.在桌面插件所执行的任务结束时,将悬浮组件切换回桌面插件。
在一个实施例中,桌面插件执行的任务为自动结束的任务,例如,定时任务。在这种情况下,当桌面插件所执行的任务自动结束时,电子设备可以将悬浮组件切换回桌面插件。
在另一个实施例中,桌面插件执行的任务需要响应用户的操作来结束,例如,录音任务、音乐播放任务等。在这种情况下,电子设备可以响应任务结束操作,将悬浮组件切换回桌面。
应当注意的是,切换回的桌面插件会显示在该桌面插件原先被配置的桌面区域。如果该桌面区域被占据,则电子设备可以自动选取桌面上尺寸足够区域,并将切换回的桌面插件配置在该区域显示。
另外,步骤S94中切换回的桌面插件与步骤S92中的桌面插件为同一桌面插件。
参考图10,仍以桌面插件对应的应用程序为录音应用程序为例,对图9所示桌面插件控制过程进行示例性说明。
用户可以单击桌面插件101上录音开始的按钮,将桌面插件101切换为悬浮组件102。随后,当用户在悬浮组件102上点击录音完成的按钮时,电子设备可以将悬浮组件102切换回桌面插件101。
应当理解的是,单击操作仅是桌面插件启动操作的一个举例,针对图10示例性所绘的方案,桌面插件启动操作还可以是双击操作、滑动操作、长按操作等。
针对基于桌面插件启动而控制桌面插件切换为悬浮组件的过程,在本公开又一些实施例,切换触发事件还可以是:桌面插件启动且检测到应用程序界面的显示操作。具体的,在桌面插件启动的情况下,电子设备响应一应用程序界面的显示操作,将桌面插件切换为悬浮组件,以便悬浮组件以浮层的形式显示在应用程序界面上。
其中,该应用程序界面对应的应用程序可以是除桌面插件对应应用程序之外的应用程序,也可以是桌面插件对应的应用程序,本公开对此不做限制。
参考图11,这些实施例的桌面插件控制方法可以包括以下步骤:
S112.响应桌面插件的启动操作,启动插件任务。
桌面插件对应应用程序的不同,启动操作可能存在差异。例如,以录音应用程序为例,启动操作可以是开始录音的操作。又例如,以音乐播放应用程序为例,启动操作可以是开始播放音乐的操作,亦或者是暂停操作本领域技术人员可以理解的是,能够使桌面插件启动以执行应用程序相应任务的操作,均属于桌面插件的启动操作。
S114.响应应用程序界面的显示操作,将桌面插件切换为悬浮组件。
应用程序界面的显示操作包括应用程序的启动操作,可以理解的是,在应用程序启动时,屏幕显示应用程序界面。然而,在应用程序本身已处于运行的情况下,调取应用程序界面显示于屏幕的操作也属于应用程序界面的显示操作。
在电子设备检测出应用程序界面的显示操作时,可以将该桌面插件切换为悬浮组件。此后,即使屏幕界面发生变化,该悬浮组件在屏幕上的位置也不会发生变化,且不会被其他界面元素覆盖。
在本公开的示例性实施方式中,将悬浮组件显示在应用程序界面上的指定区域。
根据本公开的一个实施例,应用程序界面上的指定区域可以是默认区域,例如,默认区域可以是应用程序界面右上角的区域,即屏幕界面右上角的区域。默认区域可以由用户设置或是***出厂前设置的固定区域。需要注意的是,不同应用程序的应用程序界面上的 默认区域可以相同,也可以不相同。
根据本公开的另一个实施例,应用程序界面上的指定区域可以基于历史使用情况而确定出的区域。在这种情况下,确定指定区域的过程可以是预先执行的过程,并且不同应用程序的应用程序界面上的指定区域通常有所区别。
具体的,可以预先根据用户针对应用程序界面的历史操作,确定应用程序界面上用户关注度最小的区域,作为应用程序界面上的指定区域。具体参见图4,在此不再赘述。
此外,无论在将悬浮组件显示在应用程序界面上的指定区域后,还是在将桌面插件切换为悬浮组件且屏幕界面仍为桌面的情况,电子设备可以响应针对悬浮组件的位置调整操作,对悬浮组件的显示位置进行调整,以便用户自行决定悬浮组件的显示位置。其中,位置调整操作可以例如是针对悬浮组件的拖拽操作。
为了减轻浮层状态下的悬浮组件遮挡屏幕界面的程度,通常,浮层组件的尺寸被配置为小于桌面插件的尺寸。
为了进一步减轻悬浮组件可能遮挡屏幕界面的程度,悬浮组件可以被配置为按预定透明度显示。以透明度参数范围为0至1的数值为例,该预定透明度可以例如为0.5、0.8等。另外,悬浮组件还可以被设置为透明度可调,以便由用户根据喜好自行设置透明度。
S116.在桌面插件所执行的任务结束时,将悬浮组件切换回桌面插件。
在一个实施例中,桌面插件执行的任务为自动结束的任务,例如,定时任务。在这种情况下,当桌面插件所执行的任务自动结束时,电子设备可以将悬浮组件切换回桌面插件。
在另一个实施例中,桌面插件执行的任务需要响应用户的操作来结束,例如,录音任务、音乐播放任务等。在这种情况下,电子设备可以响应任务结束操作,将悬浮组件切换回桌面。
应当注意的是,切换回的桌面插件会显示在该桌面插件原先被配置的桌面区域。如果该桌面区域被占据,则电子设备可以自动选取桌面上尺寸足够区域,并将切换回的桌面插件配置在该区域显示。
另外,步骤S116中切换回的桌面插件与步骤S112中的桌面插件为同一桌面插件。
参考图12,仍以桌面插件对应的应用程序为录音应用程序为例,对图11所示桌面插件控制过程进行示例性说明。
用户可以单击桌面插件121上录音开始的按钮,此时,桌面插件121保持不变。随后,当用户打开相册应用程序时,电子设备将桌面插件121切换为悬浮组件122,并以浮层的形式显示在相册应用程序的应用程序界面上,如图所示,相册应用程序的应用程序界面上包括多张照片,而悬浮组件122可以以浮层的形式显示在照片之上。
接下来,当用户在悬浮组件122上点击录音完成的按钮时,电子设备可以将悬浮组件122切换回桌面插件111。需要注意的是,鉴于屏幕界面为相册应用程序的应用程序界面,用户正在使用,此时,将悬浮组件122切换回桌面插件111时,屏幕界面不会显示悬浮组件122,用户的感知是悬浮组件122在当前屏幕界面消失。在这种情况下,如果用户控制电子设备返回桌面,则可以在桌面上查看到桌面插件111。
此外,在悬浮组件122以浮层的形式显示在相册应用程序界面上的情况下,如果用户退出相册应用程序,而未对悬浮组件122的录音状态进行操作,则悬浮组件122不进行切换,并维持录音状态不变。
应当注意,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。
进一步的,本示例实施方式中还提供了一种桌面插件控制装置。
图13示意性示出了本公开的示例性实施方式的桌面插件控制装置的方框图。参考图 13,根据本公开的示例性实施方式的桌面插件控制装置13可以包括第一切换模块131。
具体的,第一切换模块131可以被配置为当检测到针对桌面插件的切换触发事件发生时,将桌面插件切换为悬浮组件;其中,悬浮组件以浮层的形式显示在屏幕界面上,并且悬浮组件的数据来源于桌面插件对应的应用程序。
根据本公开的示例性实施例,第一切换模块131还可以被配置为执行:响应针对桌面插件的切换触发操作,将桌面插件切换为悬浮组件。
根据本公开的示例性实施例,参考图14,相比于桌面插件控制装置13,桌面插件控制装置14还可以包括第二切换模块141。
具体的,第二切换模块141可以被配置为在将桌面插件切换为悬浮组件后,响应针对悬浮组件的切换触发操作,将悬浮组件切换回桌面插件。
根据本公开的示例性实施例,第一切换模块131还可以被配置为执行:响应针对桌面插件的切换控件的切换确定操作,将桌面插件切换为悬浮组件。
根据本公开的示例性实施例,桌面插件的切换控件被配置在桌面插件的切换菜单中。在这种情况下,第一切换模块131还可以被配置为执行:响应针对桌面插件的菜单唤起操作,唤起桌面插件的切换菜单,以便响应针对桌面插件的切换控件的切换确定操作,将桌面插件切换为悬浮组件。
根据本公开的示例性实施例,第二切换模块141还可以被配置为执行:响应针对悬浮组件的切换控件的切换确定操作,将悬浮组件切换回桌面插件。
根据本公开的示例性实施例,悬浮组件的切换控件被配置在悬浮组件的切换菜单中。在这种情况下,第二切换模块141还可以被配置为执行:响应针对悬浮组件的菜单唤起操作,唤起悬浮组件的切换菜单,以便响应针对悬浮组件的切换控件的切换确定操作,将悬浮组件切换回桌面插件。
根据本公开的示例性实施例,第一切换模块131还可以被配置为执行:响应桌面插件的启动操作,将桌面插件切换为悬浮组件。
根据本公开的示例性实施例,第一切换模块131还可以被配置为执行:在桌面插件启动的情况下,响应一应用程序界面的显示操作,将桌面插件切换为悬浮组件,以便悬浮组件以浮层的形式显示在应用程序界面上。
根据本公开的示例性实施例,第二切换模块141还可以被配置为执行:在桌面插件所执行的任务结束时,将悬浮组件切换回桌面插件。
根据本公开的示例性实施例,第一切换模块131还可以被配置为执行:在将桌面插件切换为悬浮组件之后,响应一应用程序界面的显示操作,将悬浮组件显示在应用程序界面上的指定区域。
根据本公开的示例性实施例,参考图15,相比于桌面插件控制装置13,桌面插件控制装置15还可以包括指定区域确定模块151。
具体的,指定区域确定模块151可以被配置为预先根据用户针对应用程序界面的历史操作,确定应用程序界面上用户关注度最小的区域,作为应用程序界面上的指定区域。
根据本公开的示例性实施例,第一切换模块131还可以被配置为执行:在将悬浮组件显示在应用程序界面上的指定区域后,响应针对悬浮组件的位置调整操作,对悬浮组件的显示位置进行调整。
根据本公开的示例性实施例,悬浮组件的尺寸被配置为小于桌面插件的尺寸。
根据本公开的示例性实施例,悬浮组件被配置为按预定透明度显示,或者被配置为透明度可调。
由于本公开实施方式的桌面插件控制装置的各个功能模块与上述方法实施方式中相同,因此在此不再赘述。
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式 可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。
本领域技术人员在考虑说明书及实践这里公开的内容后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限。

Claims (20)

  1. 一种桌面插件控制方法,包括:
    当检测到针对桌面插件的切换触发事件发生时,将所述桌面插件切换为悬浮组件;其中,所述悬浮组件以浮层的形式显示在屏幕界面上,并且所述悬浮组件的数据来源于所述桌面插件对应的应用程序。
  2. 根据权利要求1所述的桌面插件控制方法,其中,当检测到针对桌面插件的切换触发事件发生时,将所述桌面插件切换为悬浮组件,包括:
    响应针对所述桌面插件的切换触发操作,将所述桌面插件切换为所述悬浮组件。
  3. 根据权利要求2所述的桌面插件控制方法,其中,在将所述桌面插件切换为所述悬浮组件后,所述桌面插件控制方法还包括:
    响应针对所述悬浮组件的切换触发操作,将所述悬浮组件切换回所述桌面插件。
  4. 根据权利要求2所述的桌面插件控制方法,其中,响应针对所述桌面插件的切换触发操作,将所述桌面插件切换为悬浮组件,包括:
    响应针对所述桌面插件的切换控件的切换确定操作,将所述桌面插件切换为所述悬浮组件。
  5. 根据权利要求4所述的桌面插件控制方法,其中,所述桌面插件的切换控件被配置在所述桌面插件的切换菜单中;所述桌面插件控制方法还包括:
    响应针对所述桌面插件的菜单唤起操作,唤起所述桌面插件的切换菜单,以便响应针对所述桌面插件的切换控件的切换确定操作,将所述桌面插件切换为所述悬浮组件。
  6. 根据权利要求4所述的桌面插件控制方法,其中,在将所述桌面插件切换为所述悬浮组件后,所述桌面插件控制方法还包括:
    响应针对所述悬浮组件的切换控件的切换确定操作,将所述悬浮组件切换回所述桌面插件。
  7. 根据权利要求6所述的桌面插件控制方法,其中,所述悬浮组件的切换控件被配置在所述悬浮组件的切换菜单中;所述桌面插件控制方法还包括:
    响应针对所述悬浮组件的菜单唤起操作,唤起所述悬浮组件的切换菜单,以便响应针对所述悬浮组件的切换控件的切换确定操作,将所述悬浮组件切换回所述桌面插件。
  8. 根据权利要求1所述的桌面插件控制方法,其中,当检测到针对桌面插件的切换触发事件发生时,将所述桌面插件切换为悬浮组件,包括:
    响应所述桌面插件的启动操作,将所述桌面插件切换为所述悬浮组件。
  9. 根据权利要求1所述的桌面插件控制方法,其中,当检测到针对桌面插件的切换触发事件发生时,将所述桌面插件切换为悬浮组件,包括:
    在所述桌面插件启动的情况下,响应一应用程序界面的显示操作,将所述桌面插件切换为所述悬浮组件,以便所述悬浮组件以浮层的形式显示在所述应用程序界面上。
  10. 根据权利要求8或9所述的桌面插件控制方法,其中,在将所述桌面插件切换为所述悬浮组件后,所述桌面插件控制方法还包括:
    在所述桌面插件所执行的任务结束时,将所述悬浮组件切换回所述桌面插件。
  11. 根据权利要求1至8中任一项所述的桌面插件控制方法,其中,所述桌面插件控制方法还包括:
    在将所述桌面插件切换为所述悬浮组件之后,响应一应用程序界面的显示操作,将所述悬浮组件显示在所述应用程序界面上的指定区域。
  12. 根据权利要求11所述的桌面插件控制方法,其中,所述桌面插件控制方法还包括:
    预先根据用户针对所述应用程序界面的历史操作,确定所述应用程序界面上所述用户 关注度最小的区域,作为所述应用程序界面上的指定区域。
  13. 根据权利要求11所述的桌面插件控制方法,其中,在将所述悬浮组件显示在所述应用程序界面上的指定区域后,所述桌面插件控制方法还包括:
    响应针对所述悬浮组件的位置调整操作,对所述悬浮组件的显示位置进行调整。
  14. 根据权利要求1所述的桌面插件控制方法,其中,所述悬浮组件的尺寸被配置为小于所述桌面插件的尺寸。
  15. 根据权利要求1所述的桌面插件控制方法,其中,所述悬浮组件被配置为按预定透明度显示,或者被配置为透明度可调。
  16. 一种桌面插件控制装置,包括:
    第一切换模块,被配置为当检测到针对桌面插件的切换触发事件发生时,将所述桌面插件切换为悬浮组件;其中,所述悬浮组件以浮层的形式显示在屏幕界面上,并且所述悬浮组件的数据来源于所述桌面插件对应的应用程序。
  17. 根据权利要求16所述的桌面插件控制装置,其中,所述第一切换模块被配置为响应针对所述桌面插件的切换触发操作,将所述桌面插件切换为所述悬浮组件。
  18. 根据权利要求17所述的桌面插件控制装置,其中,所述桌面插件控制装置还包括:
    第二切换模块,被配置为在将所述桌面插件切换为所述悬浮组件后,响应针对所述悬浮组件的切换触发操作,将所述悬浮组件切换回所述桌面插件。
  19. 一种计算机可读存储介质,其上存储有计算机程序,所述程序被处理器执行时实现如权利要求1至15中任一项所述的桌面插件控制方法。
  20. 一种电子设备,包括:
    处理器;
    存储器,被配置为存储一个或多个程序,当所述一个或多个程序被所述处理器执行时,使得所述处理器实现如权利要求1至15中任一项所述的桌面插件控制方法。
PCT/CN2021/137185 2021-02-24 2021-12-10 桌面插件控制方法及装置、存储介质和电子设备 WO2022179248A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110209205.0A CN114968439A (zh) 2021-02-24 2021-02-24 桌面插件控制方法及装置、存储介质和电子设备
CN202110209205.0 2021-02-24

Publications (1)

Publication Number Publication Date
WO2022179248A1 true WO2022179248A1 (zh) 2022-09-01

Family

ID=82974051

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/137185 WO2022179248A1 (zh) 2021-02-24 2021-12-10 桌面插件控制方法及装置、存储介质和电子设备

Country Status (2)

Country Link
CN (1) CN114968439A (zh)
WO (1) WO2022179248A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040098727A1 (en) * 2002-09-23 2004-05-20 Bjorn Bjare Middleware application environment
CN109684201A (zh) * 2018-11-26 2019-04-26 平安科技(深圳)有限公司 快速切换运行环境的方法、装置、计算机设备及存储介质
CN109783171A (zh) * 2018-12-29 2019-05-21 北京小米移动软件有限公司 桌面插件切换方法、装置及存储介质
CN112181225A (zh) * 2020-09-29 2021-01-05 维沃移动通信有限公司 桌面元素调整方法、装置和电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040098727A1 (en) * 2002-09-23 2004-05-20 Bjorn Bjare Middleware application environment
CN109684201A (zh) * 2018-11-26 2019-04-26 平安科技(深圳)有限公司 快速切换运行环境的方法、装置、计算机设备及存储介质
CN109783171A (zh) * 2018-12-29 2019-05-21 北京小米移动软件有限公司 桌面插件切换方法、装置及存储介质
CN112181225A (zh) * 2020-09-29 2021-01-05 维沃移动通信有限公司 桌面元素调整方法、装置和电子设备

Also Published As

Publication number Publication date
CN114968439A (zh) 2022-08-30

Similar Documents

Publication Publication Date Title
KR101872751B1 (ko) 애플리케이션 인터페이스를 디스플레이하는 방법 및 장치, 그리고 전자 장치
CA2959718C (en) Real-time sharing during a phone call
US9081477B2 (en) Electronic device and method of controlling the same
WO2021082739A1 (zh) 多任务界面管理方法及电子设备
AU2014288039B2 (en) Remote operation of applications using received data
WO2019227281A1 (zh) 一种拍摄的方法及电子设备
JP6228676B2 (ja) 接続状態プロンプティング方法および装置
CN108463799B (zh) 电子设备的柔性显示器及其操作方法
EP2385689A1 (en) Mobile terminal and controlling method thereof
AU2017418882A1 (en) Display method and apparatus
EP3039523A1 (en) Gesture-based content sharing between devices
KR20150072764A (ko) 전자기기에서 해상도 레벨을 제어하기 위한 방법 및 장치
KR20130042010A (ko) 제스처 인식을 위한 환경-의존 동적 범위 컨트롤
KR102306536B1 (ko) 위젯 제공 시스템 및 방법
KR102213897B1 (ko) 사용자 입력에 따라 하나 이상의 아이템들을 선택하는 방법 및 이를 위한 전자 장치
WO2015176352A1 (zh) 一种基于安卓***的应用间信息交互方法及装置
WO2023024871A1 (zh) 一种界面交互方法与设备
WO2019227487A1 (zh) 一种项目的显示方法及终端
US11016660B2 (en) Method and apparatus for responding to gesture operation and storage medium
WO2022179248A1 (zh) 桌面插件控制方法及装置、存储介质和电子设备
JP2018028933A (ja) アプリケーションインターフェースを表示する方法、装置および電子デバイス
CN111142648A (zh) 一种数据处理方法和智能终端

Legal Events

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

Ref document number: 21927672

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21927672

Country of ref document: EP

Kind code of ref document: A1