Split-screen capture method, electronic equipment, storage medium and computer program product

By interacting between the application layer and the framework layer to obtain split-screen window information, a screenshot selection control and thumbnail are generated. Users can directly crop the target split-screen screenshot, which solves the problem of cumbersome split-screen screenshot operation and improves screenshot efficiency and device performance.

CN121387147APending Publication Date: 2026-01-23HONOR DEVICE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410932764.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2026-01-23

AI Technical Summary

Technical Problem

In existing technologies, when taking screenshots in split-screen mode on electronic devices, users need to manually crop the full-screen screenshot to obtain a split-screen screenshot, which is cumbersome and inefficient.

Method used

By interacting between the application layer and the framework layer of the electronic device, the location information of the split-screen window area is obtained, and a screenshot selection control and thumbnail are generated. Users can directly select the target split-screen area for cropping and generate the target split-screen screenshot.

Benefits of technology

It simplifies the split-screen screenshot process, improves screenshot efficiency, reduces user operation steps, and enhances screenshot success rate and device performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121387147A_ABST
    Figure CN121387147A_ABST
Patent Text Reader

Abstract

The invention provides a split screen capture method, electronic equipment, a storage medium and a computer program product, and belongs to the technical field of Internet. According to the method, when the electronic equipment is in a split-screen state, in response to a screen capture operation of a user, a screen capture management module of an application program layer sends a first instruction to a screen capture service module of a framework layer; the screen capture service module sends the position information of each split screen window area displayed on the screen of the electronic equipment to the screen capture management module; the screenshot management module generates split screen state information based on the position information of each split screen window area, generates a first screenshot selection control based on the split screen state information, and displays the first screenshot selection control and a first thumbnail; and in response to a selection operation of a user on any split-screen screenshot sub-control, the screenshot management module cuts the first full-screen screenshot based on a target split screen corresponding to the split-screen screenshot sub-control to obtain a target split-screen screenshot. According to the method, the complexity of the split screen capture process can be simplified, and the capture efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of Internet, and particularly relates to a split-screen interception method and device, electronic equipment and storage medium. BACKGROUND

[0002] With the development of Internet technology, the functions of electronic equipment are becoming more and more rich. In order to meet the multi-window operation needs of users, the split-screen function is applied. The split-screen function allows users to use multiple application programs or windows on the same screen at the same time, which improves the operation efficiency and convenience of users. When using the split-screen function of the electronic equipment, the user needs to intercept the content displayed on the screen, so as to save the screenshot or share it with other users.

[0003] In the related art, when the electronic equipment is in a split-screen state, the entire screen is intercepted in full screen. Often, the user needs is not the entire screen content, but the content of a split-screen, which requires the user to use a picture editing tool to crop the full-screen screenshot to obtain a split-screen screenshot.

[0004] Although the above method can obtain a split-screen screenshot meeting the user's needs, the user needs to crop twice, the split-screen interception operation process is cumbersome, and the interception efficiency is low. SUMMARY

[0005] Embodiments of the present application provide a split-screen interception method, electronic equipment, storage medium and computer program product, which can reduce the complexity of the split-screen interception process and improve the interception efficiency. The technical solution is as follows:

[0006] In a first aspect, a split-screen interception method is provided. The method is applied to an electronic equipment. The software structure of the electronic equipment includes an application program layer and a framework layer. The application program layer runs a screenshot application. The screenshot application includes a screenshot management module. The framework layer includes a screenshot service module. The method includes:

[0007] When the electronic equipment is in a split-screen state, the screenshot management module sends a first instruction to the screenshot service module in response to a screenshot operation of a user;

[0008] In response to the first instruction, the screenshot service module sends position information of each split-screen window region displayed on the screen of the electronic equipment to the screenshot management module;

[0009] The screenshot management module generates split-screen state information based on the position information of each split-screen window region, generates a first screenshot selection control based on the split-screen state information, displays the first screenshot selection control and a first thumbnail, the first screenshot selection control includes a full-screen screenshot sub-control and a split-screen screenshot sub-control corresponding to each split-screen, and the first thumbnail is a thumbnail of a first full-screen screenshot, the first full-screen screenshot is a screenshot obtained by full-screen capturing each split-screen included in the screen of the electronic device, and the first thumbnail is used to show the capturing result of the screen.

[0010] In response to the selection operation of any split-screen screenshot sub-control by the user, the screenshot management module crops the first full-screen screenshot based on a target split-screen corresponding to the split-screen screenshot sub-control to obtain a target split-screen screenshot.

[0011] In a first possible implementation manner of the first aspect, the screenshot management module includes a screenshot service submodule and a screenshot control submodule, the screenshot service submodule includes a split-screen management submodule, and the screenshot management module sends a first instruction to the screenshot service submodule in response to the screenshot operation of the user, including:

[0012] In response to the screenshot operation of the user, the screenshot service submodule sends a first notification message of a screenshot event to the screenshot control submodule;

[0013] After receiving the first notification message, the screenshot control submodule generates the first instruction and sends the first instruction to the split-screen management submodule.

[0014] In a second possible implementation manner of the first aspect, the screenshot service submodule further includes a multi-window service submodule, and the screenshot service submodule sends position information of each split-screen window region displayed on the screen of the electronic device to the screenshot management module, including:

[0015] After receiving the first instruction, the split-screen management submodule obtains the position information of each split-screen window region displayed on the screen of the electronic device from the multi-window service submodule and sends the position information of each split-screen window region to the screenshot control submodule.

[0016] In a third possible implementation manner of the first aspect, the screenshot management module further includes a split-screen screenshot selection submodule and a screenshot preview submodule, the screenshot management module generates split-screen state information based on the position information of each split-screen window region, generates a first screenshot selection control based on the split-screen state information, and displays the first screenshot selection control and a first thumbnail, including:

[0017] The screenshot control submodule scales the first full-screen screenshot to obtain the first thumbnail, and initializes the size of each split-screen window region;

[0018] The screenshot control submodule determines split-screen type information of the electronic device based on the position information of each split-screen window region, and sends the split-screen type information to the split-screen screenshot selection submodule;

[0019] The split-screen screenshot selection submodule generates the first screenshot selection control based on the split-screen type information, and displays the first screenshot selection control in a first display style, wherein the first display style is that the full-screen screenshot sub-control is in a selected state and each split-screen corresponding split-screen screenshot sub-control is in an unselected state.

[0020] The screenshot control submodule sends the first thumbnail to the screenshot preview submodule;

[0021] The screenshot preview submodule displays the first thumbnail in a second display style, wherein the second display style is that the split-screen window region of each split-screen included in the first thumbnail is in a selected state.

[0022] In a fourth possible implementation manner of the first aspect, in response to the selection operation of any split-screen screenshot sub-control by the user, the screenshot management module performs cropping on the first full-screen screenshot based on a target split-screen corresponding to the split-screen screenshot sub-control to obtain a target split-screen screenshot, including:

[0023] In response to the selection operation of any split-screen screenshot sub-control by the user, the split-screen screenshot selection submodule displays the first screenshot selection control in a third display style, and sends a second notification message to the screenshot preview submodule, wherein the third display style is that the split-screen screenshot sub-control is in a selected state and the split-screen screenshot sub-control corresponding to other split screens is in an unselected state.

[0024] After receiving the second notification message, the screenshot preview submodule displays the first thumbnail in a fourth display style, wherein the fourth display style is that a target split-screen window region is in a selected state and the split-screen window region of other split screens is in an unselected state, and the target split-screen window region is the split-screen window region of the target split screen.

[0025] If no operation of the user is detected within a preset time length, the screenshot control submodule performs cropping on the first full-screen screenshot based on the position information of the target split-screen window region to obtain the target split-screen screenshot.

[0026] In a fifth possible implementation of the first aspect, the screenshot management module further includes a screenshot saving submodule, and the screenshot control submodule, after cropping the first full-screen screenshot based on the position information of the target split-screen window region to obtain the target split-screen screenshot, further includes:

[0027] The screenshot control submodule sends the target split-screen screenshot to the screenshot saving submodule for saving.

[0028] In a sixth possible implementation of the first aspect, the method further includes:

[0029] In response to the selection operation of the user on the split-screen screenshot sub-control, the screenshot management module displays a scroll screenshot control in a clickable state.

[0030] In the preset time length, in response to the selection operation of the user on the scroll screenshot control, the screenshot management module performs a scroll initialization operation on the target split-screen window region, performs a scroll screenshot on the target split-screen window region to obtain a first scroll screenshot image, and saves the first scroll screenshot image.

[0031] In a seventh possible implementation of the first aspect, the screenshot management module further includes a scroll screenshot service submodule, a view analysis submodule, and a screenshot region management submodule, and the screenshot service module further includes a resource management submodule, and the response of the screenshot management module to the selection operation of the user on the scroll screenshot control includes:

[0032] In response to the selection operation of the user on the scroll screenshot control, the scroll screenshot service submodule obtains scroll information from the resource management submodule and initializes the scroll information;

[0033] The scroll screenshot service submodule sends a second instruction to the view analysis submodule;

[0034] In response to the second instruction, the view analysis submodule traverses each element in the target split-screen window region, obtains a target element, and sends a third instruction to the screenshot region management submodule, the target element being an element with a size exceeding a preset size and being slidable;

[0035] In response to the third instruction, the screenshot region management submodule initializes a screenshot operation region.

[0036] In an eighth possible implementation of the first aspect, the screenshot management module further includes a screenshot image processing submodule, and the screenshot management module, after performing a scroll screenshot on the target split-screen window region to obtain a first scroll screenshot image and saving the first scroll screenshot image, includes:

[0037] The sliding screenshot service submodule captures a current screen of the target split-screen window region to obtain a current screen screenshot, and sends the current screen screenshot to the screenshot image processing submodule;

[0038] The screenshot image processing submodule compares the current screen screenshot and a previous screen screenshot of the target split-screen window region in the screenshot operation region, clips an image region in the current screen screenshot that is the same as the previous screen screenshot, and splices the clipped image region to a current obtained split-screen scrolling screenshot image;

[0039] During the user dragging of the target element, the scrolling screenshot service submodule judges whether the target element satisfies a scrolling stop condition based on the initialized scrolling information and the screenshot operation region, when the target element does not satisfy the scrolling stop condition, captures a next screen of the target split-screen window region to obtain a next screen screenshot, processes the next screen screenshot in a manner of processing the current screen screenshot, until the scrolling stop condition is satisfied, and obtains the first scrolling screenshot image;

[0040] In response to the target scrolling element satisfying the scrolling stop condition, the scrolling screenshot service submodule sends a third notification message to the screenshot control submodule;

[0041] After receiving the third notification message, if no operation of the user is detected within a preset time length, the screenshot control submodule sends the first scrolling screenshot image to the screenshot saving submodule for saving.

[0042] In a ninth possible implementation manner of the first aspect, the method further includes:

[0043] If a selection operation of the user on another split-screen screenshot sub-control is detected within a preset time length, the screenshot management module performs a scrolling initialization operation on a split-screen window region of a split screen corresponding to the another split-screen screenshot sub-control, performs scrolling screenshot on the split-screen window region, splices a obtained screenshot image and the first scrolling screenshot image to obtain a second scrolling screenshot image, and saves the second scrolling screenshot image.

[0044] In a tenth possible implementation manner of the first aspect, the method further includes:

[0045] In response to the screenshot operation, the screenshot management module sends a fourth instruction to the screenshot service module when the electronic device is in a split-screen state.

[0046] In response to the fourth instruction, the screenshot service module sends the position information of each floating window region to the screenshot management module;

[0047] Upon receiving the position information of each floating window region, the screenshot management module sends the first instruction to the screenshot service module;

[0048] In response to the first instruction, the screenshot service module sends the position information of each split-screen window region displayed on the screen of the electronic device to the screenshot management module;

[0049] The screenshot management module generates split-screen state information based on the position information of each split-screen window region, generates floating window state information based on the position information of each floating window region, generates a second screenshot selection control based on the split-screen state information and the floating window state information, displays the second screenshot selection control and a second thumbnail, the second screenshot selection control includes a full-screen screenshot sub-control, a split-screen screenshot sub-control corresponding to each split-screen, and a floating window screenshot sub-control corresponding to each floating window, and the second thumbnail is a thumbnail of a second full-screen screenshot, the second full-screen screenshot being a screenshot obtained by full-screen capturing each split-screen and floating window included in the screen of the electronic device, and the second thumbnail is used to show the capturing result of the screen;

[0050] In response to the selection operation of any floating window screenshot sub-control by the user, the screenshot management module crops the second full-screen screenshot based on a target floating window corresponding to the floating window screenshot sub-control to obtain a target floating window screenshot.

[0051] In an eleventh possible implementation manner of the first aspect, the screenshot management module includes a screenshot service submodule and a screenshot control submodule, the screenshot service module includes a floating window management submodule, and the screenshot management module sends the fourth instruction to the screenshot service module in response to the screenshot operation, including:

[0052] In response to the screenshot operation, the screenshot service submodule sends a first notification message of a screenshot event to the screenshot control submodule;

[0053] Upon receiving the first notification message, the screenshot control submodule generates the fourth instruction and sends the fourth instruction to the floating window management submodule.

[0054] In a twelfth possible implementation manner of the first aspect, the screenshot service module further includes a multi-window service submodule, and the screenshot service module sends the position information of each floating window region to the screenshot management module in response to the fourth instruction, including:

[0055] In response to the fourth instruction, the floating window management submodule obtains position information of each floating window area from the multi-window service submodule, and sends the position information of each floating window area to the screenshot control submodule.

[0056] In a thirteenth possible implementation manner of the first aspect, the screenshot management module further includes a split-screen screenshot selection submodule and a screenshot preview submodule, the screenshot management module generates split-screen state information based on the position information of each split-screen window area, generates floating window state information based on the position information of each floating window area, generates a second screenshot selection control based on the split-screen state information and the floating window state information, and displays the second screenshot selection control and a second thumbnail, including:

[0057] The screenshot control submodule scales the second full-screen screenshot to obtain the second thumbnail, and initializes the size of each split-screen window area and the size of each floating window area;

[0058] The screenshot control submodule determines split-screen type information of the electronic device based on the position information of each split-screen window area, generates split-screen state information based on the position information of each split-screen window area, and sends the split-screen type information and the floating window state information to the split-screen screenshot selection submodule;

[0059] The split-screen screenshot selection submodule generates the second screenshot selection control based on the split-screen type information and the floating window state information, and displays the second screenshot selection control in a fifth display style, where the full-screen screenshot sub-control is in a selected state, and each split-screen corresponding split-screen screenshot sub-control and each floating window screenshot sub-control are in an unselected state;

[0060] The screenshot control submodule sends the second thumbnail to the screenshot preview submodule;

[0061] The screenshot preview submodule displays the second thumbnail in a sixth display style, where the split-screen window area of each split-screen included in the second thumbnail and each floating window area are in a selected state.

[0062] In a fourteenth possible implementation manner of the first aspect, in response to the selection operation of any floating window screenshot sub-control by the user, the screenshot management module performs cropping on the second full-screen screenshot based on a target floating window corresponding to the floating window screenshot sub-control to obtain a target floating window screenshot, including:

[0063] In response to the selection operation of the user on any floating window screenshot sub-control, the split-screen screenshot selection sub-module displays the second screenshot selection control in a seventh display style, and sends a fourth notification message to the screenshot preview sub-module, wherein the seventh display style is that the floating window screenshot sub-control is in a selected state, and other floating window screenshot sub-controls and each split-screen corresponding split-screen screenshot sub-control are in an unselected state.

[0064] After receiving the fourth notification message, the screenshot preview sub-module displays the second thumbnail in an eighth display style, wherein the eighth display style is that a target floating window region is in a selected state, and split-screen window regions of other split-screens and other floating window regions are in unselected states, and the target floating window region is a floating window region corresponding to the floating window screenshot sub-control;

[0065] If no operation of the user is detected within a preset time length, the screenshot control sub-module performs cropping on the second full-screen screenshot based on position information of the target floating window region to obtain a target floating window screenshot.

[0066] In a fourteenth possible implementation manner of the first aspect, the method further includes:

[0067] In the full-screen state of the electronic device, in response to the screenshot operation, the screenshot management module displays a third thumbnail, wherein the third thumbnail is a thumbnail of a third full-screen screenshot, and the third full-screen screenshot is a screenshot obtained by capturing the screen of the electronic device.

[0068] If no operation of the user is detected within a preset time length, the third full-screen screenshot is saved.

[0069] In a second aspect, an electronic device is provided, including a processor and a memory; the memory stores at least one program code; the at least one program code is used to be invoked and executed by the processor, so as to implement the split-screen capturing method in the first aspect.

[0070] In a third aspect, a computer readable storage medium is provided, and the computer readable storage medium stores at least one computer program; the at least one computer program is executed by a processor, and can implement the split-screen capturing method in the first aspect.

[0071] In a fourth aspect, a computer program product is provided, and the computer program product includes a computer program; the computer program is executed by a processor, and can implement the split-screen capturing method in the first aspect.

[0072] The technical scheme provided by the embodiments of the present application has the beneficial effects that:

[0073] The embodiment of the present application, when the electronic device is in a split screen state, based on the screenshot operation of the user, interacts with the application layer and the framework layer, obtains the position information of each split screen window region on the screen of the electronic device, and then generates the split screen state information of each split screen based on the position information of each split screen window region. Then, based on the split screen state information, a screenshot selection control is generated and displayed. The screenshot selection control includes a full-screen screenshot sub-control and a split screen screenshot sub-control corresponding to each split screen. The user can crop the full-screen screenshot by selecting the corresponding split screen screenshot sub-control, retain the image region of the selected split screen screenshot sub-control corresponding split screen, and crop the image region of the other split screen screenshot sub-control corresponding split screen. Thus, without the need for the user to process twice, the split screen screenshot image meeting the user's demand can be obtained, the complexity of the split screen screenshot process is simplified, and the screenshot efficiency is improved.

[0074] In addition, the embodiment of the present application also displays a thumbnail of the full-screen screenshot, and changes the state of the selected split screen screenshot sub-control and the state of the thumbnail according to the selection operation of the user on the split screen screenshot sub-control included in the screenshot selection control. Thus, the user can clearly see the screenshot effect after selecting a certain split screen screenshot sub-control, and the screenshot success rate and user satisfaction are improved.

[0075] In addition, the application program layer only needs to obtain the position information of each split screen window region from the framework layer, and does not need to obtain other information. Since the information exchanged between the application program layer and the framework layer is less, the consumption of resources is reduced, and the performance of the electronic device is improved. BRIEF DESCRIPTION OF DRAWINGS

[0076] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed to be used in the embodiment description. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without any creative effort based on these drawings.

[0077] Figure 1 is a structural schematic diagram of an electronic device provided by the embodiment of the present application;

[0078] Figure 2 is a layered architecture diagram of an Android system provided by the embodiment of the present application;

[0079] Figure 3 is a flowchart of a split screen interception method provided by the embodiment of the present application;

[0080] Figure 4 is a schematic diagram of a screen of an electronic device provided by the embodiment of the present application;

[0081] Figure 5is a schematic diagram of a screen of another electronic device provided by an embodiment of the present application;

[0082] Figure 6 is a schematic diagram of a screen of another electronic device provided by an embodiment of the present application;

[0083] Figure 7 is a schematic diagram of a screen of another electronic device provided by an embodiment of the present application;

[0084] Figure 8 is a schematic diagram of a screen of another electronic device provided by an embodiment of the present application;

[0085] Figure 9 is a schematic diagram of a screen of another electronic device provided by an embodiment of the present application;

[0086] Figure 10 is a schematic diagram of a screen of another electronic device provided by an embodiment of the present application;

[0087] Figure 11 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0088] Figure 12 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0089] Figure 13 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0090] Figure 14 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0091] Figure 15 is a schematic diagram of a screen of another electronic device provided by an embodiment of the present application;

[0092] Figure 16 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0093] Figure 17 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0094] Figure 18 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0095] Figure 19 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application;

[0096] Figure 20 is a flowchart of another split-screen intercepting method provided by an embodiment of the present application. DETAILED DESCRIPTION

[0097] For the purpose, technical solutions and advantages of the present application to be clearer, the embodiments of the present application will be described in further detail below with reference to the drawings.

[0098] It can be understood that the terms "each", "multiple" and "any" used in the embodiments of the present application include two or more, each refers to each of the corresponding multiple, and any refers to any one of the corresponding multiple. For example, multiple words include 10 words, and each word refers to each of the 10 words, and any word refers to any one of the 10 words.

[0099] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation portal for user to choose authorization or refusal.

[0100] The embodiment of the present application provides a split screen interception method, by using the method, the user can intercept any split screen on the screen of the electronic device according to the demand of the user during the screen capturing process, can also scroll and capture any split screen to obtain a scroll screen image, and can also separately capture a floating window on the screen. Since the user does not need to perform secondary cropping, the split screen interception process is simplified, and the interception efficiency is improved. The execution subject of the method is an electronic device, which can be the electronic device 100 in Figure 1

[0101] Referring to Figure 1 , the electronic device 100 can be a mobile phone, a personal computer (PC), a tablet computer, an AR (Augmented Reality) device, a VR (Virtual Reality) device, a vehicle-mounted computer, a wearable device, a smart home device, etc.

[0102] ​The electronic device 100 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset interface 170D, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 can include a pressure sensor 180A, a gyro sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0103] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware.

[0104] The processor 110 can include one or more processing units, for example, the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices, or can be integrated in one or more processors.

[0105] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0106] The processor 110 can also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can hold instructions or data that the processor 110 has just used or is using repeatedly. If the processor 110 needs to use the instructions or data again, it can call them directly from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0107] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can 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 interface, and / or a Universal Serial Bus (USB) interface, etc.

[0108] The I2C interface is a bidirectional synchronous serial bus, including a Serial Data Line (SDA) and a Derail Clock Line (SCL). In some embodiments, the processor 110 can include multiple sets of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, realizing the touch function of the electronic device 100.

[0109] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple sets of I2S buses. The processor 110 can be coupled to the audio module 170 through the I2S bus, realizing communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can deliver audio signals to the wireless communication module 160 through the I2S interface, realizing the function of answering the phone through the Bluetooth headset.

[0110] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 can be coupled with the wireless communication module 160 through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, realizing the function of answering a phone call through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.

[0111] The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is usually used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface, realizing the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, realizing the function of playing music through a Bluetooth headset.

[0112] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes the camera serial interface (CSI), the display screen serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface, realizing the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate through the DSI interface, realizing the display function of the electronic device 100.

[0113] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 and the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0114] The USB interface 130 is an interface conforming to the USB standard specification, which can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, to transmit data between the electronic device 100 and a peripheral device, or to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0115] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the electronic device 100. In some other embodiments of the present application, the electronic device 100 can also use different interface connection modes or a combination of multiple interface connection modes in the above embodiments.

[0116] The charging management module 140 is configured to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 can charge the battery 142 and also supply power to the electronic device through the power management module 141.

[0117] The power management module 141 is configured 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 to supply power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be configured to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), and the like. In some other embodiments, the power management module 141 can also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be disposed in the same device.

[0118] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, and the like.

[0119] The antenna 1 and the antenna 2 are configured to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be configured to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antennas. For example, the antenna 1 can be multiplexed as a diversity antenna of a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0120] The mobile communication module 150 can provide a solution including 2G / 3G / 4G / 5G, etc. wireless communication applied to the electronic device 100. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor, and radiate as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be disposed in the same device as at least part of the modules of the processor 110.

[0121] The modem processor can include a modulator and a demodulator. The modulator is configured to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is configured to demodulate a 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 low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the microphone 170B, etc.), or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In other embodiments, the modem processor can be independent of the processor 110, and disposed in the same device as the mobile communication module 150 or other functional modules.

[0122] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including Wireless Local Area Networks (WLANs) (such as Wireless Fidelity (Wi-Fi) networks), Bluetooth (BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), and Infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0123] In some embodiments, the antenna 1 and the mobile communication module 150 of the electronic device 100 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the electronic device 100 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time-Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include Global Positioning System (GPS), Global Navigation Satellite System (GNSS), Beidou Navigation Satellite System (BDS), Quasi-Zenith Satellite System (QZSS), and / or Satellite Based Augmentation Systems (SBAS).

[0124] The electronic device 100 implements a display function through a GPU, a display screen 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0125] The display screen 194 is configured to display images, videos, and the like. The display screen 194 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 (AMOLED), a Flex Light-Emitting Diode (FLED), a Miniled, a Micro Led, a Micro-oLed, a Quantum Dot Light Emitting Diodes (QLED), or the like. In some embodiments, the electronic device 100 can include one or N display screens 194, where N is a positive integer greater than 1.

[0126] The electronic device 100 can implement the photographing function through the ISP, the camera 193, a video codec, a GPU, the display screen 194, and an application processor, and the like.

[0127] The ISP is configured to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing to convert it into an image visible to the naked eye. The ISP can also optimize the algorithm for noise, brightness, and skin color of the image. The ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, the ISP can be disposed in the camera 193.

[0128] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects it onto a 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 light signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it 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 the like format. In some embodiments, the electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.

[0129] The digital signal processor is used to process digital signals, in addition to being able to process digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.

[0130] The video codec is used to compress or decompress digital video. The electronic device 100 can support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: Moving Picture Experts Group (MPEG) 1, MPEG 2, MPEG 3, MPEG 4, etc.

[0131] The NPU is a neural network (Neural-Network, NN) computing processor. By drawing on the structure of a biological neural network, for example, by drawing on the transmission mode between human brain neurons, it can quickly process input information and also constantly self-learn. Through the NPU, the electronic device 100 can realize intelligent cognition applications such as image recognition, face recognition, voice recognition, text understanding, etc.

[0132] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize data storage functions. For example, music, video, etc. Files are saved in the external memory card.

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

[0134] The electronic device 100 can realize audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor, etc. For example, music playing, recording, etc.

[0135] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can include more or fewer components than illustrated, or combine certain components, or split certain components, or different arrangement of components. The illustrated components can be implemented in hardware, software, or a combination of software and hardware. In addition, the interface connection relationship between the modules illustrated in the embodiments of the present application is only illustrative and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 can also use different interface connection modes in the above embodiments, or a combination of multiple interface connection modes.

[0136] The electronic device 100 is installed with a software structure, which can run on the processor 110. The software structure can be an Android system, a Windows system, an IOS system, a HongMeng system, etc., and the architecture adopted by the software structure can be a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100. Referring to Figure 2 , the Android system can be divided into four layers, from top to bottom, an application layer, a framework layer (FWK), a hardware abstraction layer (HAL), and a kernel layer.

[0137] Among them, the application layer can include a series of applications, such as camera, calendar, map, WLAN, music, short message, gallery, call, screenshot, etc., for direct interaction with the user. These applications can be system built-in applications or non-system level applications. And these applications can have icons and application interfaces, or can have application interfaces without icons, or can have neither icons nor application interfaces. The split-screen screenshot method provided by the embodiments of the present application is mainly based on the screenshot application of the application layer. Referring to Figure 2 , the screenshot application includes a screenshot management module, which includes a screenshot service submodule, a screenshot control submodule, a split-screen screenshot selection submodule, a screenshot preview submodule, a scrolling screenshot service submodule, a view analysis submodule, a screenshot region management submodule, a screenshot image processing submodule, and a screenshot saving submodule, etc. Based on these submodules, the screenshot application can perform screenshot on the screen of the electronic device, obtain a full-screen screenshot, and crop the full-screen screenshot to obtain a split-screen screenshot or a floating window screenshot that meets the user's needs.

[0138] The framework layer includes some pre-defined functions, which can provide an application programming interface (API) and a programming framework for the applications in the application layer. The application programming interface provided by the framework layer can include interfaces related to the camera service, interfaces related to the sensor service, and interfaces related to other services. The interfaces related to different services can be defined as different service modules, for example, the interfaces related to the screenshot service can be defined as a screenshot service module, the interfaces related to the sensor service can be defined as a sensor service module, the interfaces related to the camera service can be defined as a camera service module, and the interfaces related to other services can be defined as other service modules (not shown in the figure). The split-screen screenshot method provided by the embodiments of the present application is mainly based on the screenshot service module in the framework layer, which includes a floating window management submodule, a split-screen management submodule, a multi-window service submodule, and a resource management submodule. Based on these submodules, the screenshot service module can provide screenshot services.

[0139] The application framework layer can also include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.

[0140] The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, and take screenshots.

[0141] The content provider is used to store and obtain data, and make the data accessible to the application program. The data can include videos, images, audios, dialed and received calls, browsing history and bookmarks, phone books, and the like.

[0142] The view system includes visual controls, such as controls for displaying text and controls for displaying pictures. The view system can be used to build an application program. A display interface can be composed of one or more views. For example, a display interface including a short message notification icon can include a view for displaying text and a view for displaying pictures.

[0143] The phone manager is used to provide the communication function of the electronic device 100. For example, the management of the call state (including call connection, call hang-up, and the like).

[0144] The resource manager provides various resources for the application program, such as localized strings, icons, pictures, layout files, video files, and the like.

[0145] The notification manager enables applications to display notification information in the status bar, which can be used to convey a message of the notification type, which can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify the completion of the download, message reminders, etc. The notification manager can also be a notification that appears in the form of a chart or a scroll bar text in the top status bar of the system, such as a notification of an application running in the background, and can also be a notification that appears in the form of a dialog window on the screen. For example, prompting text information in the status bar, issuing a prompt sound, electronic device vibration, indicator light blinking, etc.

[0146] The Android Runtime includes a core library and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0147] The core library contains two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.

[0148] The application layer and the application framework layer run in the virtual machine. The virtual machine executes the java file of the application layer and the application framework layer into a binary file. The virtual machine is used to perform the management of the object life cycle, the management of the stack, the management of the thread, the management of the security and the exception, and the garbage collection function.

[0149] The system library can include a plurality of functional modules. For example, a surface manager, media libraries, a three-dimensional graphics processing library (for example, OpenGL ES), a 2D graphics engine (for example, SGL), etc.

[0150] The surface manager is used to manage the display subsystem, and provides a fusion of 2D and 3D layers for multiple applications.

[0151] The media library supports a variety of commonly used audio, video format playback and recording, and static image files, etc. The media library can support a variety of audio and video encoding formats, such as MPEG4, H. 264, MP3, AAC, AMR, JPG, PNG, etc.

[0152] The three-dimensional graphics processing library is used to realize three-dimensional graphics drawing, image rendering, synthesis and layer processing, etc.

[0153] The 2D graphics engine is a drawing engine for 2D drawing.

[0154] The kernel layer is a layer between hardware and software. The kernel layer at least contains a display driver, a camera driver, an audio driver, and a sensor driver.

[0155] The embodiment of the present application provides a split-screen intercepting method, taking an electronic device 100 executing the embodiment of the present application as an example, the electronic device 100 has the software structure shown in Figure 2 The embodiment of the present application provides the method flow, and the method flow comprises the following steps: Figure 3 The embodiment of the present application provides the method flow, and the method flow comprises the following steps:

[0156] 301、In a split-screen state of the electronic device, in response to a screenshot operation of a user, a screenshot management module sends a first instruction to a screenshot service module.

[0157] In the use process of the electronic device, if the user wants to simultaneously operate at least two applications, the user can display the application interfaces of the at least two applications by means of the split-screen function provided by the electronic device, so that at least two split screens are displayed on the screen of the electronic device, and each split screen corresponds to a split-screen window area, and the split-screen window area is used for displaying the interface content of the corresponding application.

[0158] In the split-screen state of the electronic device, if the user wants to save the interface content of any application or share the interface content with other users, the user can perform a screenshot operation, and the screenshot operation can be a touch screenshot button or a screenshot shortcut key (such as a volume down key + a power key). In response to the screenshot operation of the user, the screenshot management module of the application layer sends a first instruction to the screenshot service module of the framework layer to obtain a screenshot meeting the needs of the user.

[0159] In the embodiment of the present application, the screenshot management module comprises a screenshot service submodule and a screenshot control submodule, the screenshot service module comprises a split-screen management submodule, and the instruction transmission process based on these submodules is specifically as follows: in response to the screenshot operation of the user, the screenshot service submodule detects a screenshot event, sends a first notification message of the screenshot event to the screenshot control submodule, after receiving the first notification message, the screenshot control submodule generates a first instruction, and then sends the first instruction to the split-screen management submodule of the framework layer, and the first instruction is used to instruct the split-screen management module to return information related to the split-screen state, such as position information of each split-screen window area.

[0160] 302、In response to the first instruction, the screenshot service module sends the position information of each split-screen window area displayed on the screen of the electronic device to the screenshot management module.

[0161] In the embodiment of the present application, the screenshot service module further includes a multi-window service submodule, and information related to the split-screen state is stored in the multi-window service submodule or can be acquired from other modules. After receiving the first instruction, the split-screen management submodule acquires position information of each split-screen window region displayed on the screen of the electronic device from the multi-window service submodule, and sends the position information of each split-screen window region to the screenshot control submodule. The position information of each split-screen window region is used to determine the position of each split screen on the screen of the electronic device, and can be the coordinate range of the horizontal coordinate and the coordinate range of the vertical coordinate. For example, the coordinate range of the horizontal coordinate of a certain split-screen window region on the screen is [x1, x2], and the coordinate range of the vertical coordinate is [y1, y2]. It should be noted that the position information of each split-screen window region is needed because in the split-screen state, the size of each split screen is not necessarily 1 / 2 of the screen, and it is not necessarily left and right split screens, so the position information of the split-screen window region needs to be acquired to determine the position.

[0162] 303. The screenshot management module generates split-screen state information based on the position information of each split-screen window region, and generates a first screenshot selection control based on the split-screen state information, and displays the first screenshot selection control and a first thumbnail.

[0163] The first screenshot selection control includes a full-screen screenshot sub-control and a split-screen screenshot sub-control corresponding to each split screen. The full-screen screenshot sub-control is used to acquire a full-screen screenshot of the screen of the electronic device, and the split-screen screenshot sub-control is used to acquire a split-screen screenshot obtained by cropping the full-screen screenshot. Generally, the screenshot management module processes the image obtained by full-screen screenshot, and thus the full-screen screenshot sub-control is usually in a selected state by default. If no selection operation of any split-screen screenshot sub-control by the user is detected within a preset time period, the full-screen screenshot is saved. The first thumbnail is a thumbnail of the first full-screen screenshot, and the first full-screen screenshot is obtained by full-screen screenshot of each split screen included in the screen of the electronic device. The first full-screen screenshot includes the image area of each split screen and does not include the image area of other components such as the floating window. The first thumbnail is used to display the screenshot result, thereby facilitating the user to preview the screenshot effect.

[0164] In the embodiment of the present application, the screenshot management module further includes a split-screen screenshot selection submodule and a screenshot preview submodule. The screenshot management module generates split-screen state information based on the position information of each split-screen window region, and generates a first screenshot selection control based on the split-screen state information, and displays the first screenshot selection control and a first thumbnail, which specifically includes the following steps:

[0165] 3031. The screenshot control submodule scales the first full-screen screenshot to obtain the first thumbnail, and initializes the size of each split-screen window region.

[0166] The screenshot control submodule can obtain a preset zoom ratio, and then scale the first full-screen screenshot according to the zoom ratio to obtain a first thumbnail. Then, the screenshot control submodule initializes the size of each split-screen window region, so that the size of each split-screen window can be recalculated according to the latest position information of each split-screen window region, thereby cutting the first full-screen screenshot according to the latest size of the split-screen window region of the selected split screen after detecting the selection operation of the user on any split-screen screenshot sub-control.

[0167] 3032、The screenshot control submodule determines the split-screen type information of the electronic device based on the position information of each split-screen window region, and sends the split-screen type information to the split-screen screenshot selection submodule.

[0168] The split-screen state information can include whether the screen is split, split-screen type information, position information of the split-screen window region, and the like. Based on the position information of each split-screen window region, the screenshot control submodule can determine the number of split screens, and then determine whether the electronic device is in a split-screen state according to the number of split screens. For example, if the number of obtained position information of the split-screen window region is greater than or equal to 2, it can be determined that the number of split screens is greater than or equal to 2, and further it can be determined that the electronic device is in a split-screen state. Conversely, if the number of obtained position information of the split-screen window region is 1, it can be determined that the number of split screens is 1, and further it can be determined that the electronic device is in a full-screen state. The screenshot control submodule can also determine the split-screen type information based on the position information of each split-screen window region. The split-screen type information includes left-right split screen, top-bottom split screen, and the like. For example, if the horizontal coordinate range of the screen of the electronic device is 0-x3 and the vertical coordinate range is 0-y3, the horizontal coordinate range of an obtained split-screen window is 0-x4 (x4

[0169] It should be noted that the position information of each split-screen window region is used as an example to illustrate the interaction between the application layer and the framework layer. Of course, to shorten the split-screen capture time, the application layer can also directly obtain the split-screen state information from the framework layer.

[0170] 3033、The split-screen screenshot selection sub-module generates a first screenshot selection control based on the split-screen type information, and displays the first screenshot selection control in a first display style.

[0171] The split-screen screenshot selection sub-module stores style information of the screenshot selection control corresponding to different split-screen type information. Based on the determined split-screen type information, the split-screen screenshot selection sub-module can obtain the first screenshot selection control corresponding to the split-screen type information. For example, if the split-screen type information indicates that the electronic device is in a left-right split screen, the screenshot selection control corresponding to the left-right split screen is obtained; if the split-screen type information indicates that the electronic device is in an up-down split screen, the screenshot selection control corresponding to the up-down split screen is obtained. After generating the first screenshot selection control, the split-screen screenshot selection sub-module displays the first screenshot selection control in a first display style. The first display style is that the full-screen screenshot sub-control is in a selected state and each split-screen screenshot sub-control corresponding to each split-screen is in an unselected state. The selected state and the unselected state can be distinguished by different display brightness or different display colors. Taking different display brightness as an example, the full-screen screenshot sub-control in the selected state can be highlighted, and each split-screen screenshot sub-control can be displayed in grayscale.

[0172] 3034、The screenshot control sub-module sends the first thumbnail to the screenshot preview sub-module.

[0173] 3035、The screenshot preview sub-module displays the first thumbnail in a second display style.

[0174] The second display style is that the split-screen window area of each split-screen included in the first thumbnail is in a selected state. The selected state and the unselected state can be distinguished by different display brightness or different display colors. Taking different display brightness as an example, each split-screen window area in the selected state can be highlighted.

[0175] Referring to Figure 4 , the note application and the calculator application are displayed in a left-right split screen on the screen of the electronic device. After detecting the screenshot operation of the user, the electronic device screenshots the screen to obtain a first full-screen screenshot containing the interface content of the calculator application and the interface content of the note application, and obtains the position information of the split-screen window area of the two applications. According to the position information of the split-screen window area of the two applications, the split-screen state information is generated, and then the screenshot selection control is generated. The screenshot selection control includes a full-screen screenshot sub-control, a split-screen screenshot sub-control corresponding to a left split screen, and a split-screen screenshot sub-control corresponding to a right split screen. Then, the first full-screen screenshot is scaled to obtain a first thumbnail, and then the first thumbnail and the screenshot selection control are displayed. The display effect can be seen from Figure 4At this time, the full-screen screenshot sub-control in the screenshot selection control is selected and highlighted, while the corresponding split-screen screenshot sub-controls for the left and right split screens are unselected and grayed out, and the first thumbnail is highlighted as a whole.

[0176] 304. In response to the user's selection of any split-screen screenshot sub-control, the screenshot management module crops the first full-screen screenshot based on the target split screen corresponding to the split-screen screenshot sub-control to obtain the target split-screen screenshot.

[0177] In this embodiment, in response to a user's selection of any split-screen screenshot sub-control, the screenshot management module crops the first full-screen screenshot based on the target split-screen corresponding to the split-screen screenshot sub-control to obtain the target split-screen screenshot, specifically including the following steps:

[0178] 3041. In response to the user's selection operation on any split-screen screenshot sub-control, the split-screen screenshot selection sub-module displays the first screenshot selection control in a third display style and sends a second notification message to the screenshot preview sub-module.

[0179] The third display style is that the selected split-screen screenshot sub-control is in a selected state, while the corresponding split-screen screenshot sub-controls of other split screens are in an unselected state.

[0180] 3042. Upon receiving the second notification message, the screenshot preview submodule displays the first thumbnail in the fourth display style.

[0181] The fourth display style is that the target split-screen window area is selected while the split-screen window areas of other split screens are unselected. The target split-screen window area is the split-screen window area of ​​the target split screen.

[0182] For example, when a user is detected to have... Figure 4 The selection operation for the left and right split-screen corresponding screenshot sub-controls highlights the corresponding screenshot sub-control for the left split-screen, while graying out the full-screen screenshot sub-control and the corresponding screenshot sub-control for the right split-screen. Simultaneously, the split-screen window area corresponding to the left split-screen in the first thumbnail is highlighted, while the split-screen window area corresponding to the right split-screen is grayed out. The final display effect can be seen in [reference needed]. Figure 5 When user activity is detected... Figure 4 The selection operation for the screenshot sub-controls corresponding to the right split-screen will highlight the screenshot sub-control for the right split-screen, while graying out the full-screen screenshot sub-controls and the screenshot sub-controls for the left split-screen. Simultaneously, the split-screen window area corresponding to the right split-screen in the first thumbnail will be highlighted, while the split-screen window area corresponding to the left split-screen will be grayed out. The final display effect can be seen in [reference needed]. Figure 6 .

[0183] It should be noted that the size of the split-screen window area of the application performing split-screen display is not fixed, but can be adjusted according to the user's needs. Taking split-screen display of two applications as an example, the size of the split-screen window area of the two applications can be equal, that is, each occupies 1 / 2 of the screen, or the size of the split-screen window area of the two applications can be unequal, that is, one application occupies 1 / 3 of the screen and the other application occupies 2 / 3 of the screen. Regardless of the size of the split-screen window area of each application, the sum of the sizes of the split-screen window areas of the applications is less than or equal to the size of the screen. Since the size of the image area corresponding to each application in the thumbnail is proportional to the size in the actual scene, when the sizes of the split-screen window areas of the applications are not equal, the corresponding image areas in the thumbnail are also not equal. For specific display effects, see Figure 7 .

[0184] In addition, Figure 4 to Figure 7 Both left and right split-screen display are taken as examples for description. In fact, in addition to left and right split-screen display, top and bottom split-screen display is also available. Referring to Figure 8 , the note application and the calculator application are displayed in top and bottom split-screen on the screen of the electronic device. After detecting the screenshot operation of the user, the electronic device screenshots the screen to obtain a first full-screen screenshot containing the interface content of the calculator application and the interface content of the note application, and obtains the position information of the split-screen window areas of the two applications. According to the position information of the split-screen window areas of the two applications, split-screen state information is generated, and then a screenshot selection control is generated. The screenshot selection control includes a full-screen screenshot sub-control, a top split-screen corresponding split-screen screenshot sub-control, and a bottom split-screen corresponding split-screen screenshot sub-control. Then the first full-screen screenshot is scaled to obtain a first thumbnail, and then the first thumbnail and the screenshot selection control are displayed. For display effects, see Figure 8 At this time, the full-screen screenshot sub-control in the screenshot selection control is in a selected state and is highlighted, and the split-screen screenshot sub- controls corresponding to the top and bottom split-screens are in unselected states and are displayed in gray. The first thumbnail is highlighted as a whole.

[0185] When detecting the selection operation of the user on the top split-screen corresponding split-screen screenshot sub-control in Figure 8 , the top split-screen corresponding split-screen screenshot sub-control is highlighted, and the full-screen screenshot sub-control and the bottom split-screen corresponding split-screen screenshot sub-control are displayed in gray. At the same time, the split-screen window area corresponding to the top split-screen in the first thumbnail is highlighted, and the split-screen window area corresponding to the bottom split-screen in the first thumbnail is displayed in gray. For the final display effect, see Figure 9 ; when detecting the selection operation of the user on the bottom split-screen corresponding split-screen screenshot sub-control in Figure 8The middle and lower split screen corresponds to the selection operation of the split screen screenshot sub-control, the split screen screenshot sub-control corresponding to the lower split screen is highlighted, and the full screen screenshot sub-control and the split screen screenshot sub-control corresponding to the upper split screen are displayed in gray. At the same time, the split screen window region corresponding to the middle and lower split screen in the first thumbnail is highlighted, and the split screen window region corresponding to the upper split screen in the first thumbnail is displayed in gray. The final display effect can be seen in Figure 10 .

[0186] 3043、If no user operation is detected within a preset time length, the screenshot control sub-module crops the first full screen screenshot based on the position information of the target split screen window region to obtain a target split screen screenshot.

[0187] The preset time length can be 1 second, 2 seconds, etc. The present application embodiment does not make specific limitations on the preset time length. When no user operation is detected within the preset time length, it indicates that the user wants to obtain the image region corresponding to the selected split screen screenshot sub-control. The screenshot control sub-module can determine the image region that needs to be retained in the first full screen screenshot based on the position information of the target split screen window region, and then obtain the target split screen screenshot by cropping the first full screen screenshot. The target split screen screenshot only includes the interface content of the user-selected split screen.

[0188] Further, the screenshot management module of the present application embodiment further includes a screenshot saving sub-module. After the screenshot control sub-module crops the target split screen window region to obtain the target split screen screenshot, the target split screen screenshot can also be sent to the screenshot saving sub-module for saving, such as saving to a screenshot directory, etc.

[0189] In another embodiment of the present application, when the user initiates a screenshot of the screen of the electronic device, the electronic device can be in a split screen state or in a full screen state. Therefore, when the electronic device detects the user's screenshot operation, it can first determine whether the electronic device is in a split screen state. When the electronic device is in a split screen state, the split screen screenshot that meets the user's demand can be obtained by executing the above steps. When the electronic device is in a full screen state, the screenshot can be taken by the following method. Specifically, when the electronic device is in a full screen state, in response to the screenshot operation, the screenshot management module can directly display a third thumbnail, which is a thumbnail of a third full screen screenshot. The third full screen screenshot is a screenshot obtained by taking a screenshot of the screen of the electronic device. If no user operation is detected within a preset time length, the third full screen screenshot is saved.

[0190] Figure 11 A flowchart of a split screen taking method provided by an embodiment of the present application is shown, see Figure 11, the user initiates a screenshot operation by touching a screenshot button or a screenshot shortcut key, and in response to the screenshot operation of the user, the electronic device queries whether it is in a split-screen state. If the electronic device is in a split-screen state, a thumbnail containing a screenshot selection control is displayed. At this time, the entire screen is selected by default, and the full-screen screenshot sub-control and the entire thumbnail are in the selected state and are highlighted. When a click operation of the user on the split-screen screenshot sub-control corresponding to a specified split screen is detected, the image area corresponding to the specified split screen in the thumbnail is highlighted, and the image area corresponding to the non-specified split screen is displayed in gray. If no operation of the user is detected within a preset time period, the full-screen screenshot is cropped, the highlighted image area is retained, and the grayed-out image area is cropped. If the electronic device is in a full-screen state, a thumbnail not containing a screenshot selection control is displayed. If no operation of the user is detected within a preset time period, the full-screen screenshot is saved.

[0191] Figure 12 A flowchart of a split-screen capturing method provided by an embodiment of the present application is shown, see Figure 12 The user selects an application that needs to be split-screened for split-screen display. When the electronic device is in a split-screen state, the user can initiate a screenshot operation by touching a screenshot button or a screenshot shortcut key. In response to the screenshot operation of the user, the electronic device queries split-screen state information and determines whether the electronic device is split-screened up and down based on the split-screen state information. If the electronic device is split-screened up and down, the screenshot selection control corresponding to the split-screened up and down is displayed. If the electronic device is not split-screened up and down, the screenshot selection control corresponding to the split-screened left and right is displayed, and the size of the split-screen window area of each split screen is initialized. Generally, the entire screen is selected by default. At this time, the full-screen screenshot sub-control and the entire thumbnail are in the selected state and are highlighted. When a click operation of the user on the split-screen screenshot sub-control corresponding to a specified split screen is detected, the image area corresponding to the specified split screen in the thumbnail is calculated and highlighted, and the image area corresponding to the non-specified split screen is displayed in gray. If no operation of the user is detected within a preset time period, the full-screen screenshot is cropped, the highlighted image area is retained, and the grayed-out image area is cropped to obtain a split-screen screenshot corresponding to the specified split screen, and the split-screen screenshot is saved.

[0192] Figure 13 A flowchart of a split-screen capturing method provided by an embodiment of the present application is shown, see Figure 13When a user's screenshot action is detected, the screenshot service submodule in the application layer sends a screenshot event notification message to the screenshot control submodule. Upon receiving this notification message, the screenshot control submodule sends a query command to the split-screen management submodule in the framework layer. Upon receiving this query command, the split-screen management submodule retrieves the split-screen status information of the electronic device from the multi-window service submodule and sends this information back to the screenshot control submodule. After receiving the split-screen status information, the screenshot control submodule generates thumbnails, initializes the size of each split-screen window area, and then sends the split-screen status information to the split-screen screenshot selection submodule. Based on the split-screen status information, the split-screen screenshot selection submodule generates and displays a screenshot selection control. The screenshot control submodule also sends the thumbnails to the screenshot preview submodule, which then displays the thumbnails. When a user click on a designated split-screen screenshot sub-control is detected, the split-screen screenshot selection sub-module updates the state of the screenshot selection control, changing the highlight of the full-screen screenshot sub-control to highlighting the selected split-screen screenshot sub-control. Then, a notification message is sent to the screenshot preview sub-module, which updates the thumbnail state, changing the highlight of the entire thumbnail to highlighting the image area corresponding to the selected split-screen screenshot sub-control. If no user action is detected within a preset time, the full-screen screenshot is cropped, retaining the image area corresponding to the selected split-screen screenshot sub-control and cropping the image areas corresponding to the unselected split-screen screenshot sub-controls, resulting in a split-screen screenshot, which is then saved in the high-screenshot directory.

[0193] The above Figure 3 The illustrated embodiment demonstrates a method for capturing the current screen of a split-screen. While this method satisfies users' needs for quickly capturing split-screen content, in some scenarios, users may want to capture the content of multiple screens within the same split-screen. For such scenarios, in... Figure 3 Based on the illustrated embodiments, this application provides another split-screen capture method. Taking an electronic device executing this application embodiment as an example, the electronic device has... Figure 2 The software structure shown is described in the following document. Figure 14 The method flow provided in this application embodiment includes:

[0194] 1401. In response to the user's selection of the split-screen screenshot sub-control, the screenshot management module displays a clickable scrolling screenshot control.

[0195] To meet the user's use needs, the electronic device can also display other controls, such as a sharing control, a scrolling screenshot control, and the like, when displaying the first screenshot selection control and the first thumbnail. The sharing control is used to share the screenshot to other users, and the scrolling screenshot control is used to perform scrolling screenshot and splicing on the split screen selected by the user, thereby obtaining a screenshot containing the content of multiple screens. In general, when the full-screen screenshot sub-control is in the selected state, the scrolling screenshot control is in the default state of being not clickable, and the full-screen content will not be scrolled. When the user selects any split-screen screenshot sub-control, the screenshot management module updates the state of the scrolling screenshot control, and updates the state of the scrolling screenshot control to be clickable. For example, Figure 4 In the embodiment, after detecting the screenshot operation of the user, the electronic device displays the screenshot selection control and the first thumbnail, and displays the sharing control and the scrolling screenshot control. At this time, the full-screen screenshot sub-control and the entire first thumbnail are in the selected state and are highlighted, and the scrolling screenshot control is in the state of being not clickable and is displayed in gray. At this time, the user cannot select the scrolling screenshot control to perform scrolling screenshot. When detecting the selection operation of the user on the split-screen screenshot sub-control corresponding to the left split screen, the split-screen screenshot sub-control corresponding to the left split screen is in the selected state and is highlighted, the full-screen screenshot sub-control and the split-screen screenshot sub-control corresponding to the right split screen are in the unselected state and are displayed in gray, and the image area corresponding to the left split screen in the first thumbnail is also in the selected state and is highlighted. The image area corresponding to the right split screen in the first thumbnail is in the unselected state and is displayed in gray. In response to the selection operation of the user on the split-screen screenshot sub-control corresponding to the left split screen, the state of the scrolling screenshot control is updated from the state of being not clickable to the state of being clickable. For specific display effects, refer to Figure 15 .

[0196] 1402、In a preset time length, in response to the selection operation of the user on the scrolling screenshot control, the screenshot management module performs a scrolling initialization operation on the target split-screen window area, performs scrolling screenshot on the target split-screen window area, obtains a first scrolling screenshot image, and saves the first scrolling screenshot image.

[0197] In the embodiment, the screenshot management module further includes a scrolling screenshot service sub-module, a view analysis sub-module, a screenshot area management sub-module, a screenshot image processing sub-module, and the like, and the screenshot service module further includes a resource management sub-module, and the like. Based on these functional sub-modules, in response to the selection operation of the user on the scrolling screenshot control, the screenshot management module performs a scrolling initialization operation on the target split-screen window area. Specifically, the following methods can be used:

[0198] 140211、In response to the selection operation of the user on the scrolling screenshot control, the scrolling screenshot service sub-module acquires scrolling information from the resource management sub-module, and initializes the scrolling information.

[0199] The scroll information includes a split screen selected by the user, a status bar height, a horizontal or vertical screen width, a maximum screenshot length of a scroll screenshot, and the like. After the scroll screenshot service submodule obtains the scroll information from the resource management submodule, the obtained scroll information is initialized, so that the scroll screenshot can be performed according to the obtained scroll information in a subsequent step.

[0200] 140212、The scroll screenshot service submodule sends a second instruction to the view analysis submodule.

[0201] 140213、In response to the second instruction, the view analysis submodule traverses each element in the target split screen window area, obtains a target element, and sends a third instruction to the screenshot area management submodule.

[0202] Generally, the interface of some applications, such as some news applications and shopping applications, can be scrolled, and the interface of some applications, such as a calculator application, cannot be scrolled. The application selected by the user in the embodiment of the present application can be a scrollable application or a non-scrollable application, which requires the view analysis submodule to analyze. Specifically, the view analysis submodule can traverse each element in the target split screen window area, and then find a target element with a size exceeding a preset size and being scrollable. The preset size can be set by a technician. Whether an element is scrollable can be obtained by querying the attribute of the element. If the width of the element is prioritized, the longest scrollable element is selected as the target element. If there are at least two longest elements, the longest element is selected as the target element.

[0203] 140214、In response to the third instruction, the screenshot area management submodule initializes a screenshot operation area.

[0204] The screenshot operation area includes a sliding area, a scroll area, and a comparison area, and the like. The scroll area refers to a range of the scroll screenshot in the split screen specified by the user. The sliding area refers to a region in which the target element can slide. The comparison area refers to a region in which the contents of two screens are compared.

[0205] In the embodiment of the present application, the screenshot management module further includes a screenshot image processing submodule. Based on these functional submodules, the screenshot management module performs a scroll screenshot on the target split screen window area, obtains a first scroll screenshot image, and saves the first scroll screenshot image. The following steps can be used:

[0206] 140221、The sliding screenshot service submodule captures a current screen of the target split screen window area to obtain a current screen screenshot, and sends the current screen screenshot to the screenshot image processing submodule.

[0207] 140222、The screenshot image processing submodule compares the current screen screenshot and the previous screen screenshot of the target split-screen window region in the screenshot operation region, trims the image region that is the same as the previous screen screenshot in the current screen screenshot, and splices the trimmed image region to the current obtained split-screen scrolling screenshot image.

[0208] To ensure the continuity of the interface content, the trimmed image region can be spliced to the lower part of the current obtained split-screen scrolling screenshot image.

[0209] 140223、During the user dragging of the target element, the scrolling screenshot service submodule determines whether the target element meets the scrolling stop condition based on the initialized scrolling information and the screenshot operation region. When the target element does not meet the scrolling stop condition, the next screen of the target split-screen window region is intercepted to obtain a next screen screenshot. The next screen screenshot is processed in the same manner as the current screen screenshot until the scrolling stop condition is met, and the first scrolling screenshot image is obtained.

[0210] The scrolling stop condition refers to the target element scrolling to the bottom or the user clicking to stop the screenshot. Whether the target element scrolls to the bottom can be determined based on the scrolling information and the screenshot operation region. Specifically, if the screenshot length reaches the maximum screenshot length, it can be determined that the target element scrolls to the bottom. If the target element has been slid to the lowermost part of the sliding region, it can be determined that the target element scrolls to the bottom.

[0211] 140224、In response to the target scrolling element meeting the scrolling stop condition, the scrolling screenshot service submodule sends a third notification message to the screenshot control submodule.

[0212] 140225、After receiving the third notification message, if no operation of the user is detected within a preset time length, the screenshot control submodule saves the first scrolling screenshot image to the screenshot saving submodule.

[0213] When no operation of the user is detected within the preset time length, the screenshot control submodule sends the first scrolling screenshot image to the screenshot saving submodule, and the screenshot saving submodule saves the first scrolling screenshot image to the screenshot directory.

[0214] In view of the fact that in some scenarios, the user needs to splice the interface content of at least two split screens to obtain a spliced image of at least two split screens, to meet the screenshot demand of the user, after completing the scrolling screenshot operation on the selected split screen of the user, the first screenshot selection control and the first thumbnail are also displayed. The full-screen screenshot sub-control in the first screenshot selection control is in a non-clickable state, and the user can perform a click operation on another split-screen screenshot sub-control within a preset time length to perform a scrolling screenshot on the interface content of another split screen.

[0215] In the embodiment of the present application, the electronic device can detect the operation of the user within the preset time length. If the selection operation of the user on another split-screen screenshot sub-control is detected within the preset time length, the screenshot management module can perform a scroll initialization operation on the split-screen window area of the split screen corresponding to another split-screen screenshot sub-control, perform a scroll screenshot on the split-screen window area, then splice the obtained screenshot image with the first scroll screenshot image to obtain a second scroll screenshot image, and save the second scroll screenshot image. Specifically, the process of the screenshot management module performing a scroll initialization operation on the split-screen window area of the split screen corresponding to another split-screen screenshot sub-control can be referred to steps 14211-14214 described above, and will not be described here again. The process of the screenshot management module performing a scroll screenshot on the split-screen window area corresponding to another split-screen screenshot sub-control, splicing the obtained screenshot image with the first scroll screenshot image to obtain a second scroll screenshot image, and saving the second scroll screenshot image can be referred to steps 14221-14225 described above, and will not be described here again.

[0216] Figure 16 A flowchart of a split-screen screenshot method provided by an embodiment of the present application is shown, see Figure 16Users select the application they want to split-screen for display. While the electronic device is in split-screen mode, users can initiate a screenshot operation by touching the screenshot button or using the screenshot shortcut. In response to the user's screenshot operation, the electronic device queries the split-screen status information and determines whether it is a vertical split. If it is, the corresponding screenshot selection controls for the vertical split are displayed; otherwise, the corresponding screenshot selection controls for the horizontal split are displayed. Simultaneously, the size of the split-screen window area for each screen is initialized. Typically, the entire screen is selected by default; in this case, the full-screen screenshot sub-control and the entire thumbnail are selected and highlighted, while the scrolling screenshot control is not clickable. When a user click is detected on the screenshot sub-control for a specified split, the image area corresponding to the specified split in the thumbnail is calculated, and the image area corresponding to the specified split and the screenshot sub-control are highlighted. Image areas and screenshot sub-controls for unspecified splits are grayed out. At this point, the scrolling screenshot control becomes clickable. If a user click on the scrolling screenshot control is detected within a preset time period, initialize scrolling information such as the specified split screen, status bar height, portrait / landscape height, and maximum screenshot length. Then, analyze the window layout of the specified split screen. During analysis, iterate through all elements within the current window to obtain scrollable elements of sufficient size. From these elements, select the target scrollable element. Next, initialize the screenshot operation areas, including the scrolling area, sliding area, and comparison area. After these initialization operations, capture the current screen screenshot and determine if the target element has scrolled to the bottom or if the user clicks to stop the screenshot. If the target element has not scrolled to the bottom or no user click is detected to stop the screenshot, it is determined that the target element does not meet the scrolling termination condition. Then, capture the next screen screenshot. Compare the current screen screenshot and the next screen screenshot, remove the image area in the next screen screenshot that is the same as the current screen screenshot, and then stitch the cropped image area onto the currently obtained split-screen scrolling screenshot image. Repeat this operation until the target element scrolls to the bottom or the user clicks to stop the screenshot. When the target element slides to the bottom or the user clicks to stop the screenshot, the screenshot selection control and thumbnail can be redisplayed. At this time, the full-screen screenshot sub-control is in an unclickable state. If no user click operation is detected within a preset time, the currently obtained split-screen scrolling screenshot image is saved.

[0217] Figure 17 A flowchart of a split-screen capture method provided in an embodiment of this application is shown. See also: Figure 17When the screenshot operation of the user is detected, the screenshot service submodule of the application layer sends a notification message of the screenshot event to the screenshot control submodule, and when the notification message is received, the screenshot control submodule sends a query instruction to the split-screen management submodule in the framework layer. When the query instruction is received, the split-screen management submodule obtains the split-screen state information of the electronic device from the multi-window service submodule and sends the split-screen state information to the screenshot control submodule. After the split-screen state information is received, the screenshot control submodule generates a thumbnail and initializes the size of each split-screen window area, and then sends the split-screen state information to the split-screen screenshot selection submodule. The split-screen screenshot selection submodule generates and displays a screenshot selection control based on the split-screen state information. The screenshot control submodule also sends the thumbnail to the screenshot preview submodule, and the screenshot preview submodule displays the thumbnail. When the click operation of the user on the split-screen screenshot subcontrol corresponding to the specified split screen is detected, the split-screen screenshot selection submodule updates the state of the screenshot selection control, updates the full-screen screenshot subcontrol highlighted to the selected split-screen screenshot subcontrol, and then sends a notification message to the screenshot preview submodule. The screenshot preview submodule updates the state of the thumbnail, and updates the entire thumbnail highlighted to the image area corresponding to the selected split-screen screenshot subcontrol. If the click operation of the user on the scroll screenshot control is detected within a preset time length, the scroll screenshot service submodule initializes the scroll information by interacting with the resource management submodule in the framework layer. Then, the scroll screenshot service submodule sends an instruction to the view analysis submodule, and in response to the instruction, the view analysis submodule traverses each element in the current window of the specified split screen, obtains elements that are large enough and can be scrolled, and then obtains the target sliding element from the elements. Next, the scroll screenshot service submodule initializes the screenshot operation area. After these operations are performed, the scroll screenshot service submodule obtains the current screen screenshot and sends the current screen screenshot to the screenshot processing submodule. The screenshot processing submodule compares the contents of the current screen screenshot and the previous screen screenshot, crops the image area in the current screen screenshot that is the same as the previous screen screenshot, splices the cropped image area to the current obtained split-screen scroll screenshot image, and then slides to the next screen. The operation is repeated until the scroll screenshot operation of the specified split screen is completed. In response to the completion of the scroll screenshot operation of the specified split screen, the screenshot control submodule regenerates the screenshot selection control and sets the full-screen screenshot subcontrol to an unclickable state to disable the full-screen screenshot subcontrol. If no operation of the user is detected within a preset time length, the screenshot control submodule saves the screenshot to a screenshot directory.

[0218] The above Figure 3 and Figure 14The embodiments shown take the example of displaying at least two split screens on the screen of an electronic device, and in actual application scenarios, the electronic device can also display at least one floating window on the at least two split screens. For this kind of scenario, the embodiments of the present application provide a split screen capturing method. Taking an electronic device 100 executing the embodiments of the present application as an example, the electronic device 100 has Figure 2 The software structure shown, see Figure 18 The method flow provided by the embodiments of the present application includes:

[0219] 1801. When the electronic device is in a split screen state, in response to a screenshot operation, the screenshot management module sends a fourth instruction to the screenshot service module.

[0220] In the embodiments of the present application, the screenshot management module includes a screenshot service submodule and a screenshot control submodule. Based on these functional submodules, in response to a screenshot operation, the screenshot service submodule can send a first notification message of a screenshot event to the screenshot control submodule. After receiving the first notification message, the screenshot control submodule generates a fourth instruction and sends the fourth instruction to the floating window management submodule.

[0221] 1802. In response to the fourth instruction, the screenshot service module sends the position information of each floating window region to the screenshot management module.

[0222] In the embodiments of the present application, the screenshot service module also includes a multi-window service submodule. In response to the fourth instruction, the floating window management submodule can obtain the position information of each floating window region from the multi-window service submodule, and then send the position information of each floating window region to the screenshot control submodule.

[0223] 1803. After receiving the position information of each floating window region, the screenshot management module sends a first instruction to the screenshot service module.

[0224] After receiving the position information of each floating window region, the screenshot control submodule sends a first instruction to the split screen management submodule.

[0225] 1804. In response to the first instruction, the screenshot service module sends the position information of each split screen window region displayed on the screen of the electronic device to the screenshot management module.

[0226] After receiving the first instruction, the split screen management submodule obtains the position information of each split screen window region displayed on the screen of the electronic device from the multi-window service submodule, and sends the position information of each split screen window region to the screenshot control submodule.

[0227] 1805. The screenshot management module generates split-screen status information based on the position information of each split-screen window area, generates floating window status information based on the position information of each floating window area, and generates a second screenshot selection control based on the split-screen status information and the floating window status information, and displays the second screenshot selection control and the second thumbnail.

[0228] The second screenshot selection control includes a full-screen screenshot sub-control, a sub-control for each split screen, and a sub-control for each floating window. The second thumbnail is a thumbnail of the second full-screen screenshot, which is a full-screen screenshot of the electronic device's screen including each split screen and floating window. The second thumbnail is used to display the screenshot result.

[0229] In this embodiment, the screenshot management module generates split-screen status information based on the position information of each split-screen window area, generates floating window status information based on the position information of each floating window area, and generates a second screenshot selection control based on the split-screen status information and the floating window status information, and displays the second screenshot selection control and the second thumbnail, including the following steps:

[0230] 18051. The screenshot control submodule scales the second full-screen screenshot to obtain the second thumbnail, and initializes the size of each split-screen window area and the size of each floating window area.

[0231] The screenshot control submodule can obtain a preset scaling ratio and then scale the second full-screen screenshot according to this scaling ratio to obtain a second thumbnail. Then, the screenshot control submodule initializes the size of each split-screen window area and each floating window area so that it can recalculate the size of each split-screen window based on the latest obtained position information of each split-screen window area, and recalculate the size of each floating window area based on the latest obtained position information of each floating window area. Therefore, after detecting a user selection operation on any split-screen screenshot sub-control or any floating window screenshot sub-control, the second full-screen screenshot is cropped according to the latest size of the selected split-screen window area or the selected floating window area.

[0232] 18052. The screenshot control submodule determines the screen type information of the electronic device based on the position information of each screen window area, generates screen status information based on the position information of each screen window area, generates floating window status information based on the position information of each floating window area, and sends the screen type information and floating window status information to the screen screenshot selection submodule.

[0233] The suspension window state information can include whether there is a suspension window, the number of suspension windows, position information of the suspension window area, and the like. When the screenshot control submodule generates the suspension window state information based on the position information of each suspension window area, it can determine whether there is a suspension window according to whether the position information of the suspension window area is acquired. If the position information of the suspension window area is not acquired, it is determined that there is no suspension window. If the position information of the suspension window area is acquired, it is determined that there is a suspension window. The screenshot control submodule can also determine the number of suspension windows according to the number of position information of the split window area acquired. For the method of generating split screen state information based on the position information of each split window area by the screenshot control submodule, refer to the above step 3032, which will not be described here.

[0234] 18053、The split screen screenshot selection submodule generates a second screenshot selection control based on the split screen type information and the suspension window state information, and displays the second screenshot selection control in a fifth display style.

[0235] The split screen screenshot submodule stores style information of the screenshot selection control corresponding to different split screen type information and suspension window state information. Based on the determined split screen type information and suspension window state information, the split screen screenshot selection submodule can acquire the corresponding second screenshot selection control. For example, if the split screen type information indicates that the electronic device is in a left-right split screen, and the suspension window state information indicates that the number of suspension windows is one, the screenshot selection control corresponding to the left-right split screen and one suspension window is acquired. If the split screen type information indicates that the electronic device is in an up-down split screen, and the suspension window state information indicates that the number of suspension windows is one, the screenshot selection control corresponding to the up-down split screen and one suspension window is acquired. After generating the second screenshot selection control, the split screen screenshot selection submodule displays the second screenshot selection control in a fifth display style. The fifth display style is that the full-screen screenshot sub-control is in a selected state, and each split screen corresponding to the split screen screenshot sub-control and each suspension window screenshot sub-control are in an unselected state. For example, the full-screen screenshot sub-control can be highlighted, and each split screen corresponding to the split screen screenshot sub-control and each suspension window screenshot sub-control can be displayed in gray.

[0236] 18054、The screenshot control submodule sends the second thumbnail to the screenshot preview submodule.

[0237] 18055、The screenshot preview submodule displays the second thumbnail in a sixth display style.

[0238] The sixth display style is that the split screen window area of each split screen included in the second thumbnail and each suspension window area are in a selected state. For example, the split screen window area of each split screen and each suspension window area can be highlighted.

[0239] 1806、In response to the selection operation of any floating window screenshot sub-control by the user, the screenshot management module crops the second full-screen screenshot based on the target floating window corresponding to the floating window screenshot sub-control to obtain a target floating window screenshot.

[0240] In the embodiments of the present application, in response to the selection operation of any floating window screenshot sub-control by the user, the screenshot management module crops the second full-screen screenshot based on the target floating window corresponding to the floating window screenshot sub-control to obtain a target floating window screenshot, including the following steps:

[0241] 18061、In response to the selection operation of any floating window screenshot sub-control by the user, the split-screen screenshot selection sub-module displays the second screenshot selection control in a seventh display style and sends a fourth notification message to the screenshot preview sub-module.

[0242] The seventh display style is that the floating window screenshot sub-control is in a selected state, and other floating window screenshot sub-controls and the split-screen screenshot sub-control corresponding to each split screen are in unselected states. For example, the selected floating window screenshot sub-control is highlighted, and other floating window screenshot sub-controls and the split-screen screenshot sub-control corresponding to each split screen are displayed in gray.

[0243] 18062、After receiving the fourth notification message, the screenshot preview sub-module displays the second thumbnail in an eighth display style.

[0244] The eighth display style is that a target floating window region is in a selected state, and the split-screen window regions of other split screens and other floating window regions are in unselected states. The target floating window region is the floating window region corresponding to the floating window screenshot sub-control. For example, the target floating window region is highlighted, and the split-screen window regions of other split screens and other floating window regions are displayed in gray.

[0245] 18063、If no operation of the user is detected within a preset time length, the screenshot control sub-module crops the second full-screen screenshot based on the position information of the target floating window region to obtain a target floating window screenshot.

[0246] When no operation of the user is detected within a preset time length, it indicates that the user wants to obtain the image region corresponding to the selected floating window screenshot sub-control. The screenshot control sub-module can determine the image region to be retained in the second full-screen screenshot based on the position information of the target floating window region, and then obtain the target floating window screenshot by cropping the second full-screen screenshot. The target floating window screenshot includes the interface content of the selected floating window.

[0247] Furthermore, the screenshot control submodule captures the second full-screen screenshot based on the position information of the target floating window area. After obtaining the target floating window screenshot, it can also send the target floating window screenshot to the screenshot saving submodule for saving, such as saving it to the screenshot directory.

[0248] The method provided in this application embodiment can not only capture all the content displayed on the screen of an electronic device, but also capture the content of any split-screen interface, and also capture the content of any floating window interface, simplifying the complexity of the screenshot operation, improving the screenshot efficiency, and meeting the personalized needs of users.

[0249] Figure 19 A flowchart of a split-screen capture method provided in an embodiment of this application is shown. See also: Figure 19 Users select the application they want to split-screen for display. While the electronic device is in split-screen mode, users can initiate a screenshot operation by touching the screenshot button or using a screenshot shortcut. In response to the user's screenshot operation, the electronic device queries the floating window status information. Based on this information, it determines whether the number of floating windows, N, is greater than 0. If N is greater than 0, a floating window screenshot sub-control is added, and the size of the floating window area is initialized. The value of N is then subtracted by 1, and the process continues until N is no greater than 0. The electronic device also queries the split-screen status information, determining whether it is a vertical split-screen. If it is, a corresponding vertical split-screen screenshot sub-control is added; otherwise, a left / right split-screen screenshot sub-control is added, and the size of the split-screen window area for each screen is initialized. Then, based on the added sub-controls, a screenshot selection control and a thumbnail of the screen are displayed. Typically, the entire screen is selected by default; in this case, the full-screen screenshot sub-control and the entire thumbnail are selected and highlighted. When a user click is detected on the screenshot sub-control corresponding to a specified split-screen, the image area corresponding to the specified split-screen in the thumbnail is calculated, and this area is highlighted while the image areas corresponding to unspecified split-screens and floating windows are grayed out. If no user action is detected within a preset time, the full-screen screenshot is cropped, retaining the highlighted image area and removing the grayed-out areas to obtain the split-screen screenshot corresponding to the specified split-screen, and this screenshot is saved. Similarly, when a user click is detected on the screenshot sub-control corresponding to a specified floating window, the image area corresponding to the specified floating window in the thumbnail is calculated, and this area is highlighted while the image areas corresponding to unspecified floating windows and each split-screen are grayed out. If no user action is detected within a preset time, the full-screen screenshot is cropped, retaining the highlighted image area and removing the grayed-out areas to obtain the floating window screenshot corresponding to the specified floating window, and this screenshot is saved.

[0250] Figure 20 A flow chart of a method for intercepting a split screen is shown in FIG. 1. The method includes the following steps. Figure 20When the screenshot operation of the user is detected, the screenshot service submodule of the application layer sends a notification message of the screenshot event to the screenshot control submodule. After receiving the notification message, the screenshot control submodule sends a query instruction to the floating window management submodule in the framework layer. After receiving the query instruction, the floating window management submodule obtains the floating window state information from the multi-window service submodule and sends the floating window state information to the screenshot control submodule. Then, the screenshot control submodule sends a query instruction to the split-screen management submodule in the framework layer. After receiving the query instruction, the split-screen management submodule obtains the split-screen state information of the electronic device from the multi-window service submodule and sends the split-screen state information to the screenshot control submodule. After receiving the split-screen state information, the screenshot control submodule generates a thumbnail and initializes the sizes of each floating window region and each split-screen window region, and then sends the split-screen state information and the floating window state information to the split-screen screenshot selection submodule. The split-screen screenshot selection submodule generates and displays a screenshot selection control based on the split-screen state information and the floating window state information. The screenshot control submodule also sends the thumbnail to the screenshot preview submodule, which displays the thumbnail. When the click operation of the user on the split-screen screenshot subcontrol corresponding to a specified split screen is detected, the split-screen screenshot selection submodule updates the state of the screenshot selection control, updates the high-light display of the full-screen screenshot subcontrol to the high-light display of the selected split-screen screenshot subcontrol, and then sends a notification message to the screenshot preview submodule, which updates the state of the thumbnail, updates the high-light display of the entire thumbnail to the high-light display of the image region corresponding to the selected split-screen screenshot subcontrol. If no operation of the user is detected within a preset time length, the full-screen screenshot is cropped to retain the image region corresponding to the selected split-screen screenshot subcontrol and to crop the image regions corresponding to the unselected split-screen screenshot subcontrols and the unselected floating window screenshot subcontrol, to obtain a split-screen screenshot, which is then saved in a screenshot directory. When the click operation of the user on the floating window screenshot subcontrol corresponding to a specified floating window is detected, the split-screen screenshot selection submodule updates the state of the screenshot selection control, updates the high-light display of the full-screen screenshot subcontrol to the high-light display of the selected floating window screenshot subcontrol, and then sends a notification message to the screenshot preview submodule, which updates the state of the thumbnail, updates the high-light display of the entire thumbnail to the high-light display of the image region corresponding to the selected floating window screenshot subcontrol. If no operation of the user is detected within a preset time length, the full-screen screenshot is cropped to retain the image region corresponding to the selected split-screen screenshot subcontrol and to crop the image regions corresponding to the unselected split-screen screenshot subcontrols and the unselected floating window screenshot subcontrol, to obtain a split-screen screenshot, which is then saved in a screenshot directory.

[0251] The embodiment of the present application provides a computer readable storage medium, at least one computer program is stored in the computer readable storage medium, and the at least one computer program can realize the above-mentioned split screen interception method when being executed by a processor.

[0252] The embodiment of the present application provides a computer program product, the computer program product comprises a computer program, and the computer program can realize the above-mentioned split screen interception method when being executed by a processor.

[0253] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the above-mentioned system, device and unit can refer to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0254] The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for part of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A split-screen intercepting method, characterized in that, The method is applied to an electronic device, a software structure of the electronic device includes an application layer and a framework layer, the application layer runs a screenshot application, the screenshot application includes a screenshot management module, the framework layer includes a screenshot service module, and the method includes: In a split-screen state of the electronic device, in response to a screenshot operation of a user, the screenshot management module sends a first instruction to the screenshot service module; In response to the first instruction, the screenshot service module sends position information of each split-screen window area displayed on a screen of the electronic device to the screenshot management module; The screenshot management module generates split-screen state information based on the position information of each split-screen window area, generates a first screenshot selection control based on the split-screen state information, displays the first screenshot selection control and a first thumbnail, the first screenshot selection control includes a full-screen screenshot sub-control and a split-screen screenshot sub-control corresponding to each split-screen, and the first thumbnail is a thumbnail of a first full-screen screenshot, the first full-screen screenshot is a screenshot obtained by full-screen capturing each split-screen included in the screen of the electronic device, and the first thumbnail is used to display a capturing result of the screen. In response to a selection operation of the user on any split-screen screenshot sub-control, the screenshot management module crops the first full-screen screenshot to obtain a target split-screen screenshot based on a target split-screen corresponding to the split-screen screenshot sub-control.

2. The method of claim 1, wherein, The screenshot management module includes a screenshot service submodule and a screenshot control submodule, the screenshot service module includes a split-screen management submodule, the screenshot management module sends a first instruction to the screenshot service module in response to a screenshot operation of a user, and the method includes: In response to a screenshot operation of a user, the screenshot service submodule sends a first notification message of a screenshot event to the screenshot control submodule; After receiving the first notification message, the screenshot control submodule generates the first instruction and sends the first instruction to the split-screen management submodule.

3. The method of claim 2, wherein, The screenshot service module further includes a multi-window service submodule, and the screenshot service module sends position information of each split-screen window area displayed on a screen of the electronic device to the screenshot management module, and the method includes: After receiving the first instruction, the split-screen management submodule obtains the position information of each split-screen window area displayed on the screen of the electronic device from the multi-window service submodule, and sends the position information of each split-screen window area to the screenshot control submodule.

4. The method of claim 3, wherein, The screenshot management module further includes a split-screen screenshot selection submodule and a screenshot preview submodule, the screenshot management module generates split-screen state information based on the position information of each split-screen window area, generates a first screenshot selection control based on the split-screen state information, and displays the first screenshot selection control and a first thumbnail, and the method includes: The screenshot control submodule scales the first full-screen screenshot to obtain the first thumbnail, and initializes the size of each split-screen window area; The screenshot control submodule determines the split-screen type information of the electronic device based on the position information of each split-screen window region, and sends the split-screen type information to the split-screen screenshot selection submodule; The split-screen screenshot selection submodule generates the first screenshot selection control based on the split-screen type information, and displays the first screenshot selection control in a first display style, wherein the first display style is that the full-screen screenshot sub-control is in a selected state and each split-screen corresponding split-screen screenshot sub-control is in an unselected state; The screenshot control submodule sends the first thumbnail to the screenshot preview submodule; The screenshot preview submodule displays the first thumbnail in a second display style, wherein the second display style is that the split-screen window region of each split-screen included in the first thumbnail is in a selected state.

5. The method of claim 4, wherein, In response to the selection operation of the user on any split-screen screenshot sub-control, the screenshot management module performs cropping on the first full-screen screenshot based on the target split-screen corresponding to the split-screen screenshot sub-control to obtain a target split-screen screenshot, including: In response to the selection operation of the user on any split-screen screenshot sub-control, the split-screen screenshot selection submodule displays the first screenshot selection control in a third display style, and sends a second notification message to the screenshot preview submodule, wherein the third display style is that the split-screen screenshot sub-control is in a selected state and the split-screen screenshot sub-control corresponding to other split screens is in an unselected state; After receiving the second notification message, the screenshot preview submodule displays the first thumbnail in a fourth display style, wherein the fourth display style is that the target split-screen window region is in a selected state and the split-screen window region of other split screens is in an unselected state, and the target split-screen window region is the split-screen window region of the target split screen; If no operation of the user is detected within a preset time length, the screenshot control submodule performs cropping on the first full-screen screenshot based on the position information of the target split-screen window region to obtain the target split-screen screenshot.

6. The method of claim 5, wherein, The screenshot management module further includes a screenshot saving submodule, and after the screenshot control submodule performs cropping on the first full-screen screenshot based on the position information of the target split-screen window region to obtain the target split-screen screenshot, the screenshot management module further includes: The screenshot control submodule sends the target split-screen screenshot to the screenshot saving submodule for saving.

7. The method of claim 6, wherein, The method further includes: In response to the selection operation of the user on the split-screen screenshot sub-control, the screenshot management module displays a scroll screenshot control in a clickable state; Within the preset time length, in response to the selection operation of the user on the scroll screenshot control, the screenshot management module performs a scroll initialization operation on the target split-screen window region, performs scroll screenshot on the target split-screen window region to obtain a first scroll screenshot image, and saves the first scroll screenshot image.

8. The method of claim 7, wherein, The screenshot management module further comprises a scroll screenshot service submodule, a view analysis submodule and a screenshot region management submodule, and the screenshot service module further comprises a resource management submodule; in response to the selection operation of the scroll screenshot control by the user, the screenshot management module performs a scroll initialization operation on the target split-screen window region, comprising: In response to the selection operation of the scroll screenshot control by the user, the scroll screenshot service submodule obtains scroll information from the resource management submodule and initializes the scroll information; The scroll screenshot service submodule sends a second instruction to the view analysis submodule; In response to the second instruction, the view analysis submodule traverses each element in the target split-screen window region, obtains a target element, and sends a third instruction to the screenshot region management submodule, the target element being an element whose size exceeds a preset size and which is scrollable; In response to the third instruction, the screenshot region management submodule initializes a screenshot operation region.

9. The method of claim 8, wherein, The screenshot management module further comprises a screenshot image processing submodule, the screenshot management module performs a scroll screenshot on a target split-screen window region to obtain a first scroll screenshot image, and saves the first scroll screenshot image, comprising: The scroll screenshot service submodule captures a current screen of the target split-screen window region to obtain a current screen screenshot, and sends the current screen screenshot to the screenshot image processing submodule; The screenshot image processing submodule compares the current screen screenshot with a previous screen screenshot of the target split-screen window region in the screenshot operation region, trims an image region of the current screen screenshot that is the same as the previous screen screenshot, and splices the trimmed image region to a current obtained split-screen scroll screenshot image; During the dragging of the target element by the user, the scroll screenshot service submodule judges whether the target element meets a scroll termination condition based on the initialized scroll information and the screenshot operation region, when the target element does not meet the scroll termination condition, a next screen of the target split-screen window region is captured to obtain a next screen screenshot, the next screen screenshot is processed in the same manner as the current screen screenshot, until the scroll termination condition is met, and the first scroll screenshot image is obtained; In response to the target scroll element meeting the scroll termination condition, the scroll screenshot service submodule sends a third notification message to the screenshot control submodule; After receiving the third notification message, if no operation of the user is detected within a preset time length, the screenshot control submodule sends the first scroll screenshot image to the screenshot saving submodule for saving.

10. The method of claim 7, wherein, The method further comprises: If a selection operation of another split-screen screenshot sub-control by the user is detected within the preset time length, the screenshot management module performs a scroll initialization operation on a split-screen window region corresponding to the another split-screen screenshot sub-control, performs a scroll screenshot on the split-screen window region, splices a screenshot image obtained by the scroll screenshot with the first scroll screenshot image to obtain a second scroll screenshot image, and saves the second scroll screenshot image.

11. The method of claim 1, wherein, The method further includes: In response to the screenshot operation, the screenshot management module sends a fourth instruction to the screenshot service module when the electronic device is in a split-screen state. In response to the fourth instruction, the screenshot service module sends position information of each floating window region to the screenshot management module. Upon receiving the position information of each floating window region, the screenshot management module sends the first instruction to the screenshot service module. In response to the first instruction, the screenshot service module sends the position information of each split-screen window region displayed on the screen of the electronic device to the screenshot management module. The screenshot management module generates split-screen state information based on the position information of each split-screen window region, generates floating window state information based on the position information of each floating window region, generates a second screenshot selection control based on the split-screen state information and the floating window state information, displays the second screenshot selection control and a second thumbnail, the second screenshot selection control includes a full-screen screenshot sub-control, a split-screen screenshot sub-control corresponding to each split-screen, and a floating window screenshot sub-control corresponding to each floating window, and the second thumbnail is a thumbnail of a second full-screen screenshot, the second full-screen screenshot is a screenshot obtained by performing a full-screen screenshot on each split-screen and floating window included in the screen of the electronic device, and the second thumbnail is used to display the screenshot result of the screen. In response to a selection operation of any floating window screenshot sub-control by the user, the screenshot management module performs cropping on the second full-screen screenshot based on a target floating window corresponding to the floating window screenshot sub-control to obtain a target floating window screenshot.

12. The method of claim 11, wherein, The screenshot management module includes a screenshot service submodule and a screenshot control submodule, the screenshot service submodule includes a floating window management submodule, and in response to the screenshot operation, the screenshot management module sends a fourth instruction to the screenshot service module, which includes: In response to the screenshot operation, the screenshot service submodule sends a first notification message of a screenshot event to the screenshot control submodule. Upon receiving the first notification message, the screenshot control submodule generates the fourth instruction and sends the fourth instruction to the floating window management submodule.

13. The method of claim 12, wherein, The screenshot service module further includes a multi-window service submodule, and in response to the fourth instruction, the screenshot service module sends the position information of each floating window region to the screenshot management module, which includes: In response to the fourth instruction, the floating window management submodule obtains the position information of each floating window region from the multi-window service submodule and sends the position information of each floating window region to the screenshot control submodule.

14. The method of claim 13, wherein, The screenshot management module further includes a split-screen screenshot selection submodule and a screenshot preview submodule. The screenshot management module generates split-screen state information based on position information of each split-screen window region, generates floating window state information based on position information of each floating window region, generates a second screenshot selection control based on the split-screen state information and the floating window state information, displays the second screenshot selection control and a second thumbnail, and includes: The screenshot control submodule initializes a size of each split-screen window region and a size of each floating window region, and scales the second full-screen screenshot to obtain the second thumbnail; The screenshot control submodule determines split-screen type information of the electronic device based on position information of each split-screen window region, generates split-screen state information based on the position information of each split-screen window region, generates floating window state information based on position information of each floating window region, and sends the split-screen type information and the floating window state information to the split-screen screenshot selection submodule; The split-screen screenshot selection submodule generates the second screenshot selection control based on the split-screen type information and the floating window state information, and displays the second screenshot selection control in a fifth display style. In the fifth display style, the full-screen screenshot subcontrol is in a selected state, and each split-screen corresponding split-screen screenshot subcontrol and each floating window screenshot subcontrol are in an unselected state. The screenshot control submodule sends the second thumbnail to the screenshot preview submodule; The screenshot preview submodule displays the second thumbnail in a sixth display style. In the sixth display style, a split-screen window region of each split screen and each floating window region included in the second thumbnail are in a selected state.

15. The method of claim 14, wherein, In response to a selection operation of any floating window screenshot subcontrol by the user, the screenshot management module crops the second full-screen screenshot based on a target floating window corresponding to the floating window screenshot subcontrol to obtain a target floating window screenshot, and includes: In response to a selection operation of any floating window screenshot subcontrol by the user, the split-screen screenshot selection submodule displays the second screenshot selection control in a seventh display style, and sends a fourth notification message to the screenshot preview submodule. In the seventh display style, the floating window screenshot subcontrol is in a selected state, and other floating window screenshot subcontrols and each split-screen corresponding split-screen screenshot subcontrol are in an unselected state. After receiving the fourth notification message, the screenshot preview submodule displays the second thumbnail in an eighth display style. In the eighth display style, a target floating window region is in a selected state, and a split-screen window region of other split screens and other floating window regions are in an unselected state. The target floating window region is a floating window region corresponding to the floating window screenshot subcontrol. If no operation of the user is detected within a preset time length, the screenshot control submodule crops the second full-screen screenshot based on position information of the target floating window region to obtain a target floating window screenshot.

16. The method according to any one of claims 1 to 15, characterized in that, The method further includes: In the full screen state of the electronic device, in response to the screenshot operation, the screenshot management module displays a third thumbnail, the third thumbnail being a thumbnail of a third full screen screenshot, the third full screen screenshot being a screenshot obtained by capturing the screen of the electronic device; If no operation of the user is detected within a preset time length, the third full screen screenshot is saved.

17. An electronic device, comprising: The method comprises a processor and a memory; the memory stores at least one program code; the at least one program code is used to be called and executed by the processor, so as to implement the split screen capturing method in any one of claims 1 to 16.

18. A computer-readable storage medium, characterized in that, The computer readable storage medium stores at least one computer program; the at least one computer program is executed by the processor, so as to implement the split screen capturing method in any one of claims 1 to 16.

19. A computer program product, characterised in that, The computer program product comprises a computer program; the computer program is executed by the processor, so as to implement the split screen capturing method in any one of claims 1 to 16.

Citation Information

Patent Citations

  • Mobile terminal and method for implementing super screenshot

    CN106843689A

  • Screen capture method and electronic equipment

    CN110231905A

  • Display method and electronic equipment

    CN111338519A

  • Method and device for rolling screen capture

    CN115145457A

  • Screen capture method and electronic equipment

    CN117440082A