WO2024104094A1 - Screenshot sharing method and electronic device - Google Patents

Screenshot sharing method and electronic device Download PDF

Info

Publication number
WO2024104094A1
WO2024104094A1 PCT/CN2023/127434 CN2023127434W WO2024104094A1 WO 2024104094 A1 WO2024104094 A1 WO 2024104094A1 CN 2023127434 W CN2023127434 W CN 2023127434W WO 2024104094 A1 WO2024104094 A1 WO 2024104094A1
Authority
WO
WIPO (PCT)
Prior art keywords
operating system
screenshot
electronic device
user
screenshot image
Prior art date
Application number
PCT/CN2023/127434
Other languages
French (fr)
Chinese (zh)
Inventor
冯策
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024104094A1 publication Critical patent/WO2024104094A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • 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/04817Interaction 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 using icons
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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

Definitions

  • the present application relates to the field of computer technology, and in particular to a screenshot sharing method and electronic device.
  • PC personal computers
  • mobile devices such as mobile phones
  • OS mobile operating systems
  • the embodiments of the present application provide a screenshot sharing method and an electronic device, which can achieve the effect of one-click cross-system screenshot sharing, simplify user operations, and improve user experience.
  • an embodiment of the present application provides a screenshot sharing method, which is applied to an electronic device, on which a first operating system and a second operating system are running, the method comprising: in response to a user's screenshot operation, the first operating system generates and saves a screenshot image; the second operating system obtains the screenshot image and saves the screenshot image to a clipboard of the second operating system; the second operating system displays a floating window in a user interface, the floating window is generated based on the screenshot image, and the user interface is a user interface of an application in the second operating system; the second operating system detects a first operation of the user on the floating window on the user interface; in response to the first operation, the electronic device sends the screenshot image to other devices.
  • the electronic device can generate a screenshot image and save the information of the screenshot image to the clipboard of the host operating system (also referred to as the first operating system).
  • the host operating system can share the information of the screenshot image to the clipboard of the client operating system (also referred to as the second operating system) for use by the client operating system's application, thereby achieving the effect that the client operating system's application can directly paste the screenshot image.
  • a one-click cross-system screenshot sharing effect can also be achieved, thereby simplifying user operations and improving user experience.
  • the method before the second operating system acquires the screenshot image, the method further includes: the first operating system sends a first message to the second operating system, where the first message is used to instruct the second operating system to acquire the screenshot image.
  • the first operating system can notify the second operating system to obtain the newly saved content, so that the second operating system can use the content.
  • the first message is sent via inter-process communication (IPC).
  • IPC inter-process communication
  • the second operating system obtains the screenshot image, including: the second operating system receives the screenshot image sent by the first operating system.
  • the first operating system can directly send the content to the second operating system so that the second operating system can use the content.
  • the first operating system saves the screenshot image, including: the first operating system saves the screenshot image to a clipboard of the first operating system and to a shared folder.
  • the first operating system can also save the content to the shared folder, so that the second operating system can obtain the content in the shared folder.
  • the method before the first operating system sends the first message to the second operating system, the method further includes: first The operating system detected that the most recent content saved in the clipboard is a picture.
  • the first operating system when the first operating system detects that the latest content saved in its clipboard is a picture (such as a screenshot image), it can save the picture to the shared folder, and at the same time, it can also notify the second operating system to obtain the picture in the shared folder.
  • a picture such as a screenshot image
  • the second operating system obtains the screenshot image, including: the second operating system obtains the screenshot image from a shared folder.
  • the second operating system can obtain the screenshot image in the shared folder, and then save the screenshot image to its clipboard, so that subsequent applications of the second operating system can use the screenshot image.
  • the method before the second operating system displays the floating window in the user interface, the method further includes: the second operating system scans the path of the screenshot image in the shared folder, and inserts the screenshot image information into the media database based on the path.
  • the second operating system inserts the information of the screenshot image into the media database based on the path, including: when the second operating system determines that the screenshot image meets the preset rules based on the path, the screenshot image information is inserted into the media database; wherein the preset rules include any one or more of the following: the naming of the screenshot image includes specific keywords, the time interval between the time point recorded in the timestamp information of the screenshot image and the first time point is within the preset time interval, and the first time point is the time point when the second operating system scans the path of the screenshot image in the shared folder.
  • the second operating system can insert the information of the screenshot image into the media database when it determines that the screenshot image meets preset rules (such as preset screenshot rules), so that when a subsequent application detects that the information inserted in the media database has changed, it can automatically trigger the display of a floating window, thereby achieving the effect of one-click cross-system screenshot sharing.
  • preset rules such as preset screenshot rules
  • the method further includes: the application program obtains the screenshot image from the clipboard of the second operating system.
  • the application can obtain the screenshot image from the clipboard of the second operating system, so as to automatically trigger the display of a floating window in a certain user interface of the application (such as a chat interface), thereby achieving a one-click cross-system screenshot sharing effect.
  • the screenshot operation includes one or more of the following: an operation of selecting a screenshot area, and an editing operation on the screenshot area.
  • the first operating system can support users to freely perform image capture operations of any area, image editing operations, etc., which is convenient and flexible and improves user experience.
  • an input box and a control for file sharing are displayed in the user interface.
  • the application can specifically share the screenshot image capability, thereby supporting users to share the screenshot image.
  • an embodiment of the present application provides an electronic device, which includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method in any possible implementation of the first aspect above.
  • an embodiment of the present application provides a computer storage medium, which stores a computer program, and the computer program includes program instructions.
  • the program instructions When the program instructions are executed on an electronic device, the electronic device executes a method in any possible implementation of the first aspect above.
  • an embodiment of the present application provides a computer program product.
  • the computer program product When the computer program product is run on a computer, it enables the computer to execute the method in any possible implementation of the first aspect above.
  • FIGS. 1A-1B are schematic diagrams of user interfaces involved in a process of taking a screenshot of an electronic device 100 through an application of a client operating system provided by an embodiment of the present application;
  • FIG1C is a schematic diagram of a screenshot image generated by the screenshot process shown in FIG1A-FIG1B according to an embodiment of the present application;
  • 1D-1G are schematic diagrams of user interfaces involved in a process of sharing a screenshot through an application of a client operating system of an electronic device 100 provided in an embodiment of the present application;
  • 2A-2B are schematic diagrams of a set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application;
  • FIG2C is a schematic diagram of a screenshot image generated by the screenshot process shown in FIG2A-FIG2B according to an embodiment of the present application;
  • 2D-2E are schematic diagrams of a set of user interfaces involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application;
  • 3A-3C are schematic diagrams of another set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application;
  • FIG3D is a schematic diagram of a screenshot image generated by the screenshot process shown in FIG3A to FIG3C provided in an embodiment of the present application;
  • 3E-3F are another set of user interface schematic diagrams involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application.
  • FIG4 is a schematic diagram of a process of a screenshot sharing method provided in an embodiment of the present application.
  • FIG5 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application.
  • FIG6 is a schematic diagram of the software structure of another electronic device 100 provided in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a possible collaboration mode between various modules when the electronic device 100 provided by the embodiment of the present application implements the screenshot sharing method provided by the embodiment of the present application when a host operating system is installed and a client operating system is loaded on the host operating system;
  • FIG8 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application.
  • GUI graphical user interface
  • Mainstream mobile operating systems include Since the operating mechanisms of applications on different operating systems are different, there are barriers to communication and interaction between different operating systems, and in many aspects, it is difficult to achieve simple and effective ecological integration. Therefore, in general, applications on operating system A cannot be installed and run on operating system B. For example, Applications in the operating system cannot be directly installed and run on On the operating system.
  • the computer can be called a host machine, and the underlying operating system running on the computer can be called a host operating system (Host OS).
  • the operating system running in the simulator or container on the host can be called a guest operating system (Guest OS).
  • the guest operating system can run on the host machine, and the host machine virtualizes a virtual hardware environment (including processor, memory, I/O devices, etc.) independent of the actual hardware for the simulator or container, so that for the guest operating system, running in the virtual hardware environment on the host machine is no different from running on the actual hardware.
  • a virtual hardware environment including processor, memory, I/O devices, etc.
  • Screenshot operation is a high-frequency operation on mobile devices. Users can capture full-screen images through shortcut keys, gestures, clicking the screenshot option in the drop-down menu, etc. After the capture is completed, it can be saved as a picture in the "Gallery” application (also known as the "Album” application) of the operating system. Users can perform simple editing operations on the picture in the "Gallery” application (such as cropping the picture size, adjusting the picture color, mosaic, graffiti, etc.), and it can also support users to use and share the picture in other applications (such as social applications).
  • “Gallery” application also known as the "Album” application
  • Users can perform simple editing operations on the picture in the "Gallery” application (such as cropping the picture size, adjusting the picture color, mosaic, graffiti, etc.), and it can also support users to use and share the picture in other applications (such as social applications).
  • mainstream simulators basically provide the option to take screenshots of the entire user interface of an application to achieve the same experience as using a mobile device.
  • a set of user interfaces involved in the process of taking screenshots and sharing screenshots by an electronic device 100 through an application of a client operating system are exemplarily introduced below.
  • the electronic device 100 is taken as an example to be described as a notebook computer.
  • the user operations involved in the embodiments of the present application may be operations performed by the user through the keyboard or mouse of the electronic device 100, or operations performed by the user through the touch screen or touchpad of the electronic device 100, or operations performed by the user through voice commands or air gestures.
  • the embodiments of the present application do not limit the implementation method of the user operations.
  • 1A-1B exemplarily show the user interfaces involved in the process of taking a screenshot on the electronic device 100 through an application of a client operating system.
  • the user interface 110 may be a user interface of the host operating system (also referred to as a desktop).
  • the user interface may include one or more application icons (e.g., an icon of a “recycle bin” application, an icon of a “this computer” application, an icon of an “application market” application, an icon of a “reading” application, an icon of a “chat” application, etc.), and the one or more application icons may include icons of applications of the host operating system (e.g., an icon of a “recycle bin” application, an icon of a “this computer” application, an icon of an “application market” application), and icons of applications of the client operating system (e.g., an icon of a “reading” application, an icon of a “chat” application).
  • application icons e.g., an icon of a “recycle bin” application, an icon of a “this computer” application, an icon of an “application market” application
  • icons of applications of the client operating system e.g., an icon of a “
  • the icon of the client operating system application may be displayed with a relevant identifier of the mobile device (eg, identifier 111, identifier 112), so that the user can easily distinguish whether the icon is an icon of the host operating system application or an icon of the client operating system application.
  • a relevant identifier of the mobile device eg, identifier 111, identifier 112
  • the user interface 110 may also include a user interface of one or more applications of the client operating system opened by the user (eg, user interface 113). It can be seen that the user interface 113 is a user interface of a reading application of the client operating system.
  • the electronic device 100 can detect the user's operation (such as a click operation) on the option 114 in the user interface 113. In response to the operation, the electronic device 100 can display the window 120 shown in Figure 1B.
  • the user's operation such as a click operation
  • the window 120 may include one or more options (such as a "screenshot” option 121, etc.), and the electronic device 100 can detect the user's operation on the "screenshot” option 121 (such as a click operation). In response to the operation, the electronic device 100 can take a screenshot of the entire user interface 113. After the screenshot is completed, it can be saved as a picture in the "Gallery" application of the client operating system.
  • options such as a "screenshot” option 121, etc.
  • the picture 130 shown in FIG1C can be a screenshot image generated by the screenshot process shown in FIG1A-FIG1B . It can be seen that the picture 130 is a screenshot image corresponding to the entire user interface 113 .
  • 1D-1G exemplarily illustrate the user interfaces involved in the process of sharing screenshots by the electronic device 100 through an application of the client operating system.
  • the user interface 140 may be a user interface of a “chat” application of the client operating system. It can be seen that the user interface may be a chat interface between the user and his friend Lily. If the user wants to share a picture with his friend Lily, the electronic device 100 may detect the user's operation (e.g., a click operation) on the option 141 in the user interface 140. In response to the operation, the electronic device 100 displays the window 150 (i.e., the dotted box area) shown in FIG1E in the user interface 140.
  • the user's operation e.g., a click operation
  • window 150 may include options (e.g., option 151) corresponding to one or more pictures in the “Gallery” application, which can be used by the user to select one or more pictures to share.
  • option 151 which is currently in an unselected state.
  • the electronic device 100 can detect the user's operation on option 151 (e.g., a click operation). In response to the operation, the electronic device 100 can set option 151 from the unselected state shown in FIG. 1E to the selected state shown in FIG. 1F , indicating that the picture selected by the user to be shared is picture 130.
  • the electronic device 100 can detect the user's operation (e.g., a click operation) on option 161. In response to the operation, the electronic device 100 can send the picture 130 to the electronic device of the friend Lily through the "chat" application, and display the chat message 171 shown in FIG. 1G in the user interface 140.
  • the chat message can be a message for the user to share the picture 130 with his friend Lily. At this point, the process of sharing the screenshot is completed.
  • the user interfaces of multiple applications of the client operating system can be displayed simultaneously.
  • the user interface of the "reading” application and the user interface of the "chatting” application shown in FIG. 1D can be displayed in parallel at the same time.
  • the electronic device 100 may also only display the user interface of the "chat” application for sharing screenshots, without displaying the user interfaces of other applications (such as the user interface of the "reading” application).
  • the simulator is just a simple imitation of the screenshot function of the mobile device, and can only support the most basic fixed-size screenshot of the user interface of the application (that is, it can only capture the entire user interface of the application).
  • the screenshot editing function is relatively simple, and the screenshot image will be saved in the "Gallery" application after the screenshot is completed.
  • the screenshot sharing process shown in Figures 1D-1G the user needs to first select the screenshot image saved in the "Gallery” application, and then trigger the sharing operation after the selection is completed. The whole process is relatively complicated and the user experience is poor.
  • the screenshot function provided by computer operating systems is much more powerful than that provided by mobile device operating systems.
  • both can provide image editing operations (such as free selection of screenshot area, text filling and annotation, free image editing, etc.) during the screenshot process, which is far superior to the screenshot function provided by mobile devices in terms of user experience.
  • the current technology has also achieved the use of the screenshot function of the computer operating system (ie, the host operating system) to perform cross-system screenshot operations, that is, users can use the screenshot function provided by the computer operating system instead of the screenshot function provided by the simulator to perform screenshot operations.
  • the screenshot data needs to be copied from the computer operating system to the "Gallery" application of the client operating system of the simulator.
  • the user wants to share the screenshot it is the same as the aforementioned screenshot sharing process. The user needs to first select the screenshot saved in the "Gallery” application, and then trigger the sharing operation after the selection is completed. The entire process is also relatively complicated and the user experience is poor.
  • the screenshot function provided by the current simulator is relatively simple. It cannot freely select the screenshot area like the screenshot function provided by the computer operating system, nor can it capture images beyond the entire user interface of the application.
  • the editing function of the screenshot is simple, and the process of sharing screenshots is relatively complicated. As a product in the ecological integration scenario, it cannot fully utilize the advantages of the powerful screenshot function provided by the computer operating system, and the application integration experience of the computer operating system and the mobile operating system is poor.
  • an embodiment of the present application provides a screenshot sharing method, which is applied to an electronic device 100.
  • the electronic device 100 can be installed with a host operating system (also referred to as a first operating system), and a client operating system (also referred to as a second operating system) can be loaded on the host operating system.
  • a host operating system also referred to as a first operating system
  • a client operating system also referred to as a second operating system
  • the host operating system can support the user to freely perform image capture operations of any area, image editing operations, etc., thereby generating a screenshot image (i.e., a screenshot) and saving the information of the screenshot image to the clipboard of the host operating system.
  • the host operating system can share the information of the screenshot image to the clipboard of the client operating system for use by the application of the client operating system, thereby achieving the effect that the application of the client operating system can directly paste the screenshot image.
  • a one-click cross-system screenshot sharing effect can also be achieved, thereby simplifying user operations and improving user experience.
  • the present application embodiment does not impose any restrictions on the operating system types of the host operating system and the client operating system.
  • Operating system the client operating system is The operating system is used as an example to illustrate the content of the embodiment of the present application.
  • Those skilled in the art can understand that the embodiment of the present application can also be implemented with other operating systems, and the present application does not impose any limitation on this.
  • the electronic device 100 in the embodiment of the present application may be referred to as a host machine.
  • the electronic device 100 may be a desktop computer, a laptop computer, etc., which is not limited in the embodiment of the present application.
  • a host operating system may be installed on the electronic device 100, and a client operating system may be loaded on the host operating system.
  • the host operating system may include but is not limited to operating system, Operating system.
  • the client operating system may include but is not limited to operating system, operating system.
  • the screenshot sharing method provided in the embodiment of the present application can be implemented by installing a simulator on a computer (ie, a host machine).
  • a simulator ie, a host machine.
  • the embodiment of the present application does not limit the type of the simulator.
  • the simulator may be Huawei's Mobile Application Engine.
  • a set of user interfaces involved in the process of implementing the screenshot sharing method provided in an embodiment of the present application is exemplarily introduced below in conjunction with FIG. 2A-FIG 2E.
  • 2A-2B exemplarily show a set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application.
  • user interface 210 may be a user interface involved in the screenshot process of the screenshot sharing method provided in the embodiment of the present application.
  • the screenshot sharing method provided in the embodiment of the present application utilizes the screenshot function of the host operating system to complete the screenshot process, wherein the screenshot function of the host operating system can be a system-provided one (for example, provided by a system application) or provided by a third-party application installed by the host operating system, and the embodiment of the present application does not limit this.
  • the embodiment of the present application does not limit the way in which the user triggers the display of the user interface 210 shown in Figure 2A.
  • it can be triggered by a shortcut key on the keyboard of the electronic device 100; for another example, it can be triggered by the touch screen, touchpad or mouse of the electronic device 100; for another example, it can be triggered by the user's voice command operation or air gesture; and so on.
  • the user interface 210 exemplarily shown in FIG. 2A may be triggered to be displayed after the user performs an operation (eg, clicks) on the “screenshot” option in the window 120 exemplarily shown in FIG. 1B .
  • an operation eg, clicks
  • the user interface 210 may include a screenshot area 220 and a window 230 .
  • the screenshot area 220 can be freely selected by the user, that is, after the user triggers the display of the user interface 210, the host operating system can support the user to freely select the screenshot area in the user interface 210, which is flexible and convenient, and improves the user experience.
  • the user can also be supported to capture any user interface displayed by the host operating system (such as the blank user interface in the screenshot area 220 in FIG2A except the user interface of the "Reading" application, that is, a part of the user interface of the desktop).
  • a plurality of boundary points may be displayed on the four boundary lines of the screenshot area 220, such as boundary point 221, boundary point 222, boundary point 223, boundary point 224, boundary point 225, boundary point 226, boundary point 227, and boundary point 228.
  • boundary points may be used to adjust the size of the screenshot area 220.
  • the user may expand or reduce the screenshot area 220 in different directions by dragging these boundary points.
  • the boundary point 221 can be used by the user to expand the screenshot area 220 to the upper left or to reduce it to the lower right.
  • the user can drag the boundary point 221 to the upper left to expand the screenshot area 220 to the upper left; for another example, the user can drag the boundary point 221 to the lower right to reduce the screenshot area 220 to the lower right.
  • the boundary point 222 can be used by the user to expand the screenshot area 220 upward or reduce it downward.
  • the user can drag the boundary point 222 upward to expand the screenshot area 220 upward; for another example, the user can drag the boundary point 222 downward to reduce the screenshot area 220 downward.
  • the boundary point 223 can be used by the user to expand the screenshot area 220 to the upper right or to reduce it to the lower left.
  • the user can drag the boundary point 223 to the upper right to expand the screenshot area 220 to the upper right; for another example, the user can drag the boundary point 223 to the lower left to reduce the screenshot area 220 to the lower left.
  • the boundary point 224 can be used by the user to expand the screenshot area 220 to the right or to shrink it to the left.
  • the user can drag the boundary point 224 to the right to expand the screenshot area 220 to the right; for another example, the user can drag the boundary point 224 to the left to shrink the screenshot area 220 to the left.
  • the boundary point 225 can be used by the user to expand the screenshot area 220 to the lower right or to shrink it to the upper left.
  • the user can drag the boundary point 225 to the lower right to expand the screenshot area 220 to the lower right; for another example, the user can drag the boundary point 225 to the upper left to shrink the screenshot area 220 to the upper left.
  • the boundary point 226 can be used by the user to expand the screenshot area 220 directly downward or shrink it directly upward.
  • the user can drag the boundary point 226 directly downward to expand the screenshot area 220 directly downward; for another example, the user can drag the boundary point 226 directly upward to shrink the screenshot area 220 directly upward.
  • the boundary point 227 can be used by the user to expand the screenshot area 220 to the lower left or to shrink it to the upper right.
  • the user can drag the boundary point 227 to the lower left to expand the screenshot area 220 to the lower left; for another example, the user can drag the boundary point 227 to the upper right to shrink the screenshot area 220 to the upper right.
  • the boundary point 228 can be used by the user to expand the screenshot area 220 to the left or to reduce it to the right.
  • the user can drag the boundary point 228 to the left to expand the screenshot area 220 to the left; for another example, the user can drag the boundary point 228 to the right to reduce the screenshot area 220 to the right.
  • the window 230 may include one or more options, for example, option 231, option 232, option 233, option 234, option 235, option 236, option 237, option 238, option 239, option 240, option 241, option 242, option 243, option 244, option 245, option 246, option 247, option 248, option 2 235, Option 236, Option 237, Option 238, Option 239, Option 240.
  • Option 231 can be used to add a box mark in the screenshot area 220 and freely select any area in the screenshot area 220.
  • Option 232 can be used to add an elliptical frame annotation in the screenshot area 220 and freely select any area in the screenshot area 220.
  • Option 233 may be used to add an arrow annotation to the screenshot area 220 .
  • Option 234 may be used to add a pen annotation (eg, a highlighter annotation) to the screenshot area 220 .
  • a pen annotation eg, a highlighter annotation
  • Option 235 may be used to add a mosaic annotation to the screenshot area 220 .
  • Option 236 may be used to add a text annotation to the screenshot area 220 .
  • Option 237 may be used to undo the annotation added in the screenshot area 220 .
  • Option 238 can be used to save the screenshot image of the screenshot area 220 (including the user interface displayed on the screen and the annotations added by the user), that is, to save the screenshot image of the screenshot area 220 as a file with a customizable file name.
  • Option 239 can be used to exit the screenshot, that is, cancel the display of the current screenshot interface, and will not save the screenshot image of the screenshot area 220, nor will it save the screenshot image of the screenshot area 220 to the clipboard.
  • Option 240 can be used to complete the screenshot, that is, cancel the display of the current screenshot interface and save the screenshot image of the screenshot area 220 to the clipboard.
  • these options in the window 230 can be used to support the user to perform various editing operations in the screenshot area 220, thereby meeting the personalized needs of the user.
  • the electronic device 100 can detect the user's operation (such as a click operation) on option 240 in FIG2B , and in response to the operation, the electronic device 100 can save the screenshot image in FIG2B to the clipboard.
  • the user's operation such as a click operation
  • the exemplary picture 250 shown in FIG. 2C may be a screenshot image generated by the screenshot process shown in FIG. 2A-FIG. 2B . It can be seen that, unlike the picture 130 in FIG. 1C , the picture 250 includes not only the captured user interface of the application program of the client operating system, but also the user interface other than the user interface of the application program of the client operating system, and also includes annotations added by the user. In this way, the powerful screenshot editing function provided by the host operating system is fully utilized, so as to meet the personalized needs of users and improve the user experience.
  • 2D-2E exemplarily illustrate a set of user interfaces involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application.
  • chat application i.e., an application with social functions
  • client operating system i.e., an application with social functions
  • user interface 260 can be a user interface of a "chat" application program of a client operating system. It can be seen that the user interface can be a chat interface between the user and his friend Lily.
  • the electronic device 100 can automatically complete the cross-system clipboard content sharing (that is, share the content in the clipboard of the host operating system to the clipboard of the client operating system), that is, the electronic device 100 can share the information of the screenshot image generated by the screenshot process shown in Figures 2A-2B saved in the clipboard of the host operating system to the clipboard of the client operating system.
  • the electronic device 100 can automatically trigger the display of a floating window 261 in the user interface 260 based on the information of the screenshot image shared by the above-mentioned host operating system.
  • the window can include pictures that the user may want to send, and the picture can be a screenshot image generated by the host operating system, such as the picture 250 shown in the above-mentioned Figure 2C.
  • the electronic device 100 can detect the user's operation on the floating window 261 (e.g., a click operation on the picture 250 in the floating window 261), and in response to the operation, the electronic device 100 can send the picture 250 to the electronic device of the friend Lily through the "chat" application, and display the chat message 271 shown in FIG. 2E in the user interface 260, which can be a message for the user to share the picture 250 with his friend Lily.
  • the process of sharing the screenshot is completed.
  • the sending of the screenshot can also be triggered by other methods.
  • the user directly triggers the display of the paste option by right-clicking the mouse in the input box, and clicks the paste option to display the screenshot in the input box. Then the user clicks the send option to complete the process of sharing the screenshot.
  • the user can also directly Then use the shortcut keys on the keyboard to paste the screenshot in the input box. In this way, the screenshot can be displayed in the input box, and then the user clicks the send option to complete the process of sharing the screenshot.
  • the electronic device 100 may also only display the user interface of the "chat” application for sharing screenshots, without displaying the user interfaces of other applications (such as the user interface of the "reading” application).
  • the electronic device 100 can simultaneously display the user interfaces of multiple applications of the client operating system.
  • the above-mentioned Figures 2A to 2E are only used to capture the user interface of an application of the client operating system as an example to illustrate the process of implementing the screenshot sharing method provided in the embodiment of the present application. It is easy to understand that the screenshot sharing method provided in the embodiment of the present application can also be applied to the scenario of capturing the user interfaces of multiple applications of the client operating system.
  • the process of implementing the screenshot sharing method provided in the embodiment of the present application is illustrated below in conjunction with Figures 3A to 3F by taking the user interfaces of two applications of the client operating system as an example.
  • FIG. 3A-FIG Another set of user interfaces involved in the process of implementing the screenshot sharing method provided in the embodiment of the present application is exemplarily introduced below in conjunction with FIG. 3A-FIG .
  • 3A-3C exemplarily illustrate another set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application.
  • user interface 310 may be a user interface of an application of the client operating system (eg, a user interface of a “Shopping 1” application), and user interface 320 may be a user interface of another application of the client operating system (eg, a “Shopping 2” application).
  • an application of the client operating system eg, a user interface of a “Shopping 1” application
  • user interface 320 may be a user interface of another application of the client operating system (eg, a “Shopping 2” application).
  • the electronic device 100 may detect an operation by the user to trigger the display of a screenshot interface, and in response to the operation, the electronic device 100 may display the user interface 330 exemplarily shown in FIG. 3B .
  • the user interface 330 (ie, the screenshot interface) may be a user interface involved in the screenshot process of the screenshot sharing method provided in the embodiment of the present application.
  • the screenshot sharing method provided in the embodiment of the present application utilizes the screenshot function of the host operating system to complete the screenshot process, wherein the screenshot function of the host operating system can be a system-provided one (for example, provided by a system application) or provided by a third-party application installed by the host operating system, and the embodiment of the present application does not limit this.
  • the embodiment of the present application does not limit the implementation method of the above-mentioned "user triggering the operation of displaying the screenshot interface".
  • the user may trigger the operation of displaying the screenshot interface through a shortcut key on the keyboard of the electronic device 100; for another example, the user may trigger the operation of displaying the screenshot interface through the touch screen, touchpad or mouse of the electronic device 100; for another example, the user may trigger the operation of displaying the screenshot interface through a voice command or a gesture in the air; and so on.
  • the “screenshot” option in window 120 shown in FIG1B can also be displayed through operation option 114. Therefore, the above-mentioned “user triggering operation to display the screenshot interface” can also be the user’s operation (such as a click operation) on the “screenshot” option in window 120 displayed on user interface 310 or user interface 320.
  • the user interface 330 may include a screenshot area 340 and a window 350 .
  • the screenshot area 340 can be freely selected by the user, that is, after the user triggers the display of the user interface 330, the host operating system can support the user to freely select the screenshot area in the user interface 330, which is flexible and convenient, and improves the user experience.
  • the user can also be supported to capture any user interface displayed by the host operating system (such as the blank user interface in the screenshot area 340 in FIG3B except the user interface of the "Shopping 1" application and the user interface of the "Shopping 2" application, that is, a part of the user interface of the desktop).
  • the host operating system such as the blank user interface in the screenshot area 340 in FIG3B except the user interface of the "Shopping 1" application and the user interface of the "Shopping 2" application, that is, a part of the user interface of the desktop).
  • a plurality of boundary points may be displayed on the four boundary lines of the screenshot area 340, and these boundary points may be used to adjust the size of the screenshot area 340.
  • the user may expand or reduce the screenshot area 340 in different directions by dragging these boundary points.
  • each boundary point of the screenshot area 340 can be referred to the aforementioned description of each boundary point of the screenshot area 220. The relevant text description of the point will not be repeated here.
  • the options in window 350 may be used to support the user in performing various editing operations in the screenshot area 340 .
  • each option in window 350 For the specific functions of each option in window 350 , reference may be made to the aforementioned text descriptions of each option in window 230 , which will not be repeated here.
  • the electronic device 100 can detect the user's operation (such as a click operation) on option 351 in FIG3C , and in response to the operation, the electronic device 100 can save the screenshot image in FIG3C to the clipboard.
  • the user's operation such as a click operation
  • the exemplary picture 360 shown in FIG. 3D may be a screenshot image generated by the screenshot process shown in FIG. 3A to FIG. 3C .
  • the picture 360 includes not only the user interfaces of multiple applications of the client operating system that have been captured, but also the user interfaces other than the user interfaces of the applications of the client operating system, and also includes annotations added by the user.
  • the powerful screenshot editing function provided by the host operating system is fully utilized, thereby meeting the personalized needs of users and improving the user experience.
  • 3E-3F exemplarily illustrate another set of user interfaces involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application.
  • user interface 370 can be a user interface of a "chat" application program of a client operating system. It can be seen that the user interface can be a chat interface between the user and his friend Lily.
  • the electronic device 100 can automatically complete the cross-system clipboard content sharing (that is, share the content in the clipboard of the host operating system to the clipboard of the client operating system), that is, the electronic device 100 can share the information of the screenshot image generated by the screenshot process shown in Figures 3A-3C saved in the clipboard of the host operating system to the clipboard of the client operating system.
  • the electronic device 100 can automatically trigger the display of a floating window 371 in the user interface 370 based on the information of the screenshot image shared by the above-mentioned host operating system.
  • the window can include pictures that the user may want to send, and the picture can be a screenshot image generated by the host operating system, such as the picture 360 shown in the above-mentioned Figure 3D.
  • the electronic device 100 can detect the user's operation on the floating window 371 (e.g., a click operation on the picture 360 in the floating window 371), and in response to the operation, the electronic device 100 can send the picture 360 to the electronic device of the friend Lily through the "chat" application, and display the chat message 381 shown in FIG. 3F in the user interface 370, which can be a message for the user to share the picture 360 with his friend Lily.
  • the process of sharing the screenshot is completed.
  • the sending of screenshots can also be triggered in other ways.
  • the user directly triggers the display of the paste option by right-clicking the mouse in the input box, and clicks the paste option to display the screenshot in the input box. The user then clicks the send option to complete the process of sharing the screenshot.
  • the user can also directly paste the screenshot in the input box through the shortcut keys on the keyboard. In this way, the screenshot can be displayed in the input box, and the user then clicks the send option to complete the process of sharing the screenshot.
  • the electronic device 100 may also only display the above-mentioned The user interface of the “Chat” application in the screenshot is shared, while the user interfaces of other applications (such as the user interface of the “Shopping 1” application and the user interface of the “Shopping 2” application) are not displayed.
  • the user can capture any user interface displayed on the electronic device 100.
  • the user captures the user interface of the open application of the client operating system and the desktop of the host operating system as an example.
  • the present application is not limited to this.
  • the user can also capture other user interfaces, for example, the user interface of the application of the host operating system. This embodiment of the present application is not limited to this.
  • FIG4 exemplarily shows a specific process of a screenshot sharing method provided in an embodiment of the present application.
  • the method can be applied to an electronic device 100 .
  • the electronic device 100 can be installed with a host operating system, and a client operating system can be loaded on the host operating system.
  • the specific steps of the method are described in detail below:
  • the host operating system detects that the user triggers an operation to display a screenshot interface. In response to the operation, the host operating system can display the screenshot interface and detect the user's screenshot operation on the screenshot interface. In response to the operation, the host operating system generates a screenshot image 1 and saves the information of the screenshot image 1 to the clipboard of the host operating system.
  • the above-mentioned "operation of the user triggering the display of the screenshot interface” can be the user triggering the operation of displaying the screenshot interface through the shortcut key on the keyboard of the electronic device 100, or the user triggering the operation of displaying the screenshot interface through the touch screen, touchpad or mouse of the electronic device 100, or the user's voice command or air gesture to trigger the operation of displaying the screenshot interface, etc., the embodiment of the present application is not limited to this.
  • the “screenshot interface” mentioned above may be a user interface for performing a screenshot operation (eg, the user interface 210 in FIG. 2A , or the user interface 330 in FIG. 3B ).
  • the above-mentioned "screenshot operation” can be an operation in which the user selects a screenshot area (for example, selects the screenshot area 220 in Figure 2A, or selects the screenshot area 340 in Figure 3B) and completes the screenshot (for example, clicks option 240 in Figure 2B, or clicks option 351 in Figure 3C); or, the user selects the screenshot area and edits the image of the screenshot area (for example, adding a box annotation, adding an ellipse box annotation, adding an arrow annotation, adding a brush annotation, adding a mosaic annotation, adding a text annotation, etc.), and then completes the screenshot operation.
  • a screenshot area for example, selects the screenshot area 220 in Figure 2A, or selects the screenshot area 340 in Figure 3B
  • completes the screenshot for example, clicks option 240 in Figure 2B, or clicks option 351 in Figure 3C
  • the user selects the screenshot area and edits the image of the screenshot area (for example, adding a box annotation, adding an ellips
  • the “screenshot image 1 ” mentioned above may be generated after the user performs a screenshot operation (eg, the image 250 in FIG. 2C , or the image 360 in FIG. 3D ).
  • the host operating system may save the information of the screenshot image 1 to the clipboard of the host operating system.
  • the above-mentioned “information of screenshot image 1 ” may include image data of screenshot image 1 , description information (such as data name, data type, data size, data generation time, etc.), etc.
  • the information of the screenshot image 1 is saved in the clipboard of the host operating system, and specifically, the image data of the screenshot image 1 is saved in the clipboard of the host operating system.
  • the image data of the screenshot image 1 may be the image data of the original image of the screenshot image 1.
  • the host operating system determines whether the latest content saved in the clipboard is a picture. If so, the information of the screenshot image 1 is saved in the shared folder. If not, the subsequent steps are not executed.
  • the host operating system can monitor in real time whether the content in its clipboard has changed. When it detects that the content in its clipboard has changed, the host operating system can determine whether the latest content saved in the clipboard is a picture. Taking the latest content saved in the clipboard as the above-mentioned screenshot image 1 as an example, the host operating system can determine that screenshot image 1 is a picture. After that, the host operating system can save the information of screenshot image 1 to the shared folder.
  • the shared folder may be a folder that both the host operating system and the client operating system have access rights to.
  • the shared folder can be a folder in the host operating system or a folder in the client operating system.
  • the data in the shared folder can be stored by a shared data storage module, which will be described in the following embodiments and will not be expanded here.
  • file sharing between the client operating system and the host operating system can be achieved based on a file system service of a shared folder.
  • the file system service can be 9p-virtio (Plan 9 folders sharing over Virtio-I/O virtualization framework).
  • the host operating system may not execute subsequent steps.
  • the host operating system sends a message 1 to the guest operating system.
  • the message is used to instruct the guest operating system to obtain information of the screenshot image 1 .
  • the host operating system may send a message 1 to the client operating system, where the message is used to instruct the client operating system to obtain the information of the screenshot image 1 .
  • the host operating system can send message 1 to notify the client operating system that there is new content saved in the clipboard of the host operating system to be shared with the client operating system, and the client operating system can obtain the new content saved in the clipboard of the host operating system from the shared folder.
  • the above message 1 can be a message sent through inter-process communication (IPC).
  • IPC inter-process communication
  • the inter-process communication can be implemented by using a pipe, but is not limited to this, and can also be implemented in other ways, which is not limited in the embodiment of the present application.
  • the client operating system obtains information of the screenshot image 1. Afterwards, the client operating system saves the information of the screenshot image 1 to the clipboard of the client operating system.
  • the client operating system can obtain the information of the screenshot image 1 based on the message 1, for example, obtaining the information of the screenshot image 1 from the shared folder of the electronic device 100. After obtaining the information of the screenshot image 1, the client operating system can save the information of the screenshot image 1 to the clipboard of the client operating system so that the subsequent application of the client operating system can use it.
  • the information of the screenshot image 1 is saved in the clipboard of the client operating system, and specifically, the image data of the screenshot image 1 is saved in the clipboard of the client operating system.
  • the image data of the screenshot image 1 may be the image data of the original image of the screenshot image 1.
  • the client operating system determines whether the latest content saved in the clipboard is a picture. If so, it scans the path of the screenshot image 1 in the shared folder and inserts the information of the screenshot image 1 into the media database based on the above path. If not, the subsequent steps are not executed.
  • the client operating system can monitor in real time whether the content in its clipboard has changed. When it detects that the content in its clipboard has changed, the client operating system can determine whether the latest content saved in the clipboard is a picture. Taking the latest content saved in the clipboard as the above-mentioned screenshot image 1 as an example, the client operating system can determine that screenshot image 1 is a picture. After that, the client operating system can scan the path of screenshot image 1 in the shared folder, and can insert the information of screenshot image 1 into the media database based on the above-mentioned path, that is, insert the information of screenshot image 1 into the media database as a database record.
  • the client operating system inserts the information of the screenshot image 1 into the media database based on the above path. Specifically, the client operating system may insert the information of the screenshot image 1 into the media database when it determines that the screenshot image 1 meets the preset rules based on the above path.
  • the above-mentioned “preset rules” may include but are not limited to preset screenshot rules, wherein the “preset screenshot rules” may refer to preset rules for determining whether the content saved in the clipboard is a screenshot image, and the above-mentioned “preset screenshot rules” may include but are not limited to: the naming of the screenshot image 1 includes specific keywords (such as keywords such as "screenshot"), and the time interval between the time point recorded in the timestamp information of the screenshot image 1 (that is, the timestamp information generated by the screenshot image 1) and the current time point (that is, the time point of scanning the path of the screenshot image 1) is within a preset time interval (for example, 10 seconds, 20 seconds, etc.).
  • a preset time interval for example, 10 seconds, 20 seconds, etc.
  • multiple fields can be used to record data in the data table of the media database.
  • These multiple fields may include but are not limited to: _id (i.e., the serial number inserted into the media database, increasing from 1), _data (absolute path of the file), _size (size of the file), _display_name (file name with extension), mime_type (Multipurpose Internet Mail Extension type, consisting of two parts: data category/specific category under the category), title (file name without extension).
  • the client operating system may not execute subsequent steps. Steps.
  • the information of screenshot image 1 is inserted into the media database.
  • the description information of screenshot image 1 (such as data name, data type, data size, data generation time, etc.) is inserted into the media database, thereby generating a database record so that subsequent applications can detect that a new database record has been inserted into the media database.
  • the client operating system detects an operation of a user opening the user interface 1 of the client operating system's application program 1 .
  • application 1 can be a social application (such as the aforementioned "chat” application) as an example, and the user interface 1 of application 1 can be a user interface of application 1 for chatting with friends (such as the user interface 260 of the "chat” application in the aforementioned Figure 2D, or the user interface 370 of the "chat” application in Figure 3E).
  • a social application such as the aforementioned "chat” application
  • the user interface 1 of application 1 can be a user interface of application 1 for chatting with friends (such as the user interface 260 of the "chat” application in the aforementioned Figure 2D, or the user interface 370 of the "chat” application in Figure 3E).
  • the screenshot sharing method proposed in the embodiment of the present application can only be executed when the user interface 1 of the above-mentioned application 1 meets the conditions for sharing screenshots, wherein the "conditions for sharing screenshots" may include but are not limited to: an input box is displayed in the user interface 1 of the application 1, controls that can be used for file sharing are displayed, and so on.
  • the embodiment of the present application does not limit the execution time sequence of the above step S411.
  • the above step S411 can be executed after the user completes the screenshot operation, or before the user triggers the operation of displaying the screenshot interface.
  • application 1 obtains information of screenshot image 1 from the clipboard of the client operating system.
  • the application 1 can obtain the information of the screenshot image 1 from the clipboard of the client operating system.
  • application 1 when application 1 is in operation or when application 1 is displaying user interface 1, application 1 can monitor whether the content in the media database of the client operating system has changed. When it is determined that the content in the media database has changed, application 1 can obtain the changed content from the clipboard of the client operating system. Assuming that the changed content (i.e., the content most recently inserted into the media database) is the information of the aforementioned screenshot image 1, since the client operating system has saved the information of the screenshot image 1 to the clipboard of the client operating system, application 1 can obtain the information of the screenshot image 1 from the clipboard of the client operating system.
  • the changed content i.e., the content most recently inserted into the media database
  • the client operating system can also insert the information of the screenshot image 1 into the media database in order to automatically trigger the screenshot sharing action.
  • the application 1 can monitor whether the content in the media database has changed, in this way, when the content in the media database is monitored to have changed, the application 1 can trigger the display of a floating window (such as the floating window 1 shown in the following step S413), that is, automatically trigger the screenshot sharing action, so as to achieve the purpose of one-click screenshot sharing.
  • application 1 can also determine whether the changed content in the media database complies with preset rules (such as preset screenshot rules). If so, the information of screenshot image 1 is obtained from the clipboard of the client operating system. If not, the information of screenshot image 1 is not obtained from the clipboard of the client operating system, and the subsequent steps are not executed.
  • preset rules such as preset screenshot rules
  • the above-mentioned preset rules may include but are not limited to: the naming of the screenshot image 1 includes specific keywords (such as keywords such as "screenshot"), and the time interval between the time point recorded in the timestamp information of the screenshot image 1 (such as "20220429_161813") and the current time point (that is, the time point when the application 1 determines whether the content that has changed in the media database complies with the preset rules) is within a certain preset time interval (such as 10 seconds, 20 seconds, etc.).
  • specific keywords such as keywords such as “screenshot”
  • the time interval between the time point recorded in the timestamp information of the screenshot image 1 such as "20220429_161813”
  • the current time point that is, the time point when the application 1 determines whether the content that has changed in the media database complies with the preset rules
  • a certain preset time interval such as 10 seconds, 20 seconds, etc.
  • Application 1 displays floating window 1 in user interface 1 .
  • the floating window is generated based on screenshot image 1 .
  • the application 1 may generate and display the floating window 1 based on the screenshot image 1 in the user interface 1 .
  • the floating window 1 may be the floating window 261 in FIG. 2D
  • the screenshot image 1 may be the picture 250 in FIG. 2C .
  • the floating window 1 may also be the floating window 371 in FIG. 3E
  • the screenshot image 1 may be the picture 360 in FIG. 3D .
  • the image displayed in the above floating window 1 can be a thumbnail of the screenshot image 1 or the original image of the screenshot image 1, and the embodiment of the present application does not limit this. It is easy to understand that the thumbnail of the screenshot image 1 is also generated based on the image data of the screenshot image 1 saved in the clipboard.
  • the client operating system detects the user's operation on the floating window 1, and in response to the operation, the client operating system can The electronic device 200 (eg, a friend's electronic device) sends the screenshot image 1 .
  • the electronic device 200 eg, a friend's electronic device
  • the client operating system sends the screenshot image 1 to the electronic device 200 (for example, a friend's electronic device). Specifically, the client operating system sends the screenshot image 1 to the electronic device 200 (for example, a friend's electronic device) through the hardware communication module provided by the electronic device 100.
  • the electronic device 100 when the electronic device 100 is installed with a host operating system and a client operating system is loaded on the host operating system, after detecting that the user triggers a screenshot operation, the electronic device 100 can support the user to freely perform image capture operations and image editing operations in any area through the host operating system, thereby generating a screenshot image. Furthermore, the electronic device 100 can save the information of the screenshot image to the clipboard of the host operating system. After that, the host operating system can also share the information of the screenshot image to the clipboard of the client operating system to achieve cross-system image transmission. The entire process does not require the user to manually save and copy the screenshot image data, and when the user shares the screenshot image, there is no need for complicated manual selection, sharing and other steps. Simplifying user operations can effectively improve the user experience of using the simulator, so that the user cannot perceive the differences between systems in the ecological integration scenario, thereby improving the competitiveness of ecological integration products.
  • the screenshot image 1 in FIG. 4 can also be viewed in the "Gallery” application.
  • the user when the user shares the screenshot image 1 with friends, the user can first select the screenshot image 1 in the "Gallery” application and then share the screenshot image 1, as in the screenshot sharing process shown in FIG. 1D to FIG. 1G.
  • the "Gallery” application can obtain the path of the screenshot image 1 in the shared folder based on the information of the screenshot image 1 recorded in the media database and display the screenshot image 1.
  • the information of the screenshot image 1 in FIG. 4 may also be sent by the host operating system to the client operating system through the message 1 in the aforementioned step S406, that is, the message 1 may include the information of the screenshot image 1.
  • the client operating system may save the information of the screenshot image 1 included in the message 1 to its clipboard, and after determining that the information of the screenshot image 1 meets the preset screenshot rule, insert it into the media database, and then execute the subsequent steps.
  • the host operating system may not save the information of the screenshot image 1 to the shared folder.
  • the host operating system can save the text to the clipboard and determine that the latest content saved in the clipboard is not a picture but text.
  • the host operating system can also send the text information to the client operating system, for example, in the form of an IPC message to the client operating system.
  • the client operating system can save the text to the clipboard, so that the application of the client operating system can directly use the text.
  • the following introduces a software structure of an electronic device 100 provided in an embodiment of the present application.
  • FIG. 5 exemplarily shows a software structure of an electronic device 100 provided in an embodiment of the present application.
  • the software structure of the electronic device 100 may include a user space and a kernel space.
  • the software structure of the electronic device 100 is exemplified.
  • the operating system is an example of the software environment required for the technical solution of the embodiment of the present application. Those skilled in the art can understand that the embodiment of the present application can also be implemented with other operating systems.
  • the user space may include: a screenshot application, a clipboard management module (ClipboardManager), a clipboard service module (ClipboardService), and a clipboard listening module (ClipboardListener). Among them:
  • the screenshot application may be an application that can provide a screenshot function.
  • the application may be a system-provided application or a third-party application installed by the system, which is not limited in the present embodiment of the application.
  • the screenshot application can support users to freely perform image capture operations of any area, edit images, etc.
  • the clipboard management module can be used to provide an interface for the application to call clipboard related services.
  • the application can obtain the content saved in the following clipboard service module by calling the clipboard management module to implement the paste function; for another example, the application can save the copied content to the following clipboard service module by calling the clipboard management module to implement the copy function.
  • the clipboard service module can be used to provide clipboard related services.
  • the clipboard service module can save the content copied by the user (such as text, screenshot images, etc.); for another example, the clipboard service module can determine whether the content copied by the user is a picture (such as a screenshot image, etc.); for another example, the clipboard service module can also send the information of the saved picture (such as a screenshot image, etc.) to the shared data storage module described below, so that the shared data storage module can save the information of the picture; and so on. It is easy to understand that saving data to the clipboard service module That is, you can think of it as saving the data to the clipboard.
  • the clipboard listening module can be used to monitor whether the content in the clipboard has changed (i.e., whether the content saved in the clipboard service module has changed); it can also be used to send an IPC message to the client operating system through the following inter-process communication module after detecting that the content in the clipboard has changed; and so on.
  • the kernel space may include: a shared data storage module and an inter-process communication module.
  • the shared data storage module can be used to store shared data (ie, data that both the host operating system and the client operating system have the right to access).
  • shared data ie, data that both the host operating system and the client operating system have the right to access.
  • the shared data storage module can receive information about a picture sent by the clipboard service module and store the information about the picture.
  • a portion of the shared data storage module may be contained in user space.
  • the inter-process communication module can be used to implement the function of communicating between two processes. For example, the inter-process communication module can send an IPC message to the client operating system after the clipboard listening module detects that the content in the clipboard has changed.
  • FIG. 6 exemplarily shows a software structure of another electronic device 100 provided in an embodiment of the present application.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture.
  • the software structure of the electronic device 100 is exemplified.
  • the operating system is an example of the software environment required for the technical solution of the embodiment of the present application. Those skilled in the art can understand that the embodiment of the present application can also be implemented with other operating systems.
  • the layered architecture divides the software into several layers, each with a clear role and division of labor.
  • the layers communicate with each other through software interfaces.
  • the operating system is divided into four layers, from top to bottom: application layer, application framework layer, system service layer, and kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications such as camera, gallery, calendar, call, map, chat, WLAN, Bluetooth, music, video, short message, etc.
  • the chat application can be a social application that can realize multiple functions. For example, it can be used for users to share data (such as pictures, texts, etc.) with other users who use the application; for another example, it can be used for users to receive data (such as pictures, texts, etc.) shared by other users who use the application; for another example, the chat application can also monitor changes in the content of the media database; for another example, the chat application can read the information in the clipboard; and so on.
  • data such as pictures, texts, etc.
  • receive data such as pictures, texts, etc.
  • the chat application can also monitor changes in the content of the media database
  • the chat application can read the information in the clipboard; and so on.
  • chat application is only a term used in the embodiment of the present application. The meaning it represents has been recorded in the embodiment of the present application, and its name does not constitute any limitation to the embodiment of the present application.
  • the application framework layer provides application programming interface (API) and programming framework for the applications in the application layer.
  • API application programming interface
  • the application framework layer includes some predefined functions.
  • the application framework layer may include a window manager, a view system, a resource manager, a notification manager, a clipboard management module (ClipboardManager), and the like.
  • the window manager is used to manage window programs.
  • the window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • the view system includes visual controls, such as controls for displaying text, controls for displaying images, etc.
  • the view system can be used to build applications.
  • a display interface can be composed of one or more views.
  • a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
  • the resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
  • the notification manager allows applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, it can prompt text information in the status bar and emit a prompt sound.
  • the Clipboard Manager module can be used to provide applications with interfaces for calling clipboard-related services. For example, an application can obtain the content saved in the following clipboard service module by calling the Clipboard Manager module to implement the paste function; for another example, an application can save the copied content to the following clipboard service module by calling the Clipboard Manager module to implement the copy function.
  • the system service layer can include multiple functional modules. For example: surface manager (Surface Manager), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), clipboard service module (ClipboardService), media scanning service module (MediaScannerService), media database (Media Database), etc.
  • surface manager Surface Manager
  • 3D graphics processing library for example: OpenGL ES
  • 2D graphics engine for example: SGL
  • clipboard service module for example: SGL
  • MediaScannerService media scanning service module
  • Media Database media database
  • the surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
  • a 2D graphics engine is a drawing engine for 2D drawings.
  • the clipboard service module can be used to provide clipboard related services. For example, the clipboard service module can obtain and save the shared data (such as screenshot images, etc.) in the shared data storage module; for another example, the clipboard service module can determine whether the shared data in the shared data storage module obtained is a picture (such as a screenshot image, etc.); for another example, the clipboard service module can notify the following media scanning service module to scan the path of the shared data in the shared data storage module when it is determined that the shared data in the shared data storage module obtained is a picture; and so on. It is easy to understand that saving data in the clipboard service module can be considered as saving the data in the clipboard.
  • the shared data such as screenshot images, etc.
  • the media scanning service module can be used to scan media files.
  • the media scanning service module can receive an instruction message sent by the clipboard service module, and based on the instruction message, scan the path of the shared data in the shared data storage module, and insert the information of the shared data that meets the preset rules (such as the preset screenshot rules) into the following media database.
  • the preset rules such as the preset screenshot rules
  • the media database can be used to store information about media files, for example, information about the shared data that complies with preset rules.
  • the kernel layer may also include a shared data storage module and an inter-process communication module.
  • the shared data storage module can be used to store shared data (i.e., data that both the host operating system and the client operating system have access to).
  • shared data i.e., data that both the host operating system and the client operating system have access to.
  • the shared data storage module can receive and store information about shared data synchronized from the shared data storage module in the host operating system. It is easy to understand that all files in the "shared folder" in the aforementioned embodiment can be stored in the shared data storage module.
  • the inter-process communication module can be used to implement the function of communication between two processes.
  • the inter-process communication module can receive an IPC message sent by the host operating system, and can also send the IPC message to the clipboard service module.
  • FIG. 7 exemplarily shows a possible collaboration mode between various modules when the electronic device 100 implements the screenshot sharing method provided in an embodiment of the present application when a host operating system is installed and a client operating system is loaded on the host operating system.
  • a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 1 and 2:
  • Step 1-Step 2 After the screenshot application generates the screenshot image 1, the screenshot application can send the information of the screenshot image 1 to the clipboard service module of the host operating system by calling the clipboard management module of the host operating system, and the clipboard service module of the host operating system can save the information of the screenshot image 1.
  • a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 3-4:
  • Step 3 The clipboard service module of the host operating system can determine whether the screenshot image 1 is a picture. If so, the information of the screenshot image 1 is sent to the shared data storage module of the host operating system, and the shared data storage module of the host operating system can save the information of the screenshot image 1.
  • Step 4 The shared data storage module of the host operating system may synchronize the information of the screenshot image 1 to the shared data storage module of the client operating system, and the shared data storage module of the client operating system may save the information of the screenshot image 1 .
  • a shared data storage module may exist in both the host operating system and the client operating system.
  • the shared data storage module may exist only in the host operating system but not in the client operating system.
  • the client operating system needs to obtain the information of the screenshot image 1 from the shared data storage module of the host operating system.
  • the shared data storage module may exist only in the client operating system but not in the host operating system.
  • the host operating system may save the information of the screenshot image 1 to the shared data storage module of the client operating system.
  • the client operating system may directly obtain the information of the screenshot image 1 from the shared data storage module of the client operating system.
  • a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 5 to 8:
  • Step 5 The clipboard listening module of the host operating system monitors in real time whether the content stored in the clipboard service module of the host operating system changes.
  • step 5 can be executed simultaneously when the above steps 1 to 4 are executed.
  • Step 6-Step 8 When the clipboard listening module of the host operating system detects that the content saved in the clipboard service module of the host operating system has changed, the clipboard listening module of the host operating system can send an IPC message to the clipboard service module of the client operating system through the inter-process communication module of the host operating system and the inter-process communication module of the client operating system. The message can be used to instruct the clipboard service module of the client operating system to obtain the information of the screenshot image 1.
  • a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in step 9 below:
  • Step 9 The clipboard service module of the client operating system obtains the information of the screenshot image 1 from the shared data storage module of the client operating system, and saves the information of the screenshot image 1.
  • a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 10-12:
  • Step 10-Step 12 The clipboard service module of the client operating system can determine whether the above-mentioned screenshot image 1 is a picture. If so, it can notify the media scanning service module of the client operating system to scan the path corresponding to the information of the screenshot image 1 in the shared data storage module of the client operating system. If the media scanning service module of the client operating system determines through the scanning operation that the information of the above-mentioned screenshot image 1 meets the preset rules, the information of the above-mentioned screenshot image 1 can be inserted into the media database of the client operating system.
  • a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 13-15:
  • Step 13 The chat application (ie, an application with social functions) of the client operating system can monitor in real time whether the content in the media database changes.
  • the chat application of the client operating system may not monitor the content in the media database for changes in real time, but may monitor the content in the media database for changes under certain conditions, such as when the chat application is opened, or when the chat interface of the chat application is triggered to be displayed.
  • Step 14-Step 15 When the chat application of the client operating system detects changes in the content in the media database of the host operating system, an automatic sharing action can be triggered, for example, a floating window 261 is displayed in the user interface 260 in Figure 2D. Furthermore, the chat application of the client operating system can obtain the information of the screenshot image 1 saved in the clipboard service module of the client operating system by calling the clipboard management module of the client operating system, and display the screenshot image 1 in the above-mentioned floating window 261 based on the information of the screenshot image 1.
  • FIG. 8 exemplarily shows the structure of an electronic device 100 provided in an embodiment of the present application.
  • the electronic device 100 may include a processor 110, an internal memory 120, an external memory interface 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a display screen 151, a keyboard 152, a camera 153, an audio module 160, a speaker 161, a receiver 162, a microphone 163, an earphone interface 164, a wired communication module 171, a wireless communication module 172, an antenna 1, a sensor module 180, etc.
  • the sensor module 180 may include a pressure sensor 180A, a fingerprint sensor 180B, a temperature sensor 180C, a touch sensor 180D, an ambient light sensor 180E, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
  • the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the electronic device 100 may also have a motor, a mobile communication module (2G/3G/4G/5G), a SIM card interface, an eSIM chip, and the like. Therefore, regarding the specific hardware structure of the electronic device 100, it may include more or fewer components than shown in the figure, or Combine some parts, or split some parts, or arrange the parts differently.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc.
  • AP application processor
  • GPU graphics processor
  • ISP image signal processor
  • controller a memory
  • video codec a digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • Different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the electronic device 100.
  • the controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in the processor 110 is a cache memory.
  • the memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • the interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
  • I2C inter-integrated circuit
  • I2S inter-integrated circuit sound
  • PCM pulse code modulation
  • UART universal asynchronous receiver/transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the USB interface 130 is an interface that complies with USB standard specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 may be used to connect a charger to charge the electronic device 100, or may be used to transmit data between the electronic device 100 and a peripheral device.
  • the interface may also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100.
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the internal memory 120 can be used to store computer executable program codes, which include instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 120.
  • the internal memory 120 may include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the data storage area may store data created during the use of the electronic device 100, etc.
  • the internal memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
  • UFS universal flash storage
  • the external memory interface 121 can be used to connect an external memory card, such as a mobile hard disk, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 121 to implement a data storage function, such as storing music, video and other files in an external storage hard disk.
  • the charging management module 140 is used to receive charging input from a charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from a wired charger through the USB interface 130.
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 120, the external memory, the display screen 151, the camera 153, and the wireless communication module 172.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc.
  • the power management module 141 can also be set in the processor 110.
  • the power management module 141 and the charging management module 140 can also be set in the same device.
  • the electronic device 100 implements the display function through a GPU, a display screen 151, and an application processor.
  • the GPU is a microprocessor for image processing, which connects the display screen 151 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the display screen 151 is used to display images, videos, etc.
  • the display screen 151 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (quantum dot light emitting diode), or a micro-LED.
  • the electronic device 100 may include 1 or N display screens 151, where N is a positive integer greater than 1.
  • the keyboard 152 may include a physical keyboard, a touch keyboard, etc.
  • the electronic device 100 may receive input from the keyboard and generate key signal input related to user settings and function control of the electronic device 100. For example, the user may use shortcut keys on the keyboard 152 to perform operations such as taking screenshots and pasting screenshot images.
  • the electronic device 100 can realize the shooting function through the ISP, the camera 153, the video codec, the GPU, the display screen 151 and the application processor.
  • the camera 153 is used to capture still images or videos.
  • the object generates an optical image through the lens and projects it onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor.
  • CMOS complementary metal oxide semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • the DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format.
  • the electronic device 100 may include 1 or N cameras 153, where N is a positive integer greater than 1.
  • the digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital videos.
  • the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG Moving Picture Experts Group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
  • the network communication function of the electronic device 100 can be implemented through the wired communication module 171, the wireless communication module 172, the antenna 1, the modem processor and the baseband processor. Through the network communication function of the electronic device 100, the electronic device 100 can communicate with other electronic devices, for example, to share screenshots with other electronic devices (such as a friend's electronic device).
  • Antenna 1 is used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas.
  • antenna 1 can be reused as a diversity antenna for a wireless local area network.
  • the antenna can be used in combination with a tuning switch.
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs a sound signal through an audio device (not limited to a speaker 161, a receiver 162, etc.), or displays an image or video through a display screen 151.
  • the modem processor may be an independent device.
  • the wired communication module 171 can provide wired communication solutions including Ethernet, local area network, Internet, etc. applied to the electronic device 100.
  • the wired communication module 171 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 172 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global navigation satellite system
  • FM frequency modulation
  • NFC near field communication
  • IR infrared
  • the wireless communication module 172 can be one or more devices integrating at least one communication processing module.
  • the wireless communication module 172 receives electromagnetic waves via the antenna 1, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110.
  • the wireless communication module 172 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 1.
  • the electronic device 100 can implement audio functions such as music playing and recording through the audio module 160 , the speaker 161 , the receiver 162 , the microphone 163 , the headphone jack 164 , and the application processor.
  • the audio module 160 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals.
  • the audio module 160 can also be used to encode and decode audio signals.
  • the audio module 160 can be arranged in the processor 110, or some functional modules of the audio module 160 can be arranged in the processor 110.
  • the speaker 161 also called a “speaker”, is used to convert an audio electrical signal into a sound signal.
  • the electronic device 100 can listen to music or listen to a hands-free call through the speaker 161 .
  • the receiver 162 also called a "handset" is used to convert audio electrical signals into sound signals. When the user is listening to the voice, the user can place the receiver 162 close to the ear.
  • Microphone 163, also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the user can speak by putting his mouth close to microphone 163 to input the sound signal into microphone 163.
  • the electronic device 100 can be provided with at least one microphone 163.
  • the electronic device 100 can be provided with two microphones 163, which can not only collect sound signals but also realize noise reduction function.
  • the electronic device 100 can also be provided with three, four or more microphones 163 to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
  • the earphone jack 164 is used to connect a wired earphone.
  • the earphone jack 164 can be the USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the sensor module 180 may include a pressure sensor 180A, a fingerprint sensor 180B, a temperature sensor 180C, a touch sensor 180D, an ambient light sensor 180E, and the like.
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A can be set on the display screen 151.
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor can be a parallel plate including at least two conductive materials.
  • the fingerprint sensor 180B is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
  • the temperature sensor 180C is used to detect temperature.
  • the electronic device 100 uses the temperature detected by the temperature sensor 180C to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180C exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180C to reduce power consumption and implement thermal protection. In other examples, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other examples, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • the touch sensor 180D is also called a "touch panel".
  • the touch sensor 180D is used to detect a touch operation applied thereto or thereabout.
  • the touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event.
  • a visual output related to the touch operation can be provided through the display screen 151.
  • the ambient light sensor 180E is used to sense the brightness of the ambient light.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 151 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180E can also be used to automatically adjust the white balance when the camera 153 is shooting.
  • the electronic device 100 shown in FIG8 is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG8, may combine two or more components, or may have a different component configuration.
  • the various components shown in FIG8 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the computer program product includes one or more computer instructions.
  • the computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.
  • the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated.
  • the available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
  • SSD solid state drive
  • the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium.
  • the program When the program is executed, it can include the processes of the above-mentioned method embodiments.
  • the aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, etc. The medium of the code.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present application discloses a screenshot sharing method and an electronic device. The electronic device 100 can be provided with a host operating system, and a client operating system can be loaded on the host operating system. After detecting an operation of a user triggering display of a screenshot interface, the electronic device 100 can support, by means of the host operating system, the user to freely carry out an image capturing operation and an image editing operation, etc. in any area, thereby generating a screenshot image, and save information of the screenshot image to a clipboard of the host operating system; then, the host operating system shares the information of the screenshot image to a clipboard of the client operating system, for use by an application of the client operating system, thereby achieving the effect that the application of the client operating system can directly paste the screenshot image. For a social application of the client operating system, the effect of one-key cross-system screenshot sharing can be achieved, user operations are simplified, and the user experience is improved.

Description

截图分享方法及电子设备Screenshot sharing method and electronic device
本申请要求于2022年11月17日提交中国国家知识产权局、申请号为202211463744.8、申请名称为“截图分享方法及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on November 17, 2022, with application number 202211463744.8 and application name “Screenshot Sharing Method and Electronic Device”, all contents of which are incorporated by reference in this application.
技术领域Technical Field
本申请涉及计算机技术领域,尤其涉及一种截图分享方法及电子设备。The present application relates to the field of computer technology, and in particular to a screenshot sharing method and electronic device.
背景技术Background technique
随着虚拟化技术的发展和成熟,传统个人电脑(PersonalComputer,PC)和移动设备(例如手机)可以通过模拟器等技术来实现生态融合,这样,用户就可以在PC端运行移动端操作系统(Operating System,OS)的应用程序(Application)了。With the development and maturity of virtualization technology, traditional personal computers (PC) and mobile devices (such as mobile phones) can achieve ecological integration through technologies such as simulators, so that users can run applications of mobile operating systems (OS) on the PC.
然而,在上述生态融合场景下,用户如果想要通过移动端操作系统的应用程序进行截图分享操作,通常需要先利用模拟器提供的截图功能把截屏图像保存到移动操作系统的“图库”应用程序中,然后再选择“图库”应用程序中保存的该截屏图像,选择完成后再触发分享操作,整个过程操作较为复杂。而且,模拟器提供的截图功能较为单一,目前模拟器无法充分利用PC端操作系统提供的强大的截图功能,生态融合体验差。However, in the above-mentioned ecological integration scenario, if users want to share screenshots through the mobile operating system application, they usually need to use the screenshot function provided by the simulator to save the screenshot image to the "Gallery" application of the mobile operating system, and then select the screenshot image saved in the "Gallery" application. After the selection is completed, the sharing operation is triggered. The whole process is relatively complicated. Moreover, the screenshot function provided by the simulator is relatively simple. At present, the simulator cannot fully utilize the powerful screenshot function provided by the PC operating system, and the ecological integration experience is poor.
发明内容Summary of the invention
本申请实施例提供了一种截图分享方法及电子设备,可以达到一键式跨系统截图分享的效果,简化用户操作,提高用户体验。The embodiments of the present application provide a screenshot sharing method and an electronic device, which can achieve the effect of one-click cross-system screenshot sharing, simplify user operations, and improve user experience.
第一方面,本申请实施例提供了一种截图分享方法,应用于电子设备,该电子设备上运行有第一操作系统和第二操作系统,该方法包括:响应于用户的截图操作,第一操作系统生成并保存截屏图像;第二操作系统获取截屏图像,并将截屏图像保存到第二操作系统的剪贴板中;第二操作系统在用户界面显示悬浮窗口,悬浮窗口是基于截屏图像生成的,用户界面是第二操作系统中的应用程序的一个用户界面;第二操作系统检测到用户在用户界面上针对悬浮窗口的第一操作;响应于第一操作,电子设备向其他设备发送截屏图像。In a first aspect, an embodiment of the present application provides a screenshot sharing method, which is applied to an electronic device, on which a first operating system and a second operating system are running, the method comprising: in response to a user's screenshot operation, the first operating system generates and saves a screenshot image; the second operating system obtains the screenshot image and saves the screenshot image to a clipboard of the second operating system; the second operating system displays a floating window in a user interface, the floating window is generated based on the screenshot image, and the user interface is a user interface of an application in the second operating system; the second operating system detects a first operation of the user on the floating window on the user interface; in response to the first operation, the electronic device sends the screenshot image to other devices.
通过实施第一方面提供的方法,电子设备在检测到用户触发截图操作之后,可以生成截屏图像,并将该截屏图像的信息保存到宿主操作系统(也可以称为第一操作系统)的剪贴板中,之后,宿主操作系统可以将该截屏图像的信息共享到客户操作系统(也可以称为第二操作系统)的剪贴板中,以供客户操作系统的应用程序使用,从而达到客户操作系统的应用程序可以直接粘贴该截屏图像的效果,对于客户操作系统的社交类应用程序,还可以达到一键式跨系统截图分享的效果,简化用户操作,提高用户体验。By implementing the method provided in the first aspect, after detecting that a user triggers a screenshot operation, the electronic device can generate a screenshot image and save the information of the screenshot image to the clipboard of the host operating system (also referred to as the first operating system). Afterwards, the host operating system can share the information of the screenshot image to the clipboard of the client operating system (also referred to as the second operating system) for use by the client operating system's application, thereby achieving the effect that the client operating system's application can directly paste the screenshot image. For social applications of the client operating system, a one-click cross-system screenshot sharing effect can also be achieved, thereby simplifying user operations and improving user experience.
在一种可能的实现方式中,在第二操作系统获取截屏图像之前,该方法还包括:第一操作系统向第二操作系统发送第一消息,第一消息用于指示第二操作系统获取截屏图像。In a possible implementation, before the second operating system acquires the screenshot image, the method further includes: the first operating system sends a first message to the second operating system, where the first message is used to instruct the second operating system to acquire the screenshot image.
这样,在第一操作系统中的剪贴板中有新保存的内容时,第一操作系统可以通知第二操作系统来获取该新保存的内容,以便可以使得第二操作系统可以使用该内容。In this way, when there is newly saved content in the clipboard of the first operating system, the first operating system can notify the second operating system to obtain the newly saved content, so that the second operating system can use the content.
在一种可能的实现方式中,第一消息是通过进程间通信IPC发送的。In a possible implementation, the first message is sent via inter-process communication (IPC).
在一种可能的实现方式中,第二操作系统获取截屏图像,包括:第二操作系统接收第一操作系统发送的截屏图像。In a possible implementation manner, the second operating system obtains the screenshot image, including: the second operating system receives the screenshot image sent by the first operating system.
这样,在第一操作系统中的剪贴板中有新保存的内容时,第一操作系统可以直接将该内容发送至第二操作系统,以便可以使得第二操作系统可以使用该内容。In this way, when there is newly saved content in the clipboard of the first operating system, the first operating system can directly send the content to the second operating system so that the second operating system can use the content.
在一种可能的实现方式中,第一操作系统保存截屏图像,包括:第一操作系统将截屏图像保存到第一操作系统的剪贴板中以及保存到共享文件夹中。In a possible implementation manner, the first operating system saves the screenshot image, including: the first operating system saves the screenshot image to a clipboard of the first operating system and to a shared folder.
这样,在第一操作系统中剪贴板中有新保存的内容时,第一操作系统也可以将该内容保存到共享文件夹中,以便可以使得第二操作系统在共享文件夹中获取该内容。In this way, when there is newly saved content in the clipboard of the first operating system, the first operating system can also save the content to the shared folder, so that the second operating system can obtain the content in the shared folder.
在一种可能的实现方式中,在第一操作系统向第二操作系统发送第一消息之前,该方法还包括:第一 操作系统检测到剪贴板中最新保存的内容为图片。In a possible implementation, before the first operating system sends the first message to the second operating system, the method further includes: first The operating system detected that the most recent content saved in the clipboard is a picture.
这样,第一操作系统可以在检测到其剪贴板中最新保存的内容为图片(例如截图图像)的情况下,可以将该图片保存到共享文件夹中,同时,还可以通知第二操作系统在共享文件夹中获取该图片。In this way, when the first operating system detects that the latest content saved in its clipboard is a picture (such as a screenshot image), it can save the picture to the shared folder, and at the same time, it can also notify the second operating system to obtain the picture in the shared folder.
在一种可能的实现方式中,第二操作系统获取截屏图像,包括:第二操作系统从共享文件夹中获取截屏图像。In a possible implementation manner, the second operating system obtains the screenshot image, including: the second operating system obtains the screenshot image from a shared folder.
这样,第二操作系统可以在共享文件夹中获取截屏图像,之后,可以将该截屏图像保存到其剪贴板中,以便后续第二操作系统的应用程序可以使用该截屏图像。In this way, the second operating system can obtain the screenshot image in the shared folder, and then save the screenshot image to its clipboard, so that subsequent applications of the second operating system can use the screenshot image.
在一种可能的实现方式中,在第二操作系统在用户界面显示悬浮窗口之前,该方法还包括:第二操作系统扫描截屏图像在共享文件夹中的路径,并基于该路径将截屏图像的信息插入到媒体数据库中。In a possible implementation, before the second operating system displays the floating window in the user interface, the method further includes: the second operating system scans the path of the screenshot image in the shared folder, and inserts the screenshot image information into the media database based on the path.
在一种可能的实现方式中,所述第二操作系统基于所述路径将所述截屏图像的信息插入到媒体数据库中,包括:所述第二操作系统在基于所述路径确定所述截屏图像符合预设规则的情况下,将所述截屏图像的信息插入到媒体数据库中;其中,预设规则包括以下任意一项或多项:截屏图像的命名中包括特定关键字、截屏图像的时间戳信息中记录的时间点与第一时间点的时间间隔在预设时间间隔内,第一时间点为第二操作系统扫描截屏图像在所述共享文件夹中的路径时的时间点。In a possible implementation, the second operating system inserts the information of the screenshot image into the media database based on the path, including: when the second operating system determines that the screenshot image meets the preset rules based on the path, the screenshot image information is inserted into the media database; wherein the preset rules include any one or more of the following: the naming of the screenshot image includes specific keywords, the time interval between the time point recorded in the timestamp information of the screenshot image and the first time point is within the preset time interval, and the first time point is the time point when the second operating system scans the path of the screenshot image in the shared folder.
这样,第二操作系统可以在确定截屏图像符合预设规则(例如预设截图规则)的情况下,将截屏图像的信息插入到媒体数据库中,以便后续应用程序检测到媒体数据库中插入的信息发生变化的情况下可以自动触发显示悬浮窗口,达到一键式跨系统截图分享的效果。In this way, the second operating system can insert the information of the screenshot image into the media database when it determines that the screenshot image meets preset rules (such as preset screenshot rules), so that when a subsequent application detects that the information inserted in the media database has changed, it can automatically trigger the display of a floating window, thereby achieving the effect of one-click cross-system screenshot sharing.
在一种可能的实现方式中,在第二操作系统基于路径将截屏图像的描述信息插入到媒体数据库中之后,该方法还包括:应用程序从第二操作系统的剪贴板中获取截屏图像。In a possible implementation, after the second operating system inserts the description information of the screenshot image into the media database based on the path, the method further includes: the application program obtains the screenshot image from the clipboard of the second operating system.
这样,应用程序可以从第二操作系统的剪贴板中获取截屏图像,从而可以在该应用程序的某一个用户界面(例如聊天界面)自动触发显示悬浮窗口,达到一键式跨系统截图分享的效果。In this way, the application can obtain the screenshot image from the clipboard of the second operating system, so as to automatically trigger the display of a floating window in a certain user interface of the application (such as a chat interface), thereby achieving a one-click cross-system screenshot sharing effect.
在一种可能的实现方式中,截图操作包括以下一项或多项:选取截图区域的操作、在截图区域上的编辑操作。In a possible implementation, the screenshot operation includes one or more of the following: an operation of selecting a screenshot area, and an editing operation on the screenshot area.
这样,第一操作系统可以支持用户自由进行任意区域的图像截取操作、对图像的编辑操作等,方便灵活,提高用户体验。In this way, the first operating system can support users to freely perform image capture operations of any area, image editing operations, etc., which is convenient and flexible and improves user experience.
在一种可能的实现方式中,用户界面中显示有输入框、用于进行文件分享的控件。In a possible implementation, an input box and a control for file sharing are displayed in the user interface.
这样,应用程序才可以具体分享截屏图像的能力,从而可以支持用户进行截屏图像的分享。In this way, the application can specifically share the screenshot image capability, thereby supporting users to share the screenshot image.
第二方面,本申请实施例提供了一种电子设备,该电子设备包括一个或多个处理器和一个或多个存储器;其中,一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得电子设备执行上述第一方面任一项可能的实现方式中的方法。In a second aspect, an embodiment of the present application provides an electronic device, which includes one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, and the one or more memories are used to store computer program code, and the computer program code includes computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method in any possible implementation of the first aspect above.
第三方面,本申请实施例提供了一种计算机存储介质,该计算机存储介质存储有计算机程序,计算机程序包括程序指令,当程序指令在电子设备上运行时,使得电子设备执行上述第一方面任一项可能的实现方式中的方法。In a third aspect, an embodiment of the present application provides a computer storage medium, which stores a computer program, and the computer program includes program instructions. When the program instructions are executed on an electronic device, the electronic device executes a method in any possible implementation of the first aspect above.
第四方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面任一项可能的实现方式中的方法。In a fourth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on a computer, it enables the computer to execute the method in any possible implementation of the first aspect above.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1A-图1B是本申请实施例提供的一种电子设备100通过客户操作系统的应用程序进行截图的过程中涉及的用户界面示意图;1A-1B are schematic diagrams of user interfaces involved in a process of taking a screenshot of an electronic device 100 through an application of a client operating system provided by an embodiment of the present application;
图1C是本申请实施例提供的图1A-图1B所示的截图过程生成的截屏图像示意图;FIG1C is a schematic diagram of a screenshot image generated by the screenshot process shown in FIG1A-FIG1B according to an embodiment of the present application;
图1D-图1G是本申请实施例提供的一种电子设备100通过客户操作系统的应用程序进行分享截图的过程中涉及的用户界面示意图;1D-1G are schematic diagrams of user interfaces involved in a process of sharing a screenshot through an application of a client operating system of an electronic device 100 provided in an embodiment of the present application;
图2A-图2B是本申请实施例提供的截图分享方法在截图过程涉及的一组用户界面示意图;2A-2B are schematic diagrams of a set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application;
图2C是本申请实施例提供的图2A-图2B所示的截图过程生成的截屏图像示意图;FIG2C is a schematic diagram of a screenshot image generated by the screenshot process shown in FIG2A-FIG2B according to an embodiment of the present application;
图2D-图2E是本申请实施例提供的截图分享方法在分享截图过程涉及的一组用户界面示意图; 2D-2E are schematic diagrams of a set of user interfaces involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application;
图3A-图3C是本申请实施例提供的截图分享方法在截图过程涉及的另一组用户界面示意图;3A-3C are schematic diagrams of another set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application;
图3D是本申请实施例提供的图3A-图3C所示的截图过程生成的截屏图像示意图;FIG3D is a schematic diagram of a screenshot image generated by the screenshot process shown in FIG3A to FIG3C provided in an embodiment of the present application;
图3E-图3F是本申请实施例提供的截图分享方法在分享截图过程涉及的另一组用户界面示意图;3E-3F are another set of user interface schematic diagrams involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application;
图4是本申请实施例提供的一种截图分享方法的流程示意图;FIG4 is a schematic diagram of a process of a screenshot sharing method provided in an embodiment of the present application;
图5是本申请实施例提供的一种电子设备100的软件结构示意图;FIG5 is a schematic diagram of a software structure of an electronic device 100 provided in an embodiment of the present application;
图6是本申请实施例提供的另一种电子设备100的软件结构示意图;FIG6 is a schematic diagram of the software structure of another electronic device 100 provided in an embodiment of the present application;
图7是本申请实施例提供的电子设备100在安装有宿主操作系统,且在宿主操作系统之上加载有客户操作系统的情况下实施本申请实施例提供的截图分享方法时各个模块之间的一种可能的协作方式示意图;7 is a schematic diagram of a possible collaboration mode between various modules when the electronic device 100 provided by the embodiment of the present application implements the screenshot sharing method provided by the embodiment of the present application when a host operating system is installed and a client operating system is loaded on the host operating system;
图8是本申请实施例提供的一种电子设备100的结构示意图。FIG8 is a schematic diagram of the structure of an electronic device 100 provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
应当理解,本申请的说明书和权利要求书及附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be understood that the terms "first", "second", etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
在本申请中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本申请所描述的实施例可以与其它实施例相结合。Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.
本申请以下实施例中的术语“用户界面(user interface,UI)”,是应用程序或操作系统与用户之间进行交互和信息交换的介质接口,它实现信息的内部形式与用户可以接受形式之间的转换。用户界面是通过java、可扩展标记语言(extensible markup language,XML)等特定计算机语言编写的源代码,界面源代码在电子设备上经过解析,渲染,最终呈现为用户可以识别的内容。用户界面常用的表现形式是图形用户界面(graphic user interface,GUI),是指采用图形方式显示的与计算机操作相关的用户界面。它可以是在电子设备的显示屏中显示的文本、图标、按钮、菜单、选项卡、文本框、对话框、状态栏、导航栏、Widget等可视的界面元素。The term "user interface (UI)" in the following embodiments of the present application refers to a medium interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The user interface is a source code written in a specific computer language such as Java and extensible markup language (XML). The interface source code is parsed and rendered on an electronic device and finally presented as content that can be recognized by the user. The commonly used form of user interface is a graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of an electronic device.
目前市面上主流的电脑桌面操作系统包括主流的移动端操作系统包括由于应用程序在不同操作系统上的运行机制各不相同,不同操作系统之间存在沟通和交互的壁垒,在很多方面不能做到简单有效的生态融合。因此一般情况下,在操作系统A上的应用程序是无法安装和运行在操作系统B上的,比如,操作系统中的应用程序不能直接安装和运行在操作系统上面。The mainstream computer desktop operating systems on the market include Mainstream mobile operating systems include Since the operating mechanisms of applications on different operating systems are different, there are barriers to communication and interaction between different operating systems, and in many aspects, it is difficult to achieve simple and effective ecological integration. Therefore, in general, applications on operating system A cannot be installed and run on operating system B. For example, Applications in the operating system cannot be directly installed and run on On the operating system.
随着虚拟化技术的发展和成熟,如果用户需要在电脑端运行系统的应用程序,那么,用户可以通过虚拟化(virtualization)技术去实现它,例如,使用安卓模拟器(simulator)、安卓容器(container)等技术。以操作系统上安装安卓模拟器为例,用户可以先启动操作系统里的安卓模拟器,运行子系统,再从子系统里面启动应用程序。With the development and maturity of virtualization technology, if users need to run or If the system application is virtualized, users can use virtualization technology to implement it, for example, using an Android emulator ( simulator), Android container ( container) and other technologies. For example, if you want to install an Android emulator on the operating system, you can first start Android emulator in the operating system, run subsystem, and then from Start the application in the subsystem.
在上述情况下,电脑可以称为宿主机,电脑运行的底层操作系统可以称为宿主操作系统(Host OS)。宿主机上的模拟器或容器等中运行的操作系统可以称为客户操作系统(Guest OS)。此时,客户操作系统可以运行在宿主机上,宿主机通过为模拟器或容器等虚拟一套独立于实际硬件的虚拟硬件环境(包括处理器,内存,I/O设备等),使得对于客户操作系统而言,在宿主机上的虚拟硬件环境中运行,与在实际硬件上运行没有差别。这样,电脑和移动设备的生态就可以实现融合了。作为融合产品,不仅可以让用户体验到移动端生态提供的丰富的应用程序,还可以体验到电脑和移动设备这两个生态中应用程序之间的交互场景。在上述生态融合场景下,用户就可以像使用电脑的应用程序一样来使用移动设备的应用程序了,而且,基于电脑的高性能和显示输入设备,在某些方面可以让用户获得优于移动设备的使用体验。 In the above case, the computer can be called a host machine, and the underlying operating system running on the computer can be called a host operating system (Host OS). The operating system running in the simulator or container on the host can be called a guest operating system (Guest OS). At this time, the guest operating system can run on the host machine, and the host machine virtualizes a virtual hardware environment (including processor, memory, I/O devices, etc.) independent of the actual hardware for the simulator or container, so that for the guest operating system, running in the virtual hardware environment on the host machine is no different from running on the actual hardware. In this way, the ecology of computers and mobile devices can be integrated. As a fusion product, it can not only allow users to experience the rich applications provided by the mobile ecology, but also experience the interaction scenarios between the applications in the two ecology of computers and mobile devices. In the above ecological fusion scenario, users can use the applications of mobile devices just like using computer applications, and based on the high performance and display input devices of the computer, users can get a better experience than mobile devices in some aspects.
截图操作是移动设备上的高频操作,用户可以通过快捷键、手势、点击下拉菜单中的截图选项等方式来进行全屏幕的图像截取,截取完成后可以在操作系统的“图库”应用程序(也可以称为“相册”应用程序)中保存为图片,用户可以在“图库”应用程序中对该图片进行简单的编辑操作(例如裁剪图片大小、调整图片画面色彩、马赛克、涂鸦等操作),还可以支持用户在其他应用程序(例如社交类应用程序)中使用和分享该图片。Screenshot operation is a high-frequency operation on mobile devices. Users can capture full-screen images through shortcut keys, gestures, clicking the screenshot option in the drop-down menu, etc. After the capture is completed, it can be saved as a picture in the "Gallery" application (also known as the "Album" application) of the operating system. Users can perform simple editing operations on the picture in the "Gallery" application (such as cropping the picture size, adjusting the picture color, mosaic, graffiti, etc.), and it can also support users to use and share the picture in other applications (such as social applications).
当前主流的模拟器基本上都提供了对应用程序的整个用户界面进行截图的功能选项,以达到和使用移动设备相同的体验。Currently, mainstream simulators basically provide the option to take screenshots of the entire user interface of an application to achieve the same experience as using a mobile device.
下面结合图1A-图1G示例性地介绍电子设备100通过客户操作系统(例如模拟器中运行的操作系统)的应用程序进行截图、分享截图的过程中涉及的一组用户界面。1A-1G , a set of user interfaces involved in the process of taking screenshots and sharing screenshots by an electronic device 100 through an application of a client operating system (eg, an operating system running in a simulator) are exemplarily introduced below.
在本申请实施例中,以电子设备100是笔记本电脑为例来进行说明。In the embodiment of the present application, the electronic device 100 is taken as an example to be described as a notebook computer.
本申请实施例中涉及的用户操作可以是用户通过电子设备100的键盘、鼠标来实现的操作,也可以用户通过电子设备100的触摸屏或触控板来实现的操作,还可以是用户的语音指令操作或隔空手势操作,本申请实施例对用户操作的实现方式不作限定。The user operations involved in the embodiments of the present application may be operations performed by the user through the keyboard or mouse of the electronic device 100, or operations performed by the user through the touch screen or touchpad of the electronic device 100, or operations performed by the user through voice commands or air gestures. The embodiments of the present application do not limit the implementation method of the user operations.
图1A-图1B示例性示出了电子设备100通过客户操作系统的应用程序进行截图的过程中涉及的用户界面。1A-1B exemplarily show the user interfaces involved in the process of taking a screenshot on the electronic device 100 through an application of a client operating system.
参阅图1A,用户界面110可以为宿主操作系统的一个用户界面(也可以称为桌面)。该用户界面中可以包括一个或多个应用程序的图标(例如“回收站”应用程序的图标、“此电脑”应用程序的图标、“应用市场”应用程序的图标、“阅读”应用程序的图标、“聊天”应用程序的图标等),这一个或多个应用程序的图标中既可以包括宿主操作系统的应用程序的图标(例如“回收站”应用程序的图标、“此电脑”应用程序的图标、“应用市场”应用程序的图标),也可以包括客户操作系统的应用程序的图标(例如“阅读”应用程序的图标、“聊天”应用程序的图标)。Referring to FIG. 1A , the user interface 110 may be a user interface of the host operating system (also referred to as a desktop). The user interface may include one or more application icons (e.g., an icon of a “recycle bin” application, an icon of a “this computer” application, an icon of an “application market” application, an icon of a “reading” application, an icon of a “chat” application, etc.), and the one or more application icons may include icons of applications of the host operating system (e.g., an icon of a “recycle bin” application, an icon of a “this computer” application, an icon of an “application market” application), and icons of applications of the client operating system (e.g., an icon of a “reading” application, an icon of a “chat” application).
可选地,客户操作系统的应用程序的图标上可以显示有移动设备的相关标识(例如标识111、标识112),便于用户区分该图标是宿主操作系统的应用程序的图标,还是客户操作系统的应用程序的图标。Optionally, the icon of the client operating system application may be displayed with a relevant identifier of the mobile device (eg, identifier 111, identifier 112), so that the user can easily distinguish whether the icon is an icon of the host operating system application or an icon of the client operating system application.
继续参阅图1A,用户界面110上还可以包括用户打开的客户操作系统的一个或多个应用程序的用户界面(例如用户界面113)。可以看出,用户界面113为客户操作系统的阅读应用程序的一个用户界面。1A, the user interface 110 may also include a user interface of one or more applications of the client operating system opened by the user (eg, user interface 113). It can be seen that the user interface 113 is a user interface of a reading application of the client operating system.
如果用户想要对用户界面113进行截图,那么,电子设备100可以检测到用户针对用户界面113中的选项114的操作(例如点击操作),响应于该操作,电子设备100可以显示图1B示例性所示的窗口120。If the user wants to take a screenshot of the user interface 113, the electronic device 100 can detect the user's operation (such as a click operation) on the option 114 in the user interface 113. In response to the operation, the electronic device 100 can display the window 120 shown in Figure 1B.
参阅图1B,窗口120中可以包括一个或多个选项(例如“截屏”选项121等),电子设备100可以检测到用户针对“截屏”选项121的操作(例如点击操作),响应于该操作,电子设备100可以对整个用户界面113进行截图,截图完成后可以在客户操作系统的“图库”应用程序中保存为图片。Referring to Figure 1B, the window 120 may include one or more options (such as a "screenshot" option 121, etc.), and the electronic device 100 can detect the user's operation on the "screenshot" option 121 (such as a click operation). In response to the operation, the electronic device 100 can take a screenshot of the entire user interface 113. After the screenshot is completed, it can be saved as a picture in the "Gallery" application of the client operating system.
参阅图1C,图1C示例性所示的图片130可以为上述图1A-图1B所示的截图过程生成的截屏图像。可以看出,该图片130为整个用户界面113对应的截屏图像。1C , the picture 130 shown in FIG1C can be a screenshot image generated by the screenshot process shown in FIG1A-FIG1B . It can be seen that the picture 130 is a screenshot image corresponding to the entire user interface 113 .
图1D-图1G示例性示出了电子设备100通过客户操作系统的应用程序进行分享截图的过程中涉及的用户界面。1D-1G exemplarily illustrate the user interfaces involved in the process of sharing screenshots by the electronic device 100 through an application of the client operating system.
以电子设备100通过客户操作系统的“聊天”应用程序(即具备社交功能的一个应用程序)分享上述图1C示例性所示的图片130为例。Take the electronic device 100 sharing the picture 130 shown in FIG. 1C through the “chat” application (ie, an application with social functions) of the client operating system as an example.
参阅图1D,用户界面140可以为客户操作系统的“聊天”应用程序的一个用户界面。可以看出,该用户界面可以为用户与其好友Lily的聊天界面,如果用户想要向其好友Lily分享图片,那么,电子设备100可以检测到用户针对用户界面140中的选项141的操作(例如点击操作),响应于该操作,电子设备100在用户界面140中显示图1E示例性所示的窗口150(即虚线框区域)。Referring to FIG1D , the user interface 140 may be a user interface of a “chat” application of the client operating system. It can be seen that the user interface may be a chat interface between the user and his friend Lily. If the user wants to share a picture with his friend Lily, the electronic device 100 may detect the user's operation (e.g., a click operation) on the option 141 in the user interface 140. In response to the operation, the electronic device 100 displays the window 150 (i.e., the dotted box area) shown in FIG1E in the user interface 140.
参阅图1E,窗口150中可以包括“图库”应用程序中的一张或多张图片对应的选项(例如选项151),可以用于用户选择一张或多张图片来进行分享。可以看出,上述图1C示例性所示的图片130对应的选项为选项151,该选项当前处于未被选中状态。如果用户想要向其好友Lily分享图片130,那么,电子设备100可以检测到用户针对选项151的操作(例如点击操作),响应于该操作,电子设备100可以将选项151由图1E所示的未被选中状态置为图1F所示的被选中状态,即表示用户选择的待分享图片为图片130。Referring to FIG. 1E , window 150 may include options (e.g., option 151) corresponding to one or more pictures in the “Gallery” application, which can be used by the user to select one or more pictures to share. It can be seen that the option corresponding to the picture 130 exemplarily shown in FIG. 1C above is option 151, which is currently in an unselected state. If the user wants to share picture 130 with his friend Lily, then the electronic device 100 can detect the user's operation on option 151 (e.g., a click operation). In response to the operation, the electronic device 100 can set option 151 from the unselected state shown in FIG. 1E to the selected state shown in FIG. 1F , indicating that the picture selected by the user to be shared is picture 130.
参阅图1F,用户在选择完成上述待分享图片之后,电子设备100可以检测到用户针对选项161的操作(例如点击操作),响应于该操作,电子设备100可以通过“聊天”应用程序向好友Lily的电子设备发送图片130,并在用户界面140中显示图1G示例性所示的聊天消息171,该聊天消息可以为用户向其好友Lily分享图片130的消息。至此,完成了分享截图的过程。 Referring to FIG. 1F , after the user has selected the above-mentioned picture to be shared, the electronic device 100 can detect the user's operation (e.g., a click operation) on option 161. In response to the operation, the electronic device 100 can send the picture 130 to the electronic device of the friend Lily through the "chat" application, and display the chat message 171 shown in FIG. 1G in the user interface 140. The chat message can be a message for the user to share the picture 130 with his friend Lily. At this point, the process of sharing the screenshot is completed.
在本申请实施例中,客户操作系统的多个应用程序的用户界面可以同时进行显示。例如,图1D所示的“阅读”应用程序的用户界面与“聊天”应用程序的用户界面可以同时并列显示。In the embodiment of the present application, the user interfaces of multiple applications of the client operating system can be displayed simultaneously. For example, the user interface of the "reading" application and the user interface of the "chatting" application shown in FIG. 1D can be displayed in parallel at the same time.
在一些示例中,在上述图1D-图1G所示的分享截图的过程中,电子设备100也可以只显示上述用于分享截图的“聊天”应用程序的用户界面,而不显示其他应用程序的用户界面(例如“阅读”应用程序的用户界面)。In some examples, during the screenshot sharing process shown in Figures 1D-1G above, the electronic device 100 may also only display the user interface of the "chat" application for sharing screenshots, without displaying the user interfaces of other applications (such as the user interface of the "reading" application).
从图1A-图1G中可以看出,在上述图1A-图1B所示的截图过程中,模拟器只是对移动设备的截图功能的简单模仿,仅仅能够支持对应用程序的用户界面进行最基础的固定尺寸截图(即只能截取应用程序的整个用户界面),截图编辑功能较为单一,截图完成之后会把截屏图像保存到“图库”应用程序中。在上述图1D-图1G所示的分享截图过程中,用户需要先选择“图库”应用程序中保存的截屏图像,选择完成后再触发分享操作,整个过程操作较为复杂,用户体验差。As can be seen from Figures 1A-1G, in the screenshot process shown in Figures 1A-1B, the simulator is just a simple imitation of the screenshot function of the mobile device, and can only support the most basic fixed-size screenshot of the user interface of the application (that is, it can only capture the entire user interface of the application). The screenshot editing function is relatively simple, and the screenshot image will be saved in the "Gallery" application after the screenshot is completed. In the screenshot sharing process shown in Figures 1D-1G, the user needs to first select the screenshot image saved in the "Gallery" application, and then trigger the sharing operation after the selection is completed. The whole process is relatively complicated and the user experience is poor.
目前,电脑操作系统提供的截图功能要比移动设备操作系统提供的截图功能强大非常多,对于电脑操作系统,无论是系统自带的截图功能,还是电脑操作系统安装的第三方应用程序提供的快捷键截图功能,都可以在截图过程中提供对图像的编辑操作(例如自由框选截图区域、文本填涂标注、图像自由编辑等)功能,在使用体验上远优于移动设备提供的截图功能。At present, the screenshot function provided by computer operating systems is much more powerful than that provided by mobile device operating systems. For computer operating systems, whether it is the screenshot function that comes with the system or the shortcut screenshot function provided by third-party applications installed in the computer operating system, both can provide image editing operations (such as free selection of screenshot area, text filling and annotation, free image editing, etc.) during the screenshot process, which is far superior to the screenshot function provided by mobile devices in terms of user experience.
在生态融合场景下,如果能够将电脑生态提供的强大的截图功能共享到模拟器的移动生态中,则会使得用户获得更好的体验。因此,当前的技术也做到了使用电脑操作系统(即宿主操作系统)的截图功能来进行跨系统的截图操作,即用户可以不使用模拟器提供的截图功能进行截图操作,而是使用电脑操作系统提供的截图功能进行截图操作。在这种情况下,截图完成之后,截图的数据需要从电脑操作系统拷贝到模拟器的客户操作系统的“图库”应用程序中,在用户想要分享截图时,也是与前述分享截图过程一样,需要用户先选择“图库”应用程序中保存的截图,选择完成后再触发分享操作,整个过程操作也是较为复杂,用户体验差。In the ecological integration scenario, if the powerful screenshot function provided by the computer ecosystem can be shared with the mobile ecosystem of the simulator, users will have a better experience. Therefore, the current technology has also achieved the use of the screenshot function of the computer operating system (ie, the host operating system) to perform cross-system screenshot operations, that is, users can use the screenshot function provided by the computer operating system instead of the screenshot function provided by the simulator to perform screenshot operations. In this case, after the screenshot is completed, the screenshot data needs to be copied from the computer operating system to the "Gallery" application of the client operating system of the simulator. When the user wants to share the screenshot, it is the same as the aforementioned screenshot sharing process. The user needs to first select the screenshot saved in the "Gallery" application, and then trigger the sharing operation after the selection is completed. The entire process is also relatively complicated and the user experience is poor.
总之,当前模拟器提供的截图功能较为单一,无法做到像电脑操作系统提供的截图功能那样能够进行截图区域的自由选取,也无法截取超出应用程序的整个用户界面之外的图像,且对截图的编辑功能单一,分享截图过程较为复杂,作为生态融合场景下的产品,无法充分利用电脑操作系统提供的强大截图功能的优势,电脑操作系统和移动操作系统的应用程序融合体验较差。In short, the screenshot function provided by the current simulator is relatively simple. It cannot freely select the screenshot area like the screenshot function provided by the computer operating system, nor can it capture images beyond the entire user interface of the application. The editing function of the screenshot is simple, and the process of sharing screenshots is relatively complicated. As a product in the ecological integration scenario, it cannot fully utilize the advantages of the powerful screenshot function provided by the computer operating system, and the application integration experience of the computer operating system and the mobile operating system is poor.
基于上述问题,本申请实施例提供了一种截图分享方法,应用于电子设备100,电子设备100可以安装有宿主操作系统(也可以称为第一操作系统),在宿主操作系统之上可以加载有客户操作系统(也可以称为第二操作系统),电子设备100在检测到用户触发显示截图界面的操作之后,可以通过宿主操作系统来支持用户自由进行任意区域的图像截取操作、对图像的编辑操作等,进而生成截屏图像(即截图),并将该截屏图像的信息保存到宿主操作系统的剪贴板中,之后,宿主操作系统可以将该截屏图像的信息共享到客户操作系统的剪贴板中,以供客户操作系统的应用程序使用,从而达到客户操作系统的应用程序可以直接粘贴该截屏图像的效果,对于客户操作系统的社交类应用程序,还可以达到一键式跨系统截图分享的效果,简化用户操作,提高用户体验。Based on the above problems, an embodiment of the present application provides a screenshot sharing method, which is applied to an electronic device 100. The electronic device 100 can be installed with a host operating system (also referred to as a first operating system), and a client operating system (also referred to as a second operating system) can be loaded on the host operating system. After the electronic device 100 detects that the user triggers the operation of displaying the screenshot interface, the host operating system can support the user to freely perform image capture operations of any area, image editing operations, etc., thereby generating a screenshot image (i.e., a screenshot) and saving the information of the screenshot image to the clipboard of the host operating system. Afterwards, the host operating system can share the information of the screenshot image to the clipboard of the client operating system for use by the application of the client operating system, thereby achieving the effect that the application of the client operating system can directly paste the screenshot image. For social applications of the client operating system, a one-click cross-system screenshot sharing effect can also be achieved, thereby simplifying user operations and improving user experience.
需要说明的是,本申请实施例对宿主操作系统和客户操作系统的操作系统类型并不作任何限制。本申请实施例仅仅以宿主操作系统是操作系统,客户操作系统是操作系统为例,来阐述本申请实施例的内容。本领域技术人员可以理解,本申请实施例也可以以其他操作系统来实现,本申请对此不作任何限制。It should be noted that the present application embodiment does not impose any restrictions on the operating system types of the host operating system and the client operating system. Operating system, the client operating system is The operating system is used as an example to illustrate the content of the embodiment of the present application. Those skilled in the art can understand that the embodiment of the present application can also be implemented with other operating systems, and the present application does not impose any limitation on this.
本申请实施例中的电子设备100可以称为宿主机。电子设备100可以是台式电脑、笔记本电脑等,本申请实施例对此不作限定。电子设备100上可以安装有宿主操作系统,在宿主操作系统之上可以加载有客户操作系统。其中,宿主操作系统可以包括但不限于操作系统、操作系统,客户操作系统可以包括但不限于操作系统、操作系统。The electronic device 100 in the embodiment of the present application may be referred to as a host machine. The electronic device 100 may be a desktop computer, a laptop computer, etc., which is not limited in the embodiment of the present application. A host operating system may be installed on the electronic device 100, and a client operating system may be loaded on the host operating system. The host operating system may include but is not limited to operating system, Operating system. The client operating system may include but is not limited to operating system, operating system.
本申请实施例提供的截图分享方法可以是通过在电脑(即宿主机)上安装模拟器来实现。本申请实施例对模拟器的类型不作限定。The screenshot sharing method provided in the embodiment of the present application can be implemented by installing a simulator on a computer (ie, a host machine). The embodiment of the present application does not limit the type of the simulator.
在一些示例中,上述模拟器可以是华为的移动应用引擎。 In some examples, the simulator may be Huawei's Mobile Application Engine.
下面结合图2A-图2E示例性地介绍实施本申请实施例提供的截图分享方法的过程中涉及的一组用户界面。A set of user interfaces involved in the process of implementing the screenshot sharing method provided in an embodiment of the present application is exemplarily introduced below in conjunction with FIG. 2A-FIG 2E.
图2A-图2B示例性示出了本申请实施例提供的截图分享方法在截图过程涉及的一组用户界面。2A-2B exemplarily show a set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application.
参阅图2A,用户界面210(即截图界面)可以是本申请实施例提供的截图分享方法在截图过程涉及的一个用户界面。Referring to FIG. 2A , user interface 210 (ie, screenshot interface) may be a user interface involved in the screenshot process of the screenshot sharing method provided in the embodiment of the present application.
本申请实施例提供的截图分享方法是利用宿主操作系统的截图功能来完成截图过程的,其中,宿主操作系统的截图功能可以是系统自带的(例如系统应用程序提供的),也可以是宿主操作系统安装的第三方应用程序提供的,本申请实施例对此不作限定。The screenshot sharing method provided in the embodiment of the present application utilizes the screenshot function of the host operating system to complete the screenshot process, wherein the screenshot function of the host operating system can be a system-provided one (for example, provided by a system application) or provided by a third-party application installed by the host operating system, and the embodiment of the present application does not limit this.
本申请实施例对用户触发显示图2A示例性所示的用户界面210的方式不作限定。例如,可以是通过电子设备100的键盘上的快捷键触发的;又例如,也可以是通过电子设备100的触摸屏或触控板或鼠标触发的;再例如,还可以是用户的语音指令操作或隔空手势触发的;等等。The embodiment of the present application does not limit the way in which the user triggers the display of the user interface 210 shown in Figure 2A. For example, it can be triggered by a shortcut key on the keyboard of the electronic device 100; for another example, it can be triggered by the touch screen, touchpad or mouse of the electronic device 100; for another example, it can be triggered by the user's voice command operation or air gesture; and so on.
在一些示例中,图2A示例性所示的用户界面210可以是用户针对图1B示例性所示的窗口120中的“截屏”选项进行操作(例如点击操作)之后触发显示的。In some examples, the user interface 210 exemplarily shown in FIG. 2A may be triggered to be displayed after the user performs an operation (eg, clicks) on the “screenshot” option in the window 120 exemplarily shown in FIG. 1B .
继续参阅图2A,用户界面210中可以包括截图区域220、窗口230。Continuing to refer to FIG. 2A , the user interface 210 may include a screenshot area 220 and a window 230 .
其中,截图区域220可以由用户自由选取,也即是说,用户在触发显示用户界面210之后,宿主操作系统可以支持用户在用户界面210中自由选取截图区域,灵活便捷,提高用户体验。例如,如图2A所示,不仅可以支持用户截取客户操作系统的应用程序的用户界面(例如图2A中的截图区域220中的“阅读”应用程序的用户界面),还可以支持用户截取宿主操作系统显示的任意用户界面(例如图2A中的截图区域220中除“阅读”应用程序的用户界面之外的空白用户界面,即桌面的一部分用户界面)。Among them, the screenshot area 220 can be freely selected by the user, that is, after the user triggers the display of the user interface 210, the host operating system can support the user to freely select the screenshot area in the user interface 210, which is flexible and convenient, and improves the user experience. For example, as shown in FIG2A, not only can the user be supported to capture the user interface of the application of the client operating system (such as the user interface of the "Reading" application in the screenshot area 220 in FIG2A), but the user can also be supported to capture any user interface displayed by the host operating system (such as the blank user interface in the screenshot area 220 in FIG2A except the user interface of the "Reading" application, that is, a part of the user interface of the desktop).
以截图区域220为例,用户选取截图区域之后,截图区域220的四条边界线上可以显示有多个边界点(也可以称为标记点),例如边界点221、边界点222、边界点223、边界点224、边界点225、边界点226、边界点227、边界点228。这些边界点可以用于调整截图区域220的大小。用户可以通过拖动这些边界点来对截图区域220向不同方向进行扩大或缩小。Taking the screenshot area 220 as an example, after the user selects the screenshot area, a plurality of boundary points (also referred to as marking points) may be displayed on the four boundary lines of the screenshot area 220, such as boundary point 221, boundary point 222, boundary point 223, boundary point 224, boundary point 225, boundary point 226, boundary point 227, and boundary point 228. These boundary points may be used to adjust the size of the screenshot area 220. The user may expand or reduce the screenshot area 220 in different directions by dragging these boundary points.
边界点221可以用于用户对截图区域220向左上方进行扩大或向右下方进行缩小。例如,用户可以向左上方拖动边界点221来对截图区域220向左上方进行扩大;又例如,用户可以向右下方拖动边界点221来对截图区域220向右下方进行缩小。The boundary point 221 can be used by the user to expand the screenshot area 220 to the upper left or to reduce it to the lower right. For example, the user can drag the boundary point 221 to the upper left to expand the screenshot area 220 to the upper left; for another example, the user can drag the boundary point 221 to the lower right to reduce the screenshot area 220 to the lower right.
边界点222可以用于用户对截图区域220向正上方进行扩大或向正下方进行缩小。例如,用户可以向正上方拖动边界点222来对截图区域220向正上方进行扩大;又例如,用户可以向正下方拖动边界点222来对截图区域220向正下方进行缩小。The boundary point 222 can be used by the user to expand the screenshot area 220 upward or reduce it downward. For example, the user can drag the boundary point 222 upward to expand the screenshot area 220 upward; for another example, the user can drag the boundary point 222 downward to reduce the screenshot area 220 downward.
边界点223可以用于用户对截图区域220向右上方进行扩大或向左下方进行缩小。例如,用户可以向右上方拖动边界点223来对截图区域220向右上方进行扩大;又例如,用户可以向左下方拖动边界点223来对截图区域220向左下方进行缩小。The boundary point 223 can be used by the user to expand the screenshot area 220 to the upper right or to reduce it to the lower left. For example, the user can drag the boundary point 223 to the upper right to expand the screenshot area 220 to the upper right; for another example, the user can drag the boundary point 223 to the lower left to reduce the screenshot area 220 to the lower left.
边界点224可以用于用户对截图区域220向正右方进行扩大或向正左方进行缩小。例如,用户可以向正右方拖动边界点224来对截图区域220向正右方进行扩大;又例如,用户可以向正左方拖动边界点224来对截图区域220向正左方进行缩小。The boundary point 224 can be used by the user to expand the screenshot area 220 to the right or to shrink it to the left. For example, the user can drag the boundary point 224 to the right to expand the screenshot area 220 to the right; for another example, the user can drag the boundary point 224 to the left to shrink the screenshot area 220 to the left.
边界点225可以用于用户对截图区域220向右下方进行扩大或向左上方进行缩小。例如,用户可以向右下方拖动边界点225来对截图区域220向右下方进行扩大;又例如,用户可以向左上方拖动边界点225来对截图区域220向左上方进行缩小。The boundary point 225 can be used by the user to expand the screenshot area 220 to the lower right or to shrink it to the upper left. For example, the user can drag the boundary point 225 to the lower right to expand the screenshot area 220 to the lower right; for another example, the user can drag the boundary point 225 to the upper left to shrink the screenshot area 220 to the upper left.
边界点226可以用于用户对截图区域220向正下方进行扩大或向正上方进行缩小。例如,用户可以向正下方拖动边界点226来对截图区域220向正下方进行扩大;又例如,用户可以向正上方拖动边界点226来对截图区域220向正上方进行缩小。The boundary point 226 can be used by the user to expand the screenshot area 220 directly downward or shrink it directly upward. For example, the user can drag the boundary point 226 directly downward to expand the screenshot area 220 directly downward; for another example, the user can drag the boundary point 226 directly upward to shrink the screenshot area 220 directly upward.
边界点227可以用于用户对截图区域220向左下方进行扩大或向右上方进行缩小。例如,用户可以向左下方拖动边界点227来对截图区域220向左下方进行扩大;又例如,用户可以向右上方拖动边界点227来对截图区域220向右上方进行缩小。The boundary point 227 can be used by the user to expand the screenshot area 220 to the lower left or to shrink it to the upper right. For example, the user can drag the boundary point 227 to the lower left to expand the screenshot area 220 to the lower left; for another example, the user can drag the boundary point 227 to the upper right to shrink the screenshot area 220 to the upper right.
边界点228可以用于用户对截图区域220向正左方进行扩大或向正右方进行缩小。例如,用户可以向正左方拖动边界点228来对截图区域220向正左方进行扩大;又例如,用户可以向正右方拖动边界点228来对截图区域220向正右方进行缩小。The boundary point 228 can be used by the user to expand the screenshot area 220 to the left or to reduce it to the right. For example, the user can drag the boundary point 228 to the left to expand the screenshot area 220 to the left; for another example, the user can drag the boundary point 228 to the right to reduce the screenshot area 220 to the right.
其中,窗口230中可以包括一个或多个选项,例如,选项231、选项232、选项233、选项234、选项 235、选项236、选项237、选项238、选项239、选项240。The window 230 may include one or more options, for example, option 231, option 232, option 233, option 234, option 235, option 236, option 237, option 238, option 239, option 240, option 241, option 242, option 243, option 244, option 245, option 246, option 247, option 248, option 2 235, Option 236, Option 237, Option 238, Option 239, Option 240.
选项231可以用于在截图区域220添加方框标注,自由框选截图区域220中的任意区域。Option 231 can be used to add a box mark in the screenshot area 220 and freely select any area in the screenshot area 220.
选项232可以用于在截图区域220添加椭圆框标注,自由框选截图区域220中的任意区域。Option 232 can be used to add an elliptical frame annotation in the screenshot area 220 and freely select any area in the screenshot area 220.
选项233可以用于在截图区域220添加箭头标注。Option 233 may be used to add an arrow annotation to the screenshot area 220 .
选项234可以用于在截图区域220添加画笔标注(例如荧光笔标注)。Option 234 may be used to add a pen annotation (eg, a highlighter annotation) to the screenshot area 220 .
选项235可以用于在截图区域220添加马赛克标注。Option 235 may be used to add a mosaic annotation to the screenshot area 220 .
选项236可以用于在截图区域220添加文字标注。Option 236 may be used to add a text annotation to the screenshot area 220 .
选项237可以用于撤销在截图区域220添加的标注。Option 237 may be used to undo the annotation added in the screenshot area 220 .
选项238可以用于保存截图区域220的截屏图像(包括屏幕显示的用户界面以及用户添加的标注),即将截图区域220的截屏图像另存为一个可自定义文件名的文件。Option 238 can be used to save the screenshot image of the screenshot area 220 (including the user interface displayed on the screen and the annotations added by the user), that is, to save the screenshot image of the screenshot area 220 as a file with a customizable file name.
选项239可以用于退出截图,即取消显示当前的截图界面,且不会保存截图区域220的截屏图像,也不会将截图区域220的截屏图像保存到剪贴板中。Option 239 can be used to exit the screenshot, that is, cancel the display of the current screenshot interface, and will not save the screenshot image of the screenshot area 220, nor will it save the screenshot image of the screenshot area 220 to the clipboard.
选项240可以用于完成截图,即取消显示当前的截图界面,且将截图区域220的截屏图像保存到剪贴板中。Option 240 can be used to complete the screenshot, that is, cancel the display of the current screenshot interface and save the screenshot image of the screenshot area 220 to the clipboard.
也即是说,窗口230中的这些选项可以用于支持用户在截图区域220进行多种编辑操作,因此,可以满足用户的个性化需求。That is to say, these options in the window 230 can be used to support the user to perform various editing operations in the screenshot area 220, thereby meeting the personalized needs of the user.
示例性地,参阅图2B,可以看出,用户在截图区域进行了多种编辑操作,例如,添加了画笔标注、方框标注、文本标注。进一步地,如果用户想要将图2B中的截屏图像保存到剪贴板中,那么,电子设备100可以检测到用户针对图2B中的选项240的操作(例如点击操作),响应于该操作,电子设备100可以将图2B中的截屏图像保存到剪贴板。For example, referring to FIG2B , it can be seen that the user has performed a variety of editing operations in the screenshot area, such as adding a brush annotation, a box annotation, and a text annotation. Further, if the user wants to save the screenshot image in FIG2B to the clipboard, then the electronic device 100 can detect the user's operation (such as a click operation) on option 240 in FIG2B , and in response to the operation, the electronic device 100 can save the screenshot image in FIG2B to the clipboard.
参阅图2C,图2C示例性所示的图片250可以为上述图2A-图2B所示的截图过程生成的截屏图像。可以看出,与前述图1C中的图片130不同的是,该图片250中不仅包括了截取的客户操作系统的应用程序的用户界面,还包括了客户操作系统的应用程序的用户界面之外的用户界面,还包括了用户添加的标注。这样,充分利用了宿主操作系统提供的强大的截图编辑功能,从而可以满足用户的个性化需求,提高用户体验。Referring to FIG. 2C , the exemplary picture 250 shown in FIG. 2C may be a screenshot image generated by the screenshot process shown in FIG. 2A-FIG. 2B . It can be seen that, unlike the picture 130 in FIG. 1C , the picture 250 includes not only the captured user interface of the application program of the client operating system, but also the user interface other than the user interface of the application program of the client operating system, and also includes annotations added by the user. In this way, the powerful screenshot editing function provided by the host operating system is fully utilized, so as to meet the personalized needs of users and improve the user experience.
图2D-图2E示例性示出了本申请实施例提供的截图分享方法在分享截图过程涉及的一组用户界面。2D-2E exemplarily illustrate a set of user interfaces involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application.
以电子设备100通过客户操作系统的“聊天”应用程序(即具备社交功能的一个应用程序)分享上述图2C示例性所示的图片250为例。不限于此,还可以是其他具备分享截图能力的应用程序,本申请实施例对此不作限定。Take the example of electronic device 100 sharing the picture 250 shown in FIG. 2C through the "chat" application (i.e., an application with social functions) of the client operating system. It is not limited to this, and it can also be other applications with the ability to share screenshots, which is not limited in the present embodiment of the application.
参阅图2D,用户界面260可以为客户操作系统的“聊天”应用程序的一个用户界面。可以看出,该用户界面可以为用户与其好友Lily的聊天界面。Referring to Fig. 2D, user interface 260 can be a user interface of a "chat" application program of a client operating system. It can be seen that the user interface can be a chat interface between the user and his friend Lily.
在本申请实施例中,在用户完成上述图2A-图2B所示的截图过程之后,电子设备100可以自动完成跨系统的剪贴板内容共享(即将宿主操作系统的剪贴板中的内容共享至客户操作系统的剪贴板中),即电子设备100可以把宿主操作系统的剪贴板保存的图2A-图2B所示的截图过程生成的截屏图像的信息共享到客户操作系统的剪贴板中。In an embodiment of the present application, after the user completes the screenshot process shown in the above-mentioned Figures 2A-2B, the electronic device 100 can automatically complete the cross-system clipboard content sharing (that is, share the content in the clipboard of the host operating system to the clipboard of the client operating system), that is, the electronic device 100 can share the information of the screenshot image generated by the screenshot process shown in Figures 2A-2B saved in the clipboard of the host operating system to the clipboard of the client operating system.
其中,上述“电子设备100自动完成跨系统的剪贴板内容共享”的具体实现过程在后续实施例中会详细介绍,在此先不展开。Among them, the specific implementation process of the above-mentioned "electronic device 100 automatically completes cross-system clipboard content sharing" will be introduced in detail in subsequent embodiments and will not be expanded here.
继续参阅图2D,在自动完成跨系统的剪贴板内容共享之后,电子设备100可以基于上述宿主操作系统共享过来的截图图像的信息自动在用户界面260中触发显示悬浮窗口261,该窗口中可以包括用户可能要发送的图片,该图片可以为通过宿主操作系统生成的截屏图像,例如上述图2C示例性所示的图片250。Continuing to refer to Figure 2D, after automatically completing the sharing of clipboard content across systems, the electronic device 100 can automatically trigger the display of a floating window 261 in the user interface 260 based on the information of the screenshot image shared by the above-mentioned host operating system. The window can include pictures that the user may want to send, and the picture can be a screenshot image generated by the host operating system, such as the picture 250 shown in the above-mentioned Figure 2C.
继续参阅图2D,如果用户想要向其好友Lily分享悬浮窗口261中的图片250,那么,电子设备100可以检测到用户针对悬浮窗口261的操作(例如针对悬浮窗口261中的图片250的点击操作),响应于该操作,电子设备100可以通过“聊天”应用程序向好友Lily的电子设备发送图片250,并在用户界面260中显示图2E示例性所示的聊天消息271,该聊天消息可以为用户向其好友Lily分享图片250的消息。至此,完成了分享截图的过程。Continuing to refer to FIG. 2D , if the user wants to share the picture 250 in the floating window 261 with his friend Lily, then the electronic device 100 can detect the user's operation on the floating window 261 (e.g., a click operation on the picture 250 in the floating window 261), and in response to the operation, the electronic device 100 can send the picture 250 to the electronic device of the friend Lily through the "chat" application, and display the chat message 271 shown in FIG. 2E in the user interface 260, which can be a message for the user to share the picture 250 with his friend Lily. At this point, the process of sharing the screenshot is completed.
上述是以用户针对悬浮窗口进行操作的方式来触发截图的发送,在一些示例中,触发截图的发送也可以是其他方式,例如,用户直接在输入框中通过右击鼠标等操作触发显示粘贴选项,并点击粘贴选项,就可以在输入框中显示截图,然后用户再点击发送选项,从而完成分享截图的过程;又例如,用户也可以直 接通过键盘上的快捷键来在输入框中粘贴截图,这样,就可以在输入框中显示截图,然后用户再点击发送选项,从而完成分享截图的过程。The above is to trigger the sending of the screenshot by the user operating the floating window. In some examples, the sending of the screenshot can also be triggered by other methods. For example, the user directly triggers the display of the paste option by right-clicking the mouse in the input box, and clicks the paste option to display the screenshot in the input box. Then the user clicks the send option to complete the process of sharing the screenshot. For another example, the user can also directly Then use the shortcut keys on the keyboard to paste the screenshot in the input box. In this way, the screenshot can be displayed in the input box, and then the user clicks the send option to complete the process of sharing the screenshot.
从图2D-图2E所示的分享截图过程可以看出,与前述图1D-图1G所示的分享截图过程不同的是,在完成截图过程之后,用户不再需要手动在“图库”应用程序中选择要分享的截屏图像,而是电子设备100可以自动触发截图分享动作(例如自动触发显示图2D所示的悬浮窗口261),这样,用户只需一步操作(例如针对悬浮窗口261中的图片250的点击操作)即可完成分享截图过程,达到一键式分享截图的效果,简化用户操作,提高用户体验。It can be seen from the screenshot sharing process shown in Figures 2D-2E that, unlike the screenshot sharing process shown in the aforementioned Figures 1D-1G, after completing the screenshot process, the user no longer needs to manually select the screenshot image to be shared in the "Gallery" application, but the electronic device 100 can automatically trigger the screenshot sharing action (for example, automatically trigger the display of the floating window 261 shown in Figure 2D). In this way, the user only needs one step (for example, a click operation on the picture 250 in the floating window 261) to complete the screenshot sharing process, thereby achieving the effect of one-click screenshot sharing, simplifying user operations, and improving user experience.
在一些示例中,在上述图2D-图2E所示的分享截图的过程中,电子设备100也可以只显示上述用于分享截图的“聊天”应用程序的用户界面,而不显示其他应用程序的用户界面(例如“阅读”应用程序的用户界面)。In some examples, during the screenshot sharing process shown in Figures 2D-2E above, the electronic device 100 may also only display the user interface of the "chat" application for sharing screenshots, without displaying the user interfaces of other applications (such as the user interface of the "reading" application).
在本申请实施例中,电子设备100可以同时显示客户操作系统的多个应用程序的用户界面,上述图2A-图2E仅仅是以截取客户操作系统的一个应用程序的用户界面为例来说明实施本申请实施例提供的截图分享方法的过程的,容易理解,本申请实施例提供的截图分享方法也可以适用于截取客户操作系统的多个应用程序的用户界面的场景。下面结合图3A-图3F以截取客户操作系统的两个应用程序的用户界面为例来说明实施本申请实施例提供的截图分享方法的过程。In the embodiment of the present application, the electronic device 100 can simultaneously display the user interfaces of multiple applications of the client operating system. The above-mentioned Figures 2A to 2E are only used to capture the user interface of an application of the client operating system as an example to illustrate the process of implementing the screenshot sharing method provided in the embodiment of the present application. It is easy to understand that the screenshot sharing method provided in the embodiment of the present application can also be applied to the scenario of capturing the user interfaces of multiple applications of the client operating system. The process of implementing the screenshot sharing method provided in the embodiment of the present application is illustrated below in conjunction with Figures 3A to 3F by taking the user interfaces of two applications of the client operating system as an example.
下面结合图3A-图3F示例性地介绍实施本申请实施例提供的截图分享方法的过程中涉及的另一组用户界面。Another set of user interfaces involved in the process of implementing the screenshot sharing method provided in the embodiment of the present application is exemplarily introduced below in conjunction with FIG. 3A-FIG .
图3A-图3C示例性示出了本申请实施例提供的截图分享方法在截图过程涉及的另一组用户界面。3A-3C exemplarily illustrate another set of user interfaces involved in the screenshot process of the screenshot sharing method provided in an embodiment of the present application.
参阅图3A,用户界面310可以是客户操作系统的一个应用程序的用户界面(例如“购物1”应用程序的用户界面),用户界面320可以客户操作系统的另一个应用程序的用户界面(例如“购物2”应用程序)。3A , user interface 310 may be a user interface of an application of the client operating system (eg, a user interface of a “Shopping 1” application), and user interface 320 may be a user interface of another application of the client operating system (eg, a “Shopping 2” application).
如果用户想要截图,那么,电子设备100可以检测到用户触发显示截图界面的操作,响应于该操作,电子设备100可以显示图3B示例性所示的用户界面330。If the user wants to take a screenshot, the electronic device 100 may detect an operation by the user to trigger the display of a screenshot interface, and in response to the operation, the electronic device 100 may display the user interface 330 exemplarily shown in FIG. 3B .
参阅图3B,用户界面330(即截图界面)可以是本申请实施例提供的截图分享方法在截图过程涉及的一个用户界面。Referring to FIG. 3B , the user interface 330 (ie, the screenshot interface) may be a user interface involved in the screenshot process of the screenshot sharing method provided in the embodiment of the present application.
本申请实施例提供的截图分享方法是利用宿主操作系统的截图功能来完成截图过程的,其中,宿主操作系统的截图功能可以是系统自带的(例如系统应用程序提供的),也可以是宿主操作系统安装的第三方应用程序提供的,本申请实施例对此不作限定。The screenshot sharing method provided in the embodiment of the present application utilizes the screenshot function of the host operating system to complete the screenshot process, wherein the screenshot function of the host operating system can be a system-provided one (for example, provided by a system application) or provided by a third-party application installed by the host operating system, and the embodiment of the present application does not limit this.
本申请实施例对上述“用户触发显示截图界面的操作”的实现方式不作限定。例如,可以是用户通过电子设备100的键盘上的快捷键来触发显示截图界面的操作;又例如,也可以是用户通过电子设备100的触摸屏或触控板或鼠标来触发显示截图界面的操作;再例如,还可以是用户的语音指令或隔空手势来触发显示截图界面的操作;等等。The embodiment of the present application does not limit the implementation method of the above-mentioned "user triggering the operation of displaying the screenshot interface". For example, the user may trigger the operation of displaying the screenshot interface through a shortcut key on the keyboard of the electronic device 100; for another example, the user may trigger the operation of displaying the screenshot interface through the touch screen, touchpad or mouse of the electronic device 100; for another example, the user may trigger the operation of displaying the screenshot interface through a voice command or a gesture in the air; and so on.
在一些示例中,由于用户界面310和用户界面320与前述图1A所示的用户界面113类似,也可以通过操作选项114来显示图1B所示的窗口120中的“截屏”选项,因此,上述“用户触发显示截图界面的操作”也可以是用户针对用户界面310或用户界面320上显示的窗口120中的“截屏”选项的操作(例如点击操作)。In some examples, since user interface 310 and user interface 320 are similar to user interface 113 shown in FIG1A above, the “screenshot” option in window 120 shown in FIG1B can also be displayed through operation option 114. Therefore, the above-mentioned “user triggering operation to display the screenshot interface” can also be the user’s operation (such as a click operation) on the “screenshot” option in window 120 displayed on user interface 310 or user interface 320.
继续参阅图3B,用户界面330中可以包括截图区域340、窗口350。Continuing to refer to FIG. 3B , the user interface 330 may include a screenshot area 340 and a window 350 .
其中,截图区域340可以由用户自由选取,也即是说,用户在触发显示用户界面330之后,宿主操作系统可以支持用户在用户界面330中自由选取截图区域,灵活便捷,提高用户体验。例如,如图3B所示,不仅可以支持用户截取客户操作系统的应用程序的用户界面(例如图3B中的截图区域340中的“购物1”应用程序的用户界面和“购物2”应用程序的用户界面),还可以支持用户截取宿主操作系统显示的任意用户界面(例如图3B中的截图区域340中除“购物1”应用程序的用户界面和“购物2”应用程序的用户界面之外的空白用户界面,即桌面的一部分用户界面)。Among them, the screenshot area 340 can be freely selected by the user, that is, after the user triggers the display of the user interface 330, the host operating system can support the user to freely select the screenshot area in the user interface 330, which is flexible and convenient, and improves the user experience. For example, as shown in FIG3B, not only can the user be supported to capture the user interface of the application of the client operating system (such as the user interface of the "Shopping 1" application and the user interface of the "Shopping 2" application in the screenshot area 340 in FIG3B), but the user can also be supported to capture any user interface displayed by the host operating system (such as the blank user interface in the screenshot area 340 in FIG3B except the user interface of the "Shopping 1" application and the user interface of the "Shopping 2" application, that is, a part of the user interface of the desktop).
以截图区域340为例,用户选取截图区域之后,截图区域340的四条边界线上可以显示有多个边界点(也可以称为标记点),这些边界点可以用于调整截图区域340的大小。用户可以通过拖动这些边界点来对截图区域340向不同方向进行扩大或缩小。Taking the screenshot area 340 as an example, after the user selects the screenshot area, a plurality of boundary points (also referred to as marking points) may be displayed on the four boundary lines of the screenshot area 340, and these boundary points may be used to adjust the size of the screenshot area 340. The user may expand or reduce the screenshot area 340 in different directions by dragging these boundary points.
其中,关于截图区域340的每一个边界点的具体功能,可以参照前述关于截图区域220的每一个边界 点的相关文字描述,在此不再赘述。The specific function of each boundary point of the screenshot area 340 can be referred to the aforementioned description of each boundary point of the screenshot area 220. The relevant text description of the point will not be repeated here.
窗口350中的选项可以用于支持用户在截图区域340进行多种编辑操作。The options in window 350 may be used to support the user in performing various editing operations in the screenshot area 340 .
其中,关于窗口350中的每一个选项的具体功能,可以参照前述关于窗口230的每一个选项的相关文字描述,在此不再赘述。For the specific functions of each option in window 350 , reference may be made to the aforementioned text descriptions of each option in window 230 , which will not be repeated here.
示例性地,参阅图3C,可以看出,用户在截图区域进行了多个编辑操作,例如,用户在截图区域的“购物1”应用程序中添加了方框标注,在截图区域的“购物1”应用程序中也添加了方框标注。进一步地,如果用户想要将图3C中的截屏图像保存到剪贴板中,那么,电子设备100可以检测到用户针对图3C中的选项351的操作(例如点击操作),响应于该操作,电子设备100可以将图3C中的截屏图像保存到剪贴板。For example, referring to FIG3C , it can be seen that the user has performed multiple editing operations in the screenshot area, for example, the user has added a box annotation in the "Shopping 1" application in the screenshot area, and has also added a box annotation in the "Shopping 1" application in the screenshot area. Further, if the user wants to save the screenshot image in FIG3C to the clipboard, then the electronic device 100 can detect the user's operation (such as a click operation) on option 351 in FIG3C , and in response to the operation, the electronic device 100 can save the screenshot image in FIG3C to the clipboard.
参阅图3D,图3D示例性所示的图片360可以为上述图3A-图3C所示的截图过程生成的截屏图像。可以看出,与前述图1C中的图片130不同的是,该图片360中不仅包括了截取的客户操作系统的多个应用程序的用户界面,还包括了客户操作系统的应用程序的用户界面之外的用户界面,还包括了用户添加的标注。这样,充分利用了宿主操作系统提供的强大的截图编辑功能,从而可以满足用户的个性化需求,提高用户体验。Referring to FIG. 3D , the exemplary picture 360 shown in FIG. 3D may be a screenshot image generated by the screenshot process shown in FIG. 3A to FIG. 3C . It can be seen that, unlike the picture 130 in FIG. 1C , the picture 360 includes not only the user interfaces of multiple applications of the client operating system that have been captured, but also the user interfaces other than the user interfaces of the applications of the client operating system, and also includes annotations added by the user. In this way, the powerful screenshot editing function provided by the host operating system is fully utilized, thereby meeting the personalized needs of users and improving the user experience.
图3E-图3F示例性示出了本申请实施例提供的截图分享方法在分享截图过程涉及的另一组用户界面。3E-3F exemplarily illustrate another set of user interfaces involved in the screenshot sharing process of the screenshot sharing method provided in an embodiment of the present application.
以电子设备100通过客户操作系统的“聊天”应用程序(即具备社交功能的一个应用程序)分享上述图3D示例性所示的图片360为例。不限于此,还可以是其他具备分享截图能力的应用程序,本申请实施例对此不作限定。Take the example of electronic device 100 sharing the picture 360 shown in Figure 3D through the "chat" application (i.e., an application with social functions) of the client operating system. It is not limited to this, and can also be other applications with the ability to share screenshots, which is not limited in this embodiment of the present application.
参阅图3E,用户界面370可以为客户操作系统的“聊天”应用程序的一个用户界面。可以看出,该用户界面可以为用户与其好友Lily的聊天界面。Referring to Fig. 3E, user interface 370 can be a user interface of a "chat" application program of a client operating system. It can be seen that the user interface can be a chat interface between the user and his friend Lily.
在本申请实施例中,在用户完成上述图3A-图3C所示的截图过程之后,电子设备100可以自动完成跨系统的剪贴板内容共享(即将宿主操作系统的剪贴板中的内容共享至客户操作系统的剪贴板中),即电子设备100可以把宿主操作系统的剪贴板保存的图3A-图3C所示的截图过程生成的截屏图像的信息共享到客户操作系统的剪贴板中。In an embodiment of the present application, after the user completes the screenshot process shown in Figures 3A-3C above, the electronic device 100 can automatically complete the cross-system clipboard content sharing (that is, share the content in the clipboard of the host operating system to the clipboard of the client operating system), that is, the electronic device 100 can share the information of the screenshot image generated by the screenshot process shown in Figures 3A-3C saved in the clipboard of the host operating system to the clipboard of the client operating system.
其中,上述“电子设备100自动完成跨系统的剪贴板内容共享”的具体实现过程在后续实施例中会详细介绍,在此先不展开。Among them, the specific implementation process of the above-mentioned "electronic device 100 automatically completes cross-system clipboard content sharing" will be introduced in detail in subsequent embodiments and will not be expanded here.
继续参阅图3E,在自动完成跨系统的剪贴板内容共享之后,电子设备100可以基于上述宿主操作系统共享过来的截图图像的信息自动在用户界面370中触发显示悬浮窗口371,该窗口中可以包括用户可能要发送的图片,该图片可以为通过宿主操作系统生成的截屏图像,例如上述图3D示例性所示的图片360。Continuing to refer to Figure 3E, after automatically completing the sharing of clipboard content across systems, the electronic device 100 can automatically trigger the display of a floating window 371 in the user interface 370 based on the information of the screenshot image shared by the above-mentioned host operating system. The window can include pictures that the user may want to send, and the picture can be a screenshot image generated by the host operating system, such as the picture 360 shown in the above-mentioned Figure 3D.
继续参阅图3E,如果用户想要向其好友Lily分享悬浮窗口371中的图片360,那么,电子设备100可以检测到用户针对悬浮窗口371的操作(例如针对悬浮窗口371中的图片360的点击操作),响应于该操作,电子设备100可以通过“聊天”应用程序向好友Lily的电子设备发送图片360,并在用户界面370中显示图3F示例性所示的聊天消息381,该聊天消息可以为用户向其好友Lily分享图片360的消息。至此,完成了分享截图的过程。Continuing to refer to FIG. 3E , if the user wants to share the picture 360 in the floating window 371 with his friend Lily, then the electronic device 100 can detect the user's operation on the floating window 371 (e.g., a click operation on the picture 360 in the floating window 371), and in response to the operation, the electronic device 100 can send the picture 360 to the electronic device of the friend Lily through the "chat" application, and display the chat message 381 shown in FIG. 3F in the user interface 370, which can be a message for the user to share the picture 360 with his friend Lily. At this point, the process of sharing the screenshot is completed.
上述是以用户针对悬浮窗口进行操作的方式来触发截图的发送,在一些示例中,触发截图的发送也可以是其他方式,例如,用户直接在输入框中通过右击鼠标等操作触发显示粘贴选项,并点击粘贴选项,就可以在输入框中显示截图,然后用户再点击发送选项,从而完成分享截图的过程;又例如,用户也可以直接通过键盘上的快捷键来在输入框中粘贴截图,这样,就可以在输入框中显示截图,然后用户再点击发送选项,从而完成分享截图的过程。The above is a way of triggering the sending of screenshots by the user operating the floating window. In some examples, the sending of screenshots can also be triggered in other ways. For example, the user directly triggers the display of the paste option by right-clicking the mouse in the input box, and clicks the paste option to display the screenshot in the input box. The user then clicks the send option to complete the process of sharing the screenshot. For another example, the user can also directly paste the screenshot in the input box through the shortcut keys on the keyboard. In this way, the screenshot can be displayed in the input box, and the user then clicks the send option to complete the process of sharing the screenshot.
从图3E-图3F所示的分享截图过程可以看出,与前述图1D-图1G所示的分享过程不同的是,在完成截图过程之后,用户不再需要手动在“图库”应用程序中选择要分享的截屏图像,而是电子设备100可以自动触发截图分享动作(例如自动触发显示图3E所示的悬浮窗口371),这样,用户只需一步操作(例如针对悬浮窗口371中的图片360的点击操作)即可完成分享截图过程,达到一键式分享截图的效果,简化用户操作,提高用户体验。It can be seen from the screenshot sharing process shown in Figures 3E-3F that, unlike the sharing process shown in the aforementioned Figures 1D-1G, after completing the screenshot process, the user no longer needs to manually select the screenshot image to be shared in the "Gallery" application, but the electronic device 100 can automatically trigger the screenshot sharing action (for example, automatically trigger the display of the floating window 371 shown in Figure 3E). In this way, the user only needs one step (for example, a click operation on the picture 360 in the floating window 371) to complete the screenshot sharing process, thereby achieving the effect of one-click screenshot sharing, simplifying user operations, and improving user experience.
在一些示例中,在上述图3E-图3F所示的分享截图的过程中,电子设备100也可以只显示上述用于分 享截图的“聊天”应用程序的用户界面,而不显示其他应用程序的用户界面(例如“购物1”应用程序的用户界面和“购物2”应用程序的用户界面)。In some examples, during the process of sharing the screenshots shown in FIG. 3E-FIG 3F, the electronic device 100 may also only display the above-mentioned The user interface of the “Chat” application in the screenshot is shared, while the user interfaces of other applications (such as the user interface of the “Shopping 1” application and the user interface of the “Shopping 2” application) are not displayed.
容易理解,在本申请实施例中,用户可以截取电子设备100上显示的任意用户界面,在上述图2A-图2B,图3A-图3C中,仅仅以用户截取客户操作系统的打开的应用程序的用户界面及宿主操作系统的桌面为例,不限于此,用户也可以截取其他用户界面,例如,宿主操作系统的应用程序的用户界面,本申请实施例对此不作限定。It is easy to understand that in the embodiment of the present application, the user can capture any user interface displayed on the electronic device 100. In the above Figures 2A-2B and 3A-3C, only the user captures the user interface of the open application of the client operating system and the desktop of the host operating system as an example. The present application is not limited to this. The user can also capture other user interfaces, for example, the user interface of the application of the host operating system. This embodiment of the present application is not limited to this.
下面介绍本申请实施例提供的一种截图分享方法的具体流程。The following describes a specific process of a screenshot sharing method provided in an embodiment of the present application.
图4示例性示出了本申请实施例提供的一种截图分享方法的具体流程。FIG4 exemplarily shows a specific process of a screenshot sharing method provided in an embodiment of the present application.
参阅图4,该方法可以应用于电子设备100。其中,电子设备100可以安装有宿主操作系统,在宿主操作系统之上可以加载有客户操作系统。下面详细介绍该方法的具体步骤:Referring to FIG. 4 , the method can be applied to an electronic device 100 . The electronic device 100 can be installed with a host operating system, and a client operating system can be loaded on the host operating system. The specific steps of the method are described in detail below:
S401-S403、宿主操作系统检测到用户触发显示截图界面的操作,响应于该操作,宿主操作系统可以显示截图界面,并检测到用户在截图界面的截图操作,响应于该操作,宿主操作系统生成截屏图像1,并将截屏图像1的信息保存到宿主操作系统的剪贴板中。S401-S403, the host operating system detects that the user triggers an operation to display a screenshot interface. In response to the operation, the host operating system can display the screenshot interface and detect the user's screenshot operation on the screenshot interface. In response to the operation, the host operating system generates a screenshot image 1 and saves the information of the screenshot image 1 to the clipboard of the host operating system.
其中,上述“用户触发显示截图界面的操作”可以是用户通过电子设备100的键盘上的快捷键来触发显示截图界面的操作,也可以是用户通过电子设备100的触摸屏或触控板或鼠标来触发显示截图界面的操作,还可以是用户的语音指令或隔空手势来触发显示截图界面的操作,等等,本申请实施例对此不作限定。Among them, the above-mentioned "operation of the user triggering the display of the screenshot interface" can be the user triggering the operation of displaying the screenshot interface through the shortcut key on the keyboard of the electronic device 100, or the user triggering the operation of displaying the screenshot interface through the touch screen, touchpad or mouse of the electronic device 100, or the user's voice command or air gesture to trigger the operation of displaying the screenshot interface, etc., the embodiment of the present application is not limited to this.
其中,上述“截图界面”可以是用于进行截图操作的用户界面(例如图2A中的用户界面210,或,图3B中的用户界面330)。The “screenshot interface” mentioned above may be a user interface for performing a screenshot operation (eg, the user interface 210 in FIG. 2A , or the user interface 330 in FIG. 3B ).
其中,上述“截图操作”可以是用户选取截图区域(例如选取图2A中的截图区域220,或,选取图3B中的截图区域340)并完成截图(例如点击图2B中的选项240,或,点击图3C中的选项351)的操作;或,用户选取截图区域,并对截图区域的图像进行编辑操作(例如添加方框标注、添加椭圆框标注、添加箭头标注、添加画笔标注、添加马赛克标注、添加文字标注等操作),之后再完成截图的操作。Among them, the above-mentioned "screenshot operation" can be an operation in which the user selects a screenshot area (for example, selects the screenshot area 220 in Figure 2A, or selects the screenshot area 340 in Figure 3B) and completes the screenshot (for example, clicks option 240 in Figure 2B, or clicks option 351 in Figure 3C); or, the user selects the screenshot area and edits the image of the screenshot area (for example, adding a box annotation, adding an ellipse box annotation, adding an arrow annotation, adding a brush annotation, adding a mosaic annotation, adding a text annotation, etc.), and then completes the screenshot operation.
其中,上述“截屏图像1”可以是用户进行截图操作后生成的(例如图2C中的图片250,或,图3D中的图片360)。The “screenshot image 1 ” mentioned above may be generated after the user performs a screenshot operation (eg, the image 250 in FIG. 2C , or the image 360 in FIG. 3D ).
在生成截图图像1之后,宿主操作系统可以把该截屏图像1的信息保存到宿主操作系统的剪贴板中。After generating the screenshot image 1 , the host operating system may save the information of the screenshot image 1 to the clipboard of the host operating system.
其中,上述“截屏图像1的信息”可以包括截屏图像1的图像数据、描述信息(例如数据名称、数据类型、数据大小、数据生成时间等信息)等。The above-mentioned “information of screenshot image 1 ” may include image data of screenshot image 1 , description information (such as data name, data type, data size, data generation time, etc.), etc.
在一些示例中,将截屏图像1的信息保存到宿主操作系统的剪贴板中,具体可以是将截屏图像1的图像数据保存到宿主操作系统的剪贴板中。其中,截屏图像1的图像数据可以是截屏图像1的原图的图像数据。In some examples, the information of the screenshot image 1 is saved in the clipboard of the host operating system, and specifically, the image data of the screenshot image 1 is saved in the clipboard of the host operating system. The image data of the screenshot image 1 may be the image data of the original image of the screenshot image 1.
S404-S405、宿主操作系统判断剪贴板中最新保存的内容是否为图片,若是,则将截屏图像1的信息保存到共享文件夹中,若否,则不再执行后续步骤。S404-S405, the host operating system determines whether the latest content saved in the clipboard is a picture. If so, the information of the screenshot image 1 is saved in the shared folder. If not, the subsequent steps are not executed.
具体地,宿主操作系统可以实时监测其剪贴板中的内容是否发生变化,在监测到其剪贴板中的内容发生变化时,宿主操作系统可以判断剪贴板中最新保存的内容是否为图片,以剪贴板中最新保存的内容是上述截屏图像1为例,宿主操作系统可以确定截屏图像1是图片,之后,宿主操作系统可以将截屏图像1的信息保存到共享文件夹中。Specifically, the host operating system can monitor in real time whether the content in its clipboard has changed. When it detects that the content in its clipboard has changed, the host operating system can determine whether the latest content saved in the clipboard is a picture. Taking the latest content saved in the clipboard as the above-mentioned screenshot image 1 as an example, the host operating system can determine that screenshot image 1 is a picture. After that, the host operating system can save the information of screenshot image 1 to the shared folder.
其中,上述共享文件夹可以是宿主操作系统和客户操作系统均有权访问的文件夹。The shared folder may be a folder that both the host operating system and the client operating system have access rights to.
其中,上述共享文件夹可以是宿主操作系统中的一个文件夹,也可以是客户操作系统中的一个文件夹。上述共享文件夹中的数据可以是由共享数据存储模块来进行存储,关于共享数据存储模块会在下述实施例中进行介绍,在此先不展开。The shared folder can be a folder in the host operating system or a folder in the client operating system. The data in the shared folder can be stored by a shared data storage module, which will be described in the following embodiments and will not be expanded here.
在本申请实施例中,上述客户操作系统和宿主操作系统进行文件共享可以是基于共享文件夹的文件系统服务来实现的,例如,该文件系统服务可以是9p-virtio(Plan 9foldersharingoverVirtio-I/O virtualization framework)。In an embodiment of the present application, file sharing between the client operating system and the host operating system can be achieved based on a file system service of a shared folder. For example, the file system service can be 9p-virtio (Plan 9 folders sharing over Virtio-I/O virtualization framework).
在宿主操作系统确定剪贴板中最新保存的内容不是图片的情况下,宿主操作系统可以不再执行后续步骤。 When the host operating system determines that the most recently saved content in the clipboard is not a picture, the host operating system may not execute subsequent steps.
S406、宿主操作系统向客户操作系统发送消息1,该消息用于指示客户操作系统获取截屏图像1的信息。S406 . The host operating system sends a message 1 to the guest operating system. The message is used to instruct the guest operating system to obtain information of the screenshot image 1 .
具体地,宿主操作系统在将截屏图像1的信息保存到共享文件夹中之后,可以向客户操作系统发送消息1,该消息用于指示客户操作系统获取截屏图像1的信息。Specifically, after saving the information of the screenshot image 1 in the shared folder, the host operating system may send a message 1 to the client operating system, where the message is used to instruct the client operating system to obtain the information of the screenshot image 1 .
也即是说,宿主操作系统可以通过发送消息1来向客户操作系统通知宿主操作系统的剪贴板中有新保存的内容向客户操作系统分享,客户操作系统可以从共享文件夹中来获取宿主操作系统的剪贴板中新保存的内容。That is, the host operating system can send message 1 to notify the client operating system that there is new content saved in the clipboard of the host operating system to be shared with the client operating system, and the client operating system can obtain the new content saved in the clipboard of the host operating system from the shared folder.
其中,上述消息1可以是通过进程间通信(Inter-Process Communication,IPC)来发送的消息。在本申请实施例中,进程间通信可以是利用管道(Pipe)的方式来实现的,不限于此,还可以是其他方式,本申请实施例对此不作限定。Among them, the above message 1 can be a message sent through inter-process communication (IPC). In the embodiment of the present application, the inter-process communication can be implemented by using a pipe, but is not limited to this, and can also be implemented in other ways, which is not limited in the embodiment of the present application.
S407-S408、客户操作系统获取截屏图像1的信息。之后,客户操作系统将截屏图像1的信息保存到客户操作系统的剪贴板中。S407-S408, the client operating system obtains information of the screenshot image 1. Afterwards, the client operating system saves the information of the screenshot image 1 to the clipboard of the client operating system.
具体地,客户操作系统在接收到宿主操作系统发送的上述消息1之后,可以基于上述消息1来获取截屏图像1的信息,例如,从电子设备100的共享文件夹中获取截屏图像1的信息。在获取到截屏图像1的信息之后,客户操作系统可以将截屏图像1的信息保存到客户操作系统的剪贴板中,以便后续客户操作系统的应用程序可以使用。Specifically, after receiving the message 1 sent by the host operating system, the client operating system can obtain the information of the screenshot image 1 based on the message 1, for example, obtaining the information of the screenshot image 1 from the shared folder of the electronic device 100. After obtaining the information of the screenshot image 1, the client operating system can save the information of the screenshot image 1 to the clipboard of the client operating system so that the subsequent application of the client operating system can use it.
在一些示例中,将截屏图像1的信息保存到客户操作系统的剪贴板中,具体可以是将截屏图像1的图像数据保存到客户操作系统的剪贴板中。其中,截屏图像1的图像数据可以是截屏图像1的原图的图像数据。In some examples, the information of the screenshot image 1 is saved in the clipboard of the client operating system, and specifically, the image data of the screenshot image 1 is saved in the clipboard of the client operating system. The image data of the screenshot image 1 may be the image data of the original image of the screenshot image 1.
S409-S410、客户操作系统判断剪贴板中最新保存的内容是否为图片,若是,则扫描截屏图像1在共享文件夹中的路径,并基于上述路径将截屏图像1的信息插入到媒体数据库中,若否,则不再执行后续步骤。S409-S410, the client operating system determines whether the latest content saved in the clipboard is a picture. If so, it scans the path of the screenshot image 1 in the shared folder and inserts the information of the screenshot image 1 into the media database based on the above path. If not, the subsequent steps are not executed.
具体地,客户操作系统可以实时监测其剪贴板中的内容是否发生变化,在监测到其剪贴板中的内容发生变化时,客户操作系统可以判断剪贴板中最新保存的内容是否为图片,以剪贴板中最新保存的内容是上述截屏图像1为例,客户操作系统可以确定截屏图像1是图片,之后,客户操作系统可以扫描截屏图像1在共享文件夹中的路径,并且可以基于上述路径将截屏图像1的信息插入到媒体数据库中,即将截屏图像1的信息作为一条数据库记录插入到媒体数据库中。Specifically, the client operating system can monitor in real time whether the content in its clipboard has changed. When it detects that the content in its clipboard has changed, the client operating system can determine whether the latest content saved in the clipboard is a picture. Taking the latest content saved in the clipboard as the above-mentioned screenshot image 1 as an example, the client operating system can determine that screenshot image 1 is a picture. After that, the client operating system can scan the path of screenshot image 1 in the shared folder, and can insert the information of screenshot image 1 into the media database based on the above-mentioned path, that is, insert the information of screenshot image 1 into the media database as a database record.
在一些示例中,客户操作系统基于上述路径将截屏图像1的信息插入到媒体数据库中,具体可以是客户操作系统在基于上述路径确定截屏图像1符合预设规则的情况下将截屏图像1的信息插入到媒体数据库中。In some examples, the client operating system inserts the information of the screenshot image 1 into the media database based on the above path. Specifically, the client operating system may insert the information of the screenshot image 1 into the media database when it determines that the screenshot image 1 meets the preset rules based on the above path.
其中,上述“预设规则”可以包括但不限于预设截图规则,其中,“预设截图规则”可以是指用于判断上述保存到剪贴板中的内容是否是截屏图像的预设规则,上述“预设截图规则”可以包括但不限于:截屏图像1的命名中包括特定的关键字(例如“screenshot”等关键字)、截屏图像1的时间戳信息(即截屏图像1生成的时间戳信息)中记录的时间点与当前时间点(即扫描截屏图像1的路径的时间点)的时间间隔在某一预设时间间隔(例如10秒、20秒等等)内。Among them, the above-mentioned "preset rules" may include but are not limited to preset screenshot rules, wherein the "preset screenshot rules" may refer to preset rules for determining whether the content saved in the clipboard is a screenshot image, and the above-mentioned "preset screenshot rules" may include but are not limited to: the naming of the screenshot image 1 includes specific keywords (such as keywords such as "screenshot"), and the time interval between the time point recorded in the timestamp information of the screenshot image 1 (that is, the timestamp information generated by the screenshot image 1) and the current time point (that is, the time point of scanning the path of the screenshot image 1) is within a preset time interval (for example, 10 seconds, 20 seconds, etc.).
其中,媒体数据库的数据表中可以用多个字段来记录数据,这多个字段可以包括但不限于:_id(即插入媒体数据库的序号,从1开始递增)、_data(文件的绝对路径)、_size(文件的大小)、_display_name(带扩展名的文件名)、mime_type(多用途互联网邮件扩展类型,由两部分组成:数据大类别/大类别下的具体类别)、title(不带扩展名的文件名)。Among them, multiple fields can be used to record data in the data table of the media database. These multiple fields may include but are not limited to: _id (i.e., the serial number inserted into the media database, increasing from 1), _data (absolute path of the file), _size (size of the file), _display_name (file name with extension), mime_type (Multipurpose Internet Mail Extension type, consisting of two parts: data category/specific category under the category), title (file name without extension).
示例性地,假设上述“截屏图像1的信息”插入到媒体数据库时媒体数据库中已存在1条记录,那么,上述“截屏图像1的信息”对应记录的_id则为2,假设上述“截屏图像1”的绝对路径为/storage/emulated/0/PC共享文件夹/Screenshot/Screenshot_20220429_161813.png,大小为359238KB,则上述“截屏图像1的信息”对应记录的_data则为“/storage/emulated/0/PC共享文件夹/Screenshot/Screenshot_20220429_161813.png”,_size则为“359238”,_display_name则为“Screenshot_20220429_161813.png”,mime_type则为“image/png”,title则为“Screenshot_20220429_161813”。Exemplarily, assuming that there is already 1 record in the media database when the above-mentioned “information of screenshot image 1” is inserted into the media database, then the _id of the record corresponding to the above-mentioned “information of screenshot image 1” is 2. Assuming that the absolute path of the above-mentioned “screenshot image 1” is /storage/emulated/0/PC shared folder/Screenshot/Screenshot_20220429_161813.png, and the size is 359238KB, then the _data of the record corresponding to the above-mentioned “information of screenshot image 1” is “/storage/emulated/0/PC shared folder/Screenshot/Screenshot_20220429_161813.png”, _size is “359238”, _display_name is “Screenshot_20220429_161813.png”, mime_type is “image/png”, and title is “Screenshot_20220429_161813”.
在客户操作系统确定剪贴板中最新保存的内容不是图片的情况下,客户操作系统可以不再执行后续步 骤。When the client operating system determines that the most recently saved content in the clipboard is not an image, the client operating system may not execute subsequent steps. Steps.
在一些示例中,将截屏图像1的信息插入到媒体数据库中,具体可以是将截屏图像1的描述信息(例如数据名称、数据类型、数据大小、数据生成时间等信息)插入到媒体数据库中,从而生成一条数据库记录,以便后续应用程序可以监测到媒体数据库中插入了一条新的数据库记录。In some examples, the information of screenshot image 1 is inserted into the media database. Specifically, the description information of screenshot image 1 (such as data name, data type, data size, data generation time, etc.) is inserted into the media database, thereby generating a database record so that subsequent applications can detect that a new database record has been inserted into the media database.
S411、客户操作系统检测到用户打开客户操作系统的应用程序1的用户界面1的操作。S411 , the client operating system detects an operation of a user opening the user interface 1 of the client operating system's application program 1 .
其中,应用程序1可以是以社交类应用程序(例如前述“聊天”应用程序)为例,应用程序1的用户界面1可以是应用程序1的用于与好友聊天的一个用户界面(例如前述图2D中的“聊天”应用程序的用户界面260,或,图3E中的“聊天”应用程序的用户界面370)。Among them, application 1 can be a social application (such as the aforementioned "chat" application) as an example, and the user interface 1 of application 1 can be a user interface of application 1 for chatting with friends (such as the user interface 260 of the "chat" application in the aforementioned Figure 2D, or the user interface 370 of the "chat" application in Figure 3E).
容易理解,本申请实施例提出的截图分享方法在上述应用程序1的用户界面1具备分享截图的条件下才可以执行,其中,“分享截图的条件”可以包括但不限于:应用程序1的用户界面1中显示有输入框,显示有能够用于进行文件分享的控件,等等。It is easy to understand that the screenshot sharing method proposed in the embodiment of the present application can only be executed when the user interface 1 of the above-mentioned application 1 meets the conditions for sharing screenshots, wherein the "conditions for sharing screenshots" may include but are not limited to: an input box is displayed in the user interface 1 of the application 1, controls that can be used for file sharing are displayed, and so on.
需要说明的是,本申请实施例对上述步骤S411的执行时间顺序不作限定。例如,上述步骤S411可以在用户完成截图操作之后就执行,也可以是在用户在触发显示截图界面的操作之前执行。It should be noted that the embodiment of the present application does not limit the execution time sequence of the above step S411. For example, the above step S411 can be executed after the user completes the screenshot operation, or before the user triggers the operation of displaying the screenshot interface.
S412、应用程序1从客户操作系统的剪贴板中获取截屏图像1的信息。S412 , application 1 obtains information of screenshot image 1 from the clipboard of the client operating system.
具体地,由于客户操作系统已经把截屏图像1的信息保存到客户操作系统的剪贴板中了,因此,在检测到用户打开客户操作系统的应用程序1的用户界面1的操作之后,应用程序1可以从客户操作系统的剪贴板中获取截屏图像1的信息。Specifically, since the client operating system has saved the information of the screenshot image 1 to the clipboard of the client operating system, after detecting the user's operation of opening the user interface 1 of the client operating system's application 1, the application 1 can obtain the information of the screenshot image 1 from the clipboard of the client operating system.
在一些示例中,在应用程序1处于运行状态或应用程序1在显示用户界面1等情况下,应用程序1可以监测客户操作系统的媒体数据库中的内容是否发生变化,在确定媒体数据库中的内容发生变化的情况下,应用程序1可以再从客户操作系统的剪贴板中获取上述发生变化的内容。假设发生变化的内容(即最新插入媒体数据库中的内容)为前述截屏图像1的信息,由于客户操作系统已经把截屏图像1的信息保存到客户操作系统的剪贴板中了,因此,应用程序1可以从客户操作系统的剪贴板中获取截屏图像1的信息。In some examples, when application 1 is in operation or when application 1 is displaying user interface 1, application 1 can monitor whether the content in the media database of the client operating system has changed. When it is determined that the content in the media database has changed, application 1 can obtain the changed content from the clipboard of the client operating system. Assuming that the changed content (i.e., the content most recently inserted into the media database) is the information of the aforementioned screenshot image 1, since the client operating system has saved the information of the screenshot image 1 to the clipboard of the client operating system, application 1 can obtain the information of the screenshot image 1 from the clipboard of the client operating system.
可以理解的是,客户操作系统在把截屏图像1的信息保存到剪贴板中之后,还可以将截屏图像1的信息插入到媒体数据库中是为了自动触发截图分享动作。因为应用程序1可以监测媒体数据库中的内容是否发生变化,这样,在监测到媒体数据库中的内容发生变化的情况下,应用程序1就可以触发显示一个悬浮窗口(例如下述步骤S413所示的悬浮窗口1),即自动触发截图分享动作,从而可以达到一键式分享截图的目的。It is understandable that after the client operating system saves the information of the screenshot image 1 to the clipboard, it can also insert the information of the screenshot image 1 into the media database in order to automatically trigger the screenshot sharing action. Because the application 1 can monitor whether the content in the media database has changed, in this way, when the content in the media database is monitored to have changed, the application 1 can trigger the display of a floating window (such as the floating window 1 shown in the following step S413), that is, automatically trigger the screenshot sharing action, so as to achieve the purpose of one-click screenshot sharing.
在一些示例中,在上述“应用程序1从客户操作系统的剪贴板中获取截屏图像1的信息”之前,应用程序1还可以判断媒体数据库中发生变化的内容是否符合预设规则(例如预设截图规则),若是,再从客户操作系统的剪贴板中获取截屏图像1的信息,若否,则不从客户操作系统的剪贴板中获取截屏图像1的信息,也不再执行后续步骤。In some examples, before the above-mentioned "application 1 obtains the information of screenshot image 1 from the clipboard of the client operating system", application 1 can also determine whether the changed content in the media database complies with preset rules (such as preset screenshot rules). If so, the information of screenshot image 1 is obtained from the clipboard of the client operating system. If not, the information of screenshot image 1 is not obtained from the clipboard of the client operating system, and the subsequent steps are not executed.
其中,上述预设规则可以包括但不限于:截屏图像1的命名中包括特定的关键字(例如“screenshot”等关键字)、截屏图像1的时间戳信息(例如“20220429_161813”)中记录的时间点与当前时间点(即应用程序1判断媒体数据库中发生变化的内容是否符合预设规则的时间点)的时间间隔在某一预设时间间隔(例如10秒、20秒等等)内。Among them, the above-mentioned preset rules may include but are not limited to: the naming of the screenshot image 1 includes specific keywords (such as keywords such as "screenshot"), and the time interval between the time point recorded in the timestamp information of the screenshot image 1 (such as "20220429_161813") and the current time point (that is, the time point when the application 1 determines whether the content that has changed in the media database complies with the preset rules) is within a certain preset time interval (such as 10 seconds, 20 seconds, etc.).
S413、应用程序1在用户界面1中显示悬浮窗口1,该窗口是基于截屏图像1生成的。S413 . Application 1 displays floating window 1 in user interface 1 . The floating window is generated based on screenshot image 1 .
具体地,应用程序1从客户操作系统的剪贴板中获取截屏图像1的信息之后,可以在用户界面1中基于截屏图像1生成并显示悬浮窗口1。Specifically, after the application 1 obtains the information of the screenshot image 1 from the clipboard of the client operating system, the application 1 may generate and display the floating window 1 based on the screenshot image 1 in the user interface 1 .
示例性地,上述悬浮窗口1可以是图2D中的悬浮窗口261,截屏图像1可以是图2C中的图片250。Exemplarily, the floating window 1 may be the floating window 261 in FIG. 2D , and the screenshot image 1 may be the picture 250 in FIG. 2C .
示例性地,上述悬浮窗口1也可以是图3E中的悬浮窗口371,截屏图像1可以是图3D中的图片360。Exemplarily, the floating window 1 may also be the floating window 371 in FIG. 3E , and the screenshot image 1 may be the picture 360 in FIG. 3D .
需要说明的是,上述悬浮窗口1中显示的图像可以是截屏图像1的缩略图,也可以是截屏图像1的原图,本申请实施例对此不作限定。容易理解,截屏图像1的缩略图也是基于剪贴板中保存的截屏图像1的图像数据生成的。It should be noted that the image displayed in the above floating window 1 can be a thumbnail of the screenshot image 1 or the original image of the screenshot image 1, and the embodiment of the present application does not limit this. It is easy to understand that the thumbnail of the screenshot image 1 is also generated based on the image data of the screenshot image 1 saved in the clipboard.
S414-S415、客户操作系统检测到用户针对悬浮窗口1的操作,响应于该操作,客户操作系统可以向 电子设备200(例如好友的电子设备)发送截屏图像1。S414-S415, the client operating system detects the user's operation on the floating window 1, and in response to the operation, the client operating system can The electronic device 200 (eg, a friend's electronic device) sends the screenshot image 1 .
容易理解,客户操作系统向电子设备200(例如好友的电子设备)发送截屏图像1,具体可以是客户操作系统通过电子设备100提供的硬件通信模块来向电子设备200(例如好友的电子设备)发送截屏图像1的。It is easy to understand that the client operating system sends the screenshot image 1 to the electronic device 200 (for example, a friend's electronic device). Specifically, the client operating system sends the screenshot image 1 to the electronic device 200 (for example, a friend's electronic device) through the hardware communication module provided by the electronic device 100.
通过实施上述图4所示实施例提供的方法,在电子设备100安装有宿主操作系统,且在宿主操作系统之上加载有客户操作系统的情况下,电子设备100在检测到用户触发截图操作之后,可以通过宿主操作系统来支持用户自由进行任意区域的图像截取操作、对图像的编辑操作等,进而生成截屏图像,进一步地,电子设备100可以将该截屏图像的信息保存到宿主操作系统的剪贴板中,之后,宿主操作系统还可以将该截屏图像的信息共享到客户操作系统的剪贴板中,实现跨系统的图像传输,整个过程不需要用户手动进行截屏图像数据的保存及拷贝,而且在用户在分享截屏图像时无需复杂的手动选取、分享等步骤,简化用户操作,可以有效提高用户使用模拟器的体验,让用户感知不到生态融合场景下系统之间的差异,提高生态融合产品的竞争力。By implementing the method provided by the embodiment shown in FIG. 4 above, when the electronic device 100 is installed with a host operating system and a client operating system is loaded on the host operating system, after detecting that the user triggers a screenshot operation, the electronic device 100 can support the user to freely perform image capture operations and image editing operations in any area through the host operating system, thereby generating a screenshot image. Furthermore, the electronic device 100 can save the information of the screenshot image to the clipboard of the host operating system. After that, the host operating system can also share the information of the screenshot image to the clipboard of the client operating system to achieve cross-system image transmission. The entire process does not require the user to manually save and copy the screenshot image data, and when the user shares the screenshot image, there is no need for complicated manual selection, sharing and other steps. Simplifying user operations can effectively improve the user experience of using the simulator, so that the user cannot perceive the differences between systems in the ecological integration scenario, thereby improving the competitiveness of ecological integration products.
在一些示例中,上述图4中的截屏图像1也可以在“图库”应用程序中查看,在这种情况下,用户在向好友分享上述截屏图像1时,也可以与前述图1D-图1G所示的分享截图过程那样,先在“图库”应用程序中选取上述截屏图像1,然后再分享上述截屏图像1。其中,“图库”应用程序可以是基于媒体数据库中记录的上述截屏图像1的信息来获取到上述截屏图像1在共享文件夹中的路径并显示上述截屏图像1的。In some examples, the screenshot image 1 in FIG. 4 can also be viewed in the "Gallery" application. In this case, when the user shares the screenshot image 1 with friends, the user can first select the screenshot image 1 in the "Gallery" application and then share the screenshot image 1, as in the screenshot sharing process shown in FIG. 1D to FIG. 1G. The "Gallery" application can obtain the path of the screenshot image 1 in the shared folder based on the information of the screenshot image 1 recorded in the media database and display the screenshot image 1.
在一些示例中,上述图4中的截屏图像1的信息也可以是宿主操作系统通过前述步骤S406中的消息1发送至客户操作系统的,也即是说,消息1中可以包括截屏图像1的信息。在这种情况下,客户操作系统接收到消息1之后,可以将消息1中包括的截屏图像1的信息保存到其剪贴板中,在确定上述截屏图像1的信息符合预设截图规则之后,将其插入到媒体数据库中,然后再执行后续步骤。可选地,在上述情况下,宿主操作系统也可以不把截屏图像1的信息保存到共享文件夹中。In some examples, the information of the screenshot image 1 in FIG. 4 may also be sent by the host operating system to the client operating system through the message 1 in the aforementioned step S406, that is, the message 1 may include the information of the screenshot image 1. In this case, after receiving the message 1, the client operating system may save the information of the screenshot image 1 included in the message 1 to its clipboard, and after determining that the information of the screenshot image 1 meets the preset screenshot rule, insert it into the media database, and then execute the subsequent steps. Optionally, in the above case, the host operating system may not save the information of the screenshot image 1 to the shared folder.
在一些示例中,如果用户利用宿主操作系统复制了一段纯文本,宿主操作系统可以把该文本保存到剪贴板中,并确定剪贴板中最新保存的内容不是图片,而是文本,在这种情况下,宿主操作系统也可以将该文本的信息发送至客户操作系统,例如,以IPC消息的形式发送至客户操作系统,客户操作系统可以将该文本保存到剪贴板中,这样,客户操作系统的应用程序则可以直接利用该文本。In some examples, if a user copies a piece of plain text using the host operating system, the host operating system can save the text to the clipboard and determine that the latest content saved in the clipboard is not a picture but text. In this case, the host operating system can also send the text information to the client operating system, for example, in the form of an IPC message to the client operating system. The client operating system can save the text to the clipboard, so that the application of the client operating system can directly use the text.
下面介绍本申请实施例提供的一种电子设备100的软件结构。The following introduces a software structure of an electronic device 100 provided in an embodiment of the present application.
图5示例性示出了本申请实施例中提供的一种电子设备100的软件结构。FIG. 5 exemplarily shows a software structure of an electronic device 100 provided in an embodiment of the present application.
如图5所示,电子设备100的软件结构可以包括用户空间和内核空间。本申请实施例以宿主操作系统是操作系统为例,示例性说明电子设备100的软件结构。需要说明的是,本申请实施例仅以操作系统为示例说明本申请实施例的技术方案所需的软件环境,本领域技术人员可以理解,本申请实施例也可以以其他操作系统来实现。As shown in FIG5 , the software structure of the electronic device 100 may include a user space and a kernel space. Taking the operating system as an example, the software structure of the electronic device 100 is exemplified. The operating system is an example of the software environment required for the technical solution of the embodiment of the present application. Those skilled in the art can understand that the embodiment of the present application can also be implemented with other operating systems.
用户空间可以包括:截屏应用程序、剪贴板管理模块(ClipboardManager)、剪贴板服务模块(ClipboardService)、剪贴板倾听模块(ClipboardListener)。其中:The user space may include: a screenshot application, a clipboard management module (ClipboardManager), a clipboard service module (ClipboardService), and a clipboard listening module (ClipboardListener). Among them:
截屏应用程序可以是能够提供截屏功能的应用程序。该应用程序可以是系统自带的应用程序,也可以是系统安装的第三方应用程序,本申请实施例对此不作限定。The screenshot application may be an application that can provide a screenshot function. The application may be a system-provided application or a third-party application installed by the system, which is not limited in the present embodiment of the application.
在本申请实施例中,该截屏应用程序可以支持用户自由进行任意区域的图像截取操作、对图像的编辑操作等。In an embodiment of the present application, the screenshot application can support users to freely perform image capture operations of any area, edit images, etc.
剪贴板管理模块可以用于为应用程序提供调用剪贴板的相关服务的接口。例如,应用程序可以通过调用剪贴板管理模块来获取到下述剪贴板服务模块中保存的内容,实现粘贴功能;又例如,应用程序可以通过调用剪贴板管理模块来将复制的内容保存到下述剪贴板服务模块,实现复制功能。The clipboard management module can be used to provide an interface for the application to call clipboard related services. For example, the application can obtain the content saved in the following clipboard service module by calling the clipboard management module to implement the paste function; for another example, the application can save the copied content to the following clipboard service module by calling the clipboard management module to implement the copy function.
剪贴板服务模块可以用于提供剪贴板的相关服务。例如,剪贴板服务模块可以保存用户复制的内容(例如文本、截屏图像等);又例如,剪贴板服务模块可以判断用户复制的内容是否为图片(例如截图图像等);再例如,剪贴板服务模块还可以将保存的图片(例如截屏图像等)的信息发送至下述共享数据存储模块,以便共享数据存储模块可以将该图片的信息进行保存;等等。容易理解,将数据保存到剪贴板服务模块中 即可以认为将数据保存到剪贴板中。The clipboard service module can be used to provide clipboard related services. For example, the clipboard service module can save the content copied by the user (such as text, screenshot images, etc.); for another example, the clipboard service module can determine whether the content copied by the user is a picture (such as a screenshot image, etc.); for another example, the clipboard service module can also send the information of the saved picture (such as a screenshot image, etc.) to the shared data storage module described below, so that the shared data storage module can save the information of the picture; and so on. It is easy to understand that saving data to the clipboard service module That is, you can think of it as saving the data to the clipboard.
剪贴板倾听模块可以用于监测剪贴板中的内容是否发生了变化(即剪贴板服务模块中保存的内容是否发生了变化);还可以用于在监测到剪贴板中的内容发生了变化之后通过下述进程间通信模块来向客户操作系统发送IPC消息;等等。The clipboard listening module can be used to monitor whether the content in the clipboard has changed (i.e., whether the content saved in the clipboard service module has changed); it can also be used to send an IPC message to the client operating system through the following inter-process communication module after detecting that the content in the clipboard has changed; and so on.
内核空间可以包括:共享数据存储模块、进程间通信模块。其中:The kernel space may include: a shared data storage module and an inter-process communication module.
共享数据存储模块可以用于保存共享数据(即宿主操作系统和客户操作系统均有权访问的数据)。例如,共享数据存储模块可以接收剪贴板服务模块发送的图片的信息,并将该图片的信息进行保存。The shared data storage module can be used to store shared data (ie, data that both the host operating system and the client operating system have the right to access). For example, the shared data storage module can receive information about a picture sent by the clipboard service module and store the information about the picture.
共享数据存储模块的一部分可以是包含在用户空间的。A portion of the shared data storage module may be contained in user space.
容易理解,前述实施例中“共享文件夹”中的文件均可以被保存于共享数据存储模块中。It is easy to understand that all files in the "shared folder" in the above-mentioned embodiment can be stored in the shared data storage module.
进程间通信模块可以用于实现两个进程之间进行通信的功能。例如,进程间通信模块可以在剪贴板倾听模块监测到剪贴板中的内容发生了变化之后向客户操作系统发送IPC消息。The inter-process communication module can be used to implement the function of communicating between two processes. For example, the inter-process communication module can send an IPC message to the client operating system after the clipboard listening module detects that the content in the clipboard has changed.
下面介绍本申请实施例提供的另一种电子设备100的软件结构。The following introduces the software structure of another electronic device 100 provided in an embodiment of the present application.
图6示例性示出了本申请实施例中提供的另一种电子设备100的软件结构。FIG. 6 exemplarily shows a software structure of another electronic device 100 provided in an embodiment of the present application.
如图6所示,电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以客户操作系统是分层架构的操作系统为例,示例性说明电子设备100的软件结构。需要说明的是,本申请实施例仅以操作系统为示例说明本申请实施例的技术方案所需的软件环境,本领域技术人员可以理解,本申请实施例也可以以其他操作系统来实现。As shown in FIG6 , the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. Taking the operating system as an example, the software structure of the electronic device 100 is exemplified. The operating system is an example of the software environment required for the technical solution of the embodiment of the present application. Those skilled in the art can understand that the embodiment of the present application can also be implemented with other operating systems.
分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些示例中,将操作系统分为四层,从上至下分别为应用程序层,应用程序框架层,系统服务层,以及内核层。The layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. The operating system is divided into four layers, from top to bottom: application layer, application framework layer, system service layer, and kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图6所示,应用程序包可以包括相机,图库,日历,通话,地图,聊天,WLAN,蓝牙,音乐,视频,短信息等应用程序。As shown in FIG. 6 , the application package may include applications such as camera, gallery, calendar, call, map, chat, WLAN, Bluetooth, music, video, short message, etc.
其中,聊天应用程序可以是一个社交类应用程序,可以实现多种功能。例如,可以用于用户向使用该应用程序的其他用户进行数据分享(例如进行图片、文字等数据的分享);又例如,可以用于用户接收使用该应用程序的其他用户分享过来的数据(例如图片、文字等数据);再例如,聊天应用程序也可以监测媒体数据库中内容的变化;还例如,聊天应用程序可以读取剪贴板中的信息;等等。Among them, the chat application can be a social application that can realize multiple functions. For example, it can be used for users to share data (such as pictures, texts, etc.) with other users who use the application; for another example, it can be used for users to receive data (such as pictures, texts, etc.) shared by other users who use the application; for another example, the chat application can also monitor changes in the content of the media database; for another example, the chat application can read the information in the clipboard; and so on.
需要说明的是,聊天应用程序的名称仅为本申请实施例所使用的词语,其代表的含义在本申请实施例中已经记载,其名称并不能对本申请实施例构成任何限制。It should be noted that the name of the chat application is only a term used in the embodiment of the present application. The meaning it represents has been recorded in the embodiment of the present application, and its name does not constitute any limitation to the embodiment of the present application.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
如图6所示,应用程序框架层可以包括窗口管理器,视图系统,资源管理器,通知管理器,剪贴板管理模块(ClipboardManager)等。As shown in FIG. 6 , the application framework layer may include a window manager, a view system, a resource manager, a notification manager, a clipboard management module (ClipboardManager), and the like.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音等。The notification manager allows applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of an icon or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, it can prompt text information in the status bar and emit a prompt sound.
剪贴板管理模块(ClipboardManager)可以用于为应用程序提供调用剪贴板的相关服务的接口。例如,应用程序可以通过调用剪贴板管理模块来获取到下述剪贴板服务模块中保存的内容,实现粘贴功能;又例如,应用程序可以通过调用剪贴板管理模块来将复制的内容保存到下述剪贴板服务模块,实现复制功能。 The Clipboard Manager module (ClipboardManager) can be used to provide applications with interfaces for calling clipboard-related services. For example, an application can obtain the content saved in the following clipboard service module by calling the Clipboard Manager module to implement the paste function; for another example, an application can save the copied content to the following clipboard service module by calling the Clipboard Manager module to implement the copy function.
系统服务层可以包括多个功能模块。例如:表面管理器(Surface Manager),三维图形处理库(例如:OpenGL ES),二维图形引擎(例如:SGL),剪贴板服务模块(ClipboardService),媒体扫描服务模块(MediaScannerService),媒体数据库(Media Database)等。The system service layer can include multiple functional modules. For example: surface manager (Surface Manager), 3D graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), clipboard service module (ClipboardService), media scanning service module (MediaScannerService), media database (Media Database), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
二维图形引擎是2D绘图的绘图引擎。A 2D graphics engine is a drawing engine for 2D drawings.
剪贴板服务模块可以用于提供剪贴板的相关服务。例如,剪贴板服务模块可以获取并保存共享数据存储模块中的共享数据(例如截屏图像等);又例如,剪贴板服务模块可以判断获取到的共享数据存储模块中的共享数据是否为图片(例如截图图像等);再例如,剪贴板服务模块可以在确定获取到的共享数据存储模块中的共享数据是图片的情况下通知下述媒体扫描服务模块来对共享数据存储模块中的共享数据的路径进行扫描操作;等等。容易理解,将数据保存到剪贴板服务模块中即可以认为将数据保存到剪贴板中。The clipboard service module can be used to provide clipboard related services. For example, the clipboard service module can obtain and save the shared data (such as screenshot images, etc.) in the shared data storage module; for another example, the clipboard service module can determine whether the shared data in the shared data storage module obtained is a picture (such as a screenshot image, etc.); for another example, the clipboard service module can notify the following media scanning service module to scan the path of the shared data in the shared data storage module when it is determined that the shared data in the shared data storage module obtained is a picture; and so on. It is easy to understand that saving data in the clipboard service module can be considered as saving the data in the clipboard.
媒体扫描服务模块可以用于对媒体文件进行扫描操作。例如,媒体扫描服务模块可以接收剪贴板服务模块发送的指示消息,并基于该指示消息来对共享数据存储模块中的共享数据的路径进行扫描操作,并将符合预设规则(例如预设截图规则)的共享数据的信息插入到下述媒体数据库中。The media scanning service module can be used to scan media files. For example, the media scanning service module can receive an instruction message sent by the clipboard service module, and based on the instruction message, scan the path of the shared data in the shared data storage module, and insert the information of the shared data that meets the preset rules (such as the preset screenshot rules) into the following media database.
媒体数据库可以用于存储媒体文件的信息。例如,可以存储上述符合预设规则的共享数据的信息。The media database can be used to store information about media files, for example, information about the shared data that complies with preset rules.
内核层是硬件和软件之间的层。内核层至少包括显示驱动,摄像头驱动,蓝牙驱动,传感器驱动。The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, Bluetooth driver, and sensor driver.
在本申请实施例中,内核层还可以包括共享数据存储模块,进程间通信模块。In an embodiment of the present application, the kernel layer may also include a shared data storage module and an inter-process communication module.
共享数据存储模块可以用于保存共享数据(即宿主操作系统和客户操作系统均有权访问的数据)。例如,共享数据存储模块可以接收并保存宿主操作系统中的共享数据存储模块同步过来的共享数据的信息。容易理解,前述实施例中“共享文件夹”中的文件均可以被保存于共享数据存储模块中。The shared data storage module can be used to store shared data (i.e., data that both the host operating system and the client operating system have access to). For example, the shared data storage module can receive and store information about shared data synchronized from the shared data storage module in the host operating system. It is easy to understand that all files in the "shared folder" in the aforementioned embodiment can be stored in the shared data storage module.
进程间通信模块可以用于实现两个进程之间进行通信的功能。例如,进程间通信模块可以接收宿主操作系统发送过来的IPC消息,还可以将该IPC消息发送至剪贴板服务模块。The inter-process communication module can be used to implement the function of communication between two processes. For example, the inter-process communication module can receive an IPC message sent by the host operating system, and can also send the IPC message to the clipboard service module.
基于上述图5和图6的软件结构,下面介绍电子设备100在安装有宿主操作系统,且在宿主操作系统之上加载有客户操作系统的情况下实施本申请实施例提供的截图分享方法时各个模块之间的一种可能的协作方式。Based on the software structure of Figures 5 and 6 above, the following introduces a possible collaboration method between various modules when the electronic device 100 implements the screenshot sharing method provided in an embodiment of the present application when a host operating system is installed and a client operating system is loaded on the host operating system.
图7示例性示出了电子设备100在安装有宿主操作系统,且在宿主操作系统之上加载有客户操作系统的情况下实施本申请实施例提供的截图分享方法时各个模块之间的一种可能的协作方式。FIG. 7 exemplarily shows a possible collaboration mode between various modules when the electronic device 100 implements the screenshot sharing method provided in an embodiment of the present application when a host operating system is installed and a client operating system is loaded on the host operating system.
前述图4中的步骤S403执行时,电子设备100的各个模块之间的一种可能的协作方式可以为下述步骤1-步骤2所示的协作方式:When step S403 in FIG. 4 is executed, a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 1 and 2:
步骤1-步骤2:截屏应用程序在生成截图图像1之后,截屏应用程序可以通过调用宿主操作系统的剪贴板管理模块来将截屏图像1的信息发送到宿主操作系统的剪贴板服务模块中,宿主操作系统的剪贴板服务模块可以保存截屏图像1的信息。Step 1-Step 2: After the screenshot application generates the screenshot image 1, the screenshot application can send the information of the screenshot image 1 to the clipboard service module of the host operating system by calling the clipboard management module of the host operating system, and the clipboard service module of the host operating system can save the information of the screenshot image 1.
前述图4中的步骤S404-S405执行时,电子设备100的各个模块之间的一种可能的协作方式可以为下述步骤3-步骤4所示的协作方式:When steps S404-S405 in FIG. 4 are executed, a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 3-4:
步骤3:宿主操作系统的剪贴板服务模块可以判断上述截屏图像1是否为图片,若是,则将截图图像1的信息发送至宿主操作系统的共享数据存储模块,宿主操作系统的共享数据存储模块可以保存截屏图像1的信息。Step 3: The clipboard service module of the host operating system can determine whether the screenshot image 1 is a picture. If so, the information of the screenshot image 1 is sent to the shared data storage module of the host operating system, and the shared data storage module of the host operating system can save the information of the screenshot image 1.
步骤4:宿主操作系统的共享数据存储模块可以将上述截屏图像1的信息同步至客户操作系统的共享数据存储模块,客户操作系统的共享数据存储模块可以保存截屏图像1的信息。Step 4: The shared data storage module of the host operating system may synchronize the information of the screenshot image 1 to the shared data storage module of the client operating system, and the shared data storage module of the client operating system may save the information of the screenshot image 1 .
在本申请实施例中,宿主操作系统和客户操作系统中都可以存在有共享数据存储模块。在一些示例中,共享数据存储模块也可以只存在于宿主操作系统中,而不存在于客户操作系统,在这种情况下,客户操作系统需要在宿主操作系统的共享数据存储模块中获取截屏图像1的信息。在另一些示例中,共享数据存储模块也可以只存在于客户操作系统中,而不存在于宿主操作系统,在这种情况下,宿主操作系统在生成截屏图像1之后,可以把截屏图像1的信息保存到客户操作系统的共享数据存储模块中,之后,客户操作系统可以直接在客户操作系统的共享数据存储模块中获取截屏图像1的信息。 In the embodiment of the present application, a shared data storage module may exist in both the host operating system and the client operating system. In some examples, the shared data storage module may exist only in the host operating system but not in the client operating system. In this case, the client operating system needs to obtain the information of the screenshot image 1 from the shared data storage module of the host operating system. In other examples, the shared data storage module may exist only in the client operating system but not in the host operating system. In this case, after generating the screenshot image 1, the host operating system may save the information of the screenshot image 1 to the shared data storage module of the client operating system. After that, the client operating system may directly obtain the information of the screenshot image 1 from the shared data storage module of the client operating system.
前述图4中的步骤S406执行时,电子设备100的各个模块之间的一种可能的协作方式可以为下述步骤5-步骤8所示的协作方式:When step S406 in FIG. 4 is executed, a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 5 to 8:
步骤5:宿主操作系统的剪贴板倾听模块实时监测宿主操作系统的剪贴板服务模块中保存的内容是否发生变化。Step 5: The clipboard listening module of the host operating system monitors in real time whether the content stored in the clipboard service module of the host operating system changes.
容易理解,步骤5可以在上述步骤1-步骤4执行时也在同时执行。It is easy to understand that step 5 can be executed simultaneously when the above steps 1 to 4 are executed.
步骤6-步骤8:在宿主操作系统的剪贴板倾听模块监测到宿主操作系统的剪贴板服务模块中保存的内容发生变化的情况下,宿主操作系统的剪贴板倾听模块可以通过宿主操作系统的进程间通信模块和客户操作系统的进程间通信模块来向客户操作系统的剪贴板服务模块发送IPC消息,该消息可以用于指示客户操作系统的剪贴板服务模块去获取截屏图像1的信息。Step 6-Step 8: When the clipboard listening module of the host operating system detects that the content saved in the clipboard service module of the host operating system has changed, the clipboard listening module of the host operating system can send an IPC message to the clipboard service module of the client operating system through the inter-process communication module of the host operating system and the inter-process communication module of the client operating system. The message can be used to instruct the clipboard service module of the client operating system to obtain the information of the screenshot image 1.
前述图4中的步骤S407-S408执行时,电子设备100的各个模块之间的一种可能的协作方式可以为下述步骤9所示的协作方式:When steps S407-S408 in FIG. 4 are executed, a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in step 9 below:
步骤9:客户操作系统的剪贴板服务模块在客户操作系统的共享数据存储模块中获取截屏图像1的信息,并保存截屏图像1的信息。Step 9: The clipboard service module of the client operating system obtains the information of the screenshot image 1 from the shared data storage module of the client operating system, and saves the information of the screenshot image 1.
容易理解,客户操作系统的剪贴板服务模块保存了截屏图像1的信息之后,客户操作系统的剪贴板中就会存在截图图像1。It is easy to understand that after the clipboard service module of the client operating system saves the information of the screenshot image 1, the screenshot image 1 will exist in the clipboard of the client operating system.
前述图4中的步骤S409-S410执行时,电子设备100的各个模块之间的一种可能的协作方式可以为下述步骤10-步骤12所示的协作方式:When steps S409-S410 in FIG. 4 are executed, a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 10-12:
步骤10-步骤12:客户操作系统的剪贴板服务模块可以判断上述截屏图像1是否为图片,若是,则可以通知客户操作系统的媒体扫描服务模块扫描客户操作系统的共享数据存储模块中截屏图像1的信息对应的路径,客户操作系统的媒体扫描服务模块通过扫描操作确定上述截屏图像1的信息符合预设规则的情况下,可以将上述截屏图像1的信息插入到客户操作系统的媒体数据库中。Step 10-Step 12: The clipboard service module of the client operating system can determine whether the above-mentioned screenshot image 1 is a picture. If so, it can notify the media scanning service module of the client operating system to scan the path corresponding to the information of the screenshot image 1 in the shared data storage module of the client operating system. If the media scanning service module of the client operating system determines through the scanning operation that the information of the above-mentioned screenshot image 1 meets the preset rules, the information of the above-mentioned screenshot image 1 can be inserted into the media database of the client operating system.
前述图4中的步骤S412-S413执行时,电子设备100的各个模块之间的一种可能的协作方式可以为下述步骤13-步骤15所示的协作方式:When steps S412-S413 in FIG. 4 are executed, a possible collaboration mode between the modules of the electronic device 100 may be the collaboration mode shown in the following steps 13-15:
步骤13:客户操作系统的聊天应用程序(即具备社交功能的一个应用程序)可以实时监测媒体数据库中的内容是否发生变化。Step 13: The chat application (ie, an application with social functions) of the client operating system can monitor in real time whether the content in the media database changes.
在一些示例中,客户操作系统的聊天应用程序也可以不是实时监测媒体数据库中的内容是否发生变化,也可以是在某些条件下再监测媒体数据库中的内容是否发生变化,例如,聊天应用程序被打开,或,触发显示聊天应用程序的聊天界面等条件下再监测媒体数据库中的内容是否发生变化。In some examples, the chat application of the client operating system may not monitor the content in the media database for changes in real time, but may monitor the content in the media database for changes under certain conditions, such as when the chat application is opened, or when the chat interface of the chat application is triggered to be displayed.
步骤14-步骤15:在客户操作系统的聊天应用程序监测到宿主操作系统的媒体数据库中的内容发生变化的情况下,可以触发自动分享动作,例如,在图2D中的用户界面260中显示悬浮窗口261,进一步地,客户操作系统的聊天应用程序可以通过调用客户操作系统的剪贴板管理模块来获取到客户操作系统的剪贴板服务模块中保存的截屏图像1的信息,并基于截屏图像1的信息在上述悬浮窗口261中显示截屏图像1。Step 14-Step 15: When the chat application of the client operating system detects changes in the content in the media database of the host operating system, an automatic sharing action can be triggered, for example, a floating window 261 is displayed in the user interface 260 in Figure 2D. Furthermore, the chat application of the client operating system can obtain the information of the screenshot image 1 saved in the clipboard service module of the client operating system by calling the clipboard management module of the client operating system, and display the screenshot image 1 in the above-mentioned floating window 261 based on the information of the screenshot image 1.
下面介绍本申请实施例提供的一种电子设备100的结构。The structure of an electronic device 100 provided in an embodiment of the present application is introduced below.
图8示例性示出了本申请实施例提供的一种电子设备100的结构。FIG. 8 exemplarily shows the structure of an electronic device 100 provided in an embodiment of the present application.
如图8所示,电子设备100可以包括处理器110,内部存储器120,外部存储器接口121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,显示屏151,键盘152,摄像头153,音频模块160,扬声器161,受话器162,麦克风163,耳机接口164,有线通信模块171,无线通信模块172,天线1,传感器模块180等。传感器模块180可以包括压力传感器180A,指纹传感器180B,温度传感器180C,触摸传感器180D,环境光传感器180E等。As shown in FIG8 , the electronic device 100 may include a processor 110, an internal memory 120, an external memory interface 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a display screen 151, a keyboard 152, a camera 153, an audio module 160, a speaker 161, a receiver 162, a microphone 163, an earphone interface 164, a wired communication module 171, a wireless communication module 172, an antenna 1, a sensor module 180, etc. The sensor module 180 may include a pressure sensor 180A, a fingerprint sensor 180B, a temperature sensor 180C, a touch sensor 180D, an ambient light sensor 180E, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些示例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。例如,在一些示例中,在以上所述的硬件之外,电子设备100可能还具有马达,移动通信模块(2G/3G/4G/5G),SIM卡接口,eSIM芯片等等。因此,关于电子设备100的具体硬件结构,可以根据具体情况,包括比图示更多或更少的部件,或者 组合某些部件,或者拆分某些部件,或者不同的部件布置。It is understandable that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other examples of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware. For example, in some examples, in addition to the hardware described above, the electronic device 100 may also have a motor, a mobile communication module (2G/3G/4G/5G), a SIM card interface, an eSIM chip, and the like. Therefore, regarding the specific hardware structure of the electronic device 100, it may include more or fewer components than shown in the figure, or Combine some parts, or split some parts, or arrange the parts differently.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些示例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some examples, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些示例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some examples, processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with USB standard specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 may be used to connect a charger to charge the electronic device 100, or may be used to transmit data between the electronic device 100 and a peripheral device. The interface may also be used to connect other electronic devices, such as AR devices, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些示例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other examples of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
内部存储器120可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器120的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器120可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据等。此外,内部存储器120可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 120 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 120. The internal memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100, etc. In addition, the internal memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
外部存储器接口121可以用于连接外部存储卡,例如移动硬盘,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口121与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储硬盘中。The external memory interface 121 can be used to connect an external memory card, such as a mobile hard disk, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 121 to implement a data storage function, such as storing music, video and other files in an external storage hard disk.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的示例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的示例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging examples, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging examples, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器120,外部存储器,显示屏151,摄像头153,和无线通信模块172等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些示例中,电源管理模块141也可以设置于处理器110中。在另一些示例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 120, the external memory, the display screen 151, the camera 153, and the wireless communication module 172. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other examples, the power management module 141 can also be set in the processor 110. In other examples, the power management module 141 and the charging management module 140 can also be set in the same device.
电子设备100通过GPU,显示屏151,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏151和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements the display function through a GPU, a display screen 151, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 151 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
显示屏151用于显示图像,视频等。显示屏151包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting  diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏151,N为大于1的正整数。The display screen 151 is used to display images, videos, etc. The display screen 151 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (quantum dot light emitting diode), or a micro-LED. In some embodiments, the electronic device 100 may include 1 or N display screens 151, where N is a positive integer greater than 1.
键盘152可以包括物理键盘、触摸式键盘等。电子设备100可以接收键盘的输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。例如,用户可以通过键盘152上的快捷键来进行截图操作、粘贴截屏图像的操作,等等。The keyboard 152 may include a physical keyboard, a touch keyboard, etc. The electronic device 100 may receive input from the keyboard and generate key signal input related to user settings and function control of the electronic device 100. For example, the user may use shortcut keys on the keyboard 152 to perform operations such as taking screenshots and pasting screenshot images.
电子设备100可以通过ISP,摄像头153,视频编解码器,GPU,显示屏151以及应用处理器等实现拍摄功能。The electronic device 100 can realize the shooting function through the ISP, the camera 153, the video codec, the GPU, the display screen 151 and the application processor.
摄像头153用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头153,N为大于1的正整数。The camera 153 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal oxide semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 153, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. In this way, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
电子设备100的网络通信功能可以通过有线通信模块171,无线通信模块172,天线1,调制解调处理器以及基带处理器等实现。通过电子设备100的网络通信功能,可以使得电子设备100与其他电子设备进行通信,例如,向其他电子设备(例如好友的电子设备)进行截图分享。The network communication function of the electronic device 100 can be implemented through the wired communication module 171, the wireless communication module 172, the antenna 1, the modem processor and the baseband processor. Through the network communication function of the electronic device 100, the electronic device 100 can communicate with other electronic devices, for example, to share screenshots with other electronic devices (such as a friend's electronic device).
天线1用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些示例中,天线可以和调谐开关结合使用。Antenna 1 is used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other examples, the antenna can be used in combination with a tuning switch.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器161,受话器162等)输出声音信号,或通过显示屏151显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 161, a receiver 162, etc.), or displays an image or video through a display screen 151. In some embodiments, the modem processor may be an independent device.
有线通信模块171可以提供应用在电子设备100上的包括以太网、局域网、互联网等有线通信的解决方案。有线通信模块171可以是集成至少一个通信处理模块的一个或多个器件。The wired communication module 171 can provide wired communication solutions including Ethernet, local area network, Internet, etc. applied to the electronic device 100. The wired communication module 171 can be one or more devices integrating at least one communication processing module.
无线通信模块172可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块172可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块172经由天线1接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块172还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线1转为电磁波辐射出去。The wireless communication module 172 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to the electronic device 100. The wireless communication module 172 can be one or more devices integrating at least one communication processing module. The wireless communication module 172 receives electromagnetic waves via the antenna 1, modulates the frequency of the electromagnetic wave signal and performs filtering processing, and sends the processed signal to the processor 110. The wireless communication module 172 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify the signal, and convert it into electromagnetic waves for radiation through the antenna 1.
电子设备100可以通过音频模块160,扬声器161,受话器162,麦克风163,耳机接口164,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions such as music playing and recording through the audio module 160 , the speaker 161 , the receiver 162 , the microphone 163 , the headphone jack 164 , and the application processor.
音频模块160用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块160还可以用于对音频信号编码和解码。在一些实施例中,音频模块160可以设置于处理器110中,或将音频模块160的部分功能模块设置于处理器110中。The audio module 160 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 160 can also be used to encode and decode audio signals. In some embodiments, the audio module 160 can be arranged in the processor 110, or some functional modules of the audio module 160 can be arranged in the processor 110.
扬声器161,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器161收听音乐,或收听免提通话。The speaker 161 , also called a “speaker”, is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 161 .
受话器162,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息 时,可以通过将受话器162靠近人耳接听语音。The receiver 162, also called a "handset", is used to convert audio electrical signals into sound signals. When the user is listening to the voice, the user can place the receiver 162 close to the ear.
麦克风163,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风163发声,将声音信号输入到麦克风163。电子设备100可以设置至少一个麦克风163。在另一些示例中,电子设备100可以设置两个麦克风163,除了采集声音信号,还可以实现降噪功能。在另一些示例中,电子设备100还可以设置三个,四个或更多麦克风163,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 163, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting his mouth close to microphone 163 to input the sound signal into microphone 163. The electronic device 100 can be provided with at least one microphone 163. In other examples, the electronic device 100 can be provided with two microphones 163, which can not only collect sound signals but also realize noise reduction function. In other examples, the electronic device 100 can also be provided with three, four or more microphones 163 to collect sound signals, reduce noise, identify the sound source, realize directional recording function, etc.
耳机接口164用于连接有线耳机。耳机接口164可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 164 is used to connect a wired earphone. The earphone jack 164 can be the USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
传感器模块180可以包括压力传感器180A,指纹传感器180B,温度传感器180C,触摸传感器180D,环境光传感器180E等。The sensor module 180 may include a pressure sensor 180A, a fingerprint sensor 180B, a temperature sensor 180C, a touch sensor 180D, an ambient light sensor 180E, and the like.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些示例中,压力传感器180A可以设置于显示屏151。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏151,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些示例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some examples, the pressure sensor 180A can be set on the display screen 151. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 151, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A. In some examples, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions.
指纹传感器180B用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180B is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
温度传感器180C用于检测温度。在一些示例中,电子设备100利用温度传感器180C检测的温度,执行温度处理策略。例如,当温度传感器180C上报的温度超过阈值,电子设备100执行降低位于温度传感器180C附近的处理器的性能,以便降低功耗实施热保护。在另一些示例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些示例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180C is used to detect temperature. In some examples, the electronic device 100 uses the temperature detected by the temperature sensor 180C to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180C exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180C to reduce power consumption and implement thermal protection. In other examples, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to avoid abnormal shutdown of the electronic device 100 due to low temperature. In other examples, when the temperature is lower than another threshold, the electronic device 100 performs a boost on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180D,也称“触控面板”。触摸传感器180D用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏151提供与触摸操作相关的视觉输出。The touch sensor 180D is also called a "touch panel". The touch sensor 180D is used to detect a touch operation applied thereto or thereabout. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. A visual output related to the touch operation can be provided through the display screen 151.
环境光传感器180E用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏151亮度。环境光传感器180E也可用于摄像头153拍摄时自动调节白平衡。The ambient light sensor 180E is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 151 according to the perceived brightness of the ambient light. The ambient light sensor 180E can also be used to automatically adjust the white balance when the camera 153 is shooting.
应当理解的是,图8所示的电子设备100仅是一个范例,并且电子设备100可以具有比图8中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图8中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。It should be understood that the electronic device 100 shown in FIG8 is only an example, and the electronic device 100 may have more or fewer components than those shown in FIG8, may combine two or more components, or may have a different component configuration. The various components shown in FIG8 may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序 代码的介质。A person skilled in the art can understand that to implement all or part of the processes in the above-mentioned embodiments, the processes can be completed by a computer program to instruct the relevant hardware, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above-mentioned method embodiments. The aforementioned storage medium includes: ROM or random access memory RAM, magnetic disk or optical disk, etc. The medium of the code.
以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。 The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

Claims (12)

  1. 一种截图分享方法,应用于电子设备,其特征在于,所述电子设备上运行有第一操作系统和第二操作系统,所述方法包括:A screenshot sharing method is applied to an electronic device, wherein a first operating system and a second operating system are running on the electronic device, and the method comprises:
    响应于用户的截图操作,所述第一操作系统生成并保存截屏图像;In response to a screenshot operation by the user, the first operating system generates and saves a screenshot image;
    所述第二操作系统获取所述截屏图像,并将所述截屏图像保存到所述第二操作系统的剪贴板中;The second operating system obtains the screenshot image, and saves the screenshot image to a clipboard of the second operating system;
    所述第二操作系统在用户界面显示悬浮窗口,所述悬浮窗口是基于所述截屏图像生成的,所述用户界面是所述第二操作系统中的应用程序的一个用户界面;The second operating system displays a floating window in a user interface, the floating window is generated based on the screenshot image, and the user interface is a user interface of an application in the second operating system;
    所述第二操作系统检测到用户在所述用户界面上针对所述悬浮窗口的第一操作;The second operating system detects a first operation of a user on the floating window on the user interface;
    响应于所述第一操作,所述电子设备向其他设备发送所述截屏图像。In response to the first operation, the electronic device sends the screenshot image to other devices.
  2. 根据权利要求1所述的方法,其特征在于,在所述第二操作系统获取所述截屏图像之前,所述方法还包括:The method according to claim 1, characterized in that before the second operating system obtains the screenshot image, the method further comprises:
    所述第一操作系统向所述第二操作系统发送第一消息,所述第一消息用于指示所述第二操作系统获取所述截屏图像。The first operating system sends a first message to the second operating system, where the first message is used to instruct the second operating system to obtain the screenshot image.
  3. 根据权利要求2所述的方法,其特征在于,所述第一消息是通过进程间通信IPC发送的。The method according to claim 2 is characterized in that the first message is sent via inter-process communication (IPC).
  4. 根据权利要求1-3任一项所述的方法,其特征在于,所述第一操作系统保存截屏图像,包括:The method according to any one of claims 1 to 3, wherein the first operating system saves the screenshot image, comprising:
    所述第一操作系统将所述截屏图像保存到所述第一操作系统的剪贴板中以及保存到共享文件夹中。The first operating system saves the screenshot image to a clipboard of the first operating system and to a shared folder.
  5. 根据权利要求4所述的方法,其特征在于,在所述第一操作系统向所述第二操作系统发送第一消息之前,所述方法还包括:The method according to claim 4, characterized in that before the first operating system sends the first message to the second operating system, the method further comprises:
    所述第一操作系统检测到所述第一操作系统的剪贴板中最新保存的内容为图片。The first operating system detects that the most recently saved content in the clipboard of the first operating system is a picture.
  6. 根据权利要求4或5所述的方法,其特征在于,所述第二操作系统获取所述截屏图像,包括:The method according to claim 4 or 5, characterized in that the second operating system obtains the screenshot image, comprising:
    所述第二操作系统从所述共享文件夹中获取所述截屏图像。The second operating system obtains the screenshot image from the shared folder.
  7. 根据权利要求4-6任一项所述的方法,其特征在于,在所述第二操作系统在用户界面显示悬浮窗口之前,所述方法还包括:The method according to any one of claims 4 to 6, characterized in that before the second operating system displays the floating window in the user interface, the method further comprises:
    所述第二操作系统扫描所述截屏图像在所述共享文件夹中的路径,并基于所述路径将所述截屏图像的信息插入到媒体数据库中。The second operating system scans the path of the screenshot image in the shared folder, and inserts information of the screenshot image into a media database based on the path.
  8. 根据权利要求7所述的方法,其特征在于,所述第二操作系统基于所述路径将所述截屏图像的信息插入到媒体数据库中,包括:The method according to claim 7, characterized in that the second operating system inserts the information of the screenshot image into the media database based on the path, comprising:
    所述第二操作系统在基于所述路径确定所述截屏图像符合预设规则的情况下,将所述截屏图像的信息插入到媒体数据库中;The second operating system inserts information of the screenshot image into a media database when determining, based on the path, that the screenshot image meets a preset rule;
    其中,所述预设规则包括以下任意一项或多项:所述截屏图像的命名中包括特定关键字、所述截屏图像的时间戳信息中记录的时间点与第一时间点的时间间隔在预设时间间隔内,所述第一时间点为所述第二操作系统扫描所述截屏图像在所述共享文件夹中的路径时的时间点。Among them, the preset rules include any one or more of the following: the naming of the screenshot image includes specific keywords, the time interval between the time point recorded in the timestamp information of the screenshot image and the first time point is within a preset time interval, and the first time point is the time point when the second operating system scans the path of the screenshot image in the shared folder.
  9. 根据权利要求7或8所述的方法,其特征在于,在所述第二操作系统基于所述路径将所述截屏图像的信息插入到媒体数据库中之后,所述方法还包括:The method according to claim 7 or 8, characterized in that after the second operating system inserts the information of the screenshot image into the media database based on the path, the method further comprises:
    所述应用程序从所述第二操作系统的剪贴板中获取所述截屏图像。The application program obtains the screenshot image from the clipboard of the second operating system.
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述截图操作包括以下一项或多项:选取截图区域的操作、在所述截图区域上的编辑操作。 The method according to any one of claims 1 to 9 is characterized in that the screenshot operation includes one or more of the following: an operation of selecting a screenshot area, and an editing operation on the screenshot area.
  11. 一种电子设备,其特征在于,所述电子设备包括一个或多个处理器和一个或多个存储器;其中,所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行如权利要求1-10中任一项所述的方法。An electronic device, characterized in that the electronic device comprises one or more processors and one or more memories; wherein the one or more memories are coupled to the one or more processors, the one or more memories are used to store computer program codes, and the computer program codes include computer instructions, and when the one or more processors execute the computer instructions, the electronic device executes the method as described in any one of claims 1-10.
  12. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,当所述程序指令在电子设备上运行时,使得所述电子设备执行如权利要求1-10中任一项所述的方法。 A computer storage medium, characterized in that the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed on an electronic device, the electronic device executes the method as described in any one of claims 1 to 10.
PCT/CN2023/127434 2022-11-17 2023-10-28 Screenshot sharing method and electronic device WO2024104094A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211463744.8A CN118101641A (en) 2022-11-17 2022-11-17 Screenshot sharing method and electronic equipment
CN202211463744.8 2022-11-17

Publications (1)

Publication Number Publication Date
WO2024104094A1 true WO2024104094A1 (en) 2024-05-23

Family

ID=91083758

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/127434 WO2024104094A1 (en) 2022-11-17 2023-10-28 Screenshot sharing method and electronic device

Country Status (2)

Country Link
CN (1) CN118101641A (en)
WO (1) WO2024104094A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106168974A (en) * 2016-07-11 2016-11-30 广州视睿电子科技有限公司 Method and system for processing multi-system screenshot file
CN110333814A (en) * 2019-05-31 2019-10-15 华为技术有限公司 A kind of method and electronic equipment of sharing contents
CN111290675A (en) * 2020-03-02 2020-06-16 Oppo广东移动通信有限公司 Screenshot picture sharing method and device, terminal and storage medium
CN113630303A (en) * 2020-04-22 2021-11-09 连普乐士株式会社 Content sharing method, content sharing system, readable storage medium and electronic device
CN114385304A (en) * 2022-03-23 2022-04-22 麒麟软件有限公司 Method for calling Linux screenshot tool by android application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106168974A (en) * 2016-07-11 2016-11-30 广州视睿电子科技有限公司 Method and system for processing multi-system screenshot file
CN110333814A (en) * 2019-05-31 2019-10-15 华为技术有限公司 A kind of method and electronic equipment of sharing contents
CN111290675A (en) * 2020-03-02 2020-06-16 Oppo广东移动通信有限公司 Screenshot picture sharing method and device, terminal and storage medium
CN113630303A (en) * 2020-04-22 2021-11-09 连普乐士株式会社 Content sharing method, content sharing system, readable storage medium and electronic device
CN114385304A (en) * 2022-03-23 2022-04-22 麒麟软件有限公司 Method for calling Linux screenshot tool by android application

Also Published As

Publication number Publication date
CN118101641A (en) 2024-05-28

Similar Documents

Publication Publication Date Title
US11922005B2 (en) Screen capture method and related device
WO2021139768A1 (en) Interaction method for cross-device task processing, and electronic device and storage medium
WO2021052147A1 (en) Data transmission method and related devices
WO2021129326A1 (en) Screen display method and electronic device
WO2021013158A1 (en) Display method and related apparatus
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
WO2021104030A1 (en) Split-screen display method and electronic device
US11687235B2 (en) Split-screen method and electronic device
WO2021082835A1 (en) Method for activating function and electronic device
CN110119296B (en) Method for switching parent page and child page and related device
WO2021190524A1 (en) Screenshot processing method, graphic user interface and terminal
WO2023130921A1 (en) Method for page layout adapted to multiple devices, and electronic device
CN113961157A (en) Display interaction system, display method and equipment
WO2020155875A1 (en) Display method for electronic device, graphic user interface and electronic device
CN112068907A (en) Interface display method and electronic equipment
WO2020259669A1 (en) View display method and electronic device
US20230236714A1 (en) Cross-Device Desktop Management Method, First Electronic Device, and Second Electronic Device
WO2024104094A1 (en) Screenshot sharing method and electronic device
WO2024193402A1 (en) Display method and electronic device
WO2024140757A1 (en) Cross-device screen splitting method and related apparatus
WO2023160455A1 (en) Object deletion method and electronic device
WO2024037542A1 (en) Touch input method, system, electronic device, and storage medium
WO2023098417A1 (en) Interface display method and apparatus
WO2024125301A1 (en) Display method and electronic device
WO2023030198A1 (en) Annotation method and electronic device

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: 23890530

Country of ref document: EP

Kind code of ref document: A1