Embodiments of this application relate to the field of Internet technologies, and in particular, to a sticker presentation method and apparatus and a computer-readable storage medium.
In the times of mobile Internet, depending on continuous development of social contact and networks, communication manners between people also correspondingly change, that is, change from communication through texts at the earliest time to starting gradually using some simple symbols and stickers, and then evolve into an increasingly diversified sticker culture step by step. In other words, stickers are a popular culture formed after social networking applications become active. For example, in a process in which a user interacts with a friend, to make two parties of interaction obtain good communication experience, this type of social networking application also supports a sticker presentation function. That is, any party participating in interaction may present a sticker to the opposite party of interaction on a message presentation interface.
In a related technology, when a sticker is presented, it is usually implemented by using the following manner: after detecting a click operation performed by one party of interaction on any sticker in a sticker selection window, a terminal displays a selected sticker on the message presentation interface according to a sequence. For example, if no message is currently presented on the message presentation interface, the terminal presents the sticker at a fixed first message presentation location on the message presentation interface. If messages are currently displayed on the message presentation interface, the terminal presents the sticker at a first message presentation location after these messages.
In the implementation process of embodiments of this application, the inventors find that the related technology has at least the following problem:
When the sticker is presented, the selected sticker can be only presented on the message presentation interface according to a sequence. Therefore, this sticker presentation manner lacks vividness, a manner is simple, and a display effect is poor.
To resolve the problem in the existing technology, embodiments of this application provide a sticker presentation method and apparatus and a computer-readable storage medium. The technical solutions are as follows:
According to a first aspect, a sticker presentation method is applied to a first terminal having one or more processors and memory storing programs to be executed by the one or more processors, the method comprising:
displaying, by the first terminal, a group chat window between friends of a social networking application, the group chat window including a sticker selection window and a message presentation interface;
obtaining, by the first terminal, a drag instruction for a selected target sticker in the sticker selection window;
moving, by the first terminal, the target sticker according to an obtained drag track corresponding to the drag instruction;
displaying, by the first terminal, a drop prompt message in a process of moving the target sticker;
obtaining, by the first terminal, a drag stop instruction for the target sticker in a message presentation interface; and
in response to the drag stop instruction, presenting, by the first terminal, the target sticker at first target location at which drag stops after receiving a drop confirmation instruction triggered by the drop prompt message.
According to a second aspect, a first terminal has one or more processors, memory coupled to the one or more processors and a plurality of programs stored in the memory that, when executed by the one or more processors, cause the first terminal to perform the aforementioned sticker presentation method.
According to a third aspect, a non-transitory computer readable storage medium stores a plurality of machine readable instructions in connection with a first terminal having one or more processors. The plurality of machine readable instructions, when executed by the one or more processors, cause the first terminal to perform the aforementioned sticker presentation method.
The technical solutions provided in the embodiments of this application bring about the following beneficial effects:
When a sticker is presented, a selected sticker drag operation is supported in a sticker selection window, and in a process of dragging and moving the sticker, the sticker is supported to be randomly dropped on a message presentation interface. Therefore, such a sticker presentation manner is more vivid, interaction manners are more diversified, and a display effect is good.
To describe the technical solutions in the embodiments of this application more clearly, the following briefly describes the accompanying drawings required for describing the embodiments. Apparently, the accompanying drawings in the following description show merely some embodiments of this application, and a person of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.
To make objectives, technical solutions, and advantages of the embodiments of this application clearer, the following further describes in detail implementations of this application with reference to the accompanying drawings.
Sticker: stickers are a popular culture formed after social networking applications become active and are used for expressing particular emotions, mainly thoughts and emotions in faces or postures. The stickers may be usually divided into symbol stickers, static picture stickers, animated stickers, and the like. For examples, stickers may use human faces expressing various emotions of humans as materials or use stars, quotations, comics and animation, movie screenshots, and the like that are currently popular as materials with a series of matching words added.
Message presentation interface (All In One, AIO): it is a message presentation interface provided in a social networking application, such as, a friend chat interface or a group chat interface, and is used for presenting stickers.
Random drop: stickers are supported to be dragged to a message presentation interface and may be randomly adhered to the message presentation interface even if text information or other stickers are displayed at a current location.
Implementation scenarios and a system architecture related to the sticker presentation method according to an embodiment of this application are briefly described in the following.
The sticker presentation method according to this embodiment of this application is mainly used for a friend interactive scenario or a group interactive scenario. Currently, in an interactive scenario, assuming that one party of interaction selects a sticker in a sticker selection window through a click operation, the selected sticker is presented on a message presentation interface of parties of interaction according to a sequence.
For example, in
Because such a sticker presentation manner is excessively simple and lacks vividness, it is provided in this embodiment of this application that a sticker can be dragged to the message presentation interface, may be randomly dropped on the message presentation interface, and can perform interaction manners of hiding and re-calling, so that a user can better express personal emotions in a process in which the user interacts with a friend from a friend relation chain, thereby enhancing emotional expression in an online non-face-to-face interaction situation, improving activity of the friend relation chain, increasing interaction pleasure, and providing better user experience.
The first terminal and the second terminal may be smartphones, tablet computers, and the like. This is not specifically limited in this embodiment of this application. In a one-to-one interactive scenario, the second terminal includes one terminal. In a one-to-many interactive scenario, the second terminal includes a plurality of terminals. In addition, the same social networking application is installed on the first terminal and the second terminal. A first user of the first terminal and a second user of the second terminal perform interaction based on the social networking application, and the social networking application separately maintains a friend relation chain for the first user and the second user. The first user is located in a friend relation chain of the second user, and the second user is located in a friend relation chain of the first user.
In this embodiment of this application, a sticker presentation process may be briefly described as: moving, by a first terminal, after obtaining a drag instruction for a selected target sticker in a sticker selection window, the target sticker according to an obtained drag track; displaying a drop prompt message for the target sticker; and then if the first terminal obtains a drag stop instruction for the target sticker in a message presentation interface, in response to the drag stop instruction, presenting the target sticker at a first target location at which drag stops after receiving a drop confirmation instruction triggered by the drop prompt message.
The first target location may be any location on the message presentation interface even if text information or another sticker is displayed at the location. Certainly, the first terminal sends related sticker presentation data to the second terminal through transparent transmission of the server, so that the second terminal has the same sticker presentation effect as the first terminal.
In this way, an interaction manner of dragging a sticker to the message presentation interface for random drop through a trigger operation such as long press is implemented. In other words, in this embodiment of this application, a new sticker interaction manner is provided by sensing a gesture operation of the user. Refer to the following embodiment for detailed implementations of a drag trigger operation, random drop, hiding the sticker, and calling the sticker.
301: A first terminal moves, after obtaining a drag instruction for a selected target sticker in a sticker selection window, the target sticker according to an obtained drag track and displays a drop prompt message in a process of moving the target sticker.
The sticker selection window is used for presenting a plurality of different stickers, for the user to input a sticker. In this embodiment of this application, referring to
Duration of the long-press operation may be 1s, 2s, or the like and is not specifically limited in this embodiment of this application. The duration of the long-press operation is distinguished from a single click operation. The drag track may be obtained by a touch-sensitive element on the first terminal. This is not specifically limited in this embodiment of this application. In addition, after the first terminal detects the long-press operation of the first user on the sticker F, to subsequently help the first user perform a drag operation on the sticker F, as shown in
In another embodiment, the drop prompt message for the sticker F may also be displayed in a process of moving the sticker F. As shown in
It should be noted that because the sticker F is used for communicating and interacting with another person, the sticker F is usually dropped on the message presentation interface. Therefore, the drop prompt message may be displayed after the sticker F is moved to the message presentation interface. Certainly, the drop prompt message may also be displayed after the sticker F is moved.
In addition, as shown in
In another embodiment, referring to
In another embodiment, in a process of moving the sticker F, the slide operation may be randomly performed on the message presentation interface. Regardless of whether a blank area of the message presentation interface or a non-blank area on the message presentation interface in which text information or another sticker is presented is passed through in a moving process, the sticker F is always displayed on the message presentation interface in a display manner of being dropped on a top layer.
302: The first terminal obtains a drag stop instruction for the target sticker in a message presentation interface, and in response to the drag stop instruction, presents the target sticker at a first target location at which drag stops after receiving a drop confirmation instruction triggered by the drop prompt message.
In this embodiment of this application, when the first user stops dragging the target sticker, that is, after the first user performs the slide operation, if the first terminal detects that stop duration at a location exceeds specified duration, the first terminal obtains the drag stop instruction for the target sticker and responds to the drag stop instruction. In this case, the target sticker does not continue moving and being displayed but is displayed at a fixed location shown in any of
As shown in
In another embodiment, if the first user clicks the drop cancel prompt icon ⊗ at the fixed location, the first terminal receives a drop cancel instruction and determines that the first user cancels dropping the target sticker at the fixed location. Therefore, presentation of the target sticker is canceled on the message presentation interface, that is, the target sticker disappears on the message presentation interface. In this situation, after the first user clicks the drop cancel prompt icon ⊗, currently, the sticker selection window also restores to the previous operable state, and the area at which the target sticker is located also restores to the original display pattern. In this case, similar sticker drag and drop processing may also be continued. This is not specifically limited in this embodiment of this application.
It should be noted that this embodiment of this application can implement the foregoing sticker presentation method because a visual rendering layer of the message presentation interface is re-drawn. Referring to
The message container is a layer for accommodating a message generated in an interaction process of the first user and the second user. The message container may be rectangular, round, or of an irregular shape. This is not specifically limited in this embodiment of this application. In addition, an area for presenting the message in the message container may be non-transparent, and an area other than the area for presenting the message in the message container may be transparent or semi-transparent. The input control is a control for input and may include an input box. In this embodiment of this application, the visual rendering layer is re-drawn, that is, a user interface (UI) component is called to perform content drawing on the visual rendering layer by using a drawing method using a render object, so that the user can trigger, through an operation such as long press, dragging the sticker to the message presentation interface for random drop, hiding the sticker, re-calling the sticker, and the like.
In another embodiment, in this embodiment of this application, when a message generated by inputting conventionally by using an input box is presented, specifically, the message is presented in the message container, while the target sticker is presented through the visual rendering layer, so that presentation of a conventional message is separated from presentation of the special sticker, achieving a better presentation effect. After the visual rendering layer is included, the first terminal may present the target sticker in the following several manners.
A first manner is: drawing the target sticker presented at the first target location on the visual rendering layer in a presentation manner of being dropped on a top layer if a message box body is presented at the first target location, so that the target sticker is presented on the message box body in a superposing manner.
In this embodiment of this application, provided that the message box body and the target sticker have an overlapping part, it is determined that the message box body is presented at the first target location. That is, the first manner corresponds to a sticker presentation manner shown in
It should be noted that in this embodiment of this application, it may be set to only be supported that the randomly dropped sticker is superposed on the original message box body for presentation. That is, if the first user wants to drop the target sticker in an entirely blank area on the message presentation interface, drop does not succeed.
In this setting manner, after receiving the drop confirmation instruction, the first terminal may determine whether the message box body is presented at the first target location. If the message box body is presented at the first target location, the step of presenting the target sticker at the first target location is performed. If the message box body does not exist at the first target location, a re-drop prompt message is displayed. The re-drop prompt message may be displayed in a fringe area of the message presentation interface in a strip display manner, to avoid excessive coverage of the message presentation interface as much as possible.
The message box body presents a message generated by inputting in a conventional input box manner. The generated message may be pure text information, or may be only a sticker, or may be a combination of text information and a sticker. This is not specifically limited in this embodiment of this application.
A second manner is: drawing the target sticker presented at the first target location on the visual rendering layer in a presentation manner of being dropped on a top layer if a message box body is presented at the first target location, and another sticker is presented on the message box body in a superposing manner, so that the target sticker is presented on the another sticker in a superposing manner.
It should be noted that the another sticker herein is a sticker that is previously randomly dropped on the message box body through a drag operation.
The second manner mainly is a manner of stacking a sticker on a sticker. As shown in
A third manner is: drawing the target sticker presented at the first target location on the visual rendering layer if the first target location is blank.
In the third manner, in this embodiment of this application, it may also be set to be supported that the randomly dropped sticker is presented in a blank. That is, if the first user wants to drop the target sticker in an entirely blank area on the message presentation interface, drop also succeeds without depending on the message box body.
In conclusion, in this embodiment of this application, drag and random drop for the target sticker on the first terminal are completed. To make the target sticker on the message presentation interface of the second terminal also have the same presentation effect rather than presenting the target sticker according to a sequence in a conventional manner, this embodiment of this application further includes the following step 303 to step 307.
303: The first terminal sends sticker presentation data to a server, the sticker presentation data including at least first coordinate location information, first screen size information, and identification information of at least one presentation element.
In this embodiment of this application, the sticker presentation data is generated by the first terminal in the following manner: obtaining, by the first terminal, first screen size information of the first terminal; determining at least one presentation element associated with the target sticker; calculating first coordinate location information of the target sticker relative to the at least one presentation element; and then generating the sticker presentation data at least according to the first coordinate location information, the first screen size information, and the identification information of the at least one presentation element.
The at least one presentation element is a message box body and/or a sticker presented at the first target location. That is, when only the message box body is presented at the first target location, the at least one presentation element is only the message box body, for example, referring to a situation shown in
In addition, in this embodiment of this application, the first screen size information needs to be obtained because currently, the terminal has various sizes. To synchronize terminals of different sizes and make the terminals of different sizes have a consistent display effect when displaying the target sticker, relative positions of the target sticker and the at least one presentation element also need to be converted based on a difference between size information of the terminals. For example, an overlapping part between the target sticker and the message box body on the message presentation interface of the first terminal is 30%. Therefore, it also needs to be ensured that an overlapping part between the target sticker and the message box body on the message presentation interface of the second terminal is 30%.
It should be noted that if the target sticker is presented at a blank location on the message presentation interface, the first coordinate location information is absolute location information. That is, in addition to that coordinate locations are converted on the message presentation interface of the second terminal according to relative first coordinate location information and first screen size information, corresponding conversion may be performed according to absolute first coordinate location information and first screen size information. This is not specifically limited in this embodiment of this application. The identification information of the at least one presentation element is used for helping the second terminal fast lock a rough location of the target sticker in all content presented on the message presentation interface.
When sending the sticker presentation data to the server, the first terminal may reuse an original message channel for transmitting message data. This is not specifically limited in this embodiment of this application.
304: The server sends the sticker presentation data to a second terminal after receiving the sticker presentation data.
The server may also reuse the original message channel for transmitting message data and sends the sticker presentation data to the second terminal.
305: The second terminal determines a presentation range area of a target sticker on a message presentation interface according to the identification information of the at least one presentation element after receiving the sticker presentation data sent by the first terminal.
A presentation area of the at least one presentation element and a peripheral area of the at least one presentation element may both be determined as presentation range areas of the target sticker.
306: The second terminal obtains second screen size information of the second terminal and a second target location within the presentation range area according to the first screen size information, the second screen size information, and the first coordinate location information.
In this embodiment of this application, the second terminal may first calculate second coordinate location information of the target sticker relative to the at least one presentation element on the message presentation interface of the second terminal according to the first screen size information, the second screen size information, and the first coordinate location information, and then calculates the second target location according to second coordinate location information and location information of the at least one presentation element.
307: The second terminal superposes the target sticker on the at least one presentation element for presentation in a display manner of being dropped on a top layer at the second target location.
When presenting the target sticker, the second terminal also draws the target sticker on the visual rendering layer in a manner similar to the foregoing manner of presenting the target sticker on the message presentation interface of the first terminal, so that the manner of presenting the target sticker on the message presentation interface of the second terminal is consistent with the manner for presenting the first terminal.
In this embodiment of this application, as shown in
First, the dropped sticker is scaled. That is, after obtaining a scaling instruction for the dropped sticker, the first terminal obtains a target scaling ratio matching the scaling instruction and further performs scaling processing on the sticker according to the target scaling ratio.
The scaling processing may be zooming-in processing or may be zooming-out processing. There may be a plurality of manners of obtaining the scaling instruction. As shown in
Certainly, in addition to the zooming-in manner shown in
Correspondingly, still using
In another embodiment, after determining that the first user performs scaling processing on the sticker E, the first terminal may display the foregoing drop prompt information again, to perform drop prompt on the first user. After the first user completes scaling processing of the sticker E, if the first terminal detects a drop confirmation operation of the first user, the scaled sticker E is presented. If the first terminal detects a cancel confirmation operation of the first user, the initial sticker E before scaling is presented.
In another embodiment, after the first user performs scaling processing on the sticker E, to make the sticker E on the message presentation interface of the second terminal have the same presentation effect, the sticker E is synchronously presented in a zooming-in or zooming-out manner. In this embodiment of this application, scaling data of the sticker E may be sent to the second terminal through the server, so that the second terminal synchronously presents the sticker E on the message presentation interface according to the scaling data. The scaling data includes at least the sticker E and a target scaling ratio of the sticker E.
Second, the dropped sticker is rotated. That is, after obtaining a rotation instruction for the dropped sticker, the first terminal obtains a target rotation direction and a target rotation angle that match the rotation instruction, and performs rotation processing on the target sticker according to the target rotation direction and the target rotation angle.
In another embodiment, after determining that the first user performs rotation processing on the sticker E, the first terminal may display the foregoing drop prompt information again, to perform drop prompt on the first user, as shown in
In another embodiment, after the first user performs rotation processing on the sticker E, to make the sticker E on the message presentation interface of the second terminal have the same presentation effect, the rotated sticker E is synchronously presented. In this embodiment of this application, rotation data of the sticker E may be sent to the second terminal through the server, so that the second terminal synchronously presents the sticker E on the message presentation interface according to the rotation data. The rotation data includes at least the sticker E, and a target rotation direction and a target rotation angle of the sticker E. After the second terminal performs rotation processing on the sticker E, a presentation effect is also shown in
It should be noted that in this embodiment of this application, in addition to performing scaling processing and rotation processing on the dropped sticker, this embodiment of this application also supports hiding and re-calling the dropped sticker through a gesture operation. For example, there are currently excessively many dropped stickers on the message presentation interface, and viewing of the first user for messages is affected. Therefore, the dropped sticker may be hidden. Further, after the dropped sticker is hidden, a re-calling operation may be performed on the hidden sticker, so that the previously hidden sticker is presented on the message presentation interface again.
First, a hiding operation is performed on the dropped sticker.
That is, as shown in
As shown in
As shown in
In other words, the preset termination location is the left side and the right side of the screen. For each dropped sticker, a preset termination location of the dropped sticker may be randomly set as the left side of the screen or the right side of the screen or set according to a distance away from two sides of the screen. For example, a preset termination location of a sticker closer to the left side of the screen is the left side of the screen, and a preset termination location of a sticker closer to the right side of the screen is the right side of the screen.
As shown in
In another embodiment, to enhance a user experience effect, transparency and a size of each sticker may also be adjusted in a process of moving the dropped sticker. For example, as shown in
It should be noted that the preset termination location may also be an upper side and a lower side of the screen or an upper left corner and a lower right corner of the screen, or a lower left corner and an upper right corner of the screen, in addition to the left side and the right side of the screen. This is not specifically limited in this embodiment of this application.
Second, the previously hidden sticker is re-called. As shown in
The re-calling operation and the hiding operation are used as mutually inverse processes. That is, as shown in
In the method according to this embodiment of this application, when a sticker is presented, a selected sticker drag operation is supported in a sticker selection window, and in a process of dragging and moving the sticker, the sticker is supported to be randomly dropped on a message presentation interface. Therefore, such a sticker presentation manner is more vivid, interaction manners are more diversified, and a display effect is good.
In addition, in this embodiment of this application, operations such as zooming in, zooming out, rotation, hiding, and re-calling on the dropped sticker are supported. Therefore, presentation patterns on the sticker are further enriched, thereby diversifying interaction.
a processing module 501, configured to obtain, after obtaining a drag instruction for a selected target sticker in a sticker selection window, the target sticker according to an obtained drag track;
a first presentation module 502, configured to display a drop prompt message in a process of moving the target sticker; and
a second presentation module 503, configured to obtain a drag stop instruction for the target sticker in a message presentation interface, and in response to the drag stop instruction, present the target sticker at a first target location at which drag stops after receiving a drop confirmation instruction triggered by the drop prompt message.
In another embodiment, the program unit further includes:
an obtaining module, configured to obtain, after obtaining a scaling instruction for the target sticker, a target scaling ratio matching the scaling instruction,
the processing module being further configured to perform scaling processing on the target sticker according to the target scaling ratio, to obtain a scaled target sticker; and
the presentation module being configured to present the scaled target sticker at the first target location.
In another embodiment, the program unit further includes:
an obtaining module, configured to obtain, after obtaining a rotation instruction for the target sticker, a target rotation direction and a target rotation angle that match the rotation instruction,
the processing module being further configured to perform rotation processing on the target sticker according to the target rotation direction and the target rotation angle, to obtain a rotated target sticker; and
the presentation module being configured to present the rotated target sticker at the first target location.
In another embodiment, the message presentation interface includes a visual rendering layer; and
the second presentation module 503 is configured to: draw the target sticker presented at the first target location on the visual rendering layer in a presentation manner of being dropped on a top layer if a message box body is presented at the first target location, so that the target sticker is presented on the message box body in a superposing manner; or draw the target sticker presented at the first target location on the visual rendering layer in a presentation manner of being dropped on a top layer if a message box body is presented at the first target location, and another sticker is presented on the message box body in a superposing manner, so that the target sticker is presented on the another sticker in a superposing manner; or draw the target sticker presented at the first target location on the visual rendering layer if the first target location is blank.
In another embodiment, the second presentation module 503 is further configured to control, after obtaining a hiding presentation instruction for the target sticker, the target sticker to move from the first target location to a preset termination location according to a preset moving track; and adjust transparency and a size of the target sticker in a moving process until presentation for the target sticker is canceled,
the target sticker closer to the preset termination location being smaller and having higher transparency.
In another embodiment, the second presentation module 503 is further configured to control, after obtaining a hiding presentation instruction for the target sticker, the target sticker to move from the first target location to a preset termination location according to a preset moving track; and adjust transparency and a size of the target sticker in a moving process until presentation for the target sticker is canceled,
the target sticker closer to the preset termination location being smaller and having higher transparency.
In another embodiment, the program unit further includes:
an obtaining module, configured to obtain first screen size information of the first terminal;
a determining module, configured to determine at least one presentation element associated with the target sticker, the presentation element being a message box body and/or a sticker presented at the first target location;
a calculation module, configured to calculate first coordinate location information of the target sticker relative to the at least one presentation element; and
a sending module, configured to send sticker presentation data to a second terminal, so that the second terminal presents the target sticker according to the sticker presentation data, the sticker presentation data including at least the first coordinate location information, the first screen size information, and identification information of the at least one presentation element,
a second user of the second terminal being located in a friend relation chain of a first user of the first terminal.
In the apparatus according to this embodiment of this application when a sticker is presented, a selected sticker drag operation is supported in a sticker selection window, and in a process of dragging and moving the sticker, the sticker is supported to be randomly dropped on a message presentation interface. Therefore, such a sticker presentation manner is more vivid, interaction manners are more diversified, and a display effect is good.
In addition, in this embodiment of this application, operations such as zooming in, zooming out, rotation, hiding, and re-calling on the dropped sticker are supported. Therefore, presentation patterns on the sticker are further enriched, thereby diversifying interaction.
a receiving module 601, configured to receive sticker presentation data sent by a first terminal, the sticker presentation data including at least first coordinate location information, first screen size information, and identification information of at least one presentation element;
a determining module 602, configured to determine a presentation range area of a target sticker on a message presentation interface according to the identification information of the at least one presentation element;
an obtaining module 603, configured to obtain second screen size information of the second terminal,
the determining module being further configured to determine a second target location within the presentation range area according to the first screen size information, the second screen size information, and the first coordinate location information; and
a presentation module 604, configured to superpose the target sticker on the at least one presentation element for presentation in a display manner of being dropped on a top layer at the second target location.
In the apparatus according to this embodiment of this application when a sticker is presented, a selected sticker drag operation is supported in a sticker selection window, and in a process of dragging and moving the sticker, the sticker is supported to be randomly dropped on a message presentation interface. Therefore, such a sticker presentation manner is more vivid, interaction manners are more diversified, and a display effect is good.
In addition, in this embodiment of this application, operations such as zooming in, zooming out, rotation, hiding, and re-calling on the dropped sticker are supported. Therefore, presentation patterns on the sticker are further enriched, thereby diversifying interaction.
It should be noted that when the sticker presentation apparatus according to the foregoing embodiment performs sticker presentation, only divisions of the foregoing functional modules are described by using an example. During actual application, the foregoing functions may be allocated to and completed by different functional modules according to requirements, that is, the internal structure of the apparatus is divided into different functional modules, to complete all or some of the foregoing described functions. In addition, the sticker presentation apparatus and the sticker presentation method provided in the foregoing embodiments belong to one conception. For the specific implementation process, refer to the method embodiments, and details are not described herein again.
components such as a radio frequency (RF) circuit 110, a memory 120 including one or more computer-readable storage mediums, an input unit 130, a display unit 140, a sensor 150, an audio circuit 160, a wireless fidelity (WiFi) module 170, a processor 180 including one or more processing cores, and a power supply 190. A person skilled in the art may understand that the structure of the terminal shown in
The RF circuit 110 may be configured to receive and send signals during an information receiving and sending process or a call process. Particularly, the RF circuit receives downlink information from a base station, then delivers the downlink information to one or more processors 180 for processing, and sends related uplink data to the base station. Generally, the RF circuit 110 includes but is not limited to an antenna, at least one amplifier, a tuner, one or more oscillators, a subscriber identity module (SIM) card, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, and the like. In addition, the RF circuit 110 may also communicate with a network and another device through wireless communication. The wireless communication may use any communications standard or protocol, which includes, but is not limited to, Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Messaging Service (SMS), and the like.
The memory 120 may be configured to store a software program and module. The processor 180 runs the software program and module stored in the memory 120, to implement various functional applications and data processing. The memory 120 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function and an image display function), and the like. The data storage area may store data (such as audio data and an address book) created according to the use of the terminal 700, and the like. In addition, the memory 120 may include a high-speed random access memory, and may further include a non-volatile memory such as at least one magnetic disk storage device or a flash memory device, or another volatile solid storage device. Correspondingly, the memory 120 may further include a memory controller, to provide access of the processor 180 and the input unit 130 to the memory 120.
The input unit 130 may be configured to receive input digit or character information, and generate a keyboard, mouse, joystick, optical, or track ball signal input related to the user setting and function control. Specifically, the input unit 130 may include a touch-sensitive surface 131 and another input device 132. The touch-sensitive surface 131, which may also be referred to as a touchscreen or a touch panel, may collect a touch operation of a user on or near the touch-sensitive surface (such as an operation of a user on or near the touch-sensitive surface 131 by using any suitable object or accessory, such as a finger or a stylus), and drive a corresponding connection apparatus according to a preset program. Optionally, the touch-sensitive surface 131 may include two parts: a touch detection apparatus and a touch controller. The touch detection apparatus detects a touch position of the user, detects a signal generated by the touch operation, and transfers the signal to the touch controller. The touch controller receives the touch information from the touch detection apparatus, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 180. In addition, the touch controller can receive a command sent by the processor 180 and execute the command. In addition, the touch-sensitive surface 131 may be a resistive, capacitive, infrared, or surface sound wave type touch-sensitive surface. In addition to the touch-sensitive surface 131, the input unit 130 may further include the another input device 132. Specifically, the another input device 132 may include, but is not limited to, one or more of a physical keyboard, a functional key (such as a volume control key or a switch key), a track ball, a mouse, and a joystick.
The display unit 140 may be configured to display information input by the user or information provided for the user, and various graphical user interfaces of the terminal 700. These graphical user interfaces may include a graph, text, an icon, a video and any combination thereof. The display unit 140 may include a display panel 141. Optionally, the display panel 141 may be configured by using a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch-sensitive surface 131 may cover the display panel 141. After detecting a touch operation on or near the touch-sensitive surface 131, the touch-sensitive surface 131 transfers the touch operation to the processor 180, so as to determine the type of the touch event. Then, the processor 180 provides a corresponding visual output on the display panel 141 according to the type of the touch event. Although, in
The terminal 700 may further include at least one sensor 150 such as an optical sensor, a motion sensor, and other sensors. Specifically, the optical sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor may adjust luminance of the display panel 141 according to brightness of the ambient light. The proximity sensor may switch off the display panel 141 and/or backlight when the terminal 700 is moved to the ear. As one type of motion sensor, a gravity acceleration sensor can detect magnitude of accelerations in various directions (generally on three axes), may detect magnitude and a direction of the gravity when static, and may be applied to an application that recognizes the attitude of the mobile phone (for example, switching between landscape orientation and portrait orientation, a related game, and magnetometer attitude calibration), a function related to vibration recognition (such as a pedometer and a knock), and the like. Other sensors, such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which may be configured in the terminal 700, are not further described herein.
The audio circuit 160, a speaker 161, and a microphone 162 may provide audio interfaces between the user and the terminal 700. The audio circuit 160 may convert received audio data into an electrical signal and transmit the electrical signal to the speaker 161. The speaker 161 converts the electrical signal into a sound signal for output. On the other hand, the microphone 162 converts a collected sound signal into an electrical signal. The audio circuit 160 receives the electrical signal, converts the electrical signal into audio data, and outputs the audio data to the processor 180 for processing. Then, the processor 180 sends the audio data to, for example, another terminal by using the RF circuit 110, or outputs the audio data to the memory 120 for further processing. The audio circuit 160 may further include an earplug jack, to provide communication between a peripheral earphone and the terminal 700.
WiFi is a short distance wireless transmission technology. The terminal 700 may help, by using the WiFi module 170, the user to receive and send emails, browse a web page, access streaming media, and so on, which provides wireless broadband Internet access for the user.
The processor 180 is a control center of the terminal 700, which is connected to various parts of the entire mobile phone by using various interfaces and lines, and by running or executing a software program and/or module stored in the memory 120 and calling data stored in the memory 120, to perform various functions of the terminal 700 and process data, so as to perform overall monitoring on the mobile phone. Optionally, the processor 180 may include one or more processing cores. Preferably, the processor 180 may integrate an application processor and a modem processor. The application processor mainly processes an operating system, a user interface, an application program, and the like. The modem processor mainly processes wireless communication. It may be understood that the foregoing modem processor may alternatively not be integrated into the processor 180.
The terminal 700 further includes the power supply 190 (such as a battery) for supplying power to the components. Preferably, the power supply may be logically connected to the processor 180 by using a power management system, thereby implementing functions such as charging, discharging, and power consumption management by using the power management system. The power supply 190 may further include one or more of a direct current or alternating current power supply, a re-charging system, a power failure detection circuit, a power supply converter or inverter, a power supply state indicator, and any other component.
Although not shown in the figure, the terminal 700 may further include a camera, a Bluetooth module, and the like, which are not further described herein. Specifically, in this embodiment, the display unit of the terminal is a touch screen display, the terminal further includes a memory, the storage medium storing at least one instruction, at least one program, and a code set or an instruction set, and the at least one instruction, the at least one program, and the code set or the instruction set being loaded and executed by the processor to implement the sticker presentation method in the foregoing embodiments.
A person of ordinary skill in the art may understand that all or some of the steps of the foregoing embodiments may be implemented by using hardware, or may be implemented by a program instructing relevant hardware. The program may be stored in a computer readable storage medium. The storage medium may be a ROM, a magnetic disk, an optical disc, or the like.
The foregoing descriptions are merely preferred embodiments of this application, but are not intended to limit this application. Any modification, equivalent replacement, or improvement made within the spirit and principle of the embodiments of this application shall fall within the protection scope of the embodiments of this application.
Number | Date | Country | Kind |
---|---|---|---|
201710639778.0 | Jul 2017 | CN | national |
This application is a continuation application of PCT/CN2018/096609, entitled “STICKER PRESENTATION METHOD AND APPARATUS AND COMPUTER-READABLE STORAGE MEDIUM” filed on Jul. 23, 2018, which claims priority to Chinese Patent Application No. 201710639778.0, entitled “STICKER PRESENTATION METHOD AND APPARATUS AND COMPUTER-READABLE STORAGE MEDIUM” filed with the Chinese Patent Office on Jul. 31, 2017, both of which are incorporated by reference in their entirety.
Number | Date | Country | |
---|---|---|---|
Parent | PCT/CN2018/096609 | Jul 2018 | US |
Child | 16569515 | US |