Screen capturing method and apparatus

The method of automatically identifying and hiding floating controls through the control blocking function solves the problem of complex screenshot and screen recording operations in existing technologies, improves user experience and privacy protection, and achieves simplified operation and efficient screen capture.

WO2025241962A9PCT designated stage Publication Date: 2026-02-19HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/094879
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-21
Filing Date
2025-05-14
Publication Date
2026-02-19

AI Technical Summary

Technical Problem

In existing technologies, the screenshot and screen recording functions of smart mobile terminals cannot intelligently identify and hide floating controls, which leads to complicated user operations, affects the user experience, and may leak privacy.

Method used

By introducing a control blocking feature, floating controls are automatically identified and hidden, generating screen capture files that do not contain floating controls, simplifying the operation process and protecting user privacy.

Benefits of technology

Automatically remove floating controls during screenshot or screen recording to simplify user operations, improve convenience and user experience, and ensure the accuracy and integrity of screen capture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025094879_19022026_PF_FP_ABST
    Figure CN2025094879_19022026_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the embodiments of the present application are a screen capturing method and apparatus. The method is applied to an electronic device, wherein the electronic device comprises a display screen. The method may comprise: a display screen displaying a first interface, wherein the first interface comprises target content displayed in full screen and one or more floating controls, and the target content is desktop content or content of a target application; receiving a screen capturing operation of a user for the first interface; and if it is detected that a control shielding function of an electronic device is in an activated state, generating a first file in response to the screen capturing operation, wherein the first file comprises one or more image frames for screen capturing performed on the first interface, and the one or more floating controls are not displayed in at least one of the one or more image frames. By means of the embodiments of the present application, the convenience and experience of a user during screen capturing can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Method and device for screen capture

[0001] The present application claims priority to the Chinese patent application No. 202410649201.8, filed on May 21, 2024, and entitled "Method and device for screen capture", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of terminals, and in particular to a method and device for screen capture. BACKGROUND

[0003] The technical field of terminals is a technical field for improving the efficiency and experience of user interaction with intelligent devices, especially in the use process of intelligent mobile terminals, the screen capture and screen recording functions have become important means for users to share and record information. With the enrichment of the functions of intelligent mobile terminals and the diversification of application scenarios, the demand for screen capture and screen recording functions by users is increasing, not only limited to capturing static picture information, but also extended to recording dynamic content.

[0004] In the prior art, the screen capture and screen recording functions of intelligent mobile terminals often adopt a full-screen capture method, which captures all the content on the current screen without distinction. In complex use scenarios, for example, the user runs multiple application programs at the same time, including auxiliary applications in the form of small windows or floating balls, or receives sudden notification messages during the screen capture or screen recording process, these are not the target content of screen capture or screen recording and often become the interference factors that block the main picture. At this time, the user needs to close or remove these interference elements first, and then reopen after completing the screen capture or screen recording, which not only makes the user's operation process more complex, but also may affect the user's use experience. Therefore, it is necessary to provide a more intelligent screen capture method to improve the convenience and experience of users during screen capture. SUMMARY

[0005] The technical problem to be solved by the embodiments of the present application is to provide a method and device for screen capture, which can improve the immersion and experience of users.

[0006] In a first aspect, an embodiment of the present application provides a screen capturing method, applied to an electronic device, the electronic device comprising a display screen; the method can include: the display screen displays a first interface, the first interface comprising a target content displayed in full screen and one or more floating controls, the target content being desktop content or content of a target application; receiving a screen capturing operation of the first interface by a user; if it is monitored that a control shielding function of the electronic device is in an activated state, generating a first file in response to the screen capturing operation; the first file comprising one or more image frames captured for the first interface, at least one of the one or more image frames not displaying the one or more floating controls.

[0007] In the existing screen capturing scheme, a full-screen capturing mode is usually adopted, which cannot capture only the target content in the current screen, but captures all the content on the current screen without distinction; when the floating controls such as floating windows, floating balls or notification messages appear in the screen content, the user can need to close or remove the above floating controls first, and then perform the screen capturing or screen recording operation, and then re-enable the above floating controls after completing the screen capturing or screen recording, which not only makes the operation process of the user more complex, but also can affect the user experience and leak the user privacy. In view of the technical problem, the embodiments of the present application provide a more intelligent screen capturing method, which can automatically identify and hide the floating controls of non-target content, so that the user does not need to manually remove irrelevant elements during the screen capturing or screen recording process, simplifying the operation process. Specifically, when the user performs a screen capturing or screen recording operation on the first interface, if it is monitored that the control shielding function is in an activated state, the one or more image frames generated based on the screen capturing or screen recording operation do not display the floating controls, so that the user can perform screen capturing only for the target content without closing or removing the interference elements, reducing unnecessary operation steps. In summary, in the embodiments of the present application, when it is monitored that the control shielding function is in an activated state, the user can directly perform a screen capturing operation on the target content without manually removing the interference elements, and the generated screenshot or screen recording file does not contain the floating controls, thereby avoiding the above floating controls to block the target content in the current interface or leak the user's private information, greatly improving the convenience and experience of the user during screen capturing.

[0008] In a possible implementation, if the screen capturing operation is a screenshot operation, and if the control shielding function of the electronic device is detected to be in an activated state, the first file is generated in response to the screen capturing operation, including: in response to the screenshot operation, a preview window is displayed in the first interface, the preview window including screenshot content, where the screenshot content is an image frame obtained by taking a screenshot of the first interface, and the one or more floating controls are displayed in the screenshot content; and if the control shielding function is detected to be in the activated state, the one or more floating controls in the screenshot content are removed to generate the first file. In the prior art, a screenshot operation usually captures all screen content including floating controls, so that the user needs to manually close or remove these controls before taking a screenshot, increasing the complexity of the operation. The embodiments of the present application introduce a preview window function in the screenshot operation, so that the user can view the screenshot content in the preview window and make instant adjustments to the screenshot result. Specifically, when the user takes a screenshot and it is detected that the control shielding function is in the activated state, the system automatically removes the floating controls in the screenshot content, and finally generates a first file that does not contain these interfering elements, not only making it more convenient for the user to manage and view the screenshot content during the screenshot process, but also ensuring that the final generated screenshot file contains the target content required by the user, and by simplifying the operation process, reducing the user's manual adjustment steps, greatly improving the user's convenience and experience when capturing the screen.

[0009] In a possible implementation, the first interface further displays a first button for controlling the on-off state of the control shielding function; if the control shielding function is currently in an off state, and if the one or more floating controls in the screenshot content are removed to generate the first file in response to the control shielding function being detected to be in the activated state, including: if a first operation acting on the first button is detected, the control shielding function is switched from the off state to the activated state; in response to the first operation, the one or more floating controls in the screenshot content displayed in the preview window are removed to generate the first file, and the control shielding function is switched from the activated state to the off state. The embodiments of the present application display a first button for controlling the on-off state of the control shielding function in the first interface, so that the user can activate or close the control shielding function by clicking the button. When the control shielding function is in the off state, the user can activate it by clicking the first button, and the screenshot content displayed in the preview window is also updated in real time, the floating controls are removed, and the first file with the removed floating controls is finally generated based on the screenshot content in the preview window, not only simplifying the user's operation steps, but also enabling the user to more efficiently manage the screen capturing content, ensuring that the user can more conveniently complete the screenshot operation and obtain the required screenshot result in different use scenarios.

[0010] In a possible implementation, if the control shielding function is currently in an active state, the method further includes: if a second operation acting on the first button is monitored, switching the control shielding function from the active state to an off state; restoring the one or more floating controls into the screenshot content displayed in the preview window to generate a second file, the second file being the screenshot content including the one or more floating controls. By introducing the dynamic switching mechanism of the control shielding function, the embodiments of the present application enable the user to more flexibly manage the screen content during the screenshot process. Specifically, when the control shielding function is currently in the active state, if a second operation of the user acting on the first button is monitored, the system automatically switches the control shielding function from the active state to the off state, and restores the one or more floating controls into the screenshot content displayed in the preview window, thereby generating a second file including the floating controls. The user can adjust the screenshot content at any time according to actual needs during the screenshot process, and can intuitively view the final effect of the screenshot content by restoring the floating controls in the preview window in real time, so as to ensure that the generated second file contains the required content, which not only simplifies the adjustment steps of the user in the screenshot operation, but also improves the accuracy and integrity of the screenshot content. To sum up, in the embodiments of the present application, the user can realize the dynamic switching of the control shielding function through simple operation and preview the screenshot effect in real time, which greatly improves the convenience and user experience of screen capture.

[0011] In a possible implementation, the electronic device further includes a gallery; the preview window and the first button disappear after being displayed in the first interface for a first duration; and the method further includes: after the preview window and the first button disappear, saving the screenshot content displayed before the preview window disappears into the gallery. In the embodiments of the present application, after the preview window and the first button disappear, the system automatically saves the screenshot content displayed before the preview window disappears into the gallery of the electronic device. Through the feature that the preview window automatically disappears, the user can change the screenshot content through the first button during the existence of the preview window, so as to ensure that the finally saved is the required screenshot content of the user, which avoids the incomplete or lost content caused by manual adjustment or misoperation, not only simplifies the operation steps of the user, but also further improves the convenience and experience of the user during screen capture.

[0012] In a possible implementation, the removing the one or more floating controls in the screenshot content to generate the first file comprises: adjusting a layer level of the one or more floating controls in the screenshot content to a first level to generate the first file, the first level being lower than a layer level of the target content in the screenshot content. In the existing screenshot operation, the user often needs to manually remove the floating controls, increasing the complexity of the operation. To solve the technical problem, in the embodiment of the present application, the layer level of the one or more floating controls in the screenshot content is adjusted to be lower than the layer level of the target content, so that the floating controls in the screenshot content are automatically removed, and the user does not need to manually adjust the position or state of the floating controls when capturing the screen. The system automatically processes the layer level relationship to achieve the removal effect of the floating controls. In summary, in the embodiment of the present application, the floating controls can be removed by adjusting the layer level, which simplifies the operation process of the user and improves the convenience of the user when capturing the screen.

[0013] In a possible implementation, if the screen capture operation is a screen recording operation, and if the control shielding function is in the activated state, the first file is generated in response to the screen capture operation, comprising: in response to the screen recording operation, performing screen recording on the first interface to generate a plurality of image frames; and if the control shielding function is in the activated state, removing the one or more floating controls in each of the plurality of image frames to generate the first file. In the existing screen recording operation, unnecessary floating controls are often captured. If the user needs to capture the target content, the user often needs to close the floating controls and then restart the screen recording operation, which not only wastes the user's time, but also makes the screen recording operation more cumbersome. To solve the technical problem, in the embodiment of the present application, the control shielding function is introduced in the screen recording operation. When it is monitored that the control shielding function is in the activated state, the system automatically removes the one or more floating controls in each image frame in the screen recording process to generate a first file that does not contain interfering elements. The user does not need to manually remove the floating controls when recording the screen, and only needs to enable the control shielding function to capture the target content, which simplifies the operation process and improves the user experience.

[0014] In a possible implementation, the first interface further displays a second button during the screen recording, the second button being configured to control a switching state of the control shielding function; if the control shielding function is currently in the off state; if it is detected that the control shielding function is in the active state, the one or more floating controls in the one or more image frames are removed to generate the first file, including: receiving a third operation on the second button at a first time node, switching the control shielding function from the off state to the active state, the first time node being a time node in the screen recording process; in response to the third operation, removing the one or more floating controls in each image frame after the first time node in the plurality of image frames to generate the first file, and switching the control shielding function from the active state to the off state. The second button is displayed in the screen recording process, so that the user can conveniently control the switching state of the control shielding function. Specifically, when the control shielding function is currently in the off state, the user can activate it at any time node in the screen recording process by clicking the second button, so as to automatically remove the floating controls in the image frames after the time node in the plurality of image frames, and finally generate the screen recording file required by the user (for example, the screen recording file includes the floating controls in the first half of the content, and does not include the floating controls in the second half of the content). In summary, the embodiments of the present application greatly improve the convenience and user experience of the screen recording operation by simplifying the operation steps (that is, the floating controls can be removed by clicking the second button at the time node when the floating controls need to be shielded, without manually removing the floating controls) and adjusting the screen recording content in real time.

[0015] In a possible implementation, if the default state of the control shielding function is currently in the off state; the method further includes: when it is detected that the content displayed in the first interface meets a preset condition, displaying a third button in the first interface, the third button being configured to control the default state of the control shielding function; receiving a fourth operation of the user on the third button; in response to the fourth operation, switching the default state of the control shielding function from the off state to the active state. In the embodiments of the present application, when it is detected that the display content in the first interface meets the preset condition (for example, when the first interface displays the floating controls for the first time in the screen capturing or screen recording), the system can display the third button in the first interface, which is configured to control the default state of the control shielding function. That is, the user can conveniently adjust the initial setting of the control shielding function through this button, so that the user avoids the tedious step of manually adjusting the default setting every time when performing the screen capturing or screen recording operation, and the convenience and experience of the user in the screen capturing are further improved.

[0016] In a possible implementation, the method further includes: if the control shielding function is detected to be in the activated state during the screen capturing, removing the one or more floating controls displayed in the first interface. In the embodiment of the present application, when the control shielding function is detected to be in the activated state, the system automatically removes the one or more floating controls displayed in the first interface, so that the above-mentioned floating controls are not displayed during the screen capturing operation, without manually processing these interference elements. This not only simplifies the operation steps of the user, reduces the interference in the screen capturing process, but also avoids the inconvenience and possible errors caused by manual operation, ensures that the user can obtain the required screen capture or screen recording result, and simplifies the operation of the user during the screen capturing.

[0017] In a possible implementation, the floating control is one or more of a floating window, a floating ball and a notification message. In the embodiment of the present application, by intelligently identifying and managing different types of floating controls, the user does not need to manually process these controls during the screen capturing or screen recording operation. Whether it is a floating window, a floating ball or a notification message, the system can automatically identify and remove these controls, thereby generating screen capture content that does not contain interference elements. This method not only simplifies the operation process of the user, ensures the clarity and completeness of the screen capture or screen recording content, but also improves the professionalism and watchability of the screen capturing. The user can focus more on capturing the target content, avoiding the loss or incompleteness of the content caused by the blocking of important information by the floating controls, thereby further improving the convenience and experience of the user during the screen capturing.

[0018] In a second aspect, the embodiment of the present application provides a device for screen capturing, the device comprising a display screen; which can include:

[0019] a first interface display unit, the display screen displays a first interface, the first interface includes a full-screen displayed target content and one or more floating controls, the target content is a desktop content or a content of a target application;

[0020] a receiving screen capturing operation unit configured to receive a screen capturing operation of a user on the first interface;

[0021] a first file generation unit configured to, if the control shielding function of the electronic device is detected to be in the activated state, generate a first file in response to the screen capturing operation; the first file includes one or more image frames for screen capturing of the first interface, and at least one of the one or more image frames does not display the one or more floating controls.

[0022] In a possible implementation, if the screen capturing operation is a screen capturing operation; the first file generation unit is specifically configured to:

[0023] In response to the screenshot operation, a preview window is displayed in the first interface, the preview window including screenshot content, wherein the screenshot content is one image frame obtained by screenshotting the first interface, and the one or more floating controls are displayed in the screenshot content;

[0024] If it is monitored that the control shielding function is in the activated state, the one or more floating controls in the screenshot content are removed to generate the first file.

[0025] In a possible implementation, the first interface further displays a first button, the first button being used to control the on-off state of the control shielding function; if the control shielding function is currently in the off state, the first file generation unit is specifically configured to:

[0026] If a first operation acting on the first button is monitored, the control shielding function is switched from the off state to the activated state.

[0027] In response to the first operation, the one or more floating controls in the screenshot content displayed in the preview window are removed to generate the first file, and the control shielding function is switched from the activated state to the off state.

[0028] In a possible implementation, if the control shielding function is currently in the activated state, the apparatus further includes:

[0029] The second operation unit is configured to switch the control shielding function from the activated state to the off state if a second operation acting on the first button is monitored.

[0030] The second file unit is configured to restore the one or more floating controls to the screenshot content displayed in the preview window to generate a second file, the second file being the screenshot content including the one or more floating controls.

[0031] In a possible implementation, the electronic device further includes a gallery; the preview window and the first button disappear after being displayed in the first interface for a first duration; and the apparatus further includes:

[0032] The content saving unit is configured to save the screenshot content displayed before the preview window disappears into the gallery after the preview window and the first button disappear.

[0033] In a possible implementation, the first file generation unit is specifically configured to:

[0034] adjust a layer level of the one or more floating controls in the screenshot content to a first level to generate the first file, the first level being lower than a layer level of the target content in the screenshot content.

[0035] In a possible implementation, if the screen capturing operation is a screen recording operation, the first file generation unit is specifically configured to:

[0036] In response to the screen recording operation, screen recording is performed on the first interface to generate a plurality of image frames.

[0037] If it is monitored that the control shielding function is in the activated state, the one or more floating controls in each of the plurality of image frames are removed to generate the first file.

[0038] In a possible implementation, when the screen recording is performed, a second button is further displayed in the first interface, the second button is used to control an on-off state of the control shielding function, and if the control shielding function is currently in the off state, the first file generation unit is specifically configured to:

[0039] receiving a third operation on the second button at a first time node, the control shielding function being switched from the off state to the activated state, the first time node being a time node in the screen recording process;

[0040] In response to the third operation, the one or more floating controls in each of the plurality of image frames after the first time node are removed to generate the first file, and the control shielding function is switched from the activated state to the off state.

[0041] In a possible implementation, if a default state of the control shielding function is currently in the off state, the apparatus further includes:

[0042] a third button display unit configured to display a third button in the first interface when it is detected that the content displayed in the first interface meets a preset condition, the third button being used to control a default state of the control shielding function;

[0043] a fourth operation receiving unit configured to receive a fourth operation of a user on the third button;

[0044] In response to the fourth operation receiving unit, in response to the fourth operation, the default state of the control shielding function is switched from the off state to the activated state.

[0045] In a possible implementation, the apparatus further includes:

[0046] The floating control unit is removed, and if the control shielding function is detected to be in an active state during the screen capturing, the one or more floating controls displayed in the first interface are removed.

[0047] In a possible implementation, the floating control is one or more of a floating window, a floating ball, and a notification message.

[0048] In a third aspect, an embodiment of the present application provides a computer storage medium for storing computer software instructions used in the screen capturing device of the second aspect, which contains a program designed to execute the above aspects.

[0049] In a fourth aspect, an embodiment of the present application provides a computer program, which includes instructions, when the computer program is executed by a computer, so that the computer can execute the process performed in the screen capturing device of the second aspect.

[0050] In a fifth aspect, the present application provides a terminal device, which includes a processor, a display screen, and a sensor, the processor being the processor involved in any of the implementation manners of the second aspect, the display screen being the display screen involved in any of the implementation manners of the second aspect, and the sensor being the sensor involved in any of the implementation manners of the second aspect. The terminal device can further include a communication interface, which is used for communication between the terminal and other devices or communication networks.

[0051] In a sixth aspect, the present application provides a smart phone, which has the function of implementing any of the screen capturing methods of the first aspect. The function can be implemented by hardware, or by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions. BRIEF DESCRIPTION OF DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background art, the drawings needed to be used in the embodiments of the present application or the background art will be described below.

[0053] FIG. 1A is a flow diagram of a screen capturing method according to an embodiment of the present application.

[0054] FIG. 1B is a diagram of a preview window according to an embodiment of the present application.

[0055] FIG. 2A is a diagram of a screen capturing condition according to an embodiment of the present application.

[0056] FIG. 2B is a diagram of a setting before screen capturing according to an embodiment of the present application.

[0057] FIG. 2C is a diagram of a preview window before screen capturing setting according to an embodiment of the present application.

[0058] FIG. 2D is a schematic diagram of a screenshot setting according to an embodiment of the present application.

[0059] FIG. 2E is a schematic diagram of an interaction of a screenshot setting according to an embodiment of the present application.

[0060] FIG. 2F is a structural diagram of a screenshot capturing software of an electronic device according to an embodiment of the present application.

[0061] FIG. 3A is a schematic diagram of a screenshot setting after a screenshot according to an embodiment of the present application.

[0062] FIG. 3B is a schematic diagram of another screenshot setting after a screenshot according to an embodiment of the present application.

[0063] FIG. 3C is a schematic diagram of an interaction of a screenshot setting after a screenshot according to an embodiment of the present application.

[0064] FIG. 4A is a schematic diagram of a screen recording setting before a screen recording according to an embodiment of the present application.

[0065] FIG. 4B is a schematic diagram of a screen recording according to an embodiment of the present application.

[0066] FIG. 4C is a schematic diagram of a screen recording setting according to an embodiment of the present application.

[0067] FIG. 4D is a schematic diagram of an interaction of a screen recording setting according to an embodiment of the present application.

[0068] FIG. 5A is a schematic diagram of a screen recording setting during a screen recording according to an embodiment of the present application.

[0069] FIG. 5B is a schematic diagram of another screen recording according to an embodiment of the present application.

[0070] FIG. 5C is a schematic diagram of an interaction of a screen recording setting according to an embodiment of the present application.

[0071] FIG. 6 is a structural diagram of a device for screen capturing according to an embodiment of the present application.

[0072] FIG. 7 is a hardware structural diagram of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0073] The embodiments of the present application will be described below with reference to the accompanying drawings.

[0074] The terms "first", "second", "third", and "fourth" and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises", "comprising", "includes", "including", "has", "having" and the like are intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus that comprises, has, includes, contains or the like any of these elements, but is not limited to combinations of the disclosed elements. For example, a process, method, article, or apparatus that comprises any of the described steps or elements does not include steps or elements not described, unless the context clearly indicates otherwise.

[0075] Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are they necessarily mutually exclusive of one another. It is expressly understood that that the embodiments described herein are merely examples from a multitude of embodiments that are possible.

[0076] The terms "component", "module", "system", and the like as used herein generally represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or the like. For example, a component can be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and / or a computer. By way of illustration, both an application running on a computing device and the computing device can be a component. One or more components can reside within a process and / or thread of execution and a component can be localized, co-resident, and / or distributed amongst one or more computer(s). Also, these components can execute from various computer readable media having various data structures stored thereon. The components can communicate by way of local and / or remote processes such as in accordance with a signal having one or more data packets (e.g., data from one component interacting with another component in a local system, distributed system, and / or across a network such as the Internet with other systems via the signal).

[0077] First, some terms in the present application are explained and described, so as to facilitate the understanding of those skilled in the art.

[0078] (1) System Apps, refers to the application programs pre-installed in the operating system, which provide support for the basic operation and core functions of the device. Such application programs are the key components of the operating system functions and user interaction, covering multiple aspects from basic communication services (such as phone, SMS) to system management tools (such as settings, file manager) and so on. System applications usually have deeper system access permissions than third-party applications, and can perform operations such as modifying system settings, accessing core hardware functions, etc.

[0079] (2) Screen Recorder, refers to an application that can capture and record activities on the screen of a computer or mobile device. Screen Recorder not only records visual content, but also usually supports recording system audio, microphone input, and even camera video, providing a comprehensive tool for multimedia content creation. These software usually have multiple recording modes, including full-screen recording, specified area recording, window recording, etc., to adapt to different recording needs.

[0080] (3) Screenshot, refers to capturing and saving the image of the content displayed on the screen of a computer or mobile device at a certain moment. Screenshot function can be realized through operating system provided shortcut keys, graphical interface operation or specific screenshot software. In addition to basic full-screen screenshot, many tools and platforms also support advanced functions such as selected area screenshot, window screenshot and scrolling screenshot to meet different needs.

[0081] (4) Settings, refers to the interface or function of adjusting and configuring personalized options in software, operating system or application. These settings allow users to customize the behavior, appearance and notification mode of software according to their own preferences and needs. Settings range from simple interface theme change, font size adjustment, to complex privacy control, network configuration and system security options, etc. At the operating system level, settings usually cover hardware configuration, system update, account management, privacy protection, auxiliary function, etc., providing a platform for centralized management of system behavior. At the application level, settings may include notification preferences, data synchronization options, interface language selection, etc., to optimize the user's application experience.

[0082] (5) Framework, in mobile system, refers to the underlying software architecture that provides a series of predefined functions and structures to support software development and application running. The framework layer of mobile operating system usually includes libraries and APIs (application programming interfaces) that handle core functions such as graphics rendering, data storage, device communication, user interface creation and network operation. These frameworks greatly simplify the development process of application, allowing developers to focus on the logic and user experience of the application, rather than starting from scratch to handle complex underlying operations.

[0083] (6) The WindowManager Service is one of the core services in the operating system responsible for managing floating windows, especially in the graphical user interface (GUI) environment. It provides a set of mechanisms to control the layout, size, position, and stacking order of windows, ensuring the effective organization and presentation of application interfaces. In mobile operating systems such as Android or iOS, although users usually do not directly interact with the window manager, it is the basis for implementing multi-window management, pop-up windows, system prompts, and screen rotation functions.

[0084] (7) The NotificationManager Service is a key service in mobile operating systems responsible for managing application notifications. It allows applications to create, send, and manage user notifications, which can take various forms such as status bar icons, sounds, vibrations, or floating notifications. Through the NotificationManager Service, applications can deliver important information and reminders to users without disturbing their current activities, thereby enhancing user experience.

[0085] First, analyze and propose the technical problems to be solved in this application. In the prior art, the technology related to screen capture can include the following solutions:

[0086] Solution: When the user is capturing a screenshot or recording a screen, the full screen or part of the area can be captured to save the desired content.

[0087] The above solution is currently a common technology on the market, but it also has the following multiple disadvantages:

[0088] Disadvantage 1: Increased operation complexity. In the current implementation mechanism, when the user wants to perform full-screen screenshot or recording, they often need to manually close or remove small windows or floating window applications that are not the target of the screenshot or recording. This not only increases the user's operation steps, but also interrupts the user's viewing of the small window video content, reducing the user's satisfaction. For example, when a user is watching a video, they may need to capture important information from other applications. At this time, they must first stop the video playback, perform the screenshot or recording, and then restart the video application after completing the operation. This interruption and restart process significantly reduces the user's operational convenience.

[0089] Disadvantage 2: Privacy and visual perception issues. During the screenshot or screen recording process, suddenly popping up notification messages become another important factor affecting the final content visual perception. These notifications may contain sensitive personal information or information unrelated to the screenshot content, once captured into the picture, not only may leak user privacy, but also affect the neatness and concentration of the picture. In order to avoid this situation, users often need to re-screenshot or record after a notification pops up, increasing the additional operation burden, and may reduce user experience due to frequent operation.

[0090] Disadvantage 3: Lack of adaptability and flexibility. The current screenshot and screen recording scheme has poor adaptability to complex use scenarios and lacks sufficient flexibility to meet the changing needs of users. Especially in the case of multiple application concurrency, users may only want to capture the content of a specific application, rather than full-screen content. However, the existing scheme cannot intelligently identify and distinguish the specific needs of users, resulting in the inability to directly capture the content that users really need, so that users have to increase the operation steps to achieve the purpose, which not only reduces the efficiency, but also affects the user experience.

[0091] In order to solve the problem that the current screen capture scheme does not meet the actual business needs, and to meet the needs of users and actual business, considering the shortcomings of existing technologies, the technical problems actually solved by the present application include one or more of the following three aspects:

[0092] 1. Simplify the operation process and improve user convenience (corresponding to disadvantage 1). Currently, users often need to perform additional operations when taking full-screen screenshots or screen recordings, such as manually closing or removing irrelevant small window or floating window applications, which not only increases the complexity of user operations, but also interrupts the user's use process, especially in scenarios such as watching videos that require continuous viewing. Therefore, a screenshot and screen recording method that can automatically identify and exclude non-target content is needed. This method can automatically ignore or hide these non-target elements when the user executes the screenshot or screen recording command, thereby reducing the user's operation steps and improving the convenience of operation and user satisfaction.

[0093] 2. Protect user privacy and optimize content visual perception (corresponding to disadvantage 2). During the screenshot or screen recording process, suddenly appearing notification messages often become a factor affecting the visual perception of the content and the privacy of the user. Not only may expose personal information, but also may reduce the neatness and professionalism of the final content. Therefore, a method is needed that can automatically shield or filter out these notification messages during screenshot or screen recording to ensure the purity of the final content and the safety of user privacy.

[0094] 3. Enhance the adaptability and flexibility of screenshot and screen recording (corresponding to disadvantage 3). In the use scenario of multiple applications running concurrently, users often need to selectively capture the content of a certain application according to specific needs, rather than full-screen content. The existing screenshot and screen recording solutions lack adaptability and flexibility in this regard and cannot meet the personalized needs of users. Therefore, a highly adaptable screenshot and screen recording method is needed, which can intelligently identify the specific needs of users and automatically select and capture the content of the target application, rather than simply capturing full-screen content, thereby providing users with a more personalized and flexible screenshot and screen recording experience.

[0095] In combination with the file sending method provided in the embodiments of the present application, the technical problems proposed in the present application are specifically analyzed and solved. Referring to FIG. 1A, which is a flow diagram of screen capturing provided by an embodiment of the present application, the method can include the following steps S100-S102.

[0096] Step S100: The display screen displays a first interface.

[0097] Specifically, the first interface includes full-screen displayed target content and one or more floating controls. The target content is desktop content or content of a target application. For example, the first interface can display target content (i.e., application content or application desktop content that the user needs to capture) and floating controls. The layer level corresponding to the floating controls is higher than the layer level of the target content, i.e., the floating controls are displayed above the target content.

[0098] In one possible implementation, the floating controls are one or more of a floating window, a floating ball, and a notification message. In the embodiments of the present application, by intelligently identifying and managing different types of floating controls, users do not need to manually handle these controls when performing screenshot or screen recording operations. Whether it is a floating window, a floating ball, or a notification message, the system can automatically identify and remove these controls, thereby generating screen capture content that does not contain interfering elements.

[0099] Step S101: Receive a screen capture operation of the user for the first interface.

[0100] Specifically, the screenshot or screen recording operation of the user for the first interface is received.

[0101] Step S102: If it is monitored that the control shielding function of the electronic device is in an activated state, then in response to the screen capture operation, a first file is generated.

[0102] Specifically, the first file includes one or more image frames captured by screen capturing the first interface, and at least one of the one or more image frames does not display the one or more floating controls. For example, if the system detects that the control shielding function of the electronic device has been activated, the system will generate a first file in response to the screen capturing operation, and the first file includes one or more image frames captured by screen capturing the first interface (for example, if the screen capturing operation is a screenshot operation, the first file includes one image frame, or if the screen capturing operation is a screen recording operation, the first file can include multiple image frames), and at least one of the one or more image frames does not include any floating controls, but only displays the target content (for example, a full-screen displayed application or application desktop), so that the user does not need to close or remove the floating controls when performing screen capturing, and still can obtain an image including only the target content, thereby avoiding the above-mentioned shielding or leaking of the user's privacy information by the floating controls on the target content in the current interface, and simplifying the operation steps when screen capturing.

[0103] In a possible implementation, if the screen capturing operation is a screenshot operation, and if the control shielding function of the electronic device is detected to be in the activated state, the first file is generated in response to the screen capturing operation, including: in response to the screenshot operation, displaying a preview window in the first interface, the preview window including screenshot content, where the screenshot content is an image frame obtained by taking a screenshot of the first interface, and the one or more floating controls are displayed in the screenshot content; and if the control shielding function is detected to be in the activated state, the one or more floating controls in the screenshot content are removed to generate the first file. The preview window function is introduced in the screenshot operation, so that the user can view the screenshot content in the preview window and make instant adjustments to the screenshot result. Specifically, when the user performs the screenshot operation and the system detects that the control shielding function is in the activated state, the system automatically removes the floating controls in the screenshot content, and finally generates the first file that does not include these interference elements. This not only enables the user to more conveniently manage and view the screenshot content during the screenshot process, but also ensures that the final generated screenshot file includes the target content required by the user, and simplifies the operation process and reduces the manual adjustment steps of the user, greatly improving the convenience and experience of the user when capturing the screen. For example, refer to FIG. 1B, which is a preview window schematic diagram provided in an embodiment of the present application. FIG. 1B can include a preview window first schematic interface 01A-1 and a preview window second schematic interface 01A-2. The preview window first schematic interface 01A-1 can include a full-screen chat application interface (i.e., the application interface in which the preview window first schematic interface 01A-1 displays multiple chat messages) and a first floating window 2-01 (i.e., the floating window application of news in the dashed box in the preview window first schematic interface 01A-1, which displays multiple news messages). When the user's screenshot operation is detected, the preview window is generated. As shown in the preview window second schematic interface 01A-2, the preview window second schematic interface 01A-2 can include the first floating window 2-01 and a screenshot preview window 2-03. When it is detected that the control shielding setting is in the activated state, the screenshot content displayed in the screenshot preview window 2-03 is the target content from which the floating controls are removed (i.e., only includes the content of the WX chat software), and the first file is generated based on the screenshot content displayed in the screenshot preview window 2-03.

[0104] In a possible implementation, the first interface further displays a first button, the first button being configured to control a switching state of the control shielding function; if the control shielding function is currently in the off state; the one or more floating controls in the screenshot content are removed to generate the first file if it is monitored that the control shielding function is in the active state, including: if a first operation acting on the first button is monitored, the control shielding function is switched from the off state to the active state; in response to the first operation, the one or more floating controls in the screenshot content displayed in the preview window are removed to generate the first file, and the control shielding function is switched from the active state to the off state. In the embodiment of the application, the user can change the switching state of the control shielding function by clicking the first button, and the screenshot content displayed in the preview window will also change with the switching state of the control shielding function. Specifically, in the embodiment of the application, the first button for controlling the switching state of the control shielding function is displayed in the first interface, and the user can activate or close the control shielding function by clicking the button. When the control shielding function is in the off state, the user can activate it by clicking the first button, and the screenshot content displayed in the preview window will be updated in real time, the floating controls are removed, and the first file with the removed floating controls is finally generated based on the screenshot content in the preview window, which simplifies the operation steps of the user, ensures that the user can more conveniently complete the screenshot operation and obtain the required screenshot result in different use scenarios. For specific scenarios in which the switching state of the control shielding function is switched to the active state based on the first button in the embodiment of the application, refer to the corresponding embodiment of FIG. 3A in the following text, which will not be described herein.

[0105] In a possible implementation, if the control shielding function is currently in an active state, the method further includes: if a second operation acting on the first button is monitored, switching the control shielding function from the active state to an off state; restoring the one or more floating controls into the screenshot content displayed in the preview window to generate a second file, the second file being the screenshot content including the one or more floating controls. The embodiments of the present application introduce a dynamic switching mechanism of the control shielding function, so that the user can more flexibly manage the screen content during the screenshot process. Specifically, when the control shielding function is currently in the active state, if a second operation of the user acting on the first button is monitored, the system automatically switches the control shielding function from the active state to the off state, and restores the one or more floating controls into the screenshot content displayed in the preview window, thereby generating a second file including the floating controls. The user can adjust the screenshot content at any time according to actual needs during the screenshot process, and can intuitively view the final effect of the screenshot content by restoring the floating controls in the preview window in real time, so as to ensure that the generated second file contains the required content, which not only simplifies the adjustment steps of the user in the screenshot operation, but also improves the accuracy and integrity of the screenshot content. For specific scenarios of switching the on-off state of the control shielding function to the off state based on the first button in the embodiments of the present application, refer to the corresponding embodiments of FIG. 3B in the following text, which will not be described herein.

[0106] In a possible implementation, the electronic device further includes a gallery; the preview window and the first button disappear after being displayed in the first interface for a first duration; and the method further includes: after the preview window and the first button disappear, saving the screenshot content displayed before the preview window disappears into the gallery. In the embodiments of the present application, after the preview window and the first button disappear, the system automatically saves the screenshot content displayed before the preview window disappears into the gallery of the electronic device. Through the feature that the preview window automatically disappears, the user can change the screenshot content through the first button during the existence of the preview window, so as to ensure that the finally saved is the required screenshot content of the user, which avoids incomplete or lost content caused by manual adjustment or misoperation, not only simplifies the operation steps of the user, but also further improves the convenience and experience of the user when capturing the screen.

[0107] In a possible implementation, the removing the one or more floating controls in the screenshot content to generate the first file comprises: adjusting a layer level of the one or more floating controls in the screenshot content to a first level to generate the first file, the first level being lower than a layer level of the target content in the screenshot content. Specifically, in the embodiment of the present application, the layer level of the one or more floating controls in the screenshot content is adjusted to be lower than the layer level of the target content, so that the floating controls in the screenshot content are automatically removed, and the user does not need to manually adjust the position or state of the floating controls when taking a screenshot. The system automatically processes the layer level relationship, thereby realizing the effect of removing the floating controls in the first interface.

[0108] In a possible implementation, if the screen capture operation is a screen recording operation, and if the control shielding function is in the activated state, the first file is generated in response to the screen capture operation, comprising: in response to the screen recording operation, recording the first interface to generate a plurality of image frames; and if the control shielding function is in the activated state, removing the one or more floating controls in each of the plurality of image frames to generate the first file. In the embodiment of the present application, the control shielding function is introduced in the screen recording operation. When it is monitored that the control shielding function is in the activated state, the system automatically removes the one or more floating controls in each of the image frames in the screen recording process to generate the first file without the interference elements, so that the user does not need to manually remove the floating controls when recording the screen, and only needs to start the control shielding function to capture the target content.

[0109] In a possible implementation, the first interface further displays a second button during the screen recording, the second button being configured to control a switching state of the control shielding function; if the control shielding function is currently in the off state; if the control shielding function is detected to be in the active state, the one or more floating controls in the one or more image frames are removed to generate the first file, including: receiving a third operation on the second button at a first time node, switching the control shielding function from the off state to the active state, the first time node being a time node in the screen recording process; in response to the third operation, removing the one or more floating controls in each image frame after the first time node in the plurality of image frames to generate the first file, and switching the control shielding function from the active state to the off state. The embodiments of the present application display the second button during the screen recording process, so that the user can conveniently control the switching state of the control shielding function. Specifically, when the control shielding function is currently in the off state, the user can activate it at any time node in the screen recording process by clicking the second button, so as to automatically remove the floating controls in the image frames after the above time node in the plurality of image frames, and finally generate the screen recording file required by the user (for example, the screen recording file includes the floating controls in the first half of the content, and does not include the floating controls in the second half of the content). In summary, the embodiments of the present application greatly improve the convenience of the screen recording operation and the user experience by simplifying the operation steps (that is, the floating controls can be removed by clicking the second button at the time node when the floating controls need to be shielded, without manually removing the floating controls) and adjusting the screen recording content in real time. For specific scenarios of switching the switching state of the control shielding function to the active state based on the second button in the embodiments of the present application, please refer to the corresponding embodiments of FIGS. 5A-5B in the following text, which will not be described herein.

[0110] In a possible implementation, if the default state of the control shielding function is currently in the off state, the method further includes: displaying a third button in the first interface when it is detected that the content displayed in the first interface meets a preset condition, the third button being used to control the default state of the control shielding function; receiving a fourth operation of the third button by a user; and switching the default state of the control shielding function from the off state to the active state in response to the fourth operation. In the embodiment of the application, when it is detected that the content displayed in the first interface meets the preset condition (for example, when the first interface is detected to display the floating control for the first time in the screenshot or screen recording), the system can display the third button, which is used to control the default state of the control shielding function. That is, the user can conveniently adjust the initial setting of the control shielding function through the button, so that the user avoids the cumbersome step of manually adjusting the default setting each time when performing the screenshot or screen recording operation, and the convenience and experience of the user when capturing the screen are further improved. For specific scenarios in which the third button is used to switch the default state of the control shielding function to the active state, refer to the corresponding embodiments of FIGS. 2B-2D and 4A-4C below, which are not described herein again.

[0111] In a possible implementation, the method further includes: if it is detected that the control shielding function is in the active state when capturing the screen, removing the one or more floating controls displayed in the first interface. In the embodiment of the application, when it is detected that the control shielding function is in the active state, the system automatically removes the one or more floating controls displayed in the first interface, so that the floating controls are not displayed when capturing the screen. The user does not need to manually process the interference elements, which not only simplifies the operation steps of the user and reduces the interference in the screen capturing process, but also avoids the inconvenience and possible errors caused by manual operation, so that the user can obtain the required screenshot or screen recording result, and the operation of the user when capturing the screen is simplified.

[0112] Optionally, in the method step S101, the screen capturing condition can be various based on different use scenarios, for example, (1) if the screen capturing operation is a screenshot operation 201, or (2) if the screen capturing operation is a screen recording operation 202. For details, refer to FIG. 2A, which is a schematic diagram of a screen capturing condition according to an embodiment of the application. As shown in FIG. 2A:

[0113] (1) If the screen capturing operation is a screenshot operation 201.

[0114] Specifically, if the default state of the control shielding function is currently in the off state, when the system receives a screenshot operation of a user for a first interface, the system first detects the content displayed in the first interface. If it is detected for the first time that a floating control (such as a floating window, a floating window, and a floating ball, etc.) is displayed in the screenshot interface, the system can display a control shielding function prompt box to guide the user to switch the default state of the control shielding function from the off state to the active state, so that the user avoids the tedious step of manually adjusting the default setting every time when performing the subsequent screenshot operation, and further improves the convenience and experience of the user when capturing the screen.

[0115] Exemplarily, referring to FIG. 2B, which is a schematic diagram of a screenshot-before setting provided in an embodiment of the present application, the screenshot-before setting first schematic interface 02A-1 and the screenshot-before setting second schematic interface 02A-2 can be included in FIG. 2B; as shown in the screenshot-before setting first schematic interface 02A-1, the screenshot-before setting first schematic interface 02A-1 can include a full-screen chat application interface (i.e., the application interface in which the screenshot-before setting first schematic interface 02A-1 displays a plurality of chat messages) and the first floating window 2-01 (i.e., the floating window application of the news in the dashed box in the screenshot-before setting first schematic interface 02A-1, in which a plurality of news messages are displayed), when it is monitored that the user performs a screenshot operation, and the screenshot operation is the first time that a floating control (for example, the first floating window 2-01) is identified, the setting of the floating control when the screenshot is enabled can be displayed, which can be seen from the screenshot-before setting second schematic interface 02A-2, as shown in the screenshot-before setting second schematic interface 02A-2, the first floating window 2-01 and the screenshot prompt window 2-02 (i.e., the prompt window in the dashed box in the screenshot-before setting second schematic interface 02A-2) can be included in the interface, wherein the screenshot prompt window 2-02 can include the first start button 2-02A (used to update the control shielding setting when the screenshot is in an active state) and the first cancel button 2-02B (not to start the control shielding setting), and the default is to check not to be reminded, when the user clicks the first start button 2-02A, the system will update the control shielding setting when the screenshot is in an active state, the floating control (i.e., the first floating window 2-01) will be hidden in the user interface when the screenshot is performed, and the preview window generated by the screenshot will display the screenshot content in which the floating control is shielded by default; further, if the control shielding setting is started after the first start button 2-02A is clicked or before the current screenshot operation, when the user's screenshot operation is detected, the system can generate a screenshot preview window in the current interface, and display the screenshot in which the floating control in the current display interface is shielded in the preview window, which can be seen from FIG. 2C, which is a screenshot-before setting preview window provided in an embodiment of the present application, the screenshot-before setting third schematic interface 02A-3 can be included in FIG. 2C, the first floating window 2-01 and the screenshot preview window 2-03 (i.e., the screenshot preview window in the dashed box) can be included in the screenshot-before setting third schematic interface 02A-3, wherein the screenshot content displayed in the screenshot preview window 2-03 is the picture in which the first floating window 2-01 is removed, and the screenshot preview window 2-03 displays T time (for example, 3 seconds), when the T time is waited (i.e., after the screenshot preview window 2-03 disappears), the system will automatically save the screenshot file displayed in the current preview window.

[0116] In a possible implementation, the user can also manually modify the default state of the control shielding function during screenshot by modifying the default state of the control shielding function during screenshot in the setting function. Specifically, after the control shielding setting during screenshot is updated to the active state by clicking the first start button 2-02A in the above embodiment, the control shielding setting during screenshot is also updated to the active state in the screenshot setting interface of the system, and the user can also turn off the control shielding setting in the screenshot setting interface. Referring to FIG. 2D, which is a screenshot setting diagram provided in an embodiment of the present application, the screenshot setting diagram can include a screenshot setting first schematic interface 02A-4 and a screenshot setting second schematic interface 02A-5. The screenshot setting first schematic interface 02A-4 and the screenshot setting second schematic interface 02A-5 display the interface of the screenshot setting, which can include multiple settings. For example, the user can turn on or turn off the knuckle screenshot function by clicking the knuckle screenshot button, or the user can update the state of the shielding setting by clicking the first control shielding setting button 2-04. As shown in the screenshot setting first schematic interface 02A-4, the first control shielding setting button 2-04 is in the active state (i.e., the first control shielding setting button 2-04 is displayed in the black selected state), and the user can update the state of the shielding setting from the active state to the inactive state by clicking the first control shielding setting button 2-04. As shown in the screenshot setting second schematic interface 02A-5, the first control shielding setting button 2-04 is currently displayed in the white unselected state. At this time, if the user performs a screenshot operation, the screenshot content displayed in the screenshot preview window 2-03 will no longer shield the floating controls (i.e., display the floating window, notification message, floating ball, and other controls).

[0117] In the above embodiments corresponding to FIGS. 2B-2D, the specific scenario in which the control shielding setting is in the active state before the first time period and the preview window initially displays the second file when the screen capture condition is a screenshot operation is described in detail. The specific interaction process in the system service can be seen from FIG. 2E, which is an interaction diagram of a screenshot setting provided in an embodiment of the present application. The method can be applied to the interaction scenario of the above screenshot setting. In the interaction diagram, the user end, the screenshot server end, the cloud, the system setting end, the window server end, and the notification server end can be included. The specific description of each server end in the embodiment of the present application can be seen from the embodiment described in FIG. 2F below, and will not be repeated here. The interaction process can include the following steps S301-S318.

[0118] Step S301: The screenshot server end requests configuration from the cloud.

[0119] Specifically, the screenshot server end initiates a configuration request to the cloud through a network or a local service, and specifies the required information type, including but not limited to the configuration information such as the list of supported receiving or screenshot applications.

[0120] Step S302: The cloud returns configuration information to the screenshot server.

[0121] Specifically, when the cloud receives the request configuration sent by the screenshot server, the cloud returns configuration information to the screenshot server, where the configuration information can be a list of applications that support the shielding function (for example, if application A does not support the shielding function, the shielding setting prompt or one-key removal of the floating window button will not be included when taking screenshots or screen recordings) and / or application controls that support the shielding function (for example, application floating windows, floating balls, and notification messages are application controls that can be shielded in screenshots and screen recordings); further, the cloud can be a local cloud and / or a network cloud, when the cloud is a local cloud, the above-mentioned application list can be stored locally, and when it is necessary to update the above-mentioned application list configuration, the cloud can be a network cloud, and the updated application list can be obtained through the network.

[0122] Step S303: The user terminal sends a screenshot request to the screenshot server.

[0123] Specifically, the system monitors external operations from the user, and when it is detected that the user performs a screenshot operation (i.e., the screen capture condition described in step S101 of the embodiment corresponding to FIG. 1A is that the screenshot operation is detected), the system receives the screenshot request and sends the screenshot request to the screenshot server for processing.

[0124] Step S304: The screenshot server sends a request to obtain the switch state of the screenshot hidden irrelevant information to the system setting terminal.

[0125] Specifically, when the screenshot server receives the screenshot request, the screenshot server can send a request to the system setting terminal to obtain the switch state of the control shielding setting.

[0126] Step S305: The system setting terminal returns the switch state information to the screenshot server.

[0127] Specifically, when the system setting terminal receives the request to obtain the switch state of the screenshot hidden irrelevant information sent by the screenshot server, the system setting terminal can determine the switch state of the current control shielding setting by querying the system state, and return the information to the screenshot server.

[0128] Step S306: The screenshot server detects whether the first interface of the required screenshot includes a floating control.

[0129] Specifically, the screenshot server detects whether the first interface of the required screenshot includes a floating control (such as a floating window, a floating ball, and an application notification), and if the screenshot server first identifies the floating control, a guide prompt box is generated in the first interface to guide the user to open the control shielding setting, and if it is detected that it is not the first time, no response is made.

[0130] Step S307: The screenshot server creates a guide prompt box.

[0131] Specifically, when the screenshot server first identifies the floating control in the first interface of the desired screenshot, the screenshot server creates a guide prompt box in the first interface. The guide prompt box (for example, the screenshot prompt window 2-02 described in the embodiment corresponding to FIG. 2B) can display an open button and a cancel button. The open button is used to open the control shielding setting, and the cancel button is used to maintain the original screenshot experience.

[0132] Step S308: The screenshot server sends a setting screenshot hidden switch opening request to the system setting end.

[0133] Specifically, when the screenshot server detects that the user clicks the open button described in step S307, the screenshot server can send a setting screenshot hidden switch opening request to the system setting end, so as to update the control shielding setting to the active state.

[0134] Step S309: The screenshot server sends a hidden notification request to the notification server.

[0135] Specifically, when the screenshot server confirms that the user has selected to hide the floating control (that is, after the control shielding setting is updated to the active state), the screenshot server can send a request to the notification server to hide all notification messages.

[0136] Step S310: The screenshot server sends a hidden window request to the window server.

[0137] Specifically, when the screenshot server confirms that the user has selected to hide the floating control (that is, after the control shielding setting is updated to the active state), the screenshot server can send a request to the window server to notify the window server to hide all windows.

[0138] Step S311: The notification server hides all notifications.

[0139] Specifically, when the notification server receives the hidden notification request from the screenshot server, the notification server executes an instruction to hide all notifications, that is, hides the layer of the notification message, so that the notification message is not included in the preview screenshot generated in the screenshot process and finally.

[0140] Step S312: The window server hides the small window and the floating ball.

[0141] Specifically, when the window server receives the hidden window request from the screenshot server, the window server executes an instruction to hide the small window and the floating ball, that is, hides the layer of the small window and the floating ball, so that the small window and the floating ball are not included in the preview screenshot generated in the screenshot process and finally.

[0142] Step S313: The screenshot server generates a preview screenshot.

[0143] Specifically, the screenshot server generates a corresponding preview screenshot based on the user's selection and system settings (for example, when the control shielding setting is in the active state, the generated preview screenshot does not include the floating control), so that the user can preview the final screenshot effect.

[0144] Step S314: The screenshot server stores the screenshot.

[0145] Specifically, after waiting for a first time period (i.e., the time for which the preview screenshot frame exists), the screenshot server will save the screenshot file last displayed in the preview screenshot frame, so that the user can view or share it later.

[0146] Step S315: The screenshot server sends a display notification request to the notification server.

[0147] Specifically, when the screenshot server confirms that the user has completed the screenshot operation and needs to display the notification again, the screenshot server can send a display notification request to the notification server to display the notification message.

[0148] Step S316: The screenshot server sends a display window request to the notification server.

[0149] Specifically, when the screenshot server confirms that the user has completed the screenshot operation and needs to display the window again, the screenshot server can send a request to the window server to notify the window server to display the window, the floating ball.

[0150] Step S317: The notification server displays all notifications.

[0151] Specifically, when the notification server receives the display notification request from the screenshot server, it executes the instruction to display all notifications, i.e., displays the layer where the notification message is located, so that the notification message is displayed in the first interface.

[0152] Step S318: The window server displays the small window and the floating ball.

[0153] Specifically, after the window server receives the display window request from the screenshot server, it executes the instruction to display the small window and the floating ball, i.e., displays the layer where the small window and the floating ball are located, so that the small window and the floating ball are displayed in the first interface.

[0154] The software system of the electronic device in the embodiments described in FIGS. 2A-2E can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiments of the present application take a layered architecture of a mobile operating system as an example to exemplarily illustrate the software structure of the electronic device when the screen capture condition is that the user's screenshot operation is monitored.

[0155] FIG. 2F is a structural block diagram of a screen capture software of an electronic device according to an embodiment of the present application.

[0156] The layered architecture divides software into several layers, each of which has a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the mobile operating system is divided into four layers, from top to bottom, the screenshot and screen recording service layer, the cloud and system application (System Apps) layer, and the framework (Framework) layer.

[0157] The screenshot and screen recording service layer visually displays the operation process of the user's screenshot or screen recording, enabling the user to customize and operate the content of the screen capture as needed, which can include a series of services.

[0158] As shown in FIG. 2F, the screenshot and screen recording service layer can include preview, editing, guidance and other services; for example, when detecting the user's screenshot operation, if the floating control (such as a small window, a floating ball, a notification message, etc.) first appears in the screenshot, a guidance prompt box can be popped up to guide the user to open the control shielding setting, and a preview window of the first time period is generated to display the preview screenshot file, and the last screenshot file displayed in the preview window is saved after the first time period ends.

[0159] As shown in FIG. 2F, the cloud can include information configured by the application, such as a list of application programs that support the control shielding setting function. So that after the user captures the screen content, the system can automatically shield the floating control, so that the user can more conveniently realize the function of increasing the visual effect or protecting personal privacy when screen capturing.

[0160] As shown in FIG. 2F, the system application layer can include screen recording (ScreenRecoder), screenshot (Screenshot), settings (Settings) and other services. In the embodiment of the present application, the user can capture the screen by screenshot and screen recording, and remove the floating control in the first interface during screen capture by the on-off state of the control shielding setting in the settings, so that the user can start shielding the floating control by opening the settings during screen capture, greatly facilitating the user's operation process, and increasing the user's experience.

[0161] As shown in FIG. 2F, the framework layer can include a window management service (WindowManagerService, WMS) layer and a notification management (NotificationManagerService, NMS) layer.

[0162] Among them, the window management service layer can include window, window sorting and other services.

[0163] The window service is responsible for detecting, creating, managing and destroying all windows in the system. The window service can be used to continuously monitor the windows displayed in the user interface, and when a window is detected to be displayed in the user interface during screen capture, the window service can prompt the user whether to turn on the control shielding setting to hide the floating window in the user interface.

[0164] The window ordering service is responsible for ordering and managing the windows in the system according to specific conditions. When the window management service detects that the current control shielding setting is in the active state and is currently in the screen capture process, the window ordering service can be used to change the layer stacking order of the window, thereby realizing the function of removing or hiding the window during screen capture.

[0165] The notification management service layer can include notification management, display / hide services.

[0166] The notification management service is responsible for detecting, creating, managing and destroying all notification messages in the system. The notification management service can be used to continuously monitor the notification messages displayed in the user interface, and when a notification message is detected to be displayed in the user interface during screen capture, the notification management service can prompt the user whether to turn on the control shielding setting to hide the notification message in the user interface.

[0167] The display / hide service is responsible for ordering and managing the notification messages in the system according to specific conditions. When the notification management service detects that the current control shielding setting is in the active state and is currently in the screen capture process, the notification management service can be used to change the layer stacking order of the notification message, thereby realizing the function of removing or hiding the notification message during screen capture.

[0168] In a possible implementation, if the screen capture operation is a screenshot operation, in response to the screenshot operation, a preview window and a first button are also displayed in the first interface, and the user can switch the on-off state of the control shielding function by clicking the first button, and the system changes the screenshot content displayed in the preview window based on the different on-off states of the control shielding function. Specifically, when the user's screenshot operation is detected and it is detected that the control shielding setting is in the off state during the screenshot operation, the system can generate two screenshot contents, the first screenshot content is the screenshot content including the floating control, and the second screenshot content is the screenshot content not including the floating control, and the first screenshot content is displayed in the preview window by default. The user can switch the displayed screenshot content in the preview window from the first screenshot content to the second screenshot content by clicking the first button below the preview window, or switch back to the first screenshot content by clicking the first button again. When the preview window exists for T time and disappears, the system will save the screenshot content that is last displayed in the preview window.

[0169] Exemplarily, refer to FIG. 3A, which is a schematic diagram of a screenshot setting provided in an embodiment of the present application. FIG. 3A can include a first screenshot setting schematic interface 03A-1 and a second screenshot setting schematic interface 03A-2. As shown in the first screenshot setting schematic interface 03A-1, the first screenshot setting schematic interface 03A-1 can include a full-screen chat application interface (i.e., an application interface displaying multiple chat messages in the first screenshot setting schematic interface 03A-1) and a first floating window 2-01 (i.e., a floating window application of news in the dashed box in the first screenshot setting schematic interface 03A-1, in which multiple news messages are displayed). When the screenshot operation of the user is monitored and it is detected that the control shielding setting is in the off state (i.e., the system does not automatically shield the floating control in the screenshot), the system can generate a screenshot preview window to display the screenshot content without shielding the floating control. As shown in the second screenshot setting schematic interface 03A-2, the second screenshot setting schematic interface 03A-2 can include the first floating window 2-01, a screenshot preview window 2-03, and a first button 2-05. The screenshot preview window 2-03 can display the first screenshot content (i.e., the full-screen screenshot content of the first screenshot setting schematic interface 03A-1, which includes the screenshot content of the first floating window 2-01) for a duration of T. The first button 2-05 displays the text “one-key remove small window”, which is used to remove the floating control in the screenshot content. Further, the user can remove the floating control (e.g., the first floating window 2-01 displayed in the screenshot content) in the screenshot content displayed in the screenshot preview window 2-03 by clicking the first button 2-05. Refer to FIG. 3B, which is another screenshot setting schematic diagram provided in an embodiment of the present application. FIG. 3B can include a third screenshot setting schematic interface 03A-3 and a fourth screenshot setting schematic interface 03A-4. As shown in the third screenshot setting schematic interface 03A-3, when the user clicks the first button 2-05, the screenshot content displayed in the screenshot preview window 2-03 is switched from the first screenshot content to second screenshot content (i.e., the screenshot content with the first floating window 2-01 removed). The text displayed in the first button 2-05 is switched from “one-key remove small window” to “restore”. The user can switch the image displayed in the screenshot preview window 2-03 from the second screenshot content back to the first screenshot content by clicking the first button 2-05. After the duration of T, the screenshot preview window 2-03 is no longer displayed. The system will save the last screenshot content displayed in the screenshot preview window 2-03. As shown in the fourth screenshot setting schematic interface 03A-4, assuming that the last screenshot content displayed in the screenshot preview window 2-03 is the second screenshot content, the system finally saves the second screenshot content.In addition, the embodiment of the present application can be used in combination with the embodiment corresponding to FIGS. 2B-2D, that is, when the system detects that the shielding control setting is activated before the screenshot operation, the screenshot preview window 2-03 and the first button 2-05 can still be displayed in the interface, the second screenshot content is displayed in the screenshot preview window 2-03 by default, and restore is displayed in the first button 2-05 by default, the user can click the first button 2-05 to switch the displayed screen in the screenshot preview window 2-03 from the second screenshot content to the first screenshot content, or click the first button 2-05 again to switch the displayed screenshot content, and finally save the screenshot content displayed before the screenshot preview window 2-03 disappears, which is only one possible implementation manner, and the embodiment of the present application is not limited thereto.

[0170] In the embodiment corresponding to FIGS. 3A-3B, the specific scenario when the screen capture condition is that the screenshot operation for the first interface is received, and the control shielding setting is switched from the closed state to the activated state within the first time period is described in detail, and the specific interaction process in the system service can be referred to FIG. 3C, which is an interaction schematic diagram of the screenshot setting provided by the embodiment of the present application. The method can be applied to the interaction scenario of the screenshot setting. In the interaction schematic diagram, the user end, the screenshot service end, the cloud and the window service end can be included. The specific description of the service end in the embodiment of the present application can be referred to the embodiment described in FIG. 2F, and details are not repeated in the embodiment of the present application. The interaction process can include the following steps S401-S412.

[0171] Step S401: The screenshot service end requests configuration to the cloud.

[0172] Step S402: The cloud returns the configuration information to the screenshot service end.

[0173] Step S403: The user end sends a screenshot request to the screenshot service end.

[0174] Step S404: The screenshot service end sends a request for obtaining the top application window to the window service end.

[0175] Specifically, when the screenshot service end receives the screenshot request, the screenshot service end can send a request to the window service end to obtain the top application window information (that is, the application windows displayed in the current user interface).

[0176] Step S405: The window service end traverses the application window.

[0177] Specifically, when the window service receives the request for top-level application window information sent by the screenshot service, it can start traversing the layer hierarchy of all application windows, for example, by analyzing the Z-axis order of each window (i.e., the order of window stacking) to determine their display order on the user interface.

[0178] Step S406: The window service ranks the application windows.

[0179] Specifically, after identifying the layer hierarchy of each application window, the window service can rank the application windows according to the Z-axis order of the layer hierarchy to ensure that the window list is arranged in order from top to bottom, and generate a layer ranking list record the ranking.

[0180] Step S407: The window service returns the list to the screenshot service.

[0181] Specifically, after the layer hierarchy of the application windows is ranked, the window service can return the layer ranking list of the application windows to the screenshot service, based on which the screenshot service can selectively capture the top-level or other target application windows to achieve explicit screen capture or shielding functions.

[0182] Step S408: The screenshot service detects whether the application window is within the list range.

[0183] Specifically, the screenshot service checks whether each application window belongs to the application list that supports the shielding function described in step S402.

[0184] Step S409: The screenshot service caches the window screenshots.

[0185] Specifically, once it is confirmed that the application window in the currently displayed interface is in the application list that supports the shielding function, the screenshot service will cache the application window in the currently displayed interface.

[0186] Step S410: The screenshot service generates a preview screenshot.

[0187] Specifically, after caching the information, the screenshot service will generate a preview screenshot prompt box based on the cached application window information for a duration of t (e.g., 3 seconds), which is an undetermined thumbnail, and display a remove / restore control under the preview screenshot, based on the user's selection to determine the saved screenshot.

[0188] Step S411: The user sends a one-key remove / restore request to the screenshot service.

[0189] Specifically, after viewing the preview screenshot, the user can find some elements that are not desired to appear in the final screenshot, such as a floating ball, an application window, or a notification message. The user can determine the content of the final screenshot by touch operation on the one-key removal control / restore, so that the screenshot server removes the above-mentioned floating control or restores it to the original state.

[0190] Step S412: The screenshot server stores the screenshot.

[0191] Specifically, after the preview screenshot prompt box lasts for a period of time (i.e., the first time period) and disappears, the screenshot server stores the screenshot to generate a final screenshot file.

[0192] The specific implementation in steps S401-S403 can refer to the corresponding descriptions of steps S301-S303 in the aforementioned FIG. 2E, which will not be described here again.

[0193] (ii) If the screen capture operation is a screen recording operation 202.

[0194] Specifically, if the default state of the control shielding function is currently in the off state, when the system receives the screen recording operation of the user for the first interface, the system first detects the content displayed in the first interface. When it is first detected that the floating control (such as a floating window, a floating window, and a floating ball, etc.) is displayed in the interface of the screenshot, the system can display a control shielding function prompt box in the first interface to guide the user to switch the default state of the control shielding function from the off state to the active state, so that the user avoids the tedious step of manually adjusting the default setting every time when performing the screen recording operation in the future, and further improves the convenience and experience of the user when capturing the screen. For example, refer to FIG. 4A, which is a screen recording setting schematic diagram provided in an embodiment of the present application. FIG. 4A can include a first screen recording setting schematic interface 04A-1 and a second screen recording setting schematic interface 04A-2. As shown in the first screen recording setting schematic interface 04A-1, the first screen recording setting schematic interface 04A-1 displays a video application. The upper half of the video application is a video screen. A child is sitting in an elevator. The lower right corner of the video screen can include a video time progress bar 4-01 (currently showing 00:01 / 01:28). The middle part of the first screen recording setting schematic interface 04A-1 is the title information of the video screen. The lower part is other recommended videos. When the user starts the screen recording of the first screen recording setting schematic interface 04A-1 (for example, the user can start the screen recording through a shortcut key, or start the screen recording by clicking the screen recording button in the taskbar), if the system first identifies that there is a floating control such as a small window or a notification during the screen recording, a pop-up window can be displayed to prompt the user whether to one-key start the automatic hiding of the floating control. For example, as shown in the second screen recording setting schematic interface 04A-2, the second screen recording setting schematic interface 04A-2 can include a screen recording floating status bar 4-03. The screen recording floating status bar 4-03 can include a stop screen recording button, a microphone button, and a screen recording setting, etc. The video screen and the video time progress bar 4-01 have changed (for example, the video time progress bar 4-01 shows 00:11 / 01:28, and there is a dog in the video screen). When the system detects that there is a floating control (such as a WX chat message above the video screen) in the interface or pops up, the system can display a screen recording setting prompt window 4-02 in the display screen (that is, a prompt window displayed when the system first identifies the floating control such as a small window or a notification during the screen recording). The screen recording setting prompt window 4-02 can include a second start button 4-02A and a second cancel button 4-02B. The second start button 4-02A is used to start the control shielding setting during the screen recording. The second cancel button 4-02B is used to continue to maintain the original screen recording setting.Further, when the user clicks the second start button 4-02A, the notification message is not included in the screen of the finally generated screen recording file, as shown in FIG. 4B, which is a screen recording screen diagram provided in an embodiment of the present application. As shown in FIG. 4B, the screen recording file is finally determined, and can include a video time progress bar 4-01 and a screen recording time progress bar 4-04. When the playing progress of the screen recording time progress bar 4-04 in the screen recording file is 00:10 / 01:00, that is, the video time progress bar 4-01 in the video screen is 00:11 / 01:28, the screen displayed in the screen recording file does not include the notification message shown in the second setting interface 04A-2 before screen recording. The notification message can be displayed in the interface throughout the above screen recording process. Without affecting the normal use of the user, the user is provided with a convenient interference removal function and a privacy protection function during screen recording.

[0195] In a possible implementation, the user can also manually modify the default state of the control shielding function during screen recording in the setting function. Specifically, after the second start button 4-02A is clicked to update the control shielding setting during screen recording to the active state in the above embodiment, the control shielding setting during screen recording is also updated to the active state in the screen recording setting interface of the system. The user can also turn off the control shielding setting in the screen recording setting interface, as shown in FIG. 4C, which is a screen recording setting diagram provided in an embodiment of the present application. As shown in FIG. 4C, the screen recording setting diagram can include a screen recording setting first interface 04A-3 and a screen recording setting second interface 04A-4. The screen recording setting first interface 04A-3 and the screen recording setting second interface 04A-4 display the interface of the screen recording setting, which can include multiple settings, such as the knuckle screen recording button that can be clicked to start or stop the knuckle screen recording function, or the control shielding setting button during screen recording and the second control shielding setting button 4-05 during screen recording. As shown in the screen recording setting first interface 04A-3, the second control shielding setting button 4-05 is in the active state (that is, the second control shielding setting button 4-05 is displayed in the black selected state). The user can click the second control shielding setting button 4-05 to update the shielding setting from the active state to the inactive state, as shown in the screen recording setting second interface 04A-4. The second control shielding setting button 4-05 is currently displayed in the white unselected state. At this time, if the user performs the screen recording operation again, the screen recording screen displayed in the finally generated screen recording file will not shield the floating control (that is, the screen recording file will display the floating window, the notification message, the floating ball, and other controls).

[0196] The specific scenario when the screen capture condition is a screen recording operation and the floating control is first identified in the recording screen is described in detail in the embodiments corresponding to FIGS. 4A-4C. The specific interaction process in the system service can be referred to FIG. 4D, which is an interaction diagram of a first recording screen setting according to an embodiment of the present application. The method can be applied to the interaction scenario in which the floating control is first identified in the recording screen. The interaction diagram can include a user end, a recording screen server end, a cloud, a system setting end, a recording screen software end, a window server end, and a notification server end. The specific description of the above-mentioned service ends in the embodiments of the present application can be referred to the embodiments described in FIG. 2F. The embodiments of the present application are not repeated here. The interaction process can include the following steps S501-S515.

[0197] Step S501: The recording screen server end requests configuration from the cloud.

[0198] Step S502: The cloud returns the configuration information to the recording screen server end.

[0199] Step S503: The user end sends a start recording screen request to the recording screen server end.

[0200] Step S504: The recording screen server end sends a request for obtaining the switch state of the recording screen hidden irrelevant information to the system setting end.

[0201] Specifically, when the recording screen server end receives the recording screen request, the recording screen server end can send a request to the system setting end to obtain the switch state of the control shielding setting.

[0202] Step S505: The system setting end returns the switch state information to the recording screen server end.

[0203] Specifically, when the system setting end receives the request for obtaining the switch state of the recording screen hidden irrelevant information from the recording screen server end, the system setting end can determine the switch state of the control shielding setting by querying the system state, and return the information to the recording screen server end.

[0204] Step S506: The recording screen server end detects whether the first interface of the required recording screen includes a floating control.

[0205] Specifically, the recording screen server end detects whether the first interface of the required recording screen includes a floating control (such as a floating window, a floating ball, and an application notification). If the recording screen server end first identifies the floating control, a guide prompt box is generated in the first interface to guide the user to open the control shielding setting. If it is detected that it is not the first time, no response is made.

[0206] Step S507: The recording screen server end creates a guide prompt box.

[0207] Specifically, when the screen recording server first identifies the floating control in the first interface of the required screen recording, the screen recording server creates a guide prompt box in the first interface. The guide prompt box (for example, the screen recording setting prompt window 4-02 described in the embodiment corresponding to FIG. 4A) can display an open button and a cancel button. The open button is used to open the control shielding setting, and the cancel button is used to maintain the original screen recording experience.

[0208] Step S508: The screen recording server sends a screen recording hidden switch opening request to the system setting end.

[0209] Specifically, when the screen recording server detects that the user clicks the open button described in step S507, the screen recording server can send a screen recording hidden switch opening request to the system setting end, so as to update the control shielding setting to the active state.

[0210] Step S509: The screen recording server sends a start screen recording request to the screen recording software end.

[0211] Specifically, when the control shielding setting is updated from the closed state to the active state, the screen recording server can send a start screen recording request to the screen recording software end.

[0212] Step S510: The screen recording server sends a hidden window request to the notification server.

[0213] Specifically, when the screen recording server confirms that the user has selected to hide the floating control (that is, the control shielding setting is updated to the active state), the screen recording server can send a request to the window server to hide all windows.

[0214] Step S511: The screen recording server sends a hidden notification request to the window server.

[0215] Specifically, when the screen recording server confirms that the user has selected to hide the floating control (that is, the control shielding setting is updated to the active state), the screen recording server can send a request to the notification server to hide all notification messages.

[0216] Step S512: The screen recording software end starts screen recording.

[0217] Specifically, the screen recording software end starts screen recording for the first interface.

[0218] Step S513: The window server hides the small window and the floating ball.

[0219] Specifically, when the window server receives the hidden window request from the screen recording server, the window server executes the instruction to hide the small window and the floating ball, that is, hides the layers of the small window and the floating ball, so that the small window and the floating ball are not included in the screen recording process and the finally generated screen recording.

[0220] Step S514: notify the service end to hide all notifications.

[0221] Specifically, when the notification service end receives the hide notification request of the screen recording service end, the instruction of hiding all notifications is executed, i.e., the layer of the notification message is hidden, so that the notification message is not included in the screen recording process and the finally generated screen recording picture.

[0222] Step S515: the user end sends an end screen recording request to the screen recording service end.

[0223] Specifically, after screen recording for a certain time, the user can send an end screen recording request to the screen recording service end by clicking the end screen recording button.

[0224] Step S516: the screen recording service end sends a stop screen recording instruction to the system setting end.

[0225] Specifically, when the screen recording service end receives the end screen recording request sent from the user end, the screen recording service end will send a stop screen recording instruction to the system setting end to stop screen recording.

[0226] Step S517: the screen recording software end generates a screen recording.

[0227] Specifically, when the screen recording software end receives the stop screen recording instruction, the screen recording service end can stop screen recording and generate a corresponding screen recording file, which is generated based on the user's selection and system settings (for example, when the control shielding setting is in the active state, the generated screen recording file does not include the floating control), so as to improve the user's visual experience and protect the user's privacy.

[0228] Step S518: the screen recording service end sends a display window request to the window service end.

[0229] Step S519: the screen recording service end sends a display notification request to the notification service end.

[0230] Step S520: the window service end displays a small window and a floating ball.

[0231] Step S521: the notification service end displays all notifications.

[0232] The specific implementation of steps S501-S503 and steps S518-S521 in steps S501-S515 can refer to the related description of the foregoing FIG. 2E, which will not be described here again.

[0233] In a possible implementation, if the screen capturing operation is a screen recording operation, in response to the screen recording operation, a second button is further displayed in the screen recording setting, for changing the on-off state of the control shielding function during screen recording; for example, if the on-off state of the control shielding function is currently in the off state, the first interface displays a floating control; when the system detects that the user clicks the second button at a first time node in the screen recording process, the system switches the on-off state of the control shielding function from the off state to the active state, and in the screen recording picture after the first time node, the first interface no longer displays the floating control, and finally, in the generated screen recording file, each picture frame after the first time node also does not display the floating control.

[0234] Exemplarily, refer to FIG. 5A, which is a schematic diagram of a screen recording setting provided in an embodiment of the present application. The diagram can include a first screen recording setting interface 05A-1 and a second screen recording setting interface 05A-2. As shown in the first screen recording setting interface 05A-1, a video application is displayed, the upper half of which is a video screen, and a child is sitting in an elevator. A notification message from WX is displayed above the video screen, and a video time progress bar 4-01 (00:01 / 01:28 is currently displayed) is displayed in the lower right corner of the video screen. The middle part of the first screen recording setting interface 05A-1 is the title information of the video screen, and the lower part is other recommended videos. When the user starts recording the first screen recording setting interface 05A-1 (for example, the user can start recording by using a shortcut key or by clicking a recording button in the taskbar), the system can display a recording floating status bar 4-03 in the current interface, which can include a stop recording button, a microphone button, a recording setting, a current recording time, and the like. Assuming that the system detects that the current control shielding setting is in the off state, the WX notification message will be displayed in the finally saved recording file. Further, if it is necessary to shield the notification message or other floating controls during recording, the user can click the recording setting in the recording floating status bar 4-03 (three dots on the right side of the recording floating status bar 4-03) to open the control shielding setting during recording, as shown in the second screen recording setting interface 05A-2. The recording shielding setting button 4-03A is also displayed in the current interface, and the user can click the button to update the state of the control shielding setting. Assuming that the video time progress bar 4-01 displays 00:11 / 01:28, the system detects that the state of the control shielding setting is switched from the off state to the active state, and the system shields the floating controls after the control shielding setting is activated (i.e., the WX notification message) in the currently displayed user interface, and the floating controls are not included in the finally generated first file. In a possible embodiment, refer to FIG. 5B, which is another schematic diagram of a screen recording screen provided in an embodiment of the present application. The diagram can include a first screen recording screen interface 05A-3 and a second screen recording screen interface 05A-4. The video time progress bar 4-01 and the recording time progress bar 4-04 can be included in the first screen recording screen interface 05A-3 and the second screen recording screen interface 05A-4. The time progress bars displayed in the two different interfaces are different. The first screen recording screen interface 05A-3 is a schematic diagram when the control shielding setting is in the off state, in which the video time progress bar 4-01 displays 00:01 / 01:28, the recording time progress bar 4-04 displays 00:01 / 01:00, and the WX notification message is displayed on the video screen.Further, it is assumed that the second time interface 05A-4 of the screen recording picture is a schematic interface for screen recording after the control shielding setting is activated, the video time progress bar 4-01 is displayed as 00:11 / 01:28, the screen recording time progress bar 4-04 is displayed as 00:10 / 01:00, and no notification message of WX is displayed on the video picture. In addition, the embodiments of the present application can be used in combination with the embodiments corresponding to FIGS. 4A-4C, that is, when the system detects that the screen recording is in the activated state, the shielding control setting can still be closed by clicking the above-mentioned screen recording shielding setting button 4-03A. The above is only one possible implementation manner, which is not limited in the embodiments of the present application.

[0235] In the embodiments corresponding to FIGS. 5A-5B, the specific scenarios of the screen capture condition being the screen recording operation and the user setting the switch state of the control shielding setting of the screen recording floating status bar are described in detail. The specific interaction process in the system service can be referred to FIG. 5C, which is an interaction schematic diagram of a screen recording floating status bar setting provided by an embodiment of the present application. The method can be applied to the interaction scenarios of the screen recording floating status bar setting control shielding setting switch state. The interaction schematic diagram can include a user end, a screen recording service end, a cloud, a screen recording software end, a window service end and a notification service end. The specific description of the above-mentioned service ends in the embodiments of the present application can be referred to the embodiments described in FIG. 2F, which is not repeated here. The interaction process can include the following steps S601-S617.

[0236] Step S601: The screen recording service end requests configuration to the cloud.

[0237] Step S602: The cloud returns the configuration information to the screen recording service end.

[0238] Step S603: The user end sends a start screen recording request to the screen recording service end.

[0239] Step S604: The screen recording service end sends an execution screen recording instruction to the screen recording software end.

[0240] Specifically, after receiving the start screen recording request of the user, the screen recording service end can send an execution screen recording instruction to the screen recording software end to start the screen recording of the first interface.

[0241] Step S605: The screen recording service end monitors whether to hide the small window, the floating ball and the notification.

[0242] Specifically, after starting the screen recording of the first interface, the screen recording service end can monitor the switch state of the control shielding setting in the system to determine whether to hide the floating control such as the small window, the floating ball and the notification.

[0243] Step S606: The screen recording server sends a hidden notification request to the notification server.

[0244] Specifically, after the screen recording server confirms that the user has selected to hide the floating control (i.e., after the control shielding setting update is in the active state), the screen recording server can send a request to the notification server to hide all notification messages.

[0245] Step S607: The screen recording server sends a hidden window request to the window server.

[0246] Specifically, after the screen recording server confirms that the user has selected to hide the floating control (i.e., after the control shielding setting update is in the active state), the screen recording server can send a request to the window server to hide all windows.

[0247] Step S608: The notification server hides all notifications.

[0248] Specifically, after the window server receives the hidden window request from the screen recording server, it executes the instruction to hide the small window and the floating ball, i.e., hides the layers of the small window and the floating ball, so that the small window and the floating ball are not included in the current screen recording process and the final generated screen recording.

[0249] Step S609: The window server hides the small window and the floating ball.

[0250] Specifically, after the notification server receives the hidden notification request from the screen recording server, it executes the instruction to hide all notifications, i.e., hides the layers of the notification messages, so that the notification messages are not included in the current screen recording process and the final generated screen recording.

[0251] Step S610: The screen recording software starts screen recording.

[0252] Specifically, the screen recording software starts screen recording for the first interface, and the screen recording at this time captures the screen recording picture with the hidden floating control.

[0253] Step S611: The user terminal sends an end screen recording request to the screen recording server.

[0254] Specifically, after a certain period of screen recording, the user can send an end screen recording request to the screen recording server by clicking the end screen recording button.

[0255] Step S612: The screen recording server sends a stop screen recording instruction to the system setting terminal.

[0256] Specifically, after the screen recording server receives the end screen recording request from the user terminal, the screen recording server will send a stop screen recording instruction to the system setting terminal to stop screen recording.

[0257] Step S613: The screen recording software end generates a screen recording.

[0258] Specifically, when the screen recording software end receives the screen recording stopping instruction, the screen recording service end can stop screen recording and generate a corresponding screen recording file, which is generated based on the user's selection and system settings (for example, when the control shielding setting is in the active state, the generated screen recording file does not include the floating control) to improve the user's visual experience and protect the user's privacy.

[0259] Step S614: The screen recording service end sends a display notification request to the window service end.

[0260] Step S615: The screen recording service end sends a display window request to the notification service end.

[0261] Step S616: The notification service end displays all notifications.

[0262] Step S617: The window service end displays the small window and the floating ball.

[0263] The specific implementation of steps S601-S603 and steps S614-S617 in the above steps S601-S617 can refer to the related description of the foregoing FIG. 4D, which will not be described here.

[0264] The above describes the method of the embodiment of the application in detail, and the related device of the embodiment of the application is provided below.

[0265] Please refer to FIG. 6, which is a structural schematic diagram of a screen capture device provided by an embodiment of the application. The screen capture device 70 can include a first interface display unit 701, a receiving screen capture operation unit 702, a first file generation unit 703, a second file unit 704, and a default state unit 705. The detailed description of each unit is as follows.

[0266] The first interface display unit 701 displays a first interface on the display screen, and the first interface includes a full-screen displayed target content and one or more floating controls. The target content is a desktop content or a content of a target application.

[0267] In a possible implementation, the floating control is one or more of a floating window, a floating ball, and a notification message.

[0268] The receiving screen capture operation unit 702 is configured to receive a screen capture operation of a user on the first interface.

[0269] The first file unit 703 is configured to generate a first file in response to the screen capturing operation if it is detected that the control shielding function of the electronic device is in an activated state. The first file includes one or more image frames captured from the first interface, and at least one of the one or more image frames does not display the one or more floating controls.

[0270] In a possible implementation, the screen capturing operation is a screenshot operation. The first file unit 703 is specifically configured to:

[0271] In response to the screenshot operation, a preview window is displayed in the first interface, and the preview window includes screenshot content. The screenshot content is an image frame captured from the first interface, and the one or more floating controls are displayed in the screenshot content.

[0272] If it is detected that the control shielding function is in the activated state, the one or more floating controls in the screenshot content are removed to generate the first file.

[0273] In a possible implementation, the first interface further displays a first button. The first button is used to control the on-off state of the control shielding function. If the control shielding function is currently in an off state, the first file unit 703 is specifically configured to:

[0274] If a first operation acting on the first button is detected, the control shielding function is switched from the off state to the activated state.

[0275] In response to the first operation, the one or more floating controls in the screenshot content displayed in the preview window are removed to generate the first file, and the control shielding function is switched from the activated state to the off state.

[0276] In a possible implementation, the electronic device further includes a gallery. The preview window and the first button disappear after being displayed in the first interface for a first duration.

[0277] After the preview window and the first button disappear, the screenshot content displayed in the preview window before the preview window disappears is saved in the gallery.

[0278] In a possible implementation, the first file unit 703 is specifically configured to:

[0279] The layer level of the one or more floating controls in the screenshot content is adjusted to a first level to generate the first file. The first level is lower than the layer level of the target content in the screenshot content.

[0280] In a possible implementation, if the screen capturing operation is a screen recording operation, the first file generating unit 703 is specifically configured to:

[0281] In response to the screen recording operation, screen recording is performed on the first interface to generate a plurality of image frames;

[0282] If it is detected that the control shielding function is in the active state, the one or more floating controls in each of the plurality of image frames are removed to generate the first file.

[0283] In a possible implementation, when screen recording is performed, a second button is further displayed in the first interface, the second button is used to control the on-off state of the control shielding function, and if the control shielding function is currently in the off state, the first file generating unit 703 is specifically configured to:

[0284] receiving, at a first time node, a third operation performed on the second button, and switching the control shielding function from the off state to the active state, the first time node being one time node in a screen recording process;

[0285] In response to the third operation, the one or more floating controls in each of the plurality of image frames after the first time node are removed to generate the first file, and the control shielding function is switched from the active state to the off state.

[0286] In a possible implementation, if it is detected that the control shielding function is in the active state when screen capturing is performed, the one or more floating controls displayed in the first interface are removed.

[0287] The second file unit 704 is configured to, if the control shielding function is currently in the active state,

[0288] If a second operation performed on the first button is detected, the control shielding function is switched from the active state to the off state;

[0289] The one or more floating controls are restored to the screenshot content displayed in the preview window to generate a second file, the second file being the screenshot content including the one or more floating controls.

[0290] The default state unit 705 is configured to, if the default state of the control shielding function is currently in the off state,

[0291] When it is detected that the content displayed in the first interface meets a preset condition, a third button is displayed in the first interface, the third button being used to control the default state of the control shielding function.

[0292] receiving a fourth operation of the third button by a user;

[0293] in response to the fourth operation, switching the default state of the control shielding function from the off state to the active state.

[0294] To facilitate understanding of the embodiments of the present application, first introduce the exemplary electronic device provided in the embodiments of the present application.

[0295] Please refer to FIG. 7, which is a schematic diagram of the hardware structure of an electronic device provided in the embodiments of the present application. The electronic device 100 is a smart terminal device, which can be of various types, and the embodiments of the present application do not limit the specific type thereof. For example, the terminal device can be a mobile phone, and can also include a tablet computer, a desktop computer, a desktop computer with a touch-sensitive surface or a touch panel, a laptop, a handheld computer, a notebook computer, a smart screen, a wearable device (such as a smart watch, a smart bracelet, etc.), an augmented reality (AR) device, a virtual reality (VR) device, an artificial intelligence (AI) device, a car machine, a smart earphone, a game machine, and can also be an internet of things (IOT) device or a smart home device such as a smart water heater, a smart lamp, a smart air conditioner, etc. Please refer to FIG. 7, and the various constituent components of the electronic device 100 will be introduced in detail below in combination with FIG. 7:

[0296] The electronic device 100 can include a processor 101, a memory 102, a wireless communication module 103, a mobile communication module 104, an antenna 103A, an antenna 104A, a power switch 105, a sensor module 106, a focusing motor 107, a camera 108, a display screen 109, etc. Among them, the sensor module 106 can include a gyroscope sensor 106A, an acceleration sensor 106B, an ambient light sensor 106C, an image sensor 106D, a distance sensor 106E, etc. Among them, the wireless communication module 103 can include a WLAN communication module, a Bluetooth communication module, etc. The above-mentioned multiple parts can transmit data through a bus.

[0297] The processor 101 can include one or more processing units, for example: the processor 101 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. Among them, different processing units can be independent devices, or can be integrated in one or more processors. In the embodiments of the present application, the processor 101 not only controls the normal operation of the device, but also is responsible for data processing in the screenshot and screen recording operation; the processor 101 can also process image and video data through multiple processing units such as application processor (AP), image signal processor (ISP) and digital signal processor (DSP), and remove the small window, floating ball, notification and other messages that appear during screenshot or screen recording based on user operation, ensuring efficient execution of screenshot and screen recording functions and improving user experience.

[0298] The memory 102 can be used to store computer executable program codes, which can include instructions. The processor 101 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the memory 102. The memory 102 can include a program storage area and a data storage area. In specific implementation, the memory 102 can include a high-speed random access memory, and can also include a non-volatile memory, for example, one or more disk storage devices, flash memory devices or other non-volatile solid-state storage devices. In the embodiments of the present application, the memory 102 can be used to temporarily store or permanently store image or video files generated by screenshot and screen recording.

[0299] The wireless communication function of the electronic device 100 can be realized through the antenna 103A, the antenna 104A, the mobile communication module 104, the wireless communication module 103, the modem processor and the baseband processor, etc.

[0300] The antenna 103A and the antenna 104A can be used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization rate of the antenna.

[0301] The mobile communication module 104 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the electronic device 100. The mobile communication module 104 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 104 can receive electromagnetic waves by the antenna 104A, and perform filtering, amplification, etc. on the received electromagnetic waves, and transfer the processed signals to the modem processor for demodulation. The mobile communication module 104 can also amplify the signals modulated by the modem processor, and radiate the signals as electromagnetic waves through the antenna 104A.

[0302] 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, or displays an image or a video through the display screen 109.

[0303] The wireless communication module 103 can provide a solution including wireless local area networks (WLAN), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the electronic device 100. The wireless communication module 103 can be one or more devices integrated with at least one communication processing module. The wireless communication module 103 receives electromagnetic waves via the antenna 103A, performs frequency modulation and filtering on the electromagnetic wave signals, and transmits the processed signals to the processor 101. The wireless communication module 103 can also receive signals to be transmitted from the processor 101, perform frequency modulation and amplification, and radiate the signals as electromagnetic waves through the antenna 103A.

[0304] The power switch 105 can be used to control the power supply of the electronic device 100.

[0305] The gyroscope sensor 106A can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 106A. The gyroscope sensor 106A can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 106A detects the angle of shaking of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and makes the lens offset the shaking of the electronic device 100 by reverse movement to achieve anti-shake. The gyroscope sensor 106A can also be used for navigation and motion sensing game scenarios.

[0306] The acceleration sensor 106B can detect the magnitude of acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. The acceleration sensor 106B can also be used to identify the posture of the electronic device, for example, the acceleration sensor 106B can be applied to landscape / portrait screen switching, pedometer, and other applications.

[0307] The ambient light sensor 106C is used to sense the brightness of the ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 109 according to the sensed brightness of the ambient light. The ambient light sensor 106C can also be used to automatically adjust the white balance when shooting. In the embodiments of the present application, the ambient light sensor 106C can be used to adjust the brightness of the display screen, which indirectly affects the visual effect of screen capture and screen recording.

[0308] The image sensor 106D, also known as a photosensitive element, can convert the light image on the photosensitive surface into an electrical signal in a corresponding proportional relationship by using the photoelectric conversion function of the photoelectric device. The image sensor can be a charge coupled device (CCD) sensor or a complementary metal-oxide-semiconductor (CMOS) sensor.

[0309] The distance sensor 106E can be used to measure distance. The electronic device 100 can measure distance by infrared or laser. In some shooting scenarios, the electronic device 100 can use the distance sensor 106E to measure distance to achieve fast focusing.

[0310] The focus motor 107 can be used for fast focusing. The electronic device 100 can control the movement of the lens by the focus motor 107 to achieve automatic focusing.

[0311] The electronic device 100 can achieve the shooting function by the ISP, the camera 108, the video codec, the GPU, the display screen 109, and the application processor.

[0312] ISP is used to process data fed back by camera 108. For example, when taking a photo, the shutter is opened, 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 and is converted into a visible image. ISP can also optimize the noise, brightness, and color of the image. ISP can also optimize the exposure, color temperature, and other parameters of the shooting scene. In some embodiments, ISP can be provided in camera 108.

[0313] Camera 108 can be used to capture still images or video. Objects generate optical images through a lens and project onto an image sensor. The image sensor can convert the light signal into an electrical signal, and then transmit the electrical signal to the ISP to convert into a digital image signal. The ISP can output the digital image signal to the DSP for processing. The DSP converts the digital image signal into a standard RGB, YUV, or other format image signal. In some embodiments, electronic device 100 can include one or N cameras 193, where N is a positive integer greater than 1.

[0314] A video codec is used to compress or decompress digital images. Electronic device 100 can support one or more image codecs. In this way, electronic device 100 can open or save pictures or videos in multiple encoding formats.

[0315] Electronic device 100 can implement display functions through GPU, display screen 109, and application processor, etc. GPU is a microprocessor for image processing, connected to display screen 109 and application processor. GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 101 can include one or more GPUs that execute program instructions to generate or change display information.

[0316] The display screen 109 is configured to display images, videos, and the like. The display screen 109 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 MicroLed, 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 109, where N is a positive integer greater than 1. In the embodiments of the present application, the display screen 109 is not only a window for user interaction with the device, but also a direct output object for the screenshot and screen recording functions. Through the display panel, the user can preview the screen content to be captured or recorded in real time to ensure that the target content meets the user's needs.

[0317] It can be understood that the structure shown 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 shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0318] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits of hardware in the processor or instructions in the form of software. The method steps disclosed in conjunction with the embodiments of the present application can be directly embodied as hardware processor execution, or executed by a combination of hardware and software modules in the processor.

[0319] The present application also provides a terminal device, which can include a memory and a processor. The memory can be used to store a computer program, and the processor can be used to call the computer program in the memory to enable the terminal device to execute the method performed by the terminal device in any one of the above embodiments.

[0320] The present application also provides a chip system, which includes at least one processor for realizing the functions involved in the terminal device side in any one of the above embodiments.

[0321] In a possible design, the chip system further includes a memory configured to store program instructions and data, and the memory is located in the processor or outside the processor.

[0322] The chip system can be composed of a chip or include a chip and other discrete devices.

[0323] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit or the like. When implemented by software, the processor can be a general-purpose processor, and the implementation is achieved by reading software code stored in the memory.

[0324] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor or arranged separately from the processor, and the embodiments of the present application do not make any limitation. For example, the memory can be a non-transient processor such as a read-only memory (ROM), which can be integrated on the same chip as the processor or arranged on different chips respectively, and the embodiments of the present application do not make any limitation on the type of the memory and the arrangement of the memory and the processor.

[0325] For example, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD) or other integrated chip.

[0326] The present application further provides a computer program product, which includes a computer program (also referred to as code or instruction), and when the computer program is run, the computer program causes a computer to execute the method performed by the terminal device in any one of the above embodiments.

[0327] The application further provides a computer readable storage medium storing a computer program (also referred to as code or instructions). When the computer program is executed, the computer performs the method executed by the terminal device in any one of the above embodiments.

[0328] The embodiments of the application can be combined in any manner to achieve different technical effects.

[0329] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium. The computer readable storage medium can be any available medium accessible by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media sets. The available media can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk (SSD)), etc.

[0330] Those of ordinary skill in the art can understand that all or part of the processes in the above embodiments can be implemented by a computer program to instruct the relevant hardware, and the program can be stored in a computer readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The storage medium includes ROM or random access memory (RAM), magnetic disk or optical disk, and various media that can store program codes.

[0331] In summary, the above only describes the embodiments of the technical solutions of the application, and is not used to limit the protection scope of the application. Any modifications, equivalent replacements, improvements, etc. made according to the disclosure of the application shall be included in the protection scope of the application.

Claims

1. A method of screen capture, characterized by, The method is applied to an electronic device, and the electronic device comprises a display screen. The display screen displays a first interface, and the first interface comprises target content and one or more floating controls in full-screen display, wherein the target content is desktop content or content of a target application. A screen capture operation of a user on the first interface is received. If it is monitored that a control shielding function of the electronic device is in an activated state, a first file is generated in response to the screen capture operation, and the first file comprises one or more image frames captured on the first interface, and at least one of the one or more image frames does not display the one or more floating controls.

2. The method of claim 1, wherein, If the screen capture operation is a screenshot operation, and if it is monitored that the control shielding function of the electronic device is in the activated state, the first file is generated in response to the screen capture operation, comprising: In response to the screenshot operation, a preview window is displayed in the first interface, and the preview window comprises screenshot content, wherein the screenshot content is an image frame obtained by taking a screenshot of the first interface, and the one or more floating controls are displayed in the screenshot content. If it is monitored that the control shielding function is in the activated state, the one or more floating controls in the screenshot content are removed to generate the first file.

3. The method of claim 2, wherein, The first interface further displays a first button, and the first button is used to control the on-off state of the control shielding function. If it is monitored that a first operation on the first button is performed, the control shielding function is switched from the off state to the activated state. In response to the first operation, the one or more floating controls in the screenshot content displayed in the preview window are removed to generate the first file, and the control shielding function is switched from the activated state to the off state.

4. The method of claim 3, wherein, If the control shielding function is currently in the activated state, the method further comprises: If a second operation on the first button is monitored, the control shielding function is switched from the activated state to the off state. The one or more floating controls are restored to the screenshot content displayed in the preview window to generate a second file, and the second file is the screenshot content comprising the one or more floating controls.

5. The method according to claim 3 or 4, characterized in that, The electronic device further comprises a gallery, and the preview window and the first button disappear after being displayed in the first interface for a first time length. After the preview window and the first button disappear, the screenshot content displayed in the preview window before the preview window disappears is saved in the gallery.

6. The method according to any one of claims 2-5, characterized in that, The one or more floating controls in the screenshot content are removed to generate the first file, comprising: adjust a layer level of the one or more floating controls in the screenshot content to a first level to generate the first file, the first level being lower than a layer level of the target content in the screenshot content.

7. The method according to any one of claims 1 to 6, characterized in that, If the screen capture operation is a screen recording operation, and if the control shielding function is detected to be in the activated state, the first file is generated in response to the screen recording operation, including: In response to the screen recording operation, the first interface is recorded to generate a plurality of image frames. If the control shielding function is detected to be in the activated state, the one or more floating controls in each of the plurality of image frames are removed to generate the first file.

8. The method of claim 7, wherein, The first interface further displays a second button during the screen recording, the second button being used to control the on-off state of the control shielding function; if the control shielding function is currently in the off state, and if the control shielding function is detected to be in the activated state, the one or more floating controls in the plurality of image frames are removed to generate the first file, including: A third operation acting on the second button is received at a first time node, the control shielding function is switched from the off state to the activated state at the first time node, the first time node being one time node in the screen recording process; In response to the third operation, the one or more floating controls in each of the plurality of image frames after the first time node are removed to generate the first file, and the control shielding function is switched from the activated state to the off state.

9. The method according to any one of claims 2-8, characterized in that, If the default state of the control shielding function is currently in the off state, the method further includes: When it is detected that the content displayed in the first interface meets a preset condition, a third button is displayed in the first interface, the third button being used to control the default state of the control shielding function; A fourth operation of a user acting on the third button is received; In response to the fourth operation, the default state of the control shielding function is switched from the off state to the activated state.

10. The method according to any one of claims 1-9, characterized in that, The method further includes: If the control shielding function is detected to be in the activated state during the screen capture, the one or more floating controls displayed in the first interface are removed.

11. The method according to any one of claims 1-10, characterized in that, The floating control is one or more of a floating window, a floating ball, and a notification message.

12. An apparatus for screen capture, characterized by The device includes a display screen; the device includes: A first interface display unit, the display screen displays a first interface, the first interface includes target content displayed in full screen and one or more floating controls, the target content being desktop content or content of a target application; A screen capture operation receiving unit configured to receive a screen capture operation of a user on the first interface; A first file generation unit configured to, if a control shielding function of the electronic device is detected to be in an activated state, generate a first file in response to the screen capture operation; the first file includes one or more image frames captured from the first interface, and at least one of the one or more image frames does not display the one or more floating controls.

13. The apparatus of claim 12, wherein, If the screen capturing operation is a screenshot operation, the first file generation unit is specifically configured to: In response to the screenshot operation, display a preview window in the first interface, the preview window including screenshot content, wherein the screenshot content is one image frame obtained by taking a screenshot of the first interface, and the one or more floating controls are displayed in the screenshot content; If it is monitored that the control shielding function is in the activated state, remove the one or more floating controls in the screenshot content to generate the first file.

14. The apparatus of claim 13, wherein, The first interface also displays a first button, and the first button is used to control the on-off state of the control shielding function; if the control shielding function is currently in the off state, the first file generation unit is specifically configured to: If a first operation acting on the first button is monitored, the control shielding function is switched from the off state to the activated state; In response to the first operation, the one or more floating controls displayed in the screenshot content in the preview window are removed to generate the first file, and the control shielding function is switched from the activated state to the off state.

15. The apparatus of claim 14, wherein, If the control shielding function is currently in the activated state, the device further includes: A second operation unit, if a second operation acting on the first button is monitored, the control shielding function is switched from the activated state to the off state; A second file unit, configured to restore the one or more floating controls to the screenshot content displayed in the preview window to generate a second file, the second file being the screenshot content including the one or more floating controls.

16. The apparatus of claim 14 or 15, wherein, The electronic device further includes a gallery; the preview window and the first button disappear after being displayed in the first interface for a first time length; the device further includes: A content saving unit, when the preview window and the first button disappear, the screenshot content displayed before the preview window disappears is saved into the gallery.

17. The apparatus of any one of claims 13-16, wherein, The first file generation unit is specifically configured to: Adjust the layer level of the one or more floating controls in the screenshot content to a first level to generate the first file, the first level being lower than the layer level of the target content in the screenshot content.

18. The apparatus of any one of claims 12-17, wherein, If the screen capturing operation is a screen recording operation, the first file generation unit is specifically configured to: In response to the screen recording operation, record the first interface to generate a plurality of image frames; If it is monitored that the control shielding function is in the activated state, remove the one or more floating controls in each of the plurality of image frames to generate the first file.

19. The apparatus of claim 18, wherein, The first interface also displays a second button during screen recording, and the second button is used to control the on-off state of the control shielding function; if the control shielding function is currently in the off state, the first file generation unit is specifically configured to: Receive a third operation acting on the second button at a first time node, switch the control shielding function from the off state to the activated state, and the first time node is one time node in the screen recording process; In response to the third operation, the one or more floating controls in each image frame after the first time node in the plurality of image frames are removed to generate the first file, and the control shielding function is switched from the active state to the closed state.

20. The apparatus of any one of claims 13-19, wherein, If the default state of the control shielding function is currently in the closed state, the device further comprises: displaying a third button unit, when it is detected that the content displayed in the first interface meets the preset condition, a third button is displayed in the first interface, and the third button is used to control the default state of the control shielding function; receiving a fourth operation unit for receiving a fourth operation of the user on the third button; In response to the fourth operation unit, in response to the fourth operation, the default state of the control shielding function is switched from the closed state to the active state.

21. The apparatus of any of claims 12-20, wherein, The device further comprises: If it is detected that the control shielding function is in the active state during screen capture, the one or more floating controls displayed in the first interface are removed.

22. The apparatus of any one of claims 12-21, wherein, The floating control is one or more of a floating window, a floating ball and a notification message.

23. A computer storage medium, comprising, The computer storage medium stores a computer program, and the computer program is executed by a processor to implement the method in any one of claims 1-11.

24. A computer program, characterized in that, The computer program includes instructions, and when the computer program is executed by a computer, the computer executes the method in any one of claims 1-11.