CN112448884A - Content saving method and device - Google Patents

Content saving method and device Download PDF

Info

Publication number
CN112448884A
CN112448884A CN202011256469.3A CN202011256469A CN112448884A CN 112448884 A CN112448884 A CN 112448884A CN 202011256469 A CN202011256469 A CN 202011256469A CN 112448884 A CN112448884 A CN 112448884A
Authority
CN
China
Prior art keywords
content
input
message
target message
cache
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
CN202011256469.3A
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 CN202011256469.3A priority Critical patent/CN112448884A/en
Publication of CN112448884A publication Critical patent/CN112448884A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Abstract

The application discloses a content storage method and device, belongs to the technical field of communication, and can solve the problem that the operation process of storing edited content in an input box in a chat interface is complex and time-consuming. The method comprises the following steps: receiving a first input of a target message in a chat interface by a user, wherein the chat interface displays at least one message and an input box, the at least one message comprises the target message, and the input box displays first content; in response to the first input, first content is saved in a cache associated with the target message.

Description

Content saving method and device
Technical Field
The present application belongs to the field of communications technologies, and in particular, to a content saving method and apparatus.
Background
With the rapid development of terminal technology and mobile internet technology, the variety of instant social application programs is increasing.
Currently, users can chat with other users through instant social applications anytime and anywhere. In the process of editing the content 1 (for replying to the received message 1) in the input box of the chat interface, the message 2 may be received, and the message 2 is more urgent than the message 1, so that the user needs to immediately reply to the message 2, i.e., edit the content 2 for replying to the message 2 in the input box, however, the user wants to save the content 1. In general, the process of saving the content 1 is: the user firstly selects the content 1 through the input trigger electronic equipment, then the input trigger electronic equipment displays a pull-down list, then the electronic equipment is triggered to copy the content 1 through the input of the option of 'copy' selected from the pull-down list, then the electronic equipment is triggered to open a memorandum, a cursor is positioned in an input area, the electronic equipment is triggered to display a 'paste' option by pressing the input area for a long time, and then the user selects the 'paste' option to trigger the electronic equipment to display the content 1 in an input box.
Therefore, in the chat interface, the operation process of saving the edited content in the input box is complicated and time-consuming.
Disclosure of Invention
The embodiment of the application aims to provide a content storage method and a content storage device, which can solve the problems that the operation process of storing edited content in an input box in a chat interface is complicated and time-consuming.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a content saving method, where the method includes: receiving a first input of a target message in a chat interface from a user, wherein at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box; in response to the first input, first content is saved in a cache associated with the target message.
In a second aspect, an embodiment of the present application provides a content saving apparatus, including: the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving first input of a target message in a chat interface by a user, at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box; a saving module, configured to, in response to the first input received by the receiving module, save the first content in the cache associated with the target message.
In a third aspect, an embodiment of the present application provides 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, the program or instructions 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, an embodiment of the present application provides 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, a first input of a target message in a chat interface by a user can be received, wherein at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box; in response to the first input, first content is saved in a cache associated with the target message. Through the scheme, the user can trigger the electronic equipment to store the first content edited in the input box in the cache associated with the target message through the first input of the target message in the chat interface, so that the scheme for rapidly storing the edited content in the input box is realized, and the problem that the operation process for storing the edited content in the input box is complicated and time-consuming in the chat interface can be solved.
Drawings
Fig. 1 is a flowchart of a content saving method provided in an embodiment of the present application;
FIG. 2 is a schematic interface diagram of a content saving method according to an embodiment of the present disclosure;
fig. 3 is a second schematic interface diagram of the content saving method according to the embodiment of the present application;
fig. 4 is a third schematic interface diagram of a content saving method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a content storage device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure 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 clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
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 will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. 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.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the description of the embodiments of the present application, unless otherwise specified, "a plurality" means two or more, for example, a plurality of processing units means two or more processing units; plural elements means two or more elements, and the like.
The content saving method, device and electronic device 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.
In the embodiment of the application, in a scenario where a user chats with other users in a chat interface (which may be a group chat window between at least three users, or a private chat window between two users) of an instant social application, if the user edits content 1 (for replying to received message 1) in an input box of the chat interface, message 2 is received, and message 2 is more urgent than message 1, the user needs to immediately reply to message 2, however, the user wants to save content 1. The user can trigger the electronic device to store the first content (content 1) edited in the input box in the cache associated with the target message through the first input of the target message in the chat interface, so that the scheme for rapidly storing the edited content in the input box is realized, and the problem that the operation process for storing the edited content in the input box is complicated and time-consuming in the chat interface can be solved.
Referring to fig. 1, an embodiment of the present application provides a content saving method, and an example of the content saving method provided in the embodiment of the present application is described below with an execution subject as an electronic device. The method may include steps 201 through 202 described below.
Step 201, the electronic device receives a first input of a target message in a chat interface from a user.
At least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box.
It is understood that the chat interface can be a group chat window (including chat windows of at least three users) in an instant social application, or a private chat window (chat window between two users) in an instant social application. The first content is the content edited by the user in the input box.
In this case, the first content and the target message are related, which is convenient for a user to remember which message corresponds to the cache in which the content (the first content) that is not sent by editing is stored, or may be a message closest to the input box in the at least one message (at this time, the user is convenient to operate, even if the user implements the first input, the operation difficulty is reduced, and the operation time is saved), which may be determined specifically according to actual use requirements, and the embodiment of the present application is not limited.
Optionally, the first input may be a click input of the user on the target message, a slide input of the user on the target message, or another touch screen input, which may be determined specifically according to actual use requirements, and the embodiment of the present application is not limited.
Illustratively, the click input may be any number of click inputs, such as a single click input, a double click input, and the like, or may be a multi-finger input, such as a double-finger input, and the like. The slide input may be any slide input, such as an upward slide input, a downward slide input, a leftward slide input, a rightward slide input, a clockwise slide input, a counterclockwise slide input, and the like.
Step 202, the electronic device responds to the first input, and stores the first content in the cache associated with the target message.
It is to be appreciated that the electronic device retrieves the first content in response to the first input and stores the first content in a cache associated with the target message. In this embodiment, the electronic device may associate the target message with the cache before the first input, and in response to the first input, the electronic device stores the first content in the cache; or in response to the first input, the electronic device stores the first content in the cache and associates the target message with the cache. It is to be appreciated that in response to the first input, the electronic device associates (or binds) the first content with the target message and saves the first content in the cache. Optionally, in this embodiment of the present application, only the first content may be stored in the cache, or a corresponding relationship between the first content and the target message may be stored.
In the embodiment of the application, a first input of a target message in a chat interface by a user can be received, wherein at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box; in response to the first input, first content is saved in a cache associated with the target message. Through the scheme, the user can trigger the electronic equipment to store the first content edited in the input box in the cache associated with the target message through the first input of the target message in the chat interface, so that the scheme for rapidly storing the edited content in the input box is realized, and the problem that the operation process for storing the edited content in the input box is complicated and time-consuming in the chat interface can be solved.
Optionally, in this embodiment of the application, the electronic device may also delete the first content from the input box in response to the first input; the electronic equipment responds to the first input and can also display a target identifier in a display area where the target message is located; the method can be determined according to actual use requirements, and the embodiment of the application is not limited.
Illustratively, after the step 201, the content saving method provided by the embodiment of the present application may further include at least one of the step 203 and the step 204.
Step 203, the electronic device deletes the first content from the input box in response to the first input.
And step 204, the electronic equipment responds to the first input, and displays the target identification in the display area where the target message is located.
The target mark is used for indicating that the first content is stored in the cache. It will be appreciated that the destination identifier indicates that the first content is cached in the cache associated with the destination message.
It can be understood that, in the embodiment of the present application, the display area where the target message is located may be a display area where the target message is displayed, or may also be a display area where the target message is displayed and a display area around the target message (a display area where a distance between the target message and the target message is less than or equal to a preset threshold).
For example, the target identifier may be a small circle, a five-pointed star, or the like displayed on the left side of the target message, may also be an underline displayed below the target message, or the like, and may also be a target message displayed in a bold manner, which may be determined specifically according to actual use requirements, and the embodiment of the present application is not limited.
It should be noted that, in the embodiment of the present application, the target identifier may also be displayed at other positions of the chat interface, and may be specifically determined according to actual use requirements, which is not limited in the embodiment of the present application. For example, the target identifier may be displayed above the input box, and after the step 202, when the user needs to display the first content in the input box, the user may first click on the target identifier to trigger the electronic device to locate the target message, and then click on the target message to trigger the electronic device to display the first content in the input box.
In this embodiment of the application, in step 203, the user does not need to delete the first content in the input box, so that the user operation can be simplified, and the operation time can be saved. In step 204, the user may be prompted which message corresponds to the cache that stores the edited content, so as to avoid that the user cannot find the first content due to forgetting or forgets the existence of the first content.
Optionally, the embodiment of the present application may also be applied to a scenario where, because the user edits multiple lines of content in the input box, the content cannot be completely displayed in the input box (when the text input by the user is too long and the text in the input box is not completely displayed), a preview display interface may be displayed on the chat interface, and all the content (the first content) edited in the input box is displayed in the preview display interface.
Illustratively, after step 203, the content saving method provided in the embodiment of the present application may further include step 205.
Step 205, the electronic device displays the first content in a preview display interface, where the preview display interface is located on the chat interface.
Optionally, in this embodiment of the application, the preview display interface may be displayed in a suspended manner in the chat interface, or may be displayed in an embedded manner in the chat interface, 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, the user may trigger the electronic device to adjust the attribute of the preview display interface through an input (e.g., a third input), and the electronic device may also automatically adjust the attribute of the preview display interface according to how much content is displayed in the preview display interface.
Wherein the property of the preview display interface may include at least one of: size, location, shape. The attribute of the preview display interface may also include other attributes, which are not limited in this embodiment of the application.
Optionally, the preview display interface may be located in an area where the target information is located in the chat interface; the preview display interface may be located to one side of the target information in the chat interface (as shown in FIG. 3); the preview display interface can be located anywhere in the chat interface, but there is an identification (e.g., an arrow) associated with the target information and the preview display interface.
Optionally, before the step 205, the electronic device receives a fourth input of the target device from the user; the step 205 is specifically: in response to the fourth input, the electronic device displays a preview display interface in which the first content is displayed.
According to the method and the device for displaying the first content in the preview display interface, the problem that the display of the edited content is incomplete due to the limitation of the interface of the input box can be solved.
Optionally, in this embodiment of the application, in a case that the second content is displayed in the preview display interface, the step 205 may be specifically implemented by the following step 205a or step 205 b.
Step 205a, the electronic device cancels the display of the second content and displays the first content.
It can be understood that the electronic device overwrites the second content with the first content, and correspondingly deletes the second content from the cache and saves the first content.
And step 205b, the electronic equipment displays the first content after the second content.
It can be understood that the electronic device displays the second content and the first content in sequence according to the sequence of editing, and correspondingly, stores the first content after the second content in the cache. In this case, the user can edit the content in the input box and simultaneously save the edited content in the cache and display the content in the preview box, thereby improving the operability.
In the embodiment of the application, a plurality of display modes of the first content are provided, so that the operability can be improved. Optionally, the user may also trigger the electronic device to display the first content in a different manner through a different first input (or fourth input). For example, in the case where the input parameter of the first input (or the fourth input) satisfies the first condition, the above step 205a is performed; in case the input parameters of the first input (or the fourth input) satisfy the second condition, the above step 205b is performed. The first condition and the second condition may be determined according to actual use requirements, and the embodiment of the present application is not limited.
Optionally, in this embodiment of the present application, when the content in the input box is stored in the cache, there are the following two ways: firstly, if characters (second content) exist in the cache, adding the characters (first content) of the new cache to the characters (second content) of the cache, and if the cache is empty, directly caching; and the second mode is to replace the cached characters (second content) with the newly cached characters (first content).
Illustratively, in the case that the cache includes the second content, the step 202 may be specifically realized by the following step 202a or step 202 b.
Step 202a, the electronic device saves the first content at the first location.
And in the cache, after the first position is located at the second position, the second position is the position where the second content is located.
It is to be appreciated that the electronic device stores the first content after the second content.
Step 202b, the electronic device deletes the second content and stores the first content.
In the embodiment of the application, a plurality of first content storage modes are provided, so that the operability can be improved. Optionally, the user may also trigger the electronic device to save the first content in a different manner through a different first input. For example, in the case where the input parameter of the first input satisfies the third condition, the above step 202a is executed; in case the input parameter of the first input satisfies the fourth condition, the above step 202b is performed. The third condition and the fourth condition may be determined according to actual use requirements, and the embodiment of the present application is not limited.
Optionally, in this embodiment of the application, when the user needs to continue editing the first content, the electronic device may be triggered by the input to display the first content again in the input box (the first content may be deleted from the cache at the same time); or when the user does not need the first content, the electronic device may be triggered to delete the first content from the cache by an input.
After step 203, the content saving method provided in the embodiment of the present application may further include step 206 to step 207.
And step 206, the electronic equipment receives a second input of the user to the display area where the target message is located.
Step 207, the electronic device responds to the second input, and performs at least one of the following: displaying first content in the input box; the first content is deleted from the cache.
Optionally, the second input of the user to the display area where the target message is located may be input of the user to the target message, or may also be input of the target identifier by the user, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited.
Optionally, the second input may be a click input by the user on the display area where the target message is located, a slide input by the user on the display area where the target message is located, or another touch screen input, which may be specifically determined according to actual use requirements, and the embodiment of the present application is not limited.
For example, the detailed description of the click input and the slide input may refer to the description of the click input and the slide input in the description of the first input in step 201, and will not be repeated here.
In the embodiment of the present application, through the steps 206 to 207, the first content can be quickly displayed in the input box, and the user does not need to re-input through the input method, so that the operation steps can be simplified, and the operation efficiency can be improved.
Illustratively, as shown in fig. 2, the user enters the first content "tomorrow 7:00 meeting" for replying to message 1 (identification "1" for indicating message 1) in the input box. Suddenly, the user decides to stop replying to the message 1, the more urgent message 2 needs to be replied first (the mark "2" is used to indicate the message 2), the user can trigger the electronic device to acquire the first content in the input box by clicking the message 1, and store the first content in the cache corresponding to the message 1 (or associate or bind the message 1 and the first content) (it should be noted that, if the second content is already stored in the cache, the first content is added to the second content, and then the first content is directly stored if the cache is empty), and as shown in fig. 3, a small dot (the small dot is used to prompt the user that the message is associated with the first content) is displayed on the right side of the message 1, and the first content is canceled and displayed in the input box. When the user finishes replying the message 2 and needs to continuously reply to the message 1, the user can click the message 1 or the dot, trigger the electronic device to acquire the first content from the cache corresponding to the message 1 (meanwhile, the first content can be deleted from the cache), and redisplay the first content in the input box, so that the user can continuously edit the first content.
The content storage method provided by the embodiment of the application greatly simplifies the operation of storing the edited content in the input box when the user inputs the content, and improves the use experience of the user.
Illustratively, following the above example, after the electronic device stores the first content in the cache corresponding to the message 1, the electronic device may further display the content stored in the cache in a preview frame in the chat interface. When the content input by the user in the input box is too long and the input box cannot be completely displayed, as shown in fig. 4, after the user may input a part of content in the input box by using the above method, saving the part of content in the cache corresponding to the message 1 by inputting, and displaying the part of content in the preview box (the mark "3" is used to indicate the preview box); then, continuing to input another part of content in the input box, saving the another part of content in the cache corresponding to the message 1 through input, and simultaneously displaying the another part of content in the preview box; then, the content may be continuously input into the input box, the content may be continuously saved in the cache, and the content may be continuously displayed in the preview box until the user has finished inputting (it should be noted that, after the content in the input box is saved in the cache corresponding to the message 1 by inputting each time, the content is canceled to be displayed in the input box (i.e., the content in the input box is cleared, the content in the input box is deleted)). After the user inputs the content, the electronic device may be triggered by inputting the message 1 to redisplay all the content stored in the cache in the input box (and delete the content from the cache at the same time), so that the user may send the corresponding content.
The content storage method provided by the embodiment of the application realizes multiple times of caching and displaying of the characters in the input box, and solves the problem that the display of multiple lines of characters in the input box is incomplete (incomplete display caused by interface limitation of the input box). The use experience of a user in multi-line character input is greatly improved.
It should be noted that, in the content saving method provided in the embodiment of the present application, the execution main body may be a content saving device, or a functional module and/or a functional entity in the content saving device for executing the content saving method. In the embodiment of the present application, a content saving device executing a content saving method is taken as an example, and a device of the content saving method provided in the embodiment of the present application is described.
Fig. 5 shows a schematic diagram of a possible structure of a content holding apparatus according to an embodiment of the present application. As shown in fig. 5, the apparatus 300 may include: a receiving module 301, configured to receive a first input of a target message in a chat interface from a user, where at least one message and an input box are displayed in the chat interface, where the at least one message includes the target message, and a first content is displayed in the input box; a saving module 302, configured to, in response to the first input received by the receiving module 301, save the first content in the cache associated with the target message.
Optionally, the apparatus 300 further comprises at least one of: a first deletion module 3031 and a first display module 3041; a first deleting module 3031, configured to delete the first content from the input box after the receiving the first input of the target message in the chat interface from the user; the first display module 3041, configured to display, after the first input of the target message in the chat interface by the user is received, a target identifier in a display area where the target message is located, where the target identifier is used to indicate that the first content is stored in the cache.
Optionally, the apparatus 300 further comprises: the second display module 3042 is configured to display the first content in a preview display interface after the first content is saved in the cache associated with the target message, where the preview display interface is located on the chat interface.
Optionally, in a case that the second content is displayed in the preview display interface, the second display module 3042 is specifically configured to execute any one of the following: canceling the display of the second content and displaying the first content; after the second content, the first content is displayed.
Optionally, in a case that the cache includes the second content, the saving module 302 is specifically configured to execute any one of the following: storing the first content at a first position, wherein the second position is the position of the second content after the first position is positioned at the second position in the cache; the second content is deleted and the first content is saved.
Optionally, the apparatus 300 further comprises at least one of: a third display module 3043 and a second deletion module 3032; the receiving module 301 is further configured to receive a second input of the display area where the target message is located by the user after the first content is stored in the cache associated with the target message; a third display module 3043 for displaying the first content in the input box in response to the second input received by the receiving module 301; a second deleting module 3032, configured to delete the first content from the cache in response to the second input received by the receiving module 301.
It should be noted that: in this embodiment of the present application, the first deleting module 3031 and the second deleting module 3032 may be the same deleting module or different deleting modules, which may be determined specifically according to actual use requirements, and this embodiment of the present application is not limited. The first display module 3041, the second display module 3042, and the third display module 3043 may be the same display module or different display modules, which may be determined according to actual use requirements, and the embodiment of the present application is not limited. As shown in fig. 5, modules that must be included in the electronic device 300 are illustrated by solid line boxes, such as a receiving module 301 and a saving module 302; modules which may or may not be included in the electronic device 300 are illustrated by dashed boxes, such as a first deletion module 3031, a second deletion module 3032, a first display module 3041, a second display module 3042 and a third display module 3043.
The embodiment of the application provides a content storage device, which can receive a first input of a target message in a chat interface by a user, wherein at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box; in response to the first input, first content is saved in a cache associated with the target message. Through the scheme, the user can trigger the electronic equipment to store the first content edited in the input box in the cache associated with the target message through the first input of the target message in the chat interface, so that the scheme for rapidly storing the edited content in the input box is realized, and the problem that the operation process for storing the edited content in the input box is complicated and time-consuming in the chat interface can be solved.
The content storage device in the embodiment of the present application may be a device, and may also be an electronic device or a component, an integrated circuit, or a chip in the electronic device. The electronic device may be a mobile electronic device or a non-mobile electronic device. 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 content storage device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The content saving device provided in the embodiment of the present application can implement each process implemented by the method embodiments in fig. 1 to fig. 4, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 400 is further provided in this embodiment of the present application, and includes a processor 401, a memory 402, and a program or an instruction stored in the memory 402 and executable on the processor 401, where the program or the instruction is executed by the processor 401 to implement each process of the foregoing content saving 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 device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application. The electronic device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and the like.
Those skilled in the art will appreciate that the electronic device 500 may further include a power supply (e.g., a battery) for supplying power to various components, and the power supply may be logically connected to the processor 510 via a power management system, so as to implement functions of managing charging, discharging, and power consumption via the power management system. The electronic device structure shown in fig. 7 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 507 is configured to receive a first input of a target message in a chat interface by a user, where at least one message and an input box are displayed in the chat interface, the at least one message includes the target message, and a first content is displayed in the input box; a memory 509 for storing the first content in a cache associated with the target message in response to the first input.
The electronic device provided by the embodiment of the application can receive first input of a user on a target message in a chat interface, wherein at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box; in response to the first input, first content is saved in a cache associated with the target message. Through the scheme, the user can trigger the electronic equipment to store the first content edited in the input box in the cache associated with the target message through the first input of the target message in the chat interface, so that the scheme for rapidly storing the edited content in the input box is realized, and the problem that the operation process for storing the edited content in the input box is complicated and time-consuming in the chat interface can be solved.
Optionally, after receiving a first input of a target message in the chat interface by the user, the electronic device further comprises at least one of: a processor 510 for deleting the first content from the input box; a display unit 506, configured to display a target identifier in a display area where the target message is located, where the target identifier is used to indicate that the first content is stored in the cache.
Optionally, the displaying unit 506 is further configured to display the first content in a preview display interface after the first content is saved in the cache associated with the target message, where the preview display interface is located on the chat interface.
Optionally, in a case that the second content is displayed in the preview display interface, the display unit 506 is specifically configured to execute any one of the following: canceling the display of the second content and displaying the first content; after the second content, the first content is displayed.
Optionally, in a case that the cache includes the second content, the memory 509 is specifically configured to execute any one of the following: storing the first content at a first position, wherein the second position is the position of the second content after the first position is positioned at the second position in the cache; the second content is deleted and the first content is saved.
Optionally, the user input unit 507 is further configured to receive a second input of the user to the display area where the target message is located after the first content is stored in the cache associated with the target message; in response to the second input, the electronic device includes at least one of: a display unit 506 further configured to display the first content in the input box; processor 510 is further configured to delete the first content from the cache.
It should be understood that, in the embodiment of the present application, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system. The electronic device provides wireless broadband internet access to the user via the network module 502, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media. The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the electronic apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072. A touch panel 5071, also referred to as a touch screen. The touch panel 5071 may include two parts of a touch detection device and a touch controller. Other input devices 5072 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 further detail herein. The memory 509 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. Processor 510 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
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 foregoing content saving method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described 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, and so on.
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 foregoing content saving method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
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 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, an air conditioner, 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 (12)

1. A method for preserving content, the method comprising:
receiving a first input of a target message in a chat interface from a user, wherein at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box;
in response to the first input, saving the first content in a cache associated with the target message.
2. The method of claim 1, wherein after receiving a first input from a user into a targeted message in a chat interface, the method further comprises at least one of:
deleting the first content from the input box;
and displaying a target identifier in a display area where the target message is located, wherein the target identifier is used for indicating that the first content is stored in the cache.
3. The method of claim 1, wherein after saving the first content in the cache associated with the target message, the method further comprises:
and displaying the first content in a preview display interface, wherein the preview display interface is positioned on the chat interface.
4. The method according to claim 3, wherein in a case that the second content is displayed in the preview display interface, the displaying the first content in the preview display interface includes any one of:
canceling the display of the second content and displaying the first content;
displaying the first content after the second content.
5. The method according to claim 1, wherein, in the case that the second content is included in the cache, the saving the first content in the cache associated with the target message includes any one of:
storing the first content at a first position, wherein in the cache, after the first position is located at a second position, the second position is the position where the second content is located;
and deleting the second content and saving the first content.
6. The method of any of claims 1-5, wherein after saving the first content in the cache associated with the target message, the method further comprises:
receiving a second input of the user to the display area where the target message is located;
in response to the second input, performing at least one of:
displaying the first content in the input box;
deleting the first content from the cache.
7. A content holding apparatus, characterized in that the apparatus comprises:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving first input of a target message in a chat interface by a user, at least one message and an input box are displayed in the chat interface, the at least one message comprises the target message, and first content is displayed in the input box;
a saving module, configured to, in response to the first input received by the receiving module, save the first content in a cache associated with the target message.
8. The apparatus of claim 7, further comprising at least one of: the device comprises a first deleting module and a first display module;
the first deleting module is used for deleting the first content from the input box after the first input of the target message in the chat interface by the user is received;
the first display module is configured to display a target identifier in a display area where a target message is located after the first input of the target message in the chat interface by the user is received, where the target identifier is used to indicate that the first content is stored in the cache.
9. The apparatus of claim 7, further comprising:
and the second display module is used for displaying the first content in a preview display interface after the first content is stored in the cache associated with the target message, wherein the preview display interface is positioned on the chat interface.
10. The apparatus according to claim 9, wherein, in a case that the second content is displayed in the preview display interface, the second display module is specifically configured to execute any one of:
canceling the display of the second content and displaying the first content;
displaying the first content after the second content.
11. The apparatus according to claim 7, wherein, in a case that the cache includes the second content, the saving module is specifically configured to perform any one of:
storing the first content at a first position, wherein in the cache, after the first position is located at a second position, the second position is the position where the second content is located;
and deleting the second content and saving the first content.
12. The apparatus according to any one of claims 7 to 11, characterized in that the apparatus further comprises at least one of: a third display module and a second deletion module;
the receiving module is further configured to receive a second input of the user to the display area where the target message is located after the first content is stored in the cache associated with the target message;
the third display module is used for responding to the second input and displaying the first content in the input box;
the second deletion module is configured to delete the first content from the cache in response to the second input.
CN202011256469.3A 2020-11-11 2020-11-11 Content saving method and device Pending CN112448884A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011256469.3A CN112448884A (en) 2020-11-11 2020-11-11 Content saving method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011256469.3A CN112448884A (en) 2020-11-11 2020-11-11 Content saving method and device

Publications (1)

Publication Number Publication Date
CN112448884A true CN112448884A (en) 2021-03-05

Family

ID=74736444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011256469.3A Pending CN112448884A (en) 2020-11-11 2020-11-11 Content saving method and device

Country Status (1)

Country Link
CN (1) CN112448884A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220633A (en) * 2022-07-18 2022-10-21 维沃移动通信有限公司 Message sending method and device and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988516A (en) * 2005-12-21 2007-06-27 国际商业机器公司 Method and system for privacy controls of an instant messaging
CN107770045A (en) * 2017-09-29 2018-03-06 网易乐得科技有限公司 A kind of message editing method, apparatus and medium
CN109101152A (en) * 2018-07-26 2018-12-28 维沃移动通信有限公司 A kind of data inputting method and terminal
CN109361592A (en) * 2018-08-08 2019-02-19 腾讯科技(深圳)有限公司 A kind of instant communication message processing method, device, equipment and storage medium
CN109814968A (en) * 2019-01-21 2019-05-28 维沃移动通信有限公司 A kind of data inputting method, terminal device and computer readable storage medium
CN110038305A (en) * 2019-04-12 2019-07-23 网易(杭州)网络有限公司 Information processing method and device, electronic equipment, storage medium
CN110658960A (en) * 2019-09-27 2020-01-07 北京字节跳动网络技术有限公司 Message processing method and device and electronic equipment
CN111142759A (en) * 2019-12-25 2020-05-12 维沃移动通信有限公司 Information sending method and electronic equipment
US20200289947A1 (en) * 2018-02-27 2020-09-17 Tencent Technology (Shenzhen) Company Limited Message push method and apparatus, device, and storage medium
CN111782427A (en) * 2020-07-16 2020-10-16 Oppo广东移动通信有限公司 Content operation method and device and computer readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1988516A (en) * 2005-12-21 2007-06-27 国际商业机器公司 Method and system for privacy controls of an instant messaging
CN107770045A (en) * 2017-09-29 2018-03-06 网易乐得科技有限公司 A kind of message editing method, apparatus and medium
US20200289947A1 (en) * 2018-02-27 2020-09-17 Tencent Technology (Shenzhen) Company Limited Message push method and apparatus, device, and storage medium
CN109101152A (en) * 2018-07-26 2018-12-28 维沃移动通信有限公司 A kind of data inputting method and terminal
CN109361592A (en) * 2018-08-08 2019-02-19 腾讯科技(深圳)有限公司 A kind of instant communication message processing method, device, equipment and storage medium
CN109814968A (en) * 2019-01-21 2019-05-28 维沃移动通信有限公司 A kind of data inputting method, terminal device and computer readable storage medium
CN110038305A (en) * 2019-04-12 2019-07-23 网易(杭州)网络有限公司 Information processing method and device, electronic equipment, storage medium
CN110658960A (en) * 2019-09-27 2020-01-07 北京字节跳动网络技术有限公司 Message processing method and device and electronic equipment
CN111142759A (en) * 2019-12-25 2020-05-12 维沃移动通信有限公司 Information sending method and electronic equipment
CN111782427A (en) * 2020-07-16 2020-10-16 Oppo广东移动通信有限公司 Content operation method and device and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115220633A (en) * 2022-07-18 2022-10-21 维沃移动通信有限公司 Message sending method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US20190220511A1 (en) Method and apparatus for displaying candidate word, and graphical user interface
CN113300938B (en) Message sending method and device and electronic equipment
CN113285866B (en) Information sending method and device and electronic equipment
JP2024518775A (en) Message processing method, first message processing device, second message processing device, and electronic device
WO2022156668A1 (en) Information processing method and electronic device
CN111857504A (en) Information display method and device, electronic equipment and storage medium
CN114500432A (en) Session message transceiving method and device, electronic equipment and readable storage medium
CN111865961A (en) Data processing method and device and electronic equipment
CN112748844A (en) Message processing method and device and electronic equipment
CN112286416A (en) Information display method and device and electronic equipment
CN114385049A (en) Message processing method, device, equipment and storage medium
US20240089223A1 (en) Information display method and apparatus, and electronic device
CN112948843B (en) Encryption method, encryption device, electronic equipment and medium
CN112448884A (en) Content saving method and device
CN112422735A (en) Information prompting method and device and electronic equipment
WO2023134599A1 (en) Voice information sending method and apparatus, and electronic device
WO2023046105A1 (en) Message sending method and apparatus and electronic device
CN115412634A (en) Message display method and device
CN112269510B (en) Information processing method and device and electronic equipment
CN112311660A (en) Message deleting method and device and electronic equipment
CN113342241A (en) Target character selection method and device, electronic equipment and storage medium
CN113138675A (en) Information display method and device and electronic equipment
CN112637407A (en) Voice input method and device and electronic equipment
CN112578966B (en) Application program switching method and device and electronic equipment
CN112035032B (en) Expression adding method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210305

RJ01 Rejection of invention patent application after publication