CN110119233B - Content pushing method and device, terminal and storage medium - Google Patents

Content pushing method and device, terminal and storage medium Download PDF

Info

Publication number
CN110119233B
CN110119233B CN201910406341.1A CN201910406341A CN110119233B CN 110119233 B CN110119233 B CN 110119233B CN 201910406341 A CN201910406341 A CN 201910406341A CN 110119233 B CN110119233 B CN 110119233B
Authority
CN
China
Prior art keywords
content
pushed
floating window
display
screen
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.)
Active
Application number
CN201910406341.1A
Other languages
Chinese (zh)
Other versions
CN110119233A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910406341.1A priority Critical patent/CN110119233B/en
Publication of CN110119233A publication Critical patent/CN110119233A/en
Application granted granted Critical
Publication of CN110119233B publication Critical patent/CN110119233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/0485Scrolling or panning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • 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

Abstract

The application discloses a content pushing method and device, a terminal and a storage medium, and belongs to the technical field of internet. The method comprises the following steps: acquiring the state of a content display page of a terminal; when the state indicates that the content display page has the content to be pushed, displaying a floating window pointing to the content to be pushed in the screen to prompt a user of the content to be pushed; acquiring sliding operation aiming at the content display page or the floating window; updating at least one of the pointing direction and the display position of the floating window based on the sliding operation to keep the floating window pointing to the content to be pushed. The content pushing method and device improve pushing efficiency of the content to be pushed.

Description

Content pushing method and device, terminal and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a content push method and apparatus, a terminal, and a storage medium.
Background
With the development of scientific technology, the use of terminals is more and more common. A plurality of applications are generally installed in a terminal, and each application may include a plurality of sub-applications each for implementing a different function. When the function of the sub application program is updated, the user is timely prompted that the function of the sub application program is updated, so that the user is guided to use the sub application program with the updated function, and the viscosity of the user can be effectively improved.
In the related art, an interface of an application program generally includes icons of a plurality of sub application programs. When there is an update in the function of the sub-application, a prompt message is usually displayed on the icon of the sub-application whose function is updated to prompt the user that the function of the sub-application is updated.
However, when the icon of the sub-application with the updated function is not displayed in the screen of the terminal, the user cannot see the prompt message, so that the user cannot know the update condition, and therefore, the efficiency of prompting the update in the related art is low.
Disclosure of Invention
The embodiment of the application provides a content pushing method and device, a terminal and a storage medium, and can solve the problem of low efficiency of prompting updating in the related technology. The technical scheme is as follows:
in one aspect, a content pushing method is provided, where the method includes:
acquiring the state of a content display page of a terminal;
when the state indicates that the content display page has the content to be pushed, displaying a floating window pointing to the content to be pushed in a screen to prompt a user of the content to be pushed;
acquiring sliding operation aiming at the content display page or the floating window;
updating at least one of the pointing direction and the display position of the floating window based on the sliding operation to keep the floating window pointing to the content to be pushed.
In a possible implementation manner, an included angle between the pointing direction of the floating window and the second direction is an arc tangent of a target ratio;
the target ratio is a ratio of a first distance and a second distance, the first distance is a distance between a position of the floating window displayed in the content display page and a display position of the content to be pushed in the content display page along a first direction, the second distance is a distance between a position of the floating window displayed in the content display page and a display position of the content to be pushed in the content display page along a second direction, the first direction is parallel to a scrolling direction of the content display page, and the second direction is perpendicular to the first direction.
In a possible implementation manner, in the process of displaying that the floating window moves towards the position of the content to be pushed, after a target straight line is parallel to the second direction, a moving distance of the floating window along the first direction is equal to a moving distance of the content to be pushed along the first direction, and the target straight line is determined by the display position of the floating window and the display position of the content to be pushed.
In another aspect, a content push apparatus is provided, the apparatus including:
the acquisition module is used for acquiring the state of a content display page of the terminal;
the display module is used for displaying a floating window pointing to the content to be pushed in a screen when the state indicates that the content display page has the content to be pushed so as to prompt a user of the content to be pushed;
the acquisition module is further configured to acquire a sliding operation for the content display page or the floating window;
the display module is further configured to update at least one of the pointing direction and the display position of the floating window based on the sliding operation, so as to keep the floating window pointing to the content to be pushed.
In one possible implementation manner, the display module is configured to:
when the state indicates that the content display page has the content to be pushed, acquiring first display position information for indicating the position of the content to be pushed in the content display page and second display position information for indicating the position of a display area of the content display page on the screen in the content display page;
when it is determined that the content to be pushed is not displayed in the screen based on the first display position information and the second display position information, displaying the floating window at a reference position of the screen;
and when the content to be pushed is determined to be displayed in the screen based on the first display position information and the second display position information, displaying the floating window at the position of the content to be pushed.
Optionally, the display module is further configured to:
acquiring the change condition of the relative position of the content to be pushed and the display area of the content display page on the screen based on the sliding operation;
updating the direction of the floating window when the content to be pushed is determined to be displayed in the screen before or after the change based on the change condition;
and updating the direction of the floating window when the situation that the content to be pushed is not displayed in the screen before and after the change is determined based on the change situation.
Optionally, the display module is further configured to:
acquiring the change condition of the relative position of the content to be pushed and the display area of the content display page on the screen based on the sliding operation;
and updating the display position of the floating window when the content to be pushed is determined to be displayed in the screen after the change based on the change condition.
Optionally, when the sliding operation is used to instruct scrolling different areas of the content display page in the screen, the display module is further configured to:
in the process of displaying different areas of the content display page in a rolling mode, if it is determined that the content to be pushed is always displayed in the screen in the process based on the change situation, displaying the process that the floating window moves towards the position where the content to be pushed is located;
and/or in the process of displaying different areas of the content display page in a rolling manner, if it is determined that the content to be pushed is always displayed in the screen in the process based on the change condition and the floating window moves to the position of the content to be pushed, the floating window moves synchronously with the content to be pushed.
Optionally, the display module is further configured to, in a moving process of the floating window, positively correlate a moving distance of the floating window along a first direction with a moving distance of the content to be pushed along the first direction, where the first direction is parallel to a scrolling direction of the content display page;
and/or, in the moving process of the floating window, the moving distance of the floating window along a second direction is positively correlated with the moving distance of the content to be pushed along the first direction, and the second direction is perpendicular to the first direction;
and/or, in the moving process of the floating window, the size of the floating window is positively correlated with the distance from the floating window to the content to be pushed.
Optionally, the apparatus further comprises:
the device comprises a receiving module, a pushing module and a display module, wherein the receiving module is used for receiving a display control instruction, and the display control instruction is used for indicating the content to be pushed;
the display module is used for:
when it is determined that the content to be pushed indicated by the display control instruction exists in the content display page, displaying the floating window in the screen;
the display control instruction is further used for indicating that the floating window is displayed in the screen when the content display page is displayed, and indicating that the floating window is not displayed in the screen any more if no click operation aiming at the content to be pushed is detected in the process of displaying the content display page for N times, wherein N is a positive integer;
or, the display control instruction is further configured to indicate a total number of times of displaying the floating window in a process of performing multiple times of displaying the content display page.
In yet another aspect, a terminal is provided, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the content push method provided in the above aspect.
In yet another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the content push method as provided in the above aspect.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
compared with the related art, the method has the advantages that whether the content to be pushed is displayed in the screen or not can be used for indicating the display position of the content to be pushed, and the pushing efficiency of the content to be pushed is effectively improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an implementation environment related to a content push method provided in an embodiment of the present application.
Fig. 2 is a flowchart of a content pushing method according to an embodiment of the present application.
Fig. 3 is a flowchart of another content pushing method provided in an embodiment of the present application.
Fig. 4 is a schematic diagram of a display floating window provided in an embodiment of the present application.
Fig. 5 is a schematic view of another display floating window provided in an embodiment of the present application.
Fig. 6 is a schematic diagram of an orientation of a floating window provided in an embodiment of the present application.
Fig. 7 is a schematic view of another display floating window provided in an embodiment of the present application.
Fig. 8 is a schematic view of another display floating window provided in the embodiment of the present application.
Fig. 9 is a flowchart of still another content pushing method provided in an embodiment of the present application.
Fig. 10 is a schematic view of another display floating window provided in an embodiment of the present application.
Fig. 11 is a schematic view of another display floating window provided in an embodiment of the present application.
Fig. 12 is a schematic view of another display floating window provided in an embodiment of the present application.
Fig. 13 is a schematic structural diagram of a content push apparatus according to an embodiment of the present application.
Fig. 14 is a schematic structural diagram of another content pushing apparatus according to an embodiment of the present application.
Fig. 15 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Generally, a plurality of applications are generally installed in a terminal, and each application may include a plurality of sub-applications, each for implementing a different function. When the function of the sub-application is updated, a prompt message may be displayed on an icon of the sub-application with the updated function, or the updated function of the sub-application may be displayed in a software start page of the application, so as to prompt a user that the function of the sub-application is updated, and further guide the user to use the sub-application with the updated function. The software starting page is a page displayed in the terminal after the application program is started and before the main interface of the application program is displayed.
However, in the update prompting method in which the prompt message is displayed on the icon, when the icon of the sub-application for updating the function is not displayed on the terminal, the user cannot see the prompt message, and the user cannot know the update condition, and the efficiency of the update prompting is low. Moreover, the manner of displaying the prompt message on the icon is implemented by coding, and when other function updates need to be prompted, for example, when function updates of different sub-applications need to be prompted, re-coding is required, which results in lower flexibility and universality of the prompt manner.
In the method of prompting update in the software startup page, when the terminal displays the content display page, the user usually cannot know the position of the icon of the sub-application with the updated function in the content display page, so that the user cannot effectively use the sub-application with the updated function, and therefore, the efficiency of prompting update is low.
The embodiment of the application provides a content pushing method and device, a terminal and a storage medium, wherein a floating window pointing to content to be pushed is displayed on a screen when the content to be pushed is determined to exist in a content display page, and at least one of the pointing direction and the display position of the floating window is updated according to sliding operation after the sliding operation for the content display page or the floating window is obtained, so that the floating window keeps pointing to the content to be pushed.
The content pushing method can be used for indicating the sub-application program with updated functions, can also be used for indicating the content which needs to be prompted to the user, such as the sub-application program, the message and the content which need to be recommended according to the requirements (such as marketing strategies), and the like, wherein the new message and the new content appear in the information display page. And when the content pushing method is applied to the sub-application program indicating the function update, the content to be pushed can be the icon of the sub-application program with the function update, and at the moment, the floating window is kept pointing to the content to be pushed, so that a user can determine the display position of the icon of the sub-application program according to the floating window, and the efficiency of prompting the update of the sub-application program is effectively improved.
Referring to fig. 1, a schematic structural diagram of an implementation environment related to a content push method provided in an embodiment of the present application is shown, where the implementation environment may include: a terminal 10 and a server 20. The terminal 10 may be a smart phone, a computer, a multimedia player, an e-reader, a wearable device, or the like. The server 20 may be a server, a server cluster composed of several servers, or a cloud computing service center. Illustratively, the server 20 may be a cloud backend. The connection between the terminal 10 and the server 20 may be established through a wired network or a wireless network.
The server 20 is configured to send a display control instruction to the terminal 10 to indicate the content to be pushed that needs to be prompted in the content display page. For example, the server 20 may instruct the terminal 10 to prompt the sub-application a with updated function in a certain display process, that is, the display control instruction indicates that the content to be pushed in the certain display process is the sub-application a, and instruct the terminal 10 to prompt the sub-application B with updated function in another display process, that is, the display control instruction indicates that the content to be pushed in the another display process is the sub-application B.
Also, the display control instruction may instruct the terminal 10 to display the floating window. For example, when the display control instruction instructs the terminal to display the content display page, if the terminal does not detect a click operation for the content to be pushed in the process of displaying the content display page for N times on the terminal, the terminal is instructed not to display the floating window any more, where N is a positive integer. Alternatively, the display control instruction is for indicating a total number of times the floating window is displayed in the course of executing the displaying of the content display page a plurality of times.
The terminal 10 is configured to execute a display operation indicated by the display control instruction when the content display page is displayed according to the display control instruction, and display the content to be pushed in the terminal when the interface area of the content display page displayed by the terminal includes the content to be pushed.
Fig. 2 is a flowchart of a content pushing method provided in an embodiment of the present application, where the method is applicable to a terminal, and as shown in fig. 2, the method may include the following steps:
step 201, acquiring the state of the content display page of the terminal.
Step 202, when the content to be pushed exists in the state indication content display page, displaying a floating window pointing to the content to be pushed in the screen to prompt the user that the content to be pushed exists.
And step 203, acquiring the sliding operation aiming at the content display page or the floating window.
And step 204, updating at least one of the pointing direction and the display position of the floating window based on the sliding operation so as to keep the floating window pointing to the content to be pushed.
To sum up, according to the content push method provided in the embodiment of the present application, when it is determined that there is content to be pushed in the content display page, the floating window pointing to the content to be pushed is displayed in the screen, and after the sliding operation for the content display page or the floating window is obtained, at least one of the pointing direction and the display position of the floating window is updated according to the sliding operation, so that the floating window keeps pointing to the content to be pushed.
Fig. 3 is a flowchart of another content pushing method provided in an embodiment of the present application, where the method is applicable to a terminal, and as shown in fig. 3, the method may include the following steps:
step 301, receiving a display control instruction, where the display control instruction is used to instruct a terminal to display a floating window pointing to a content to be pushed.
The server may send a display control instruction to the terminal to instruct the terminal to display a floating window pointing to the content to be pushed. Moreover, the server may instruct the terminal to display the floating window by the display control instruction, for example, may instruct the terminal to display the total number of times and frequency of the floating window. The process from the start of displaying the content display page by the terminal to the switching of the screen displayed by the terminal from the screen of the content display page to another screen may be referred to as a primary display process of the content display page. Accordingly, a process of displaying the floating window in one display process of the content display page may be referred to as one display process of the floating window.
The implementation manner that the server instructs the terminal to display the total number of times of the floating window through the display control instruction may include: the display control instruction can be used for indicating the terminal to display the floating window in the screen when the content display page is displayed, and indicating the terminal not to display the floating window in the screen any more if the clicking operation aiming at the content to be pushed is not detected in the process of displaying the content display page for N times, namely indicating the total times of displaying the floating window by the server to be N, wherein N is a positive integer.
The implementation manner of the server instructing the terminal to display the frequency of the floating window through the display control instruction may include: the display control instruction may be used to indicate that the total number of times the floating window is displayed is m2 in the course of executing m1 times of displaying the content display page, i.e., the server indicates that the frequency of displaying the floating window is m2/m 1. Alternatively, the display control instruction may be used to instruct the terminal to display m2 floating windows in the process of displaying the content display page every m1 times, that is, the server instructs to display the floating window at a frequency of m2/m1, where m2 is less than or equal to m 1.
And, the content to be pushed may be an icon of a sub-application whose function is updated. For example, after updating the function of a sub-application in an application, the server may send a code packet of the sub-application to the terminal to update the function of the sub-application in the terminal. Correspondingly, the server may send a display control instruction carrying information of the sub-application to the terminal to instruct the terminal to display a floating window pointing to an icon of the sub-application in a screen when displaying an interface of the application, so as to prompt a user that a function of the sub-application is updated.
Or, the content to be pushed may be a new message, a new content, and the like appearing in the information presentation page, and may also be a content that needs to be prompted to the user, such as an icon, a message, and a content of a sub application program determined according to a requirement (such as a marketing policy), which is not specifically limited in the embodiment of the present application.
Step 302, obtaining the state of the content display page of the terminal to determine whether the content to be pushed exists in the content display page.
After determining the content to be pushed according to the display control instruction, content detection may be performed on the configuration file of the content display page, so as to determine whether the content in the content display page includes the content to be pushed, so as to obtain a state of the content display page indicating whether the content to be pushed exists in the content display page. And when the status indicates that the content display page has the content to be pushed, step 303 is executed.
Step 303, when the state indicates that the content display page has the content to be pushed, acquiring first display position information for indicating the position of the content to be pushed in the content display page and second display position information for indicating the position of a display area of the content display page on the screen in the content display page.
The method includes the steps that a coordinate system can be established in a content display page in advance, and the position of the content to be pushed in the content display page is fixed, so that after the coordinate system is determined, first display position information of the content to be pushed can be determined according to the coordinate system. Alternatively, as shown in fig. 4, when the terminal displays the content display page, the terminal generally starts to display from the top of the content display page, the origin of the coordinate system may be established at the upper left corner B1 of the content display page, and the left-to-right direction is the positive direction of the x-axis, and the top-to-bottom direction is the positive direction of the y-axis. After the coordinate system is determined, the x coordinate and the y coordinate of the geometric center of the content to be pushed can be determined according to the position of the content to be pushed in the content display page, so as to obtain the first display position information.
Or, since a terminal coordinate system is usually preset in the terminal, the first display position information of the content to be pushed may also be acquired according to the terminal coordinate system. Moreover, for simplifying the calculation, when the terminal coordinate system is used, it may be assumed that the origin of the terminal coordinate system is located at the upper left corner of the content display page, and then the x-coordinate and the y-coordinate of the geometric center of the content to be pushed are determined according to the position of the content to be pushed in the content display page, so as to obtain the first display position information.
It should be noted that the content display page may have a plurality of view partitions arranged in sequence, each view partition includes at least one item of content, and a start position of each view partition may be referred to as a view node. When the first display position information is obtained, a first distance from the content to be pushed to a view node in a view partition where the content to be pushed is located can be obtained, a second distance from the view node to a root node of the content display page is obtained, and then the first display position information of the content to be pushed is determined according to the first distance and the second distance. The position of the origin of the coordinate system in the content display page may be referred to as a root node of the content display page.
When the display area of the content to be pushed is greater than the reference area threshold, when the first distance is obtained, a third distance from the geometric center of the content to be pushed to the edge of the content to be pushed, which is close to the view node in the view partition where the content to be pushed is located, may be obtained first, then a fourth distance from the edge to the content to be pushed to the view node in the view partition where the content to be pushed is located may be obtained, and a sum of the third distance and the fourth distance is determined as the first distance.
For example, when a user is prompted for a certain sub-application in the application "cellphone majordomo", the content to be pushed may be an icon of the sub-application, and the content display page is an application interface of the application "cellphone majordomo". Fig. 5 is a schematic diagram of an application interface of the application "cell phone housekeeper", which has a view partition "utility" and a view partition "financial services" as shown in fig. 5. Included in this view partition "utility" are a sub-application "borrow money" icon, a sub-application "my favorites" icon, a sub-application "traffic charges" icon, a sub-application "my wallet" icon, a sub-application "free wifi" icon, and a sub-application "more" icon. The view partition "financial services" includes an icon for the sub-application "my wallet".
Assuming that the content to be pushed is an icon of the sub-application "free wifi", as shown in fig. 5, when obtaining the y coordinate of the geometric center of the icon, a third distance y3 from the geometric center of the icon to the edge thereof along the y axis, a fourth distance y2 from the edge to the view node of the view partition "utility" along the y axis, a second distance y1 from the view node of the view partition "utility" to the root node of the content display page along the y axis, and then the sum of the third distance y3, the fourth distance y2 and the second distance y1 is determined as the y coordinate of the geometric center of the icon.
Similarly, the x-coordinate of the geometric center of the icon of the sub-application "free wifi" may be obtained in a similar manner, that is, the fifth distance x1, the sixth distance x2, and the seventh distance x3 are obtained along the x-axis, respectively, and then the sum of the fifth distance x1, the sixth distance x2, and the seventh distance x3 is determined as the x-coordinate of the geometric center of the icon.
When a content display page is displayed in a screen, the screen can only display a partial area of the content display page, and when the content displayed in the screen is different, the relative position of the content to be pushed and the display area of the content display page in the screen is different, and correspondingly, the directions of the floating windows are different, so that before the floating window is displayed in the screen, the position of the display area of the content display page on the screen in the content display page needs to be acquired, and the floating window is displayed in the screen according to the relative positions of the display area and the content to be pushed. The relevant configuration file of the terminal can be inquired to determine the display area of the content display page in the screen, and the second position information of the display area is obtained. And the implementation manner of acquiring the second position information requires corresponding reference to the implementation of acquiring the first position information.
And step 304, determining whether the content to be pushed is displayed in the screen or not based on the first display position information and the second display position information.
When a content display page is displayed in a screen, the screen can usually display only a partial area of the content display page. Therefore, when the display position of the content to be pushed in the content display page is fixed, the display state of the content to be pushed may be one of the following two cases: the content to be pushed is not displayed in the screen, and the content to be pushed is displayed in the screen. And when the display states of the contents to be pushed are different, the floating window display modes can be different, so that before the floating window is displayed in the screen, whether the contents to be pushed are displayed in the screen or not can be determined.
Alternatively, the second location information may be compared with the first display location information, when there is an overlapping area between the location indicated by the first location information and the location indicated by the second location information, it is determined that the content to be pushed is located in the display area, that is, it is determined that the content to be pushed is displayed in the screen, at this time, step 305 may be performed, when there is no overlapping area between the location indicated by the first location information and the location indicated by the second location information, it may be determined that the content to be pushed is not displayed in the screen, at this time, step 306 may be performed.
And 305, when the content to be pushed is determined not to be displayed in the screen based on the first display position information and the second display position information, displaying a floating window at the reference position of the screen.
When the content to be pushed is not displayed on the screen, the floating window can be displayed at any position in the screen, as long as the floating window is ensured to point to the content to be pushed, and the floating window points to the content to be pushed. Alternatively, the floating window may be displayed according to a predetermined reference position. The reference position can be determined according to actual needs. For example, the reference position may be a lower right corner or an upper right corner of the screen. Alternatively, the reference location may be a user-defined location, for example, the user-defined location is the upper left corner of the screen. As shown in fig. 4, the floating window a is located in the lower right corner of the screen.
Referring to fig. 6, an angle a between the direction of the floating window and the second direction X is an arctangent of the target ratio. The target ratio is a ratio of the first distance h to the second distance w, i.e., the included angle a is arctan (h/w). The first distance h is the distance between the position of the floating window displayed in the content display page and the display position of the content to be pushed in the content display page along the first direction Y, and the second distance w is the distance between the position of the floating window displayed in the content display page and the display position of the content to be pushed in the content display page along the second direction X. And the first direction Y is parallel to the scrolling direction of the content display page, and the second direction X is perpendicular to the first direction Y.
Optionally, the floating window may be a floating icon with an arrow, and the direction of the arrow of the floating icon is the direction of the floating window. For example: the floating window is a message bubble with an arrow or a floating text box with an arrow, etc. And the floating window can also carry the same graphic identifier as the content to be pushed. For example, as shown in fig. 7, when the content to be pushed is an icon of "free wifi", both the content to be pushed and the floating window may carry a graphical identifier of "free wifi".
And step 306, when the content to be pushed is determined to be displayed in the screen based on the first display position information and the second display position information, displaying a floating window at the position of the content to be pushed.
When the content to be pushed is displayed in the screen, the floating window can be displayed at the position where the content to be pushed is located, and the floating window points to the content to be pushed, so that the pointing direction of the floating window can be more obvious, a user can distinguish the pointed content to be pushed more accurately according to the indication of the floating window, and the position of the content to be pushed is further determined. The method for determining the direction of the floating window refers to the method for determining the direction of the floating window in step 305.
And, displaying the floating window at the position of the content to be pushed may include: and displaying a floating window on the content to be pushed, or displaying the floating window in a reference distance range around the content to be pushed. Illustratively, when a sub-application that is a common update needs to be prompted to the user and an icon B3 that graphically represents the sub-application is employed, a floating window a may be displayed on the icon B3, or, as shown in fig. 7, a floating window a may be displayed within a dashed-line box B4 with the icon B3 located within the dashed-line box B4.
Step 307, receiving a sliding operation for the content display page or the floating window, scrolling and displaying different areas of the content display page in the screen based on the sliding operation when the sliding operation for the content display page is received, and updating the display position of the floating window in the screen based on the sliding operation when the sliding operation for the floating window is received.
When a user needs the terminal to scroll different areas of a content display page, the screen can be slid to trigger a sliding operation for the content display page, and after the terminal receives the sliding operation, the area displayed in the screen before the sliding operation is detected can be controlled to scroll the sliding distance along the sliding direction according to the sliding direction and the sliding distance indicated by the sliding operation, so that different areas of the content display page can be scrolled and displayed in the screen. The terminal can be provided with a key, and the sliding operation can be triggered by clicking the key. And/or the screen can be a touch display screen, and the sliding operation can be triggered by a user touching the screen.
When a user needs to change the display position of the floating window in the screen, the sliding operation for the floating window can be triggered, and after the terminal receives the sliding operation, the display position of the floating window in the screen can be updated according to the sliding operation. For example, a floating window may be displayed at a position indicated by the sliding operation. The terminal may be provided with a key, and the sliding operation may be an operation of selecting the floating window by using a selection key and moving the floating window by using a moving key. And/or the screen can be a touch display screen, and the sliding operation can be an operation that a user clicks a floating window in the screen and drags the floating window under the condition of keeping clicking. For example, when the floating window obscures content that the user wants to view on the screen, the user can click on the floating window and drag it to another location for display at that other location.
And 308, when the sliding operation is used for indicating different areas of the content display page to be displayed in a scrolling manner in the screen, acquiring the change situation of the relative positions of the content to be pushed and the display area of the content display page on the screen based on the sliding operation.
When the sliding operation is used for indicating that different areas of a content display page are displayed in a scrolling manner in the screen, the terminal can display the different areas of the content display page in the scrolling manner in the screen according to the sliding operation after receiving the sliding operation, at this time, the display area of the content display page on the screen changes, and the relative position of the content to be pushed and the display area of the content display page on the screen changes correspondingly. When the step 308 is executed, first, second position information of a display area of a changed content display page on the screen is acquired according to a sliding operation, then, relative positions of the changed content display page and the screen after the change are determined according to the first position information of the content to be pushed and the second position information after the change, relative positions of the content to be pushed and the screen before the change are determined according to the first position information of the content to be pushed and the second position information before the change, and then, a change situation of the relative positions is determined according to the relative positions before and after the change.
And 309, updating at least one of the pointing direction and the display position of the floating window based on the change condition so as to keep the floating window pointing to the content to be pushed.
The implementation manners of updating the pointing direction and the display position of the floating window based on the change condition are different, and the following respectively describes the implementation manners of updating the pointing direction and the display position. When the display position of the floating window is updated based on the change condition, according to different display states of the content to be pushed, updating the display position of the floating window may include the following conditions:
in the first case of updating the display position of the floating window, when it is determined that the screen does not always display the content to be pushed in the course of the scroll display according to the change situation, the floating window may be kept displayed at the reference position.
In a second case of updating the display position of the floating window, when the floating window display position is updated when it is determined that the content to be pushed is displayed in the screen during the scrolling display according to the change condition, the display picture presented in the screen may be: the floating window moves towards the position of the content to be pushed, and after the floating window moves to the position of the content to be pushed, the floating window moves synchronously along with the content to be pushed so as to keep the floating window displayed at the position of the content to be pushed.
In the moving process of the floating window, the moving distance of the floating window along the first direction can be positively correlated with the moving distance of the content to be pushed along the first direction, and the first direction is parallel to the scrolling direction of the content display page. And/or in the moving process of the floating window, the moving distance of the floating window along the second direction is positively correlated with the moving distance of the content to be pushed along the first direction, and the second direction is vertical to the first direction.
In addition, in the moving process of the floating window, after a target straight line determined by the floating window and the content to be pushed is parallel to the second direction, the moving distance of the floating window along the first direction may be equal to the moving distance of the content to be pushed along the first direction, so that the relative positions of the floating window and the content to be pushed in the first direction do not change any more, and correspondingly, in the moving process later, the direction of the floating window may be kept to be directed to the content to be pushed under the condition that the direction of the floating window is kept unchanged. And the target straight line is a connecting line between the display position of the floating window and the display position of the content to be pushed. For example, the target straight line is a connection line between the geometric center of the display position of the floating window and the geometric center of the display position of the content to be pushed.
Furthermore, in the moving process of the floating window, the size of the floating window can be positively correlated with the distance from the floating window to the content to be pushed, so that the floating window is presented with the effect of being adsorbed by the content to be pushed in the moving process of the floating window towards the position where the content to be pushed is located, and the display interest is increased.
Alternatively, the size of the floating window may decrease with the scroll distance St of the content display page by a scale z that satisfies: z is (St-h)/w. And h is the distance between the position of the floating window displayed in the content display page and the display position of the content to be pushed in the content display page along the first direction, and the second distance w is the distance between the position of the floating window displayed in the content display page and the display position of the content to be pushed in the content display page along the second direction.
In a third case of updating the display position of the floating window, when it is determined that the content to be pushed is displayed in the screen before the change and the content to be pushed is not displayed in the screen after the change according to the change, the display position of the floating window is updated from the display position before the change to the reference position in the screen before the change.
In a fourth case of updating the display position of the floating window, when it is determined that the content to be pushed is not displayed in the screen before the change and the content to be pushed is displayed in the screen after the change according to the change, the display position of the floating window is moved from the reference position to the position where the content to be pushed is located or moved to a certain position of the reference position and the position where the content to be pushed is located before the change. Wherein the certain position can be determined according to the sliding process of the content display page in the changing process and the moving speed of the floating window.
In the process of scrolling different areas of a display page of the display content, based on the change situation of the relative position of the display position of the content to be pushed and the display area, the implementation way of updating the pointing direction of the floating window may include the following situations:
in a first case of updating the orientation of the floating window, when it is determined that the content to be pushed is displayed in the screen before the change and the content to be pushed is not displayed in the screen after the change based on the change, the orientation of the floating window is updated so that the floating window is kept to be oriented to the content to be pushed.
When the content to be pushed is not displayed in the screen, the floating window is displayed at the reference position of the screen, and when the content to be pushed is displayed in the screen, the guide icon can be displayed at the position of the content to be pushed or at a position between the reference position and the position of the content to be pushed. The method for determining the direction of the floating window refers to the method for determining the direction of the floating window in step 305.
In a second case of updating the orientation of the floating window, when it is determined that the content to be pushed is not displayed in the screen before the change and the content to be pushed is displayed in the screen after the change based on the change, the orientation of the floating window is updated so that the floating window remains to be oriented to the content to be pushed. The method for determining the direction of the floating window refers to the method for determining the direction of the floating window in step 305.
In a third case of updating the pointing direction of the floating window, the pointing direction of the floating window is updated when it is determined that the content to be pushed is not displayed in the screen both before and after the change based on the change situation.
When the content to be pushed is not displayed on the screen, the floating window is displayed at the reference position, and the relative position of the content to be pushed and the display area is changed before and after the change, so that the orientation of the floating window relative to the content to be pushed is changed, and the direction of the floating window needs to be updated. And the determination of the direction of the floating window refers to the determination of the direction of the floating window in step 305.
For example, assume that when the content to be pushed is not displayed in the screen, a floating window is displayed in the lower right corner of the screen. And the position of the floating-front window a displayed in the content display page is changed please refer to fig. 6, in fig. 6, the interface area in the dashed line box C is not displayed in the screen. Please refer to fig. 8 for the position of the floating window a displayed in the content display page after the change and the display position of the content to be pushed B3 in the content display page. As can be seen from fig. 6 and 8, the distance between the position of the floating window displayed in the content display page before and after the change and the display position of the content to be pushed in the content display page is reduced, and therefore, the included angle between the pointing direction of the floating window after the change and the second direction is reduced.
In a fourth case of updating the pointing direction of the floating window, the pointing direction of the floating window is updated when it is determined that the content to be pushed is displayed in both the screen before and after the change based on the change situation.
Since the guidance icon moves from the reference position to the position of the content to be pushed when the content to be pushed starts to be displayed on the screen, in the third variation, there are also various realizations for updating the pointing direction of the floating window in the third variation according to the relative positions of the content to be pushed and the floating window:
the first realizable way: if the floating window moves to the position of the content to be pushed before the change, the floating window can move synchronously with the content to be pushed before and after the change. In addition, in the synchronous moving process, the relative positions of the floating window and the content to be pushed cannot be changed relatively, so the direction of the floating window can be kept unchanged before and after the change.
In a second implementation manner, if the floating window is not moved to the position of the content to be pushed before the change, after the change, the floating window continues to move toward the position of the content to be pushed, and at this time, before and after the change, the direction of the floating window is updated according to the change of the relative positions of the content to be pushed and the floating window before and after the change. And the determination of the direction of the floating window refers to the determination of the direction of the floating window in step 305.
And 310, when the sliding operation is used for indicating that the display position of the floating window is updated in the screen, updating the direction of the floating window based on the updated display position of the floating window so as to keep the floating window pointing to the content to be pushed.
When the display position of the floating window in the screen is updated according to the sliding operation, the orientation of the floating window relative to the content to be pushed changes, and at this time, the orientation of the floating window needs to be updated, and the determination method of the orientation of the floating window refers to the determination method of the orientation of the floating window in step 305.
It should be noted that, in the display process of the content display page, if the click operation for the content to be pushed is detected, the floating window may not be displayed any more. And when the content to be pushed exists in the sub page, the sub page can be displayed in the screen. For example, when a sub application requiring push function update detects a click operation on an icon of the sub application, a sub interface of the sub application may be displayed in a screen.
The following describes an implementation process of the push method provided in the embodiment of the present application, taking a process of pushing a sub-application in an application and scrolling and displaying different areas of an application interface in a screen as an example, and as shown in fig. 9, the process includes the following steps:
step 401, after receiving the display control instruction, acquiring the state of the content display page of the terminal to determine whether an icon of the target sub-application indicated by the display control instruction exists in the application interface.
The implementation procedure of step 401 refers to the implementation procedure of step 302.
Step 402, when the icon of the target sub-application program exists in the state indication application program interface, acquiring first display position information used for indicating the position of the icon of the target sub-application program in the application program interface.
The implementation process of step 402 refers to the implementation process of obtaining the first display position information used for indicating the position of the content to be pushed in the content display page in step 303.
And step 403, after the display instruction is detected, displaying the application program interface in the terminal, and acquiring second display position information of the application program interface in a display area of the screen.
In the implementation process of step 403, please refer to the implementation process of step 303 to obtain second display position information for indicating a position of the display area of the content display page on the screen in the content display page.
And step 404, displaying a floating window in the screen according to the first display position information and the second display position information.
The implementation of step 404 refers to steps 304 to 306.
For example, assuming that the target sub-application is a sub-application "free wifi", that is, the content to be pushed is an icon of the sub-application "free wifi", fig. 4 is a schematic diagram of a partial area of the screen where the application interface is displayed when the terminal starts to perform the operation of displaying the application interface. As shown in fig. 4, when the terminal starts to perform the operation of displaying the application program interface, the terminal starts to display from the top of the application program interface, and the icon of the sub-application program "free wifi" is not displayed in the screen, at this time, the floating window a is displayed in the lower right corner of the screen, and the floating window a points to the position where the icon of the sub-application program "free wifi" is located.
Step 405, detecting whether a sliding operation for the application program interface is received.
When the sliding operation for the application program interface is received, step 406 is executed, and when the sliding operation for the application program interface is not received, whether the sliding operation for the application program interface is received or not is continuously detected.
And step 406, sliding different areas of the application program interface in the screen based on the sliding operation, and acquiring the change situation of the relative positions of the icon of the target sub-application program and the display area of the content display page on the screen before and after the scrolling.
The implementation of step 406 refers to the implementation of steps 307 and 308.
And step 407, when the icon of the target sub-application program is not displayed in the screen before and after the scrolling is determined according to the change situation, adjusting the pointing direction of the floating window.
The method for determining the direction of the floating window refers to the method for determining the direction of the floating window in step 305.
Illustratively, the terminal receives a slide operation for an application interface while displaying a display area shown in fig. 4 in a screen. Fig. 8 is a schematic diagram after updating the area displayed in the screen according to the sliding operation. As shown in fig. 8, the area displayed in the screen is different from the area displayed in the screen shown in fig. 4, but the icon of the sub-application "free wifi" is still not displayed in the screen, at this time, the floating window a is still displayed in the lower right corner of the screen, an included angle between the floating window a and the second direction X in fig. 8 is smaller than an included angle between the floating window a and the second direction X in fig. 4, and the floating window a still points to the position where the icon of the sub-application "free wifi" is located.
And 408, when the sliding operation aiming at the application program interface is continuously received, different areas of the application program interface are displayed in a sliding mode in the screen based on the sliding operation, and when the icon of the target sub-application program is displayed in the screen in the process of the rolling display according to the obtained change situation of the relative positions of the icon of the target sub-application program and the display area before and after the rolling display, the process that the floating window moves towards the position of the icon of the target sub-application program is dynamically displayed, and the size of the floating window is gradually reduced in the moving process.
The implementation of this step 408 refers to the implementation of the second case of updating the display position of the floating window in step 309.
Illustratively, after the display area shown in fig. 8 is displayed in the screen, the terminal continuously receives a sliding operation for the application program interface, fig. 10, fig. 11 and fig. 12 are schematic diagrams of the floating window moving towards the position where the content to be pushed is located, the timing sequence of fig. 10 is before the timing sequence of fig. 11, and the timing sequence of fig. 11 is before the timing sequence of fig. 12.
As shown in fig. 10, an icon B5 of the sub application "free wifi" is displayed on the screen, at this time, a floating window a is displayed between the lower right corner of the screen and the position of the icon B5 of the sub application "free wifi", an included angle between the floating window a and the second direction X in fig. 10 is equal to 0, and the size of the floating window a is reduced relative to the size of the floating window a in fig. 9.
As shown in fig. 11, the icon B5 of the sub application program "free wifi" is displayed on the screen, and the floating window a is displayed at the position of the icon of the sub application program "free wifi" B5, that is, in fig. 11, the floating window a has moved to the position of the icon of the sub application program "free wifi" B5, and at this time, the floating window a is reduced to a dot. Or, fig. 7 shows another display state of the floating window a after the floating window a is moved to the position of the icon of the sub application program "free wifi" B5, as shown in fig. 7, the icon B5 of the sub application program "free wifi" is displayed in the screen, at this time, the floating window a is displayed in the dashed line frame B4 where the icon of the sub application program "free wifi" B5 is located, at this time, the floating window a is displayed according to its original shape and is not reduced to a dot.
As shown in fig. 12, an icon of the sub-application "free wifi" is displayed in the screen, and the position of the icon of the sub-application "free wifi" in fig. 12 in the screen is different from the position of the icon of the sub-application "free wifi" in fig. 11, and the relative positions of the floating window a and the icon of the sub-application "free wifi" in fig. 11 are not changed, that is, in the process that the display area of the content display page in the screen is changed from the area shown in fig. 11 to the area shown in fig. 12, the floating window a and the icon of the sub-application "free wifi" are synchronously moved, and the floating window a is still a circular point.
And step 409, after the clicking operation based on the icon of the target sub-application program is detected, displaying the sub-interface of the target sub-application program in the screen, and not displaying the floating window.
For example, when the screen displays a partial area of the application interface shown in fig. 5, if a click operation based on an icon of the sub-application "free wifi" is detected, the floating window may not be displayed in the screen.
It should be noted that, after the server sends the display control instruction to the terminal, in the process that the user views the content display page using the terminal, the terminal may dynamically adjust at least one of the pointing direction and the display position of the floating window according to the distance of the sliding content display page according to the steps in the above method embodiment, so as to implement the dynamic indication of the content to be pushed. In addition, an application program for drawing an image may be configured in the terminal, and in the process of the dynamic instruction, drawing of all images displayed in the screen may be implemented by calling the application program through an Application Program Interface (API). Therefore, compared with the related art, the indicating method and the indicating device do not need to be recoded when the function of the sub-application program needs to be reminded to be updated every time, and flexibility and universality of the indicating method are effectively improved.
Meanwhile, the dynamic indication process is executed in the process that the user views the content display page by using the terminal, so that the situation that the position of the sub-application program cannot be known after the software start page is not displayed is avoided, and compared with the related technology, the pushing efficiency of the content to be pushed is effectively improved.
To sum up, according to the content push method provided in the embodiment of the present application, when it is determined that there is content to be pushed in the content display page, the floating window pointing to the content to be pushed is displayed in the screen, and after the sliding operation for the content display page or the floating window is obtained, at least one of the pointing direction and the display position of the floating window is updated according to the sliding operation, so that the floating window keeps pointing to the content to be pushed.
It should be noted that, the order of the steps of the content pushing method provided in the embodiment of the present application may be appropriately adjusted, and the steps may also be increased or decreased according to the situation, for example, the step 303 may be selected not to be executed, and any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application, and therefore, the description is omitted.
Fig. 13 is a schematic structural diagram of a content push apparatus provided in an embodiment of the present application, where the content push apparatus may be configured in a terminal, and as shown in fig. 13, the apparatus 800 may include:
an obtaining module 801, configured to obtain a state of a content display page of the terminal.
The display module 802 is configured to display a floating window pointing to the content to be pushed in the screen when the state indicates that the content display page has the content to be pushed, so as to prompt a user that the content to be pushed exists.
The obtaining module 801 is further configured to obtain a sliding operation for the content display page or the floating window.
The display module 802 is further configured to update at least one of the pointing direction and the display position of the floating window based on the sliding operation to keep the floating window pointing to the content to be pushed.
To sum up, the content pushing apparatus provided in the embodiment of the present application displays a floating window pointing to a content to be pushed in a screen when it is determined that the content to be pushed exists in a content display page through a display module, and after the acquisition module acquires a sliding operation for the content display page or the floating window, the display module updates at least one of the pointing direction and the display position of the floating window according to the sliding operation, so that the floating window keeps pointing to the content to be pushed.
Optionally, the display module 802 is further configured to:
when the state indicates that the content display page has the content to be pushed, first display position information used for indicating the position of the content to be pushed in the content display page and second display position information used for indicating the position of a display area of the content display page on a screen in the content display page are obtained.
When it is determined that the content to be pushed is not displayed in the screen based on the first display position information and the second display position information, a floating window is displayed at a reference position of the screen.
And when the content to be pushed is determined to be displayed in the screen based on the first display position information and the second display position information, displaying a floating window at the position of the content to be pushed.
Optionally, the display module 802 is further configured to:
based on the sliding operation, acquiring the change situation of the relative position of the content to be pushed and the display area of the content display page on the screen.
And updating the orientation of the floating window when the content to be pushed is determined to be displayed in the screen before or after the change based on the change situation.
And updating the pointing direction of the floating window when the situation that the content to be pushed is not displayed in the screen before and after the change is determined based on the change situation.
Optionally, the floating window is directed at an angle to the second direction that is the arctangent of the target ratio. The target ratio is a ratio of a first distance and a second distance, the first distance is a distance between the position of the floating window displayed in the content display page and the display position of the content to be pushed in the content display page along a first direction, the second distance is a distance between the position of the floating window displayed in the content display page and the display position of the content to be pushed in the content display page along a second direction, the first direction is parallel to the scrolling direction of the content display page, and the second direction is perpendicular to the first direction.
Optionally, the display module 802 is further configured to:
based on the sliding operation, acquiring the change situation of the relative position of the content to be pushed and the display area of the content display page on the screen.
And updating the display position of the floating window when the content to be pushed is determined to be displayed in the changed screen based on the change situation.
Optionally, when the sliding operation is used to instruct scrolling different areas of the content display page in the screen, the display module 802 is further configured to:
and in the process of scrolling different areas of the content display page, if the content to be pushed is determined to be displayed in the screen in the process all the time based on the change situation, displaying the floating window to move towards the position of the content to be pushed.
And/or in the process of scrolling different areas of the content display page, if it is determined that the content to be pushed is always displayed in the screen in the process based on the change situation and the floating window moves to the position of the content to be pushed, the floating window moves synchronously with the content to be pushed.
Optionally, the display module 802 is further configured to, in the moving process of the floating window, positively correlate a moving distance of the floating window along a first direction with a moving distance of the content to be pushed along the first direction, where the first direction is parallel to a scrolling direction of the content display page.
And/or in the moving process of the floating window, the moving distance of the floating window along the second direction is positively correlated with the moving distance of the content to be pushed along the first direction, and the second direction is vertical to the first direction.
And/or in the moving process of the floating window, the size of the floating window is positively correlated with the distance from the floating window to the content to be pushed.
Optionally, in the process of displaying that the floating window moves towards the position where the content to be pushed is located, after the target straight line is parallel to the second direction, the moving distance of the floating window along the first direction is equal to the moving distance of the content to be pushed along the first direction, and the target straight line is determined by the display position of the floating window and the display position of the content to be pushed.
Optionally, as shown in fig. 14, the apparatus 800 further includes: the receiving module 803 is configured to receive a display control instruction, where the display control instruction is used to indicate content to be pushed.
A display module 802 for: and when the content to be pushed indicated by the display control instruction exists in the content display page, displaying a floating window in the screen.
The display control instruction is further used for indicating that the floating window is displayed in the screen when the content display page is displayed, and indicating that the floating window is not displayed in the screen any more if the clicking operation aiming at the content to be pushed is not detected in the process of executing N times of display of the content display page, wherein N is a positive integer.
Alternatively, the display control instruction is further used to indicate a total number of times the floating window is displayed in the course of executing the displaying of the content display page a plurality of times.
To sum up, the content pushing apparatus provided in the embodiment of the present application displays a floating window pointing to a content to be pushed in a screen when it is determined that the content to be pushed exists in a content display page through a display module, and after the acquisition module acquires a sliding operation for the content display page or the floating window, the display module updates at least one of the pointing direction and the display position of the floating window according to the sliding operation, so that the floating window keeps pointing to the content to be pushed.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 15 shows a schematic structural diagram of a terminal 1300 according to an exemplary embodiment of the present application. The terminal 1300 may be a portable mobile terminal such as: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion video Experts compression standard Audio Layer 3), an MP4 player (Moving Picture Experts Group Audio Layer IV, motion video Experts compression standard Audio Layer 4), a notebook computer, or a desktop computer. Terminal 1300 may also be referred to by other names such as user equipment, portable terminal, laptop terminal, desktop terminal, etc.
In general, terminal 1300 includes: a processor 1301 and a memory 1302.
Processor 1301 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1301 may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). Processor 1301 may also include a main processor, also referred to as a Central Processing Unit (CPU), which is a processor for Processing data in the wake state, and a coprocessor. A coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 1301 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing content that the display screen needs to display. In some embodiments, processor 1301 may further include an AI (Artificial Intelligence) processor for processing computational operations related to machine learning.
Memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1302 is used to store at least one instruction for execution by processor 1301 to implement the content push method provided by method embodiments herein.
In some embodiments, terminal 1300 may further optionally include: a peripheral interface 1303 and at least one peripheral. Processor 1301, memory 1302, and peripheral interface 1303 may be connected by a bus or signal line. Each peripheral device may be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1304, display screen 1305, camera assembly 1306, audio circuitry 1307, positioning assembly 1308, and power supply 1309.
Peripheral interface 1303 may be used to connect at least one peripheral associated with I/O (Input/Output) to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302, and peripheral interface 1303 are integrated on the same chip or circuit board. In some other embodiments, any one or two of the processor 1301, the memory 1302, and the peripheral device interface 1303 may be implemented on a separate chip or circuit board, which is not limited in this embodiment.
The Radio Frequency circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also called electromagnetic signals. The radio frequency circuitry 1304 communicates with communication networks and other communication devices via electromagnetic signals. The radio frequency circuit 1304 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 1304 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: the world wide web, metropolitan area networks, intranets, generations of mobile communication networks (2G, 3G, 4G, and 5G), Wireless local area networks, and/or WiFi (Wireless Fidelity) networks. In some embodiments, the radio frequency circuit 1304 may also include NFC (Near Field Communication) related circuits, which are not limited in this application.
The display screen 1305 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1305 is a touch display screen, the display screen 1305 also has the ability to capture touch signals on or over the surface of the display screen 1305. The touch signal may be input to the processor 1301 as a control signal for processing. At this point, the display 1305 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, display 1305 may be one, providing a front panel of terminal 1300. In other embodiments, display 1305 may be at least two, either disposed on different surfaces of terminal 1300 or in a folded design. In still other embodiments, display 1305 may be a flexible display disposed on a curved surface or on a folded surface of terminal 1300. Even further, the display 1305 may be arranged in a non-rectangular irregular figure, i.e., a shaped screen. The Display 1305 may be made of LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), or the like.
The camera assembly 1306 is used to capture images or video. Optionally, camera assembly 1306 includes a front camera and a rear camera. Generally, a front camera is disposed at a front panel of the terminal, and a rear camera is disposed at a rear surface of the terminal. In some embodiments, the number of the rear cameras is at least two, and each rear camera is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize panoramic shooting and VR (Virtual Reality) shooting functions or other fusion shooting functions. In some embodiments, camera assembly 1306 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 1307 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1301 for processing, or inputting the electric signals to the radio frequency circuit 1304 for realizing voice communication. For stereo capture or noise reduction purposes, multiple microphones may be provided, each at a different location of terminal 1300. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuitry 1304 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 1307 may also include a headphone jack.
The positioning component 1308 is used for positioning the current geographic position of the terminal 1300 for implementing navigation or LBS (Location Based Service). The Positioning component 1308 can be a Positioning component based on the Global Positioning System (GPS) in the united states, the beidou System in china, or the galileo System in russia.
Power supply 1309 is used to provide power to various components in terminal 1300. The power source 1309 may be alternating current, direct current, disposable or rechargeable. When the power source 1309 comprises a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1300 also includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: acceleration sensor 1311, gyro sensor 1312, pressure sensor 1313, fingerprint sensor 1314, optical sensor 1315, and proximity sensor 1316.
The acceleration sensor 1311 can detect the magnitude of acceleration on three coordinate axes of the coordinate system established with the terminal 1300. For example, the acceleration sensor 1311 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1301 may control the display screen 1305 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 1311. The acceleration sensor 1311 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 1312 may detect the body direction and the rotation angle of the terminal 1300, and the gyro sensor 1312 may cooperate with the acceleration sensor 1311 to acquire a 3D motion of the user with respect to the terminal 1300. Processor 1301, based on the data collected by gyroscope sensor 1312, may perform the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
Pressure sensor 1313 may be disposed on a side bezel of terminal 1300 and/or underlying display 1305. When the pressure sensor 1313 is disposed on the side frame of the terminal 1300, a user's holding signal to the terminal 1300 may be detected, and the processor 1301 performs left-right hand recognition or shortcut operation according to the holding signal acquired by the pressure sensor 1313. When the pressure sensor 1313 is disposed at a lower layer of the display screen 1305, the processor 1301 controls an operability control on the UI interface according to a pressure operation of the user on the display screen 1305. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 1314 is used for collecting the fingerprint of the user, and the processor 1301 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 1314, or the fingerprint sensor 1314 identifies the identity of the user according to the collected fingerprint. When the identity of the user is identified as a trusted identity, the processor 1301 authorizes the user to perform relevant sensitive operations, including unlocking a screen, viewing encrypted information, downloading software, paying, changing settings, and the like. The fingerprint sensor 1314 may be disposed on the front, back, or side of the terminal 1300. When a physical button or vendor Logo is provided on the terminal 1300, the fingerprint sensor 1314 may be integrated with the physical button or vendor Logo.
The optical sensor 1315 is used to collect the ambient light intensity. In one embodiment, the processor 1301 may control the display brightness of the display screen 1305 according to the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display luminance of the display screen 1305 is increased. When the ambient light intensity is low, the display brightness of the display screen 1305 is reduced. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 according to the ambient light intensity collected by the optical sensor 1315.
Proximity sensor 1316, also known as a distance sensor, is typically disposed on a front panel of terminal 1300. Proximity sensor 1316 is used to gather the distance between the user and the front face of terminal 1300. In one embodiment, the display 1305 is controlled by the processor 1301 to switch from the bright screen state to the dark screen state when the proximity sensor 1316 detects that the distance between the user and the front surface of the terminal 1300 gradually decreases. The display 1305 is controlled by the processor 1301 to switch from the rest state to the bright state when the proximity sensor 1316 detects that the distance between the user and the front face of the terminal 1300 is gradually increasing.
Those skilled in the art will appreciate that the configuration shown in fig. 15 does not constitute a limitation of terminal 1300, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be employed.
The present application further provides a computer-readable storage medium, which is a non-volatile storage medium, and at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the content push method provided in the foregoing embodiments of the present application.
The embodiment of the present application further provides a computer program product, where instructions are stored in the computer program product, and when the computer program product runs on a computer, the computer is enabled to execute the content push method provided by the embodiment of the present application.
The embodiment of the present application further provides a chip, where the chip includes a programmable logic circuit and/or a program instruction, and when the chip runs, the chip can execute the content push method provided in the embodiment of the present application.
In the embodiment of the application, the relation qualifier "and/or" indicates three logical relations, and a and/or B indicates that a exists alone, B exists alone, and a and B exist together.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (9)

1. A method for pushing content, the method comprising:
acquiring the state of a content display page of a terminal;
when the state indicates that the content display page has the content to be pushed, acquiring first display position information for indicating the position of the content to be pushed in the content display page and second display position information for indicating the position of a display area of the content display page on a screen in the content display page;
comparing the second display position information with the first display position information; when the position indicated by the first display position information and the position indicated by the second display position information have an overlapping area, determining that the content to be pushed is displayed in the screen; when the position indicated by the first display position information and the position indicated by the second display position information do not have an overlapping area, determining that the content to be pushed is not displayed in the screen;
when the content to be pushed is not displayed in the screen, displaying a floating window at a reference position of the screen to prompt a user of the content to be pushed;
when the content to be pushed is displayed in the screen, displaying the floating window at the position of the content to be pushed;
acquiring sliding operation aiming at the content display page or the floating window;
updating at least one of the pointing direction and the display position of the floating window based on the sliding operation to keep the floating window pointing to the content to be pushed.
2. The method of claim 1, wherein updating the pointing direction of the floating window based on the sliding operation comprises:
acquiring the change condition of the relative position of the content to be pushed and the display area of the content display page on the screen based on the sliding operation;
updating the direction of the floating window when the content to be pushed is determined to be displayed in the screen before the change and the content to be pushed is not displayed in the screen after the change based on the change condition;
updating the direction of the floating window when the content to be pushed is determined not to be displayed in the screen before the change and the content to be pushed is displayed in the screen after the change based on the change condition;
updating the direction of the floating window when the content to be pushed is determined to be displayed in the screen before and after the change based on the change condition;
and updating the direction of the floating window when the situation that the content to be pushed is not displayed in the screen before and after the change is determined based on the change situation.
3. The method of claim 1 or 2, wherein updating the display position of the floating window based on the sliding operation comprises:
acquiring the change condition of the relative position of the content to be pushed and the display area of the content display page on the screen based on the sliding operation;
and updating the display position of the floating window when the content to be pushed is determined to be displayed in the screen after the change based on the change condition.
4. The method according to claim 3, wherein when the sliding operation is used to instruct scrolling different areas of the content display page in the screen, updating the display position of the floating window when it is determined that the content to be pushed is displayed in the screen after the change based on the change condition comprises:
in the process of displaying different areas of the content display page in a rolling mode, if it is determined that the content to be pushed is not displayed in the screen before the change and the content to be pushed is displayed in the screen after the change, displaying the process that the floating window moves towards the position where the content to be pushed is located;
and/or in the process of displaying different areas of the content display page in a rolling manner, if it is determined that the content to be pushed is always displayed in the screen in the process based on the change condition and the floating window moves to the position of the content to be pushed, the floating window moves synchronously with the content to be pushed.
5. The method of claim 4,
in the moving process of the floating window, the moving distance of the floating window along a first direction is positively correlated with the moving distance of the content to be pushed along the first direction, and the first direction is parallel to the scrolling direction of the content display page;
and/or, in the moving process of the floating window, the moving distance of the floating window along a second direction is positively correlated with the moving distance of the content to be pushed along the first direction, and the second direction is perpendicular to the first direction;
and/or, in the moving process of the floating window, the size of the floating window is positively correlated with the distance from the floating window to the content to be pushed.
6. The method according to any one of claims 1 or 2, further comprising:
receiving a display control instruction, wherein the display control instruction is used for indicating the content to be pushed;
the display control instruction is further used for indicating that the floating window is displayed in the screen when the content display page is displayed, and indicating that the floating window is not displayed in the screen any more if no click operation aiming at the content to be pushed is detected in the process of displaying the content display page for N times, wherein N is a positive integer;
or, the display control instruction is further configured to indicate a total number of times of displaying the floating window in a process of performing multiple times of displaying the content display page.
7. A content pushing apparatus, characterized in that the apparatus comprises:
the acquisition module is used for acquiring the state of a content display page of the terminal;
the display module is used for acquiring first display position information used for indicating the position of the content to be pushed in the content display page and second display position information used for indicating the position of a display area of the content display page on a screen in the content display page when the state indicates that the content to be pushed exists in the content display page; comparing the second display position information with the first display position information; when the position indicated by the first display position information and the position indicated by the second display position information have an overlapping area, determining that the content to be pushed is displayed in the screen; when the position indicated by the first display position information and the position indicated by the second display position information do not have an overlapping area, determining that the content to be pushed is not displayed in the screen; when the content to be pushed is not displayed in the screen, displaying a floating window at a reference position of the screen to prompt a user of the content to be pushed; when the content to be pushed is displayed in the screen, displaying the floating window at the position of the content to be pushed;
the acquisition module is further configured to acquire a sliding operation for the content display page or the floating window;
the display module is further configured to update at least one of the pointing direction and the display position of the floating window based on the sliding operation, so as to keep the floating window pointing to the content to be pushed.
8. A terminal, characterized in that the terminal comprises a processor and a memory, wherein at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the content push method according to any one of claims 1 to 6.
9. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the content push method according to any one of claims 1 to 6.
CN201910406341.1A 2019-05-15 2019-05-15 Content pushing method and device, terminal and storage medium Active CN110119233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910406341.1A CN110119233B (en) 2019-05-15 2019-05-15 Content pushing method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910406341.1A CN110119233B (en) 2019-05-15 2019-05-15 Content pushing method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN110119233A CN110119233A (en) 2019-08-13
CN110119233B true CN110119233B (en) 2022-04-08

Family

ID=67522594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910406341.1A Active CN110119233B (en) 2019-05-15 2019-05-15 Content pushing method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110119233B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113934343A (en) * 2021-09-30 2022-01-14 北京五八信息技术有限公司 Information processing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984343A (en) * 2012-10-10 2013-03-20 北京小米科技有限责任公司 Information cue method, device and mobile terminal
CN104142786A (en) * 2014-07-26 2014-11-12 珠海市君天电子科技有限公司 Prompt box display method and terminal
CN104461095A (en) * 2013-09-17 2015-03-25 宏碁股份有限公司 Adjustable pointing-component direction prompting method and system
CN106445306A (en) * 2016-10-09 2017-02-22 广州阿里巴巴文学信息技术有限公司 Prompting method in application, device and client equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160188125A1 (en) * 2014-08-24 2016-06-30 Lintelus, Inc. Method to include interactive objects in presentation

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984343A (en) * 2012-10-10 2013-03-20 北京小米科技有限责任公司 Information cue method, device and mobile terminal
CN104461095A (en) * 2013-09-17 2015-03-25 宏碁股份有限公司 Adjustable pointing-component direction prompting method and system
CN104142786A (en) * 2014-07-26 2014-11-12 珠海市君天电子科技有限公司 Prompt box display method and terminal
CN106445306A (en) * 2016-10-09 2017-02-22 广州阿里巴巴文学信息技术有限公司 Prompting method in application, device and client equipment

Also Published As

Publication number Publication date
CN110119233A (en) 2019-08-13

Similar Documents

Publication Publication Date Title
CN110602321B (en) Application program switching method and device, electronic device and storage medium
CN110841285B (en) Interface element display method and device, computer equipment and storage medium
CN110308956B (en) Application interface display method and device and mobile terminal
CN109862412B (en) Method and device for video co-shooting and storage medium
CN110362366B (en) Application interface display method and device
CN107803030B (en) Refreshing method and device for resource site on virtual map
CN112181572A (en) Interactive special effect display method and device, terminal and storage medium
CN108920606B (en) Map data processing method, map data processing device, terminal equipment and storage medium
CN110288689B (en) Method and device for rendering electronic map
CN112764654B (en) Component adsorption operation method and device, terminal and storage medium
CN108734662B (en) Method and device for displaying icons
CN111400002B (en) Application process and processor core binding method and terminal
CN111385525B (en) Video monitoring method, device, terminal and system
CN107943484B (en) Method and device for executing business function
CN110769120A (en) Method, device, equipment and storage medium for message reminding
CN108664300B (en) Application interface display method and device in picture-in-picture mode
CN111897465B (en) Popup display method, device, equipment and storage medium
CN111857793A (en) Network model training method, device, equipment and storage medium
CN111158575B (en) Method, device and equipment for terminal to execute processing and storage medium
CN110119233B (en) Content pushing method and device, terminal and storage medium
CN109032492B (en) Song cutting method and device
CN109033473B (en) Picture sharing method and device and computer readable storage medium
CN111275607A (en) Interface display method and device, computer equipment and storage medium
CN112181915A (en) Method, device, terminal and storage medium for executing service
CN112612405B (en) Window display method, device, equipment and computer readable storage medium

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
GR01 Patent grant
GR01 Patent grant