CN113868269A - Screenshot method and device, electronic equipment and readable storage medium - Google Patents

Screenshot method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN113868269A
CN113868269A CN202111044334.5A CN202111044334A CN113868269A CN 113868269 A CN113868269 A CN 113868269A CN 202111044334 A CN202111044334 A CN 202111044334A CN 113868269 A CN113868269 A CN 113868269A
Authority
CN
China
Prior art keywords
screenshot
interface
content
input
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111044334.5A
Other languages
Chinese (zh)
Inventor
魏峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202111044334.5A priority Critical patent/CN113868269A/en
Publication of CN113868269A publication Critical patent/CN113868269A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a screenshot method, a screenshot device, electronic equipment and a readable storage medium, and belongs to the technical field of communication. The method comprises the following steps: receiving a first input in a case where a first interface is displayed; generating a first screenshot corresponding to the first interface in response to the first input; and under the condition that the content of the first interface is updated, updating the content of the first screenshot according to the corresponding relation between the first interface and the first screenshot.

Description

Screenshot method and device, electronic equipment and readable storage medium
Technical Field
The application belongs to the technical field of communication, and particularly relates to a screenshot method, a screenshot device, electronic equipment and a readable storage medium.
Background
At present, when a user needs to view content in an interface, for example, dynamically updated content, the user may first find an icon of an application program to which the interface belongs on a desktop of an electronic device, then trigger the electronic device to display a main interface of the application program by clicking the icon, then find an entry identifier of the interface to be viewed in the main interface, and trigger the electronic device to display the interface by clicking the entry identifier, so that the user may view the content in the interface.
However, according to the above method, since the user needs to input for many times to trigger the content in the display interface of the electronic device, the operation process of displaying the content by the electronic device is complicated.
Disclosure of Invention
The embodiment of the application aims to provide a screenshot method, a screenshot device, electronic equipment and a readable storage medium, and can solve the problem that the operation process of displaying content by the electronic equipment is complicated.
In a first aspect, an embodiment of the present application provides a screenshot method, including: receiving a first input in a case where a first interface is displayed; generating a first screenshot corresponding to the first interface in response to the first input; and under the condition that the content of the first interface is updated, updating the content of the first screenshot according to the corresponding relation between the first interface and the first screenshot.
In a second aspect, an embodiment of the present application provides an apparatus for screenshot, where the apparatus includes a display module, a receiving module, a generating module, and an updating module; the receiving module is used for receiving first input under the condition that the display module displays the first interface; the generating module is used for responding to the first input received by the receiving module and generating a first screenshot corresponding to the first interface; and the updating module is used for updating the content of the first screenshot according to the corresponding relation between the first interface and the first screenshot under the condition that the content of the first interface is updated.
In a third aspect, embodiments of the present application provide an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, the first input can be received under the condition that the first interface is displayed; generating a first screenshot corresponding to the first interface in response to the first input; and under the condition that the content of the first interface is updated, updating the content of the first screenshot according to the corresponding relation between the first interface and the first screenshot. By the scheme, when a user needs to view dynamically updated content in one interface (for example, the first interface), because the electronic device can generate the screenshot corresponding to the first interface by receiving input of the user under the condition that the first interface is displayed, and can update the content of the screenshot according to the corresponding relation between the first interface and the screenshot under the condition that the content of the first interface is updated, the user can view the dynamically updated content in the interface through the screenshot corresponding to the interface without needing to view the dynamically updated content in the first interface after triggering the first interface like the conventional technology, the operation process of displaying the content by the electronic device can be simplified.
Drawings
Fig. 1 is a schematic diagram of a screenshot method provided in an embodiment of the present application;
fig. 2 is one of schematic interfaces of an application of the screenshot method provided in the embodiment of the present application;
fig. 3 is a second schematic interface diagram of an application of the screenshot method according to the embodiment of the present application;
FIG. 4 is a schematic diagram of a screenshot device provided in an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a hardware schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second 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. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The screenshot method, apparatus, electronic device and readable storage medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
The screenshot method provided by the embodiment of the application can be applied to scenes of dynamically updated contents in a user demand viewing interface.
Illustratively, taking a dynamic two-dimensional code in one interface (hereinafter referred to as interface a, for example, the first interface in this embodiment) as an example, when a user needs to view or use the dynamic two-dimensional code in the interface (hereinafter referred to as interface a), when the user needs the electronic device to display an updated two-dimensional code, the user may trigger the electronic device to generate a screenshot (hereinafter referred to as screenshot a, for example, the first screenshot in this embodiment) corresponding to the interface a by inputting (for example, the first input in this embodiment) when the electronic device displays the interface a, and when the two-dimensional code in the interface a is updated, the electronic device may update the two-dimensional code in the screenshot a according to a corresponding relationship between the interface a and the screenshot a. Therefore, the user can check the updated content of the interface through the screenshot of the interface, and the operation process of displaying the content by the electronic equipment can be simplified.
With reference to fig. 1, an embodiment of the present application provides a screenshot method, which may include steps 101 to 103 described below. The following is an exemplary description taking the electronic device as an example to perform the method.
Step 101, the electronic device receives a first input of a user under the condition that a first interface is displayed.
Optionally, in this embodiment of the application, the first interface may be an interface including dynamically updated content in any application program in the electronic device.
Optionally, in this embodiment of the application, it is assumed that the first interface is an interface in an application, and the electronic device may obtain the update content through the application, for example, the electronic device may obtain the update content through a server of the application. The specific method for acquiring the updated content by the electronic device will be described in detail in the following embodiments, and details are not repeated herein to avoid repetition.
Optionally, in this embodiment of the application, the first input may be any form of input that can trigger a screen capture of the electronic device, such as touch input, voice input, or input to a function key (e.g., a volume key, a power key), and may be determined specifically according to actual usage requirements, and this embodiment of the application is not limited.
Optionally, in this embodiment of the application, the first input may be a default screen capture input of the system, or may be an input that is set by the user according to actual needs and is different from the default screen capture input of the system, for example, the default screen capture input of the system is that the user presses a power key and a volume key of the electronic device at the same time, and the screen capture input set by the user is that the user presses a power key and a volume plus key of the electronic device at the same time.
Optionally, in this embodiment of the application, when the target input is a screen capture input that is default to the system, after the electronic device receives the first input, the electronic device may identify whether the first interface includes dynamically updated content, and if the first interface includes the dynamically updated content, the electronic device may pop up a prompt window to prompt a user to capture a screen capture that can be dynamically updated (i.e., associate the first screen capture with the first interface); and if the first interface does not comprise the dynamically updated content, the electronic equipment executes the conventional screenshot operation. When the first input is a screenshot input set by a user, the electronic device can directly intercept the screenshot which can be dynamically updated after the electronic device receives the first input.
Step 102, the electronic device responds to the first input and generates a first screenshot corresponding to the first interface.
In the embodiment of the application, after the electronic equipment receives the first input, a screenshot function of the electronic equipment can be called, and a first interface carries out screenshot to obtain a first screenshot; or the data of the first interface can be acquired, and a first screenshot is generated according to the acquired data. The method can be determined according to actual use requirements, and the embodiment of the application is not limited.
And 103, under the condition that the content of the first interface is updated, the electronic equipment updates the content of the first screenshot according to the corresponding relation between the first interface and the first screenshot.
In the embodiment of the application, after the electronic device generates the first screenshot, if the content of the first interface is updated, the electronic device may update the content of the first screenshot according to the corresponding relationship between the first interface and the first screenshot, so that the content of the first screenshot and the content of the first interface are kept synchronous. In this manner, a function (e.g., a payment function) indicated by the user viewing or using the content of the first interface through the first screenshot may be implemented.
Optionally, in this embodiment of the application, the first interface may include updatable content therein.
Illustratively, the first interface can include dynamically updated content, which can be any dynamically updated content such as health code, payment code, stock dynamic information, commodity price, etc.
Optionally, in this embodiment of the application, the content of the first interface may be updated when a certain condition (for example, a target condition described below) is satisfied.
In the embodiment of the application, after the content of the first interface is updated, the electronic device may find the first screenshot according to the corresponding relationship between the first interface and the first screenshot, and update the content of the first screenshot.
Optionally, in this embodiment of the application, the correspondence between the first interface and the first cut-off graph may be created by the electronic device when the first cut-off graph is generated.
The specific method for updating the content of the first interface and creating the corresponding relationship between the first interface and the first cut-out by the electronic device will be described in detail in the following embodiments, and details are not repeated herein in order to avoid repetition.
Alternatively, in this embodiment of the application, the step 103 may be specifically implemented by the following step 103 a.
Step 103a, under the condition that the content of the first interface is updated, the electronic device updates the first content in the first screenshot into the second content according to the corresponding relationship between the first interface and the first screenshot.
And the second content is the updated content of the first interface.
Optionally, in this embodiment of the application, the second content may be at least partially different from the first content.
It can be understood that, in this embodiment of the application, the second content and the other content in the first screenshot except the first content may constitute all content of the first interface after the content is updated.
In the embodiment of the application, the function indicated by the first interface can be realized through the first screenshot and the second content.
For example, assuming that the first interface is an interface including a payment code and the second content is an updated payment code, the electronic device may perform a payment function through the first screenshot and the second content.
Optionally, in this embodiment of the application, updating the first content in the first screenshot to the second content may include: 1) and the electronic equipment acquires second content, generates a screenshot based on the second content, and displays the screenshot in a first area of the first screenshot in an overlapping mode. 2) And the electronic equipment acquires the second content and replaces the first content in the first screenshot with the second content.
In the embodiment of the application, the first area is an area where the first content in the first screenshot is located, and the first content and the second content are difference content between the first screenshot and the first interface after the content is updated.
Optionally, in this embodiment of the application, the regions in the first screenshot correspond to the regions in the first interface one to one, that is, each region in the first screenshot can find a region uniquely corresponding to the region in the first interface; the first area is an area corresponding to an area for displaying the second content in the first interface, that is, the first area is an area where the content in the first screenshot is different from the content of the updated first interface.
The above 1) and 2) are exemplarily described below with reference to specific examples.
Exemplarily, when the electronic device captures a first interface, a two-dimensional code i is displayed in the first interface, that is, an image including the two-dimensional code i in the first capture is assumed; then: after updating the two-dimensional code i to the two-dimensional code ii in the first interface, in the above 1), the electronic device may acquire data of the two-dimensional code ii, generate a screenshot b of the two-dimensional code ii based on the acquired data, and then display the screenshot b in a display area of an image of the two-dimensional code i in the first screenshot (i.e., the above first area). In 2) above, the electronic device may replace the image of the two-dimensional code i in the first screenshot with the two-dimensional code ii.
In the embodiment of the application, the electronic device may update the first content in the first screenshot to the updated content of the first interface according to the corresponding relationship between the first interface and the first screenshot, that is, the user may view the dynamically updated content in the interface through the image corresponding to the interface, so that the operation process of displaying the content by the electronic device may be further simplified.
In the screenshot method provided by the embodiment of the application, the electronic device can generate the screenshot image corresponding to the first interface by receiving the input of the user under the condition that the first interface is displayed, and can update the content of the screenshot image according to the corresponding relation between the first interface and the screenshot image under the condition that the content of the first interface is updated, that is, the user can view the dynamically updated content in the interface through the screenshot image corresponding to the interface without needing to view the dynamically updated content in the first interface after triggering the first interface like the conventional technology, so that the operation process of displaying the content by the electronic device can be simplified.
A method of the electronic device creating the correspondence between the first interface and the first cut-out is exemplarily described below.
Optionally, in this embodiment of the application, after the step 101, the screenshot method provided in this embodiment of the application may further include the following step 104.
And 104, the electronic equipment responds to the first input and creates a corresponding relation between the first interface and the first sketch.
Optionally, in this embodiment of the application, the electronic device creates a corresponding relationship between the first interface and the first screenshot, and may be implemented by performing data association (or binding) on information of the first interface and information of the first screenshot.
The information of the first interface may include information that the name, the identification, the index, and the like of the first interface may uniquely indicate the first interface; the information of the first screenshot may include a name, index, etc. of the first screenshot may uniquely indicate the information of the first screenshot.
For example, the electronic device can bind an index of the first interface with the name of the first screenshot.
In the embodiment of the application, since the electronic device can create the corresponding relationship between the first interface and the first screenshot, the electronic device can update the content of the first screenshot according to the corresponding relationship when the content of the first interface is updated. Therefore, the accuracy of the display content of the electronic equipment can be improved.
Optionally, in this embodiment of the application, after the step 102, the screenshot method provided in this embodiment of the application may further include a step 105 described below.
And 105, updating the content of the first interface by the electronic equipment under the condition that the target condition is met.
Wherein the target conditions include any one of the following i, ii and iii:
i, the electronic device receives a user input (hereinafter referred to as a target input) for the first cut.
Optionally, in this embodiment of the application, the target input may specifically be an input of the first screenshot by a user, an input of a thumbnail of the first screenshot, or an input triggering display of the first screenshot or the thumbnail of the first screenshot (for example, the target input is an input of sliding upwards on an image list interface in a gallery application), and may specifically be determined according to an actual use requirement, which is not limited in this embodiment of the application.
Optionally, in this embodiment of the application, the target input may be any possible form of input such as a floating input, a touch input, or a voice input, which may be determined specifically according to actual use requirements, and this embodiment of the application is not limited.
Optionally, in this embodiment of the application, taking the target input as the touch input of the user for the first cut-out as an example, the target input may be an input of a specific gesture, for example, the input is a downward sliding input of the user on the first cut-out.
The screenshot method of the embodiment of the present application is exemplarily described below with reference to fig. 2.
Exemplarily, assuming that the image 1 is a screenshot of the interface a, the content in the area a in the interface a can be dynamically updated, and assuming that the area b in the image 1 corresponds to the area a and the content 1 is displayed in the area b, then: as shown in fig. 2 (a), the user may click on the thumbnail of image 1 (i.e., the electronic device receives the target input), then the electronic device may update the content 1 in the area a in the interface a to the content 2, and as shown in fig. 2 (b), the electronic device may display the image 1 and display the content 2 on the area b of the image 1.
ii, the system time reaches the content update time of the first interface.
Optionally, in this embodiment of the application, in the above ii, the content update time of the first interface may be arbitrarily set by a user according to an actual use requirement or a default update time of the system.
For example, if the current time of the system is 10: 00, the content update time of the first interface set by the user is 10: 05, when the system time reaches 10: 05, the electronic device can automatically update the content of the first interface.
And iii, the display duration of the first screenshot reaches a preset duration.
Optionally, in this embodiment of the application, the preset duration may be an update duration arbitrarily set by a user according to an actual use requirement or an update duration default by a system.
Optionally, in this embodiment of the application, if the electronic device keeps displaying the first screenshot, the electronic device may update the content of the first interface once every other preset duration.
For example, assuming that the update duration set by the user is 1 minute, then: the system time was 11: 00, as shown in (a) of fig. 3, the electronic device displays the interface 1 (i.e., the first interface), and the area 1 of the interface 1 includes the content a, then, when the system time is 11: 01, as shown in fig. 3 (b), the electronic device updates the content a to the content b; when the system time is 11: 02, as shown in (c) of fig. 3, the electronic device may update the content b to the content c. Namely, when the system time reaches the content updating time of the first interface, the electronic equipment updates the content of the first interface.
In the embodiment of the application, the electronic device may update the content of the first interface when any one of target conditions (for example, the input of the user to the first screenshot is received, the system time reaches the content update time of the first interface, or the display time of the first screenshot reaches the preset time) is met, so that the flexibility of updating the content of the electronic device may be improved.
Optionally, in this embodiment of the application, after the step 102, the screenshot method provided in this embodiment of the application may further include a step 106 described below.
And 106, the electronic equipment executes target operation on the first cut picture.
Wherein the target operation may include at least one of: setting a first screenshot as a desktop background image (1), setting the first screenshot as a lock screen image (2), adding the first screenshot to a status bar interface (3), adding the first screenshot to a notification bar interface (4), and displaying the first screenshot (5).
Optionally, in this embodiment of the application, the electronic device may perform the target operation on the first cut through input of the user.
Optionally, in this embodiment of the application, the target operation triggered to be executed by the electronic device is different when the user inputs differently.
For example, the electronic device may set the first cut-sheet as the desktop background image through a user input (e.g., click) on a "set desktop background" control corresponding to the first cut-sheet; the electronic device can set the first cut as the lock screen image through the user's input (e.g., double-click) to the "set as lock screen image" control corresponding to the first cut; the electronic device may add the first cut to the status bar interface via a user input (e.g., a long press) to an "add to status bar" control corresponding to the first cut; the electronic device can add the first cut to the notification bar interface through user input (e.g., re-pressing) of the "add to notification bar" control corresponding to the first cut; the electronic device may display the first screenshot via a voice input of the user (e.g., voice "display first screenshot").
In the embodiment of the application, after the electronic device generates the first cut corresponding to the first interface, at least one target operation may be further performed on the first cut (for example, the first cut is set as a desktop background image and a lock screen image, the first cut is added to the status bar interface and the notification bar interface, and the first cut is displayed). Thus, the operation steps of displaying the content by the electronic equipment can be simplified.
Optionally, in this embodiment of the present application, the target operation includes the above-mentioned step (5), and then, after the step 106, the screenshot method provided in this embodiment of the present application may further include the following step 107 and step 108.
And step 107, the electronic equipment receives a second input of the user on the first screenshot.
And step 108, the electronic equipment responds to the second input and displays the first interface.
It can be understood that, in the embodiment of the present application, the first screenshot is an entry of the first interface.
Optionally, in this embodiment of the application, the second input may be any form of input that can trigger the electronic device to display the first interface, such as a floating input, a touch input, or a voice input, which may be specifically determined according to actual use requirements, and this embodiment of the application is not limited.
Optionally, in this embodiment of the application, taking the second input as the touch input as an example, the user may trigger the electronic device to display the first interface corresponding to the first screenshot by double-clicking the first screenshot.
In the embodiment of the application, the user can trigger the electronic device to display the first interface corresponding to the first screenshot through inputting the first screenshot, so that the user can conveniently perform other operations on the first interface, and therefore, the flexibility of the electronic device in displaying content can be further improved.
It should be noted that, in the screenshot method provided in the embodiment of the present application, the execution subject may be a screenshot device, or a control module in the screenshot device for executing the screenshot method. In the embodiment of the present application, a screenshot device is taken as an example to execute a screenshot method, which illustrates the screenshot device provided in the embodiment of the present application.
With reference to fig. 4, an embodiment of the present application provides a screenshot device 40, where the screenshot device 40 may include: a display module 41, a receiving module 42, a generating module 43 and an updating module 44. The receiving module 42 may be configured to receive a first input when the display module 41 displays the first interface. The generating module 43 may be configured to generate a first screenshot corresponding to the first interface in response to the first input received by the receiving module 42. The updating module 44 may be configured to update the content of the first screenshot according to the corresponding relationship between the first interface and the first screenshot when the content of the first interface is updated.
In a possible implementation manner, the updating module 44 may be specifically configured to update the first content in the first screenshot to a second content, where the second content is a content updated by the first interface.
In a possible implementation manner, the screenshot device 40 may further include a creating module. A creating module, which may be configured to create a correspondence between the first interface and the first cut-out in response to the first input received by the receiving module 42.
In a possible implementation manner, the updating module 44 may be further configured to update the content of the first interface when the target condition is satisfied after the generating module 43 generates the first cut corresponding to the first interface. Wherein the target condition comprises any one of: the receiving module 42 receives the input of the user for the first screenshot, the system time reaches the content update time of the first interface, and the display duration of the first screenshot reaches the preset duration.
In a possible implementation manner, the screenshot device 40 may further include an execution module. An executing module, configured to execute a target operation on the first cut graph after the generating module 43 generates the first cut graph corresponding to the first interface, where the target operation is any one of: setting the first screenshot as a desktop background image, setting the first screenshot as a lock screen image, adding the first screenshot to a status bar interface, adding the first screenshot to a notification bar interface, and displaying the first screenshot.
In one possible implementation, the target operation includes: the first screenshot is displayed. The receiving module 42 may be further configured to receive a second input for the first screenshot after the executing module performs the target operation on the first screenshot. The display module 41 may be further configured to display the first interface in response to the second input received by the receiving module 42.
In the screenshot device provided in the embodiment of the application, the screenshot image corresponding to the first interface can be generated by receiving the input of the user when the first interface is displayed, and the content of the screenshot image can be updated according to the corresponding relationship between the first interface and the screenshot image when the content of the first interface is updated, that is, the user can view the dynamically updated content in the interface through the screenshot image corresponding to the interface without needing to view the dynamically updated content in the first interface after triggering the first interface like the conventional technology, so that the operation process of displaying the content by the electronic device can be simplified.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
The screenshot device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The screenshot device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The screenshot device provided in the embodiment of the present application can implement each process implemented by the method embodiment of fig. 1 to fig. 3, and is not described here again to avoid repetition.
As shown in fig. 5, an electronic device 200 is further provided in this embodiment of the present application, and includes a processor 202, a memory 201, and a program or an instruction stored in the memory 201 and executable on the processor 202, where the program or the instruction is executed by the processor 202 to implement each process of the screenshot method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The user input unit 1007 may be configured to receive a first input when the display unit 1006 displays the first interface. The processor 1010 may be configured to generate a first screenshot corresponding to a first interface in response to a first input received by the user input unit 1007. The processor 1010 may be further configured to update the content of the first screenshot according to a corresponding relationship between the first interface and the first screenshot when the content of the first interface is updated.
In a possible implementation manner, the processor 1010 may be specifically configured to update the first content in the first screenshot to a second content, where the second content is a content updated by the first interface.
In one possible implementation, the processor 1010 may be further configured to create a corresponding relationship between the first interface and the first cut map in response to a first input received by the user input unit 1007.
In a possible implementation, the processor 1010 may be further configured to, after generating the first cut corresponding to the first interface, update the content of the first interface if the target condition is satisfied. Wherein the target condition comprises any one of: the user input unit 1007 receives an input of the first screenshot from the user, the system time reaches the content update time of the first interface, and the display time of the first screenshot reaches a preset time.
In one possible implementation, the processor 1010 may be further configured to, after generating the first cut graph corresponding to the first interface, perform a target operation on the first cut graph, where the target operation is any one of: setting the first screenshot as a desktop background image, setting the first screenshot as a lock screen image, adding the first screenshot to a status bar interface, adding the first screenshot to a notification bar interface, and displaying the first screenshot.
In one possible implementation, the target operation includes: the first screenshot is displayed. The user input unit 1007 may be further configured to receive a second input for the first screenshot after the processor 1010 performs the target operation on the first screenshot. The display unit 1006 may be configured to display the first interface in response to a second input received by the user input unit 1007.
In the electronic device provided in the embodiment of the application, because the electronic device can generate the screenshot image corresponding to the first interface by receiving the input of the user when the first interface is displayed, and can update the content of the screenshot image according to the corresponding relationship between the first interface and the screenshot image when the content of the first interface is updated, that is, the user can view the dynamically updated content in the interface through the screenshot image corresponding to the interface, and does not need to view the dynamically updated content in the first interface after the first interface is triggered like the conventional technology, the operation process of displaying the content by the electronic device can be simplified.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. Processor 1010 may integrate an application processor that handles primarily operating systems, user interfaces, applications, etc. and a modem processor that handles primarily wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the screenshot method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is a processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk. The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the screenshot method embodiment, and the same technical effect can be achieved.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (14)

1. A method of screenshot, the method comprising:
receiving a first input in a case where a first interface is displayed;
generating a first screenshot corresponding to the first interface in response to the first input;
and under the condition that the content of the first interface is updated, updating the content of the first screenshot according to the corresponding relation between the first interface and the first screenshot.
2. The method of claim 1, wherein the updating the content of the first screenshot comprises:
and updating the first content in the first screenshot into second content, wherein the second content is the content updated by the first interface.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
in response to the first input, creating a correspondence between the first interface and the first cut.
4. The method of claim 1, wherein after the generating the first cut-out corresponding to the first interface, the method further comprises:
updating the content of the first interface under the condition that a target condition is met;
wherein the target condition comprises any one of: and receiving user input aiming at the first screenshot, the system time reaching the content updating time of the first interface, and the display duration of the first screenshot reaching the preset duration.
5. The method of claim 1, wherein after the generating the first cut-out corresponding to the first interface, the method further comprises:
performing a target operation on the first cut graph, the target operation including at least one of:
setting the first screenshot as a desktop background image, setting the first screenshot as a lock screen image, adding the first screenshot to a status bar interface, adding the first screenshot to a notification bar interface, and displaying the first screenshot.
6. The method of claim 5, wherein the target operation comprises: displaying the first screenshot;
after the performing the target operation on the first cut graph, the method further comprises:
receiving a second input to the first screenshot;
in response to the second input, displaying the first interface.
7. A screenshot device is characterized by comprising a display module, a receiving module, a generating module and an updating module;
the receiving module is used for receiving a first input under the condition that the display module displays the first interface;
the generating module is used for responding to the first input received by the receiving module and generating a first screenshot corresponding to the first interface;
and the updating module is used for updating the content of the first screenshot according to the corresponding relation between the first interface and the first screenshot under the condition that the content of the first interface is updated.
8. The apparatus of claim 7,
the updating module is specifically configured to update a first content in the first screenshot to a second content, where the second content is a content updated by the first interface.
9. The apparatus of claim 7 or 8, further comprising a creation module;
the creating module is configured to create a corresponding relationship between the first interface and the first cut-out in response to the first input received by the receiving module.
10. The apparatus of claim 7,
the updating module is further configured to update the content of the first interface when a target condition is met after the generating module generates the first cut corresponding to the first interface;
wherein the target condition comprises any one of: and the receiving module receives user input aiming at the first screenshot, the system time reaches the content updating time of the first interface, and the display duration of the first screenshot reaches the preset duration.
11. The apparatus of claim 7, further comprising an execution module;
the execution module is configured to, after the generation module generates the first cut corresponding to the first interface, execute a target operation on the first cut, where the target operation is any one of: setting the first screenshot as a desktop background image, setting the first screenshot as a lock screen image, adding the first screenshot to a status bar interface, adding the first screenshot to a notification bar interface, and displaying the first screenshot.
12. The apparatus of claim 11, wherein the target operation comprises: displaying the first screenshot;
the receiving module is further used for receiving a second input of the first screenshot after the executing module executes the target operation on the first screenshot;
the display module is configured to display the first interface in response to the second input received by the receiving module.
13. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the screenshot method as claimed in any one of claims 1 to 6.
14. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the screenshot method according to any one of claims 1 to 6.
CN202111044334.5A 2021-09-07 2021-09-07 Screenshot method and device, electronic equipment and readable storage medium Pending CN113868269A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111044334.5A CN113868269A (en) 2021-09-07 2021-09-07 Screenshot method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111044334.5A CN113868269A (en) 2021-09-07 2021-09-07 Screenshot method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN113868269A true CN113868269A (en) 2021-12-31

Family

ID=78994645

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111044334.5A Pending CN113868269A (en) 2021-09-07 2021-09-07 Screenshot method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN113868269A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023131153A1 (en) * 2022-01-04 2023-07-13 维沃移动通信有限公司 Information updating method, information updating apparatus, electronic device and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023131153A1 (en) * 2022-01-04 2023-07-13 维沃移动通信有限公司 Information updating method, information updating apparatus, electronic device and medium

Similar Documents

Publication Publication Date Title
CN112399006B (en) File sending method and device and electronic equipment
CN111913616A (en) Application program management method and device and electronic equipment
CN112486444B (en) Screen projection method, device, equipment and readable storage medium
CN113794795B (en) Information sharing method and device, electronic equipment and readable storage medium
CN112083854A (en) Application program running method and device
CN112269506A (en) Screen splitting method and device and electronic equipment
CN111813305A (en) Application program starting method and device
CN112399010B (en) Page display method and device and electronic equipment
CN113849092A (en) Content sharing method and device and electronic equipment
CN113114845A (en) Notification message display method and device
CN113868269A (en) Screenshot method and device, electronic equipment and readable storage medium
CN112698762A (en) Icon display method and device and electronic equipment
CN112286616A (en) Dynamic wallpaper setting method and device and electronic equipment
CN112181559A (en) Interface display method and device and electronic equipment
CN113805997B (en) Information display method, information display device, electronic equipment and storage medium
CN112765946B (en) Chart display method and device and electronic equipment
CN113807831A (en) Payment method and device
CN111796736B (en) Application sharing method and device and electronic equipment
CN114491218A (en) Information updating method, information updating device, electronic device, and medium
CN114416264A (en) Message display method and device
CN114115622A (en) Display control method, display control device, electronic device, and medium
CN113672136A (en) Information display method, device, equipment and storage medium
CN113867864A (en) Information display method and device, electronic equipment and readable storage medium
CN113485760A (en) Application running method and device
CN112182673A (en) Information sharing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination