Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that, in the present disclosure, the embodiments and features of the embodiments may be combined with each other without conflict. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary architecture 100 to which embodiments of a method for presenting information or an apparatus for presenting information of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include a terminal device 101 and a server 102. The terminal device 101 and the server 102 may be communicatively coupled via various types of connections, such as wired, wireless communication links, or fiber optic cables, among others.
Various client applications may be installed on the terminal device 101. Such as browser-like applications, social-like applications, content sharing-like applications, and the like. The server 102 may be a backend server that provides support for applications installed on the terminal device 101.
The server 102 may push information to the terminal device 101. The operating system of the terminal device 101 may prompt the user that push information was received in the form of a system notification. The operating system of the terminal device 101 may further receive a request of the user to view the content indicated by the push information, and start a client of a corresponding application to present the content indicated by the push information.
As shown in fig. 1, the application installed on the terminal device 101 may have some plug-ins to provide other extended functions in addition to the installed client. When the terminal device 101 detects a user operation corresponding to a plug-in, the plug-in may be called by an operating system of the terminal device 101 to implement a corresponding function.
The terminal apparatus 101 may be hardware or software. When the terminal device 101 is hardware, it may be various electronic devices capable of installing a client application, including but not limited to a smart phone, a tablet computer, an e-book reader, a laptop portable computer, a desktop computer, and the like. When the terminal apparatus 101 is software, it can be installed in the electronic apparatuses listed above. It may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules to provide distributed services) or as a single piece of software or software module. And is not particularly limited herein.
It should be noted that the method for presenting information provided by the embodiment of the present disclosure is generally executed by the terminal device 101, and accordingly, the apparatus for presenting information is generally disposed in the terminal device 101.
The server 102 may be hardware or software. When the server is hardware, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules (e.g., multiple pieces of software or software modules used to provide distributed services), or as a single piece of software or software module. And is not particularly limited herein.
It should be understood that the number of terminal devices and servers in fig. 1 is merely illustrative. There may be any number of terminal devices and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for presenting information in accordance with the present disclosure is shown. The method for presenting information comprises the following steps:
step 201, receiving push information pushed by a server of a target application, wherein the push information includes information for presentation.
In the present embodiment, the target application may be an application that is designated in advance by a technician and installed on an execution subject (a terminal device shown in fig. 1) of the method for presenting information. The target application may be an application corresponding to the push information received by the execution agent.
The push information may be various information. Specifically, the content and form of the push information may be different according to different application scenarios and product requirements. For example, the form of push information that a terminal device can receive and display may differ for terminal devices of different operating systems.
Wherein the presentation information is used to prompt the user. The presence information may be used to prompt the user that there is currently push information to view. Of course, the content of the presentation information may also include information related to the content indicated by the push information.
The content indicated by the push information may refer to content that a server (such as the server 102 shown in fig. 1) sending the push information wants to access by the user. The content indicated by the push information may also be content introduced by the presentation information.
In some optional implementations of this embodiment, the push information may further include a content identifier for identifying content indicated by the push information. At this time, the content indicated by the push information is the content corresponding to the content identifier included in the push information.
The content identifier may be various forms of identifiers. For example, the content identifier may be a storage location of the content indicated by the push information in a database of the server of the target application. For another example, the content identifier may be a link address or the like of the content indicated by the push information. And the content indicated by the push information can be found according to the content identification.
In some optional implementations of this embodiment, the content indicated by the push information may include at least one of video, audio, text, and image.
Step 202, presenting the information for presentation to the user.
In this embodiment, the execution agent may present the received presentation information to the user in a system notification manner. The manner of presenting the received information for presentation may be various. For example, an information prompt box may pop up in a preset area of the terminal device to present the received information for presentation. It should be understood that the manner in which information is presented by different terminal devices is different.
Step 203, in response to detecting a first preset operation of the user on the information for presentation, sending push information to a plug-in corresponding to the first preset operation of the client of the target application, so that the plug-in performs a processing operation on the push information.
In this embodiment, the first preset operation may be various user operations specified in advance by a technician. For example, the user operation may be a double-click operation, a slide operation, a gesture motion over the terminal device, and so on.
In a specific application scenario, because user operations that can be detected by different terminal devices are different, the user operations that can be detected and identified by the terminal devices can be set as first preset operations according to specific application requirements.
As an example, for some terminal devices supporting a stereoscopic touch screen, a first preset operation may be set to be a re-pressing operation included in performing the stereoscopic touch screen on the information for presentation.
Alternatively, for a terminal device having a touch screen, a sliding operation of the presentation information in a preset direction may be set as the first preset operation.
In this embodiment, a plug-in may refer to a program written by a technician according to application requirements, and is used to provide some specific functions for a client of a target application. For example, the plug-in may be some Extension (Extension), plug, Add-on, and so on.
The plug-in of the client of the target application may refer to a program written according to an application program interface disclosed by the target application. A plug-in to the client of the target application may be used to extend the functionality provided by the target application. Technicians can write plug-ins which can provide functions to be realized according to specific service requirements or product requirements.
Wherein, the plug-in of the client of the target application can be installed with the client binding of the target application. I.e. the plug-in is installed at the same time as the client of the target application is installed. The plug-in for the client of the target application may also be installed independently. Namely, after the client of the target application is installed, the plug-in is installed by using the installation package or the installation program corresponding to the plug-in.
The plug-in for the client of the target application may run independently of the client of the target application. Since the plug-in for the client of the target application typically provides some specific functionality, the plug-in for the client of the target application is typically smaller in size than the client of the target application. Therefore, the system resources consumed or occupied by the plug-ins of the clients running the target application independently are low. Correspondingly, the response speed of the plug-in of the client of the target application is fast.
The client of the target application may have one or more plug-ins, which respectively provide different function implementations. When the operation of the plug-in needs to be triggered by the user operation detected by the terminal device, the user operation for triggering the operation of the plug-in may be preset by a technician.
In this embodiment, the first preset operation may be used to trigger the running of the corresponding plug-in. The plug-in corresponding to the first preset operation may be used to process push information pushed by the server side of the target application to the terminal device.
When installing the target application, the execution subject typically registers an installation directory of the target application in the operating system. At this time, when the first preset operation is received, the plug-in corresponding to the first preset operation may be searched from the installation directory of the registered target application and started.
The plug-in corresponding to the first preset operation may perform the following processing operations on the push information sent by the terminal device: and acquiring and displaying the content indicated by the push information on the page presenting the information for presentation.
Specifically, the plug-in corresponding to the first preset operation may first acquire the content indicated by the push information, and then display the content indicated by the push information on the page where the information for presentation is presented.
Alternatively, the content indicated by the push information may be stored locally in the terminal device, and the push information may include a storage address of the content indicated by the push information. At this time, the plug-in corresponding to the first preset operation may obtain the content indicated by the push information from the local according to the storage address.
Optionally, the content indicated by the push information may be stored in a server of the target application, and the push information may include a content identifier of the content indicated by the push information. At this time, the plug-in corresponding to the first preset operation may send the content identifier to the server of the target application, and receive the content indicated by the push information, which is returned by the server of the target application based on the content identifier.
The plug-in corresponding to the first preset operation can display the content of the obtained push information indication on the page presenting the information for presentation. The page presenting the presentation information may refer to a page on which the execution main body presents the presentation information.
For example, when the execution main body presents the presentation information in a pop-up page frame at the top in one direction in a system notification manner, the content indicated by the push information may be presented in the pop-up page frame presenting the presentation information.
In some optional implementation manners of this embodiment, when the content indicated by the push information includes video and/or audio, after detecting the first preset operation, the execution main body may invoke a plug-in corresponding to the first preset operation to play the video and/or audio on a page where the information for presentation is presented.
In some optional implementation manners of this embodiment, when the content indicated by the push information includes text and/or an image, after detecting the first preset operation, the execution main body may invoke a plug-in corresponding to the first preset operation to display the text and/or the image on the page where the present information is presented.
The plug-in corresponding to the first preset operation is written by technicians in advance according to actual application requirements. Therefore, in some application scenarios, the plug-in corresponding to the first preset operation may present, in addition to the content indicated by the push information, other content according to the requirement on the page presenting the information for presentation.
For example, when the content indicated by the push information includes video and/or audio, the plug-in corresponding to the first preset operation may provide other operation entries for interacting with the played video and/or audio on the page presenting the information for presentation while playing the video and/or audio on the page presenting the information for presentation. As an example, a comment area for commenting on played video and/or audio, and the like may be provided.
With continued reference to fig. 3, fig. 3 is a schematic diagram 300 of an application scenario of the method for presenting information according to the present embodiment. In the application scenario of fig. 3, the terminal device 301 may receive push information 304 sent by the server 303 of the target application 302 installed thereon. As shown in the figure, the push information 304 includes presentation information and video content identification. Here, the presentation information is "XX issues a new video", and the video content is identified by "ID 1".
After that, the terminal device 301 may present the information for presentation included in the received push information 304 to the user in a system notification manner (as shown by reference numeral 305 in the figure). When the user wants to view the specific content of the video, the information for presentation may be pressed (as shown by reference numeral 306 in the figure).
The terminal device 301, after detecting the operation of the user for pressing the information for presentation, may search for the plug-in "a" under the installation directory of the client of the target application 302, and call the plug-in "a" 307 to implement the playing of the video. Specifically, the terminal device may send the video content identification "ID 1" contained in the push information 304 to the plug-in "a" 307. Then, the plug-in "a" 307 sends a request to the server 303 to acquire video content whose video content is identified as "ID 1", and receives the video 308 returned by the server 303 based on the request. Further, plug-in "A" may control the playing of video 308 on the page displaying the information for presentation (as shown by reference numeral 309 in the figure).
According to the method provided by the above embodiment of the disclosure, according to the operation of the user, the terminal device may start the plug-in of the client of the target application corresponding to the user operation to present the detailed content of the push information pushed by the server of the target application. In the method, the push information is processed by the plug-in of the client of the target application without starting the client of the target application, so that the processing speed of the push information is increased, and the resource consumption of the terminal equipment is reduced.
With further reference to FIG. 4, a flow 400 of yet another embodiment of a method for presenting information is shown. The process 400 of the method for presenting information includes the steps of:
step 401, receiving push information pushed by a server of a target application, where the push information includes information for presentation.
Step 402, presenting the information for presentation to the user.
And step 403, in response to detecting a first preset operation of the user on the information for presentation, sending push information to a plug-in corresponding to the first preset operation of the client of the target application, so that the plug-in performs a processing operation on the push information.
The specific implementation process of the steps 401, 402, and 403 may refer to the related descriptions of the steps 201, 202, and 203 in the corresponding embodiment of fig. 2, and will not be described herein again.
Step 404, in response to detecting a second preset operation of the user on the information for presentation, starting the client of the target application to present the content indicated by the push information in the application page of the client of the target application.
In this embodiment, the second preset operation may be a user operation specified in advance by a technician. When the second preset operation is detected, the execution subject may start the client of the target application to present the content indicated by the push information.
In this case, different presentation modes are provided according to different operations of the user on the presentation information, and flexibility of the presentation mode of the content indicated by the push information is improved. The user can select a mode for showing the content indicated by the push information according to the tendency of the user. When the client is required to be started to view, the second preset operation can be executed on the information for presentation, and when the page where the information for presentation is located is required to be directly viewed, the first preset operation can be executed on the information for presentation.
As an example, for a terminal device supporting operations of clicking and pressing of a stereoscopic touch screen, pressing may be set as a first preset operation, and clicking may be set as a second preset operation. In this case, when the user represses the presentation information, the plug-in of the target application is called to control the content indicated by the push information to be directly presented on the page where the presentation information is located. And when the user clicks the information for presentation, calling the client of the target application to present the content indicated by the push information.
Step 405, in response to detecting a third preset operation on the content indicated by the push information, starting the client of the target application to present the content indicated by the push information in an application page of the client of the target application.
In this embodiment, the third preset operation may be a user operation specified in advance by a technician. And controlling the content indicated by the push information to be directly presented on the page where the presentation information is located by the plug-in of the target application, and enabling the user to execute a third operation on the currently presented page to start the client of the target application and switch to the client to present the content indicated by the push information.
Because the content that the client can present is richer, when the user wants to acquire more detailed information of the content indicated by the push information or wants to view other related content, a third preset operation can be executed to start the client of the target application, so that the richer information can be viewed at the client of the target application.
As an example, for a terminal device supporting operations of clicking, tapping and pressing of a stereoscopic touch screen, pressing may be set as a first preset operation, clicking may be set as a second preset operation, and pressing may be set as a third preset operation. At this time, after the user presses the presentation information again to call the plug-in of the target application to control the content indicated by the push information to be directly presented on the page where the presentation information is located. The client of the target application can be started to present the content indicated by the push information according to the presented content.
For convenience of describing various user operations, the user operations are named as a first preset operation, a second preset operation, and a third preset operation, respectively. It will be understood by those skilled in the art that the first, second or third ones do not constitute a specific limitation to the preset operation.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the process 400 for presenting information in the present embodiment highlights different presentation manners of the content indicated by the push information of the target application, which can be triggered according to different operations of the user, so as to provide a more flexible information presentation manner. Meanwhile, the user can select different display modes according to actual requirements, and the access rate of the pushed information is improved.
With further reference to fig. 5, as an implementation of the methods shown in the above-mentioned figures, the present disclosure provides an embodiment of an apparatus for presenting information, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable in various electronic devices.
As shown in fig. 5, the apparatus 500 for presenting information provided by the present embodiment includes a receiving unit 501, a presenting unit 502, and a presenting unit 503. The receiving unit 501 is configured to receive push information pushed by a server of a target application, where the push information includes information for presentation, and the information for presentation is used for prompting a user; the presentation unit 502 is configured to present the above presentation information to the user; the presentation unit 503 is configured to, in response to detecting a first preset operation of the user on the information for presentation, send push information to a plug-in of the client of the target application, which corresponds to the first preset operation, so as to cause the plug-in to perform a processing operation on the push information, where the processing operation includes: and acquiring and displaying the content indicated by the push information on the page presenting the information for presentation.
In the present embodiment, in the apparatus 500 for presenting information: the specific processing of the receiving unit 501, the presenting unit 502, and the presenting unit 503 and the technical effects thereof can refer to the related descriptions of step 201, step 202, and step 203 in the corresponding embodiment of fig. 2, which are not repeated herein.
In some optional implementations of the present embodiment, the presenting unit 503 is further configured to: and in response to detecting that the user performs a second preset operation on the information for presentation, starting the client of the target application to present the content indicated by the push information in an application page of the client of the target application.
In some optional implementations of the present embodiment, the presenting unit 503 is further configured to: and in response to detecting a third preset operation on the displayed content indicated by the push information, starting the client of the target application to display the content indicated by the push information in an application page of the client of the target application.
In some optional implementations of this embodiment, the first preset operation includes at least one of: the three-dimensional touch screen comprises a heavy pressing operation and a sliding operation in a preset direction.
In some optional implementations of this embodiment, the push information further includes a content identifier for identifying content indicated by the push information; and the presentation unit 503 is further configured to: and the plug-in corresponding to the first preset operation sends a content identifier to the server of the target application, and receives the content which is returned by the server of the target application based on the content identifier and indicated by the push information.
In some optional implementations of this embodiment, the content indicated by the push information includes video and/or audio; and the presentation unit 503 is further configured to: and acquiring a plug-in corresponding to the first preset operation and playing video and/or audio on the page presenting the information for presentation.
In some optional implementations of this embodiment, the content indicated by the push information includes text and/or images; and the presentation unit 503 is further configured to: and acquiring a plug-in corresponding to a first preset operation and displaying characters and/or images on a page presenting the information for presentation.
The device provided by the above embodiment of the present disclosure receives, by a receiving unit, push information pushed by a server of a target application, where the push information includes information for presentation, and the information for presentation is used to prompt a user; the presentation unit presents the presentation information to a user; the display unit responds to a first preset operation of a user on the information for presentation, and sends push information to a plug-in corresponding to the first preset operation of a client of a target application, so that the plug-in executes a processing operation on the push information, wherein the processing operation comprises the following steps: and acquiring and displaying the content indicated by the push information on the page presenting the information for presentation, thereby realizing a mode that the content indicated by the push information is displayed on the page presenting the push information by a plug-in of the client of the target application. Compared with the mode that the client starts the target application and displays the content indicated by the push information, the mode avoids the time-consuming process of starting the target application, thereby being beneficial to improving the display speed of the content indicated by the push information.
Referring now to fig. 6, shown is a schematic diagram of an electronic device (e.g., terminal device in fig. 1) 600 suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a fixed terminal such as a digital TV, a desktop computer, and the like. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the use range of the embodiments of the present disclosure.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; a storage device 608; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of embodiments of the present disclosure.
It should be noted that the computer readable medium described in the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In embodiments of the present disclosure, however, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be included in the terminal device; or may exist separately without being assembled into the terminal device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: receiving push information pushed by a server side of a target application, wherein the push information comprises information for presentation, and the information for presentation is used for prompting a user; presenting the information for presentation to a user; in response to detecting a first preset operation of a user on the information for presentation, sending push information to a plug-in corresponding to the first preset operation of a client of a target application, so that the plug-in executes a processing operation on the push information, wherein the processing operation comprises: and acquiring and displaying the content indicated by the push information on the page presenting the information for presentation.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a processor including a receiving unit, a presenting unit, and a presenting unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the presentation unit may also be described as a "unit that presents the above-described information for presentation to the user".
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.