CN110119233A - Content delivery method and device, terminal, storage medium - Google Patents

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

Info

Publication number
CN110119233A
CN110119233A CN201910406341.1A CN201910406341A CN110119233A CN 110119233 A CN110119233 A CN 110119233A CN 201910406341 A CN201910406341 A CN 201910406341A CN 110119233 A CN110119233 A CN 110119233A
Authority
CN
China
Prior art keywords
content
pushed
floating window
page
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.)
Granted
Application number
CN201910406341.1A
Other languages
Chinese (zh)
Other versions
CN110119233B (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

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

This application discloses a kind of content delivery method and device, terminal, storage mediums, belong to Internet technical field.The described method includes: the content for obtaining terminal shows the state of the page;The content described in the state instruction shows the page there are the floating window for being directed toward the content to be pushed when content to be pushed, is shown in the screen, to prompt content to be pushed described in user;Obtain the slide that the page or the floating window are shown for the content;Based on the slide, at least one in the direction and display position of the floating window is updated, to keep the floating window to be directed toward the content to be pushed.The application improves the pushing efficiency of content to be pushed.

Description

Content delivery method and device, terminal, storage medium
Technical field
This application involves Internet technical field, in particular to a kind of content delivery method and device, terminal, storage Jie Matter.
Background technique
With the development of science and technology, terminal using more and more common.Multiple application programs are usually mounted in terminal, And each application program may include multiple subapplications, each subapplication is for realizing different functions.Group is answered When having update with the function of program, the function of user's subapplication is prompted to occur updating, in time to guide user to use Subapplication after the function renewal can effectively improve user's viscosity.
In the related technology, the icon of multiple subapplications is generally included in the interface of application program.Work as subapplication Function when having update, the display reminding message usually on the icon of the subapplication of function renewal, to prompt user's son Updating occurs in the function of application program.
But when the icon for the subapplication that display function non-in the screen of terminal updates, user can not see this Prompting message causes user that can not learn update status, therefore, prompts the efficiency updated lower in the related technology.
Summary of the invention
The embodiment of the present application provides a kind of content delivery method and device, terminal, storage medium, can solve related skill The problem for prompting the efficiency updated lower in art.The technical solution is as follows:
On the one hand, a kind of content delivery method is provided, which comprises
The content for obtaining terminal shows the state of the page;
The content described in the state instruction show the page there are when content to be pushed, show in screen be directed toward described in The floating window of content is pushed, to prompt user to have content to be pushed;
Obtain the slide that the page or the floating window are shown for the content;
Based on the slide, at least one in the direction and display position of the floating window is updated, described in keeping Floating window is directed toward the content to be pushed.
In one possible implementation, the direction of the floating window and the angle of second direction be target ratio anyway It cuts;
The target ratio is the ratio of first distance and second distance, and the first distance is shown in institute for the floating window The display position of position and the content to be pushed in the content display page in the content display page is stated along first party To distance, the second distance is that the floating window is shown in the content and shows position and the content to be pushed in the page The distance of display position in a second direction in the page is shown in the content, and the first direction is parallel to the content and shows The rotating direction of the page, the second direction are vertical with the first direction.
In one possible implementation, show the floating window towards content to be pushed position movement In the process, after target line is parallel with the second direction, the floating window is equal to along the moving distance of the first direction The content to be pushed along the first direction moving distance, the target line by the floating window display position with it is described The display position of content to be pushed determines.
On the other hand, a kind of content push device is provided, described device includes:
Module is obtained, the content for obtaining terminal shows the state of the page;
Display module shows the page there are when content to be pushed, in screen for the content described in the state instruction The floating window of the content to be pushed is directed toward in display, to prompt user to have content to be pushed;
The acquisition module is also used to obtain the slide for showing the page or the floating window for the content;
The display module is also used to based on the slide, in the direction and display position for updating the floating window At least one of, to keep the floating window to be directed toward the content to be pushed.
In one possible implementation, the display module, is used for:
The content described in the state instruction shows the page there are when content to be pushed, and acquisition is used to indicate described wait push Content shows the first display position information of position in the page in the content, and is used to indicate the content and shows the page in institute State the second display position information that the display area on screen shows position in the page in the content;
When being based on first display position information and second display position information, determines and do not shown in the screen When having the content to be pushed, the floating window is shown in the reference position of the screen;
When being based on first display position information and second display position information, determines and shown in the screen When the content to be pushed, the floating window is shown in the content to be pushed position.
Optionally, the display module, is also used to:
Based on the slide, obtains the content to be pushed and the content shows the page on the screen aobvious Show the situation of change of the relative position in region;
When being based on the situation of change, determines before variation or show the content to be pushed after variation in the screen When, update the direction of the floating window;
When being based on the situation of change, determine described in not shown in the screen before variation and after variation wait push When content, the direction of the floating window is updated.
Optionally, the display module, is also used to:
Based on the slide, obtains the content to be pushed and the content shows the page on the screen aobvious Show the situation of change of the relative position in region;
When determined based on the situation of change show the content to be pushed in described after variation screen when, update institute State the display position of floating window.
Optionally, the content display page is scrolled in the screen not when the slide is used to indicate When with region, it is described optionally, the display module is also used to:
During scrolling the different zones of the content display page, if being determined based on the situation of change When showing the content to be pushed always in the screen during described, show the floating window towards the content to be pushed The mobile process of position;
And/or during scrolling the different zones of the content display page, if being based on the situation of change Determine and show the content to be pushed in described in this process screen always, and the floating window have been moved into it is described wait push away Content position is sent, the floating window is with the content to be pushed synchronizing moving.
Optionally, the display module is also used in the moving process of the floating window, and the floating window is along first direction Moving distance, the moving distance with the content to be pushed along the first direction are positively correlated, and the first direction is parallel to institute State the rotating direction that content shows the page;
And/or in the moving process of the floating window, the moving distance of the floating window in a second direction, with described wait push away Content is sent to be positively correlated along the moving distance of the first direction, the second direction is vertical with the first direction;
And/or in the moving process of the floating window, the size of the floating window and the floating window to the content to be pushed Distance be positively correlated.
Optionally, described device further include:
Receiving module, for receiving display control signal, the display control signal is used to indicate content to be pushed;
The display module, is used for:
When determining that the content shows in the page there are when content to be pushed indicated by the display control signal, in institute It states and shows the floating window in screen;
Wherein, the display control signal is also used to indicate when showing that the content shows the page, in the screen The floating window is shown, and during execution n times show that the content shows the page, if being not detected for described wait push away The clicking operation of content is sent, instruction no longer shows the floating window in the screen, and the N is positive integer;
Alternatively, the display control signal is also used to indicate executing the process for repeatedly showing that the content shows the page In, show the total degree of the floating window.
Another aspect provides a kind of terminal, and the terminal includes processor and memory, is stored in the memory At least one instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, institute Code set or instruction set is stated to be loaded by the processor and executed to realize the content delivery method as provided in terms of above-mentioned.
In another aspect, providing a kind of computer readable storage medium, at least one finger is stored in the storage medium Enable, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or Instruction set is loaded by processor and is executed to realize the content delivery method as provided in terms of above-mentioned.
Technical solution provided by the embodiments of the present application has the benefit that
By the way that there are when content to be pushed, show to be directed toward content to be pushed in screen in determining the content display page Floating window, and after getting the slide for showing the page or floating window for content, the finger of floating window is updated according to the slide To in display position at least one of so that the floating window remains pointing to content to be pushed, compared to the relevant technologies, no matter screen In whether show content to be pushed, be able to use the floating window instruction content to be pushed display position, effectively improve The pushing efficiency of content to be pushed.
Detailed description of the invention
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, the drawings in the following description are only some examples of the present application, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of structural schematic diagram of implementation environment involved in content delivery method provided by the embodiments of the present application.
Fig. 2 is a kind of flow chart of content delivery method provided by the embodiments of the present application.
Fig. 3 is the flow chart of another content delivery method provided by the embodiments of the present application.
Fig. 4 is a kind of schematic diagram for showing floating window provided by the embodiments of the present application.
Fig. 5 is the schematic diagram of another display floating window provided by the embodiments of the present application.
Fig. 6 is a kind of schematic illustration of the direction of floating window provided by the embodiments of the present application.
Fig. 7 is the schematic diagram of another display floating window provided by the embodiments of the present application.
Fig. 8 is the schematic diagram of another display floating window provided by the embodiments of the present application.
Fig. 9 is the flow chart of another content delivery method provided by the embodiments of the present application.
Figure 10 is the schematic diagram of another display floating window provided by the embodiments of the present application.
Figure 11 is the schematic diagram of another display floating window provided by the embodiments of the present application.
Figure 12 is the schematic diagram of another display floating window provided by the embodiments of the present application.
Figure 13 is a kind of structural schematic diagram of content push device provided by the embodiments of the present application.
Figure 14 is the structural schematic diagram of another content push device provided by the embodiments of the present application.
Figure 15 is a kind of structural schematic diagram of terminal provided by the embodiments of the present application.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party Formula is described in further detail.
Generally, multiple application programs are usually mounted in terminal, and each application program may include multiple sub- applications Program, each subapplication is for realizing different functions.When the function of subapplication has update, can function more Display reminding message on the icon of new subapplication shows that son is answered alternatively, can start in page in the software of application program With the updated function of program, to prompt the function of user's subapplication to occur updating, and then user is guided to use function It can updated subapplication.Wherein, software starting page is after opening application program, in the main interface of display application program Before, the page shown in terminal.
But in the mode that the prompt of display reminding message updates on icon, when the subapplication of function renewal When icon is not shown in the terminal, user can not see the prompting message, cause user that can not learn update status, and the prompt is more New efficiency is lower.Also, the mode of display reminding message is realized by coding on icon, is needing to prompt other function When can update, for example, it is desired to be required to recompile, lead to the prompt side when prompting the function renewal of different subapplications The flexibility of formula and versatility are lower.
It is prompted in the mode updated in software starting page, when terminal shows that content shows the page, user usually can not Know that the icon of the subapplication of function renewal shows the position in the page in content, causes user that can not effectively use function Updated subapplication, therefore, the efficiency which updates are lower.
The embodiment of the present application provides a kind of content delivery method and device, terminal, storage medium, by determining content It shows that there are content to be pushed for the page, shows the floating window for being directed toward content to be pushed on the screen, and aobvious for content getting After showing the page or the slide of floating window, at least one in the direction and display position of floating window is updated according to the slide, No matter so that the floating window remains pointing to content to be pushed, therefore, content to be pushed whether is shown in screen, be able to use family The display position that content to be pushed is determined according to the floating window effectively improves the pushing efficiency of content to be pushed.
The content delivery method may be used to indicate the subapplication of function renewal, can be used for information and shows the class page Middle appearance new message and new content etc. may be used to indicate that the son application that (such as marketing strategy) needs to recommend according to demand The content that the needs such as program, message and content prompt the user with.Also, works as and the content delivery method is applied to instruction function more When new subapplication, which can be the icon of the subapplication of function renewal, at this point, by making floating window The content to be pushed is remained pointing to, is able to use the display position that family determines the icon of subapplication according to the floating window, in turn Effectively improve the efficiency that prompt subapplication updates.
Referring to FIG. 1, it illustrates a kind of implementation environments involved in content delivery method provided by the embodiments of the present application Structural schematic diagram, which may include: terminal 10 and server 20.The terminal 10 can be smart phone, electricity Brain, multimedia player, electronic reader or wearable device etc..The server 20 can be a server, Huo Zheyou The server cluster or a cloud computing service center of several server compositions.Illustratively, which can be Cloud backstage.Connection can be established by cable network or wireless network between terminal 10 and the server 20.
Wherein, server 20 be used for terminal 10 send display control signal, with indicate content show the page in need by The content to be pushed of prompt.For example, server 20 can prompt facility updates during certain display with instruction terminal 10 Subapplication A, i.e. display control signal instruction content to be pushed during this time display is subapplication A, and is referred to Show that the subapplication B updated occurs in prompt facility during another display of terminal 10, i.e. display control signal instruction exists Content to be pushed is subapplication B during another display.
Also, the display control signal also can indicate that terminal 10 shows the mode of floating window.For example, the display control signal Can instruction terminal show content show the page when, if at the terminal execute n times show content show the page during, If the clicking operation for content to be pushed is not detected, instruction terminal no longer shows the floating window, which is positive integer.Alternatively, The display control signal is used to indicate during executing the repeatedly display content display page, shows the total degree of floating window.
Terminal 10 is used to, when showing that content shows the page, execute the display control signal institute according to display control signal The display operation of instruction, and content shown by terminal is shown in the interface zone of the page when including content to be pushed, at end The content to be pushed is shown in end.
Fig. 2 is a kind of flow chart of content delivery method provided by the embodiments of the present application, and this method can be applied to terminal, such as Shown in Fig. 2, this method be may comprise steps of:
Step 201, the content for obtaining terminal show the state of the page.
Step 202 shows that the page there are when content to be pushed, shows in screen and is directed toward wait push in state instruction content The floating window of content, to prompt user to have content to be pushed.
Step 203 obtains the slide that the page or floating window are shown for content.
Step 204 is based on slide, at least one in the direction and display position of floating window is updated, to keep floating window It is directed toward content to be pushed.
In conclusion content delivery method provided by the embodiments of the present application, by existing in determining the content display page When content to be pushed, the floating window for being directed toward content to be pushed is shown in screen, and getting for the content display page or floating After the slide of window, at least one in the direction and display position of floating window is updated according to the slide, so that the floating window Content to be pushed is remained pointing to, compared to the relevant technologies, no matter content to be pushed whether is shown in screen, is able to use this Floating window indicates the display position of content to be pushed, effectively improves the pushing efficiency of content to be pushed.
Fig. 3 is the flow chart of another content delivery method provided by the embodiments of the present application, and this method can be applied to terminal, As shown in figure 3, this method may comprise steps of:
Step 301 receives display control signal, which is used to indicate terminal display and is directed toward content to be pushed Floating window.
Server can send display control signal to terminal, and the floating window for being directed toward content to be pushed is shown with instruction terminal. Also, server can also be in such a way that the display control signal instruction terminal shows floating window, for example, can be aobvious with instruction terminal Show the total degree and frequency of floating window.Wherein, show that content shows the page since terminal, the picture shown to terminal is by the content Show that the screen switching of the page to the process of other pictures, is properly termed as the primary display process that the content shows the page.Accordingly , the process for showing floating window during once display of the page is shown in the content, is properly termed as once showing for the floating window Journey.
Server shows that the implementation of the total degree of floating window may include: that this is aobvious by display control signal instruction terminal Show that control instruction can serve to indicate that terminal when showing that content shows the page, while showing floating window in screen, and is executing N During secondary display content shows the page, if the clicking operation for content to be pushed is not detected, instruction terminal is no longer Floating window is shown in screen, i.e. the total degree of server instruction display floating window is N, which is positive integer.
Server shows that the implementation of the frequency of floating window may include: the display by display control signal instruction terminal Control instruction can serve to indicate that shows that the total degree of floating window is m2 during executing the m1 display content display page, That is the frequency of server instruction display floating window is m2/m1.Alternatively, the display control signal can serve to indicate that terminal m1 times every During showing that content shows the page, m2 floating window is shown, i.e. the frequency of server instruction display floating window is m2/m1, wherein M2 is less than or equal to m1.
Also, content to be pushed can be the icon of the subapplication of function renewal.For example, updating certain application program After the function of middle subapplication, server can send the code packet of the subapplication to terminal, to be somebody's turn to do in more new terminal The function of subapplication.Correspondingly, server can send the display control for carrying the information of the subapplication to terminal System instruction shows the icon for being directed toward the subapplication with instruction terminal when showing the interface of the application program in screen Floating window, to prompt the function of user's subapplication to be updated.
Alternatively, content to be pushed can show in the class page new message and new content etc. occur for information, it can be with Icon, message and the content needs of subapplication to be determined according to demand (such as marketing strategy) prompt the user with interior Hold, the embodiment of the present application is not specifically limited it.
Step 302, the content for obtaining terminal show the state of the page, to determine that content is shown in the page with the presence or absence of should be to Push content.
After determining content to be pushed according to display control signal, which can be shown configuration file etc. of the page into Row content detection, to determine that the content shows whether the content in the page includes the content to be pushed, to be used to indicate The content shows the state for showing the page in the page with the presence or absence of the content of the content to be pushed.And it is aobvious in the state instruction content Show that the page there are when the content to be pushed, executes step 303.
Step 303 shows the page there are when content to be pushed in state instruction content, and acquisition is used to indicate content to be pushed The first display position information of position in the page is shown in content, and is used to indicate content and is shown the viewing area of the page on the screen Domain shows the second display position information of position in the page in content.
It can be shown in the page in content in advance and establish coordinate system, since content to be pushed shows the position in the page in content It is fixed for setting, and therefore, after determining coordinate system, the first display position of the content to be pushed can be determined according to the coordinate system Information.Optionally, it as shown in figure 4, terminal is when showing that content shows the page, is shown the top that the page is usually shown since content Show, then the origin of coordinate system can be established at the upper left corner B1 that the content shows the page, and direction from left to right is x-axis Positive direction, direction from top to bottom are the positive direction of y-axis.It, can be according to the content to be pushed at this after determining the coordinate system Content shows the position in the page, determines the x coordinate and y-coordinate of the geometric center of the content to be pushed, first aobvious to obtain this Show location information.
Alternatively, can also be obtained according to the end coordinates system wait push due to being usually preset with end coordinates system in terminal First display position information of content.Also, to simplify the calculation, when using the end coordinates system, it can be assumed that the terminal is sat The origin of mark system is located at the upper left corner that the content shows the page, then shows the position in the page in content according to content to be pushed It sets, determines the x coordinate and y-coordinate of the geometric center of the content to be pushed, to obtain the first display position information.
It should be noted that content shows that the page can have the multiple view subregions successively arranged, each view subregion In at least one of include content, and the starting position of each view subregion is properly termed as view node.Obtaining first display When location information, the first distance of available content to be pushed view node into view subregion where it, and obtaining should View node shows the second distance of the root node of the page to the content, is then determined according to the first distance and the second distance First display position information of the content to be pushed.Wherein, which shows that the position in the page where the origin of coordinate system can The referred to as root node of the content display page.
Also, it, can be with when obtaining the first distance when the display area of content to be pushed is greater than area of reference threshold value The geometric center of the content to be pushed is first obtained to the edge of content to be pushed view node in view subregion where it Third distance, then obtain the edge to content to be pushed view node into view subregion where it the 4th distance, And the third distance and the 4th sum of the distance are determined as the first distance.
Illustratively, when prompting the user with a certain subapplication in application program " mobile phone house keeper ", content to be pushed It can be the icon of the subapplication, which shows that the page is the Application Program Interface of application program " mobile phone house keeper ".Fig. 5 For the Application Program Interface schematic diagram of the application program " mobile phone house keeper ", as shown in figure 5, the Application Program Interface is with view point Area's " utility " and view subregion " financial service ".Including subapplication " borrowing money " in the view subregion " utility " Icon, the icon of subapplication " my collection ", the icon of subapplication " flow telephone expenses ", subapplication " my money Icon, the icon of subapplication " free wifi " and the icon of subapplication " more " of packet ".View subregion " finance clothes It include the icon of subapplication " my wallet " in business ".
Assuming that content to be pushed is the icon of subapplication " free wifi ", as shown in figure 5, obtaining the several of the icon When the y-coordinate at what center, third distance y3 of the geometric center along y-axis to its edge of the icon can be obtained respectively, and obtaining should Edge obtains the view subregion " utility " along the 4th distance y2 of the view node of y-axis to view subregion " utility " View node along y-axis to the content show the page root node second distance y1, then by third distance y3, the 4th away from Y-coordinate from the geometric center that the sum of y2 and second distance y1 are determined as the icon.
Similar, the geometric center of the icon of the subapplication " free wifi " can be obtained in a similar way X coordinate is obtained respectively along the 5th distance x1 of x-axis, the 6th distance x2 and the 7th distance x3, then by the 5th distance x1, The sum of six distance x2 and the 7th distance x3 are determined as the x coordinate of the geometric center of the icon.
When showing that content shows the page in screen, screen is typically only capable to the partial region that display content shows the page, And when the content difference shown in screen, content to be pushed shows the opposite of display area of the page in screen with the content Position is different, correspondingly, the direction of floating window is different, therefore, before showing floating window in screen, needs first to obtain content and shows page The display area of face on the screen shows position in the page in content, and opposite with the content to be pushed according to the display area Position shows floating window in screen.Wherein it is possible to the associated profile of terminal be inquired, to determine that content shows the page in screen In display area, and obtain the second location information of the display area.And the implementation of the acquisition second location information is asked The corresponding realization with reference to acquisition first location information.
Step 304, be based on the first display position information and the second display position information, determine whether shown in screen to Push content.
When showing that content shows the page in screen, screen is typically only capable to the partial region that display content shows the page. Therefore, when content to be pushed is when content shows that the display position in the page is fixed, the display state of content to be pushed may be One of following two situation: not showing content to be pushed in screen, and, content to be pushed is shown in screen.And When the display state difference of content to be pushed, show that the mode of floating window can be different, therefore, shown in screen floating window it Before, first can determine in screen whether show content to be pushed.
It is alternatively possible to second location information and the first display position information be compared, when first location information institute There are when overlapping region, determine that the content to be pushed is located at the viewing area for the position of instruction and the position of second location information instruction In domain, that is, determines in the screen and show content to be pushed, at this point, executable step 305, indicated by first location information Overlapping region is not present in position and the position of second location information instruction, can determine and not shown in the screen wait in pushing Hold, at this point, executable step 306.
Step 305, when be based on the first display position information and the second display position information, determine do not shown in screen to When pushing content, floating window is shown in the reference position of screen.
When not showing content to be pushed in screen, any position floating window can be shown in screen, it should as long as guaranteeing Floating window is directed toward the content to be pushed, and floating window is directed toward content to be pushed.Alternatively, can also be according to predetermined reference bit It sets place and shows the floating window.The reference position can be determine according to actual needs.For example, the reference position can be the bottom right of screen Angle or the upper right corner.Alternatively, the reference position can be the customized position of user, for example, the customized position of user is screen The upper left corner.As shown in figure 4, floating window A is located at the lower right corner of screen.
Also, referring to FIG. 6, the angle a of the direction of floating window and second direction X are the arc tangent of target ratio.The target Ratio is the ratio of first distance h and second distance w, i.e. angle a=arctan (h/w).First distance h is that floating window is shown Content show position in the page and content to be pushed content show display position in the page along first direction Y away from From second distance w is that the position that floating window is shown in the content display page and content to be pushed are shown in the page in content The distance of display position X in a second direction.And first direction Y is parallel to the rotating direction that content shows the page, the second party It is vertical with first direction Y to X.
Optionally, which can be the floating layer icon with arrow, and the direction of the arrow of the floating layer icon is that this is floating The direction of window.Such as: the floating window is the message bubble with arrow or the floating layer text box with arrow etc..Also, the floating window Pattern identification identical with content to be pushed can also be carried.Illustratively, as shown in fig. 7, when content to be pushed is " free When the icon of wifi ", the content to be pushed and floating window can carry the pattern identification of " free wifi ".
Step 306, when be based on the first display position information and the second display position information, determine in screen and show wait push away When sending content, floating window is shown in content to be pushed position.
When showing content to be pushed in screen, floating window, and floating window can be shown in content to be pushed position It is directed toward content to be pushed, the direction of the floating window can be made to become apparent from, in order to which user can be more acurrate according to the instruction of the floating window The content to be pushed being instructed to is distinguished on ground, and then determines the position of the content to be pushed.Wherein, the method for determination of the direction of floating window Please accordingly with reference to the method for determination of the direction of floating window in step 305.
Also, show that floating window may include: to show to float in the content to be pushed in the content to be pushed position Window, or, showing floating window within the scope of the reference distance around the content to be pushed.Illustratively, public when needing to prompt the user with The subapplication of update, and when the icon B3 of the use graphical representation subapplication, it can be shown on icon B3 floating Window A, alternatively, as shown in fig. 7, can show floating window A in dotted line frame B4, and icon B3 is located in dotted line frame B4.
Step 307 receives the slide for showing the page or floating window for content, and shows page for content receiving When the slide in face, the different zones that content shows the page are scrolled in screen based on the slide, are being received For floating window slide when, the display position of floating window is updated in screen based on the slide.
When user needs terminal scrolling display content to show the different zones of the page, screen can be slided, to trigger needle The slide that the page is shown to the content can be according to the sliding of slide instruction after terminal receives slide Direction and sliding distance, control the region that is shown in detecting slide forth screen along the glide direction roll the sliding away from From to scroll the different zones that the content shows the page in the screen.Wherein, key can be set in terminal, it should Slide can be triggered by click keys.And/or screen can be touching display screen, which can be by user Touch screen triggering.
When user needs to change display position of the floating window in screen, the slide for the floating window can be triggered, After terminal receives slide, display position of the floating window in screen can be updated according to the slide.For example, can incite somebody to action Floating window is shown at position indicated by the slide.Wherein, key can be set in terminal, which can be The floating window is selected using selection key, and uses the operation of the mobile floating window of mobile key.And/or screen can be aobvious for touch-control Display screen, the slide can click floating window for user in screen, and the operation of floating window is dragged in the case where keeping clicking. For example, user can click floating window, and be dragged to other when floating window has blocked that user wants the content checked in screen At position, to be shown at the other positions.
Step 308, when slide be used to indicate in screen scroll content show the page different zones when, base In slide, the variation feelings of the relative position of the display area of content to be pushed and the content display page on the screen are obtained Condition.
When slide is used to indicate the different zones for scrolling the content display page in screen, terminal is being received After slide, the different zones that the content shows the page can be scrolled in screen according to the slide, at this point, interior Holding display page display area on the screen can change, and content to be pushed and the content show the page on the screen aobvious Show that the relative position in region can accordingly change.When executing the step 308, after first can obtaining variation according to slide Content shows the second location information of the display area of the page on the screen, then according to the first location information of content to be pushed The relative position of the two after variation is determined with the second location information after the variation, and according to the first position of the content to be pushed Second location information before information and variation determines the relative position for changing the above two, then according to the relative position of variation front and back Determine the situation of change of the relative position.
Step 309 is based on the situation of change, updates at least one in the direction and display position of floating window, to keep floating Window is directed toward content to be pushed.
The direction for updating floating window based on situation of change is different with the implementation of display position, is directed toward separately below to update It is illustrated with the implementation of display position.Wherein, when updating the display position of floating window based on situation of change, according to wait push away The different display states for sending content, the display position for updating floating window may include following several situations:
In the first situation of display position for updating floating window, during determining scrolling display according to situation of change When screen does not show content to be pushed always, it may remain in reference position and show floating window.
In the second situation of display position for updating floating window, during determining scrolling display according to situation of change When showing content to be pushed in screen, the display picture that shows when updating floating window display position, in screen can be with are as follows: floating window It is mobile towards content to be pushed position, and after the floating window has been moved into content to be pushed position, floating window With content to be pushed synchronizing moving, to keep the floating window to be shown in content to be pushed position.
Wherein, in the moving process of floating window, which, can be with content to be pushed edge along the moving distance of first direction The moving distance of first direction is positively correlated, which is parallel to the rotating direction that content shows the page.And/or in floating window Moving process in, the moving distance of floating window in a second direction, with content to be pushed along first direction moving distance be positively correlated, Second direction is vertical with first direction.
Also, in the moving process of floating window, second is parallel in the target line determined by floating window and content to be pushed Behind direction, floating window can be equal to content to be pushed along the moving distance of first direction, so that two along the moving distance of first direction The relative position of person in a first direction is no longer changed, correspondingly, the direction of the floating window can in moving process later The content to be pushed is directed toward to remain in the case where remaining unchanged.Wherein, target line be floating window display position with to Push the line of the display position of content.For example, target line is the geometric center and content to be pushed of the display position of floating window Display position geometric center line.
Further, in the moving process of floating window, the size of floating window can also be at a distance from floating window to content to be pushed It is positively correlated, so that being rendered as the floating window by content to be pushed during floating window is moved towards content to be pushed position The effect of absorption, to increase the interest of display.
Optionally, the size of floating window shows that the rolling distance St reduced scale z of the page can satisfy with content: z= (St-h)/w.Wherein, h is shown in content for floating window and shows that position and content to be pushed in the page are shown in the page in content Display position along first direction distance, second distance w be floating window be shown in content show the page in position with wait push Content shows the distance of display position in a second direction in the page in content.
In the third situation of display position for updating floating window, shown when being determined in variation forth screen according to situation of change When having content to be pushed, and not showing content to be pushed in screen after variation, before variation to after changing, the display position of floating window It sets and is updated to the reference position in screen by the display position before changing.
In the 4th kind of situation of display position for updating floating window, do not shown when being determined in variation forth screen according to situation of change When being shown with content to be pushed, and showing content to be pushed in screen after variation, before variation to after changing, the display position of floating window It sets and is moved to the position where content to be pushed by reference position, or be moved to the position where reference position and content to be pushed Set a certain position in place.Wherein, which can show sliding process of the page in the change procedure according to content It is determined with the movement speed of floating window.
During scrolling content and showing the different zones of the page, display position based on content to be pushed and aobvious The situation of change for showing the relative position in region, the implementation for updating the direction of floating window may include following several situations:
In the first situation of direction for updating floating window, shown in variation forth screen when being determined based on situation of change Content to be pushed, and when not showing content to be pushed in screen after changing, the direction of floating window is updated, the floating window is made to remain finger To the content to be pushed.
When due to not showing content to be pushed in screen, floating window is shown in the reference position of screen, in screen When showing content to be pushed, which may be displayed on content to be pushed position, or be shown in reference position With the position between content to be pushed position, therefore, before and after variation, floating window can be sent out relative to the orientation of content to be pushed Changing needs to update the direction of the floating window.Wherein, the method for determination of the direction of floating window is please accordingly with reference to floating window in step 305 Direction method of determination.
In the second situation of direction for updating floating window, do not shown in variation forth screen when being determined based on situation of change When having content to be pushed, and showing content to be pushed in screen after variation, the direction of floating window is updated, the floating window is made to remain finger To the content to be pushed.Wherein, the method for determination of the direction of floating window is please accordingly with reference to the determination side of the direction of floating window in step 305 Formula.
In the third situation of direction for updating floating window, when being based on situation of change, determines before variation and shield after variation When not showing content to be pushed in curtain, the direction of floating window is updated.
Due to showing floating window in reference position, and should before and after variation when not showing content to be pushed in screen The relative position of content to be pushed and display area can change, and therefore, floating window can be sent out relative to the orientation of content to be pushed Changing needs to update the direction of the floating window.And the method for determination of the direction of floating window is please accordingly with reference to the finger of floating window in step 305 To method of determination.
Illustratively, it is assumed that when not showing content to be pushed in screen, floating window is shown in the lower right corner of screen.And change Preceding floating window A is shown in the position in the content display page referring to FIG. 6, in the Fig. 6, and the interface zone in dotted line frame C is not shown In screen.Floating window A is shown in content and shows that position and content to be pushed B3 in the page are shown in the page in content after variation Display position please refer to Fig. 8.According to the Fig. 6 and Fig. 8 it is found that variation front and back floating window is shown in the position in the content display page It shows with content to be pushed in content and is reduced at a distance between the display position in the page, therefore, the finger of the floating window after variation It is reduced to the angle with second direction.
In the 4th kind of situation of direction for updating floating window, when being based on situation of change, determines before variation and shield after variation When showing content to be pushed in curtain, the direction of floating window is updated.
When due to starting to show content to be pushed in screen, guiding plan rotating savings is by reference position towards content to be pushed Position is mobile, therefore, in the third situation of change, according to the relative position of content to be pushed and floating window, the third Also there are many modes of can be achieved for the direction of update floating window in kind situation of change:
The first can realize mode: if floating window has been moved into content to be pushed position before variation, before variation Afterwards, which can be with content to be pushed synchronizing moving.Also, during the synchronizing moving, due to floating window and wait in pushing The relative position of appearance will not occur to change relatively, and therefore, the direction of the floating window can remain unchanged before and after variation.
In second of achievable mode, if floating window does not move to content to be pushed position before variation, changing Afterwards, which will continue to mobile towards content to be pushed position, at this point, the direction of floating window can basis before and after variation The relative position variation of variation front and back content to be pushed and floating window is updated.And the method for determination of the direction of floating window is please accordingly joined Examine the method for determination of the direction of floating window in step 305.
Step 310, when slide be used to indicate in screen update floating window display position when, based on update after floating window Display position, update the direction of floating window, with keep floating window be directed toward content to be pushed.
When updating display position of the floating window in screen according to slide, side of the floating window relative to content to be pushed Position can change, at this time, it may be necessary to update the direction of floating window, and the method for determination of the direction of floating window please accordingly refers to step 305 The method of determination of the direction of middle floating window.
It needs, during the content shows the display of the page, if detecting the click for content to be pushed After operation, floating window can be no longer shown.And when the content to be pushed is there are when subpage frame, its subpage can also be shown in screen Face.For example, when the subapplication for needing push function to update, when the click for detecting the icon for the subapplication When operation, the sub-interface of the subapplication can be shown in screen.
Below with the subapplication in pushing application program, and in screen scroll Application Program Interface difference For the process in region, the realization process of method for pushing provided by the embodiments of the present application is illustrated, as shown in figure 9, the mistake Journey the following steps are included:
Step 401, after receiving display control signal, obtain terminal content show the page state, with determination answer With the icon for the target subapplication that whether there is display control signal instruction in program interface.
The realization process of the step 401 please accordingly refers to the realization process of step 302.
Step 402, in state instruction Application Program Interface there are when the icon of target subapplication, obtain for referring to Show the first display position information of icon position in Application Program Interface of target subapplication.
The realization process of the step 402 is please accordingly used to indicate content to be pushed with reference to acquisition in step 303 and shows in content Show the realization process of the first display position information of position in the page.
Step 403, after detecting idsplay order, show Application Program Interface in the terminal, and obtain application program circle Second display position information of display area of the face in screen.
Wherein, the realization process of step 403 is please accordingly used to indicate content with reference to acquisition in step 303 and shows that the page exists Display area on screen shows the realization process of the second display position information of position in the page in content.
Step 404, according to the first display position information and the second display position information, floating window is shown in screen.
Wherein, the realization process of step 404 is please accordingly with reference to step 304 to step 306.
It is exemplary, it is assumed that target subapplication is subapplication " free wifi ", i.e., content to be pushed is son application The icon of program " free wifi " when Fig. 4 is that terminal starts to execute the operation of display Application Program Interface, shows application in screen The schematic diagram of the partial region of program interface.As shown in figure 4, terminal start execute display Application Program Interface operation when, It is shown since the top of Application Program Interface, and does not show the icon of subapplication " free wifi " in screen, at this point, floating Window A is shown in the lower right corner of screen, and floating window A is directed toward the position where the icon of subapplication " free wifi ".
Step 405 detects whether to receive the slide for Application Program Interface.
When receiving the slide for Application Program Interface, step 406 is executed, is not being received for using journey When the slide at sequence interface, persistently detect whether to receive the slide for Application Program Interface.
Step 406, the different zones for sliding display Application Program Interface in screen based on the slide, and obtain rolling The icon and content of dynamic display front and back target subapplication show the change of the relative position of the display area of the page on the screen Change situation.
The realization process of the step 406 please refers to the realization process of step 307 and step 308.
Step 407 scrolls non-displaying target subapplication in the screen of front and back when determining according to situation of change When icon, the direction of floating window is adjusted.
Wherein, the method for determination of the direction of floating window is please accordingly with reference to the method for determination of the direction of floating window in step 305.
Exemplary, when showing display area shown in Fig. 4 in screen, terminal receives the cunning for Application Program Interface Dynamic operation.The slide updates the schematic diagram behind the region shown in screen according to Fig. 8.As shown in figure 8, being shown in screen Region and screen shown in Fig. 4 in the region that shows it is different, but subapplication " free wifi " is not shown in screen yet Icon, at this point, floating window A remains displayed in the lower right corner of screen, the angle of floating window A and second direction X is less than in Fig. 4 and floats in the Fig. 8 The angle of window A and second direction X, and floating window A still points to the position where the icon of subapplication " free wifi ".
Step 408, when persistently receiving the slide for Application Program Interface, based on the slide in screen The different zones of middle sliding display Application Program Interface, and according to the icon of target subapplication before and after the scrolling display of acquisition With the situation of change of the relative position of display area, determines and show target subapplication in screen during scrolling Icon when, the mobile process of the icon position of Dynamically Announce floating window towards target subapplication, and floating window is big It is small to be gradually reduced in the moving process.
The realization process of the step 408 is please accordingly with reference to the second situation for the display position for updating floating window in step 309 Realization process.
Exemplary, after display area shown in Fig. 8 is shown in screen, terminal is persistently received for Application Program Interface Slide, Figure 10, Figure 11 and Figure 12 are schematic diagram of the floating window towards content to be pushed position during mobile, And the timing of Figure 10, before the timing of Figure 11, the timing of Figure 11 is before the timing of Figure 12.
As shown in Figure 10, the icon B5 of subapplication " free wifi " is shown in screen, at this point, floating window A is shown in Between the lower right corner of screen and the position icon B5 of subapplication " free wifi ", floating window A and second party in the Figure 10 It is equal to 0 to the angle of X, and the size of floating window A is reduced relative to the size of floating window A in Fig. 9.
As shown in figure 11, the icon B5 of subapplication " free wifi " is shown in screen, floating window A is shown in sub- application The icon position of program " free wifi " B5, i.e., in Figure 11, it is " free that floating window A has been moved into subapplication The icon position of wifi " B5, at this point, floating window A is reduced into a dot.Alternatively, Fig. 7 shows that floating window A is moved to son After the icon position of application program " free wifi " B5, another display state of floating window A, as shown in fig. 7, in screen The icon B5 of subapplication " free wifi " is shown, at this point, floating window A is shown in the figure of subapplication " free wifi " B5 In dotted line frame B4 where marking, at this point, floating window A is shown according to its original shape, it is not reduced into dot.
As shown in figure 12, the icon of subapplication " free wifi ", and subapplication in Figure 12 are shown in screen Position of the icon of the icon of " free wifi " subapplication " free wifi " in the position and Figure 11 in screen in screen Difference is set, and the relative position both in the relative position and Figure 11 of the icon of floating window A and subapplication " free wifi " is not It changes, i.e., shows that display area region as shown in Figure 11 of the page in screen becomes region shown in Figure 12 in content During, both icons of floating window A and subapplication " free wifi " realize synchronizing moving, and floating window A is still one Dot.
Step 409, after detecting the clicking operation of the icon based on target subapplication, the mesh is shown in screen The sub-interface of subapplication is marked, and no longer shows floating window.
For example, when screen shows the partial region of Application Program Interface shown in fig. 5, if detecting based on son using journey After the clicking operation of the icon of sequence " free wifi ", floating window can be no longer shown in screen.
It should be noted that checking content in user's using terminal after server sends display control signal to terminal During showing the page, terminal can show the page according to sliding content according to step each in above method embodiment Distance dynamically adjusts at least one of direction and display position of floating window, to realize the dynamic instruction to content to be pushed. Also, it can be shown in screen configured with the application program for drawing image, during the dynamic instruction in terminal The draftings of all images can be called by application programming interfaces (application program interface, API) The application program is realized.Therefore, the embodiment of the present application is compared to the relevant technologies, without needing to remind subapplication every time It is recompiled when function renewal, effectively improves the flexibility and versatility of the indicating means.
Simultaneously as the dynamic instruction process is executed during using terminal checks that content shows the page in user , the case where can not knowing the position of subapplication after not showing software starting page is not appeared in, compared to the relevant technologies, Effectively improve the pushing efficiency of content to be pushed.
In conclusion content delivery method provided by the embodiments of the present application, by existing in determining the content display page When content to be pushed, the floating window for being directed toward content to be pushed is shown in screen, and getting for the content display page or floating After the slide of window, at least one in the direction and display position of floating window is updated according to the slide, so that the floating window Content to be pushed is remained pointing to, compared to the relevant technologies, no matter content to be pushed whether is shown in screen, is able to use this Floating window indicates the display position of content to be pushed, effectively improves the pushing efficiency of content to be pushed.
It should be noted that the sequencing of content delivery method step provided by the embodiments of the present application can carry out suitably Adjustment, step according to circumstances can also accordingly be increased and decreased, and not execute step 303 for example, can choose, any to be familiar with this technology Within the technical scope of the present application, the method that can readily occur in variation should all cover in the application the technical staff in field Protection scope within, therefore repeat no more.
Figure 13 is a kind of structural schematic diagram of content push device provided by the embodiments of the present application, which can It is configured in terminal, as shown in figure 13, which may include:
Module 801 is obtained, the content for obtaining terminal shows the state of the page.
Display module 802, for showing that the page there are when content to be pushed, shows in screen and refers in state instruction content To the floating window of content to be pushed, to prompt user to have content to be pushed.
Module 801 is obtained, is also used to obtain the slide for showing the page or floating window for content.
Display module 802 is also used to update at least one in the direction and display position of floating window based on slide, To keep floating window to be directed toward content to be pushed.
In conclusion content push device provided by the embodiments of the present application, is determining content display page by display module There are the floating window for being directed toward content to be pushed when content to be pushed, is shown in screen in face, obtains module and getting for interior After holding the display page or the slide of floating window, display module is updated according to the slide in the direction and display position of floating window At least one of so that the floating window remains pointing to content to be pushed, compared to the relevant technologies, no matter whether show in screen to Content is pushed, the display position of floating window instruction content to be pushed is able to use, effectively improves pushing away for content to be pushed Send efficiency.
Optionally, display module 802 are also used to:
The page is shown there are when content to be pushed in state instruction content, and it is aobvious in content that acquisition is used to indicate content to be pushed Show the first display position information of position in the page, and is used to indicate content and shows the display area of the page on the screen in content Show the second display position information of position in the page.
When being based on the first display position information and the second display position information, determines and do not show content to be pushed in screen When, floating window is shown in the reference position of screen.
When being based on the first display position information and the second display position information, determines and show content to be pushed in screen When, floating window is shown in content to be pushed position.
Optionally, display module 802 are also used to:
Based on slide, obtains content to be pushed and content shows the relative position of the display area of the page on the screen Situation of change.
When being based on situation of change, when determination shows content to be pushed in screen before variation or after variation, floating window is updated Direction.
When being based on situation of change, when determining before variation with content to be pushed is not shown in screen after variation, update The direction of floating window.
Optionally, the direction of floating window and the angle of second direction are the arc tangent of target ratio.The target ratio is first The ratio of distance and second distance, first distance are that floating window is shown in including position and the content to be pushed that content is shown in the page Hold the display position in the display page along the distance of first direction, second distance is the position that floating window is shown in the content display page It sets with content to be pushed at a distance from content shows display position in the page in a second direction, it is aobvious that first direction is parallel to content Show the rotating direction of the page, second direction is vertical with first direction.
Optionally, display module 802 are also used to:
Based on slide, obtains content to be pushed and content shows the relative position of the display area of the page on the screen Situation of change.
When showing content to be pushed in screen after variation based on situation of change is determining, the display position of floating window is updated It sets.
Optionally, it when slide is used to indicate the different zones for scrolling the content display page in screen, shows Show module 802, be also used to:
During scrolling the different zones of the content display page, if being shielded in the process based on situation of change determination When showing content to be pushed always in curtain, the display floating window process mobile towards content to be pushed position.
And/or during scrolling the different zones of the content display page, if being determined based on situation of change in mistake Show content to be pushed in journey in screen always, and floating window has been moved into content to be pushed position, floating window is with wait push away Send content synchronization mobile.
Optionally, display module 802 are also used in the moving process of floating window, floating window along first direction moving distance, Moving distance with content to be pushed along first direction is positively correlated, and first direction is parallel to the rotating direction that content shows the page.
And/or in the moving process of floating window, the moving distance of floating window in a second direction, with content to be pushed along first The moving distance in direction is positively correlated, and second direction is vertical with first direction.
And/or in the moving process of floating window, the size of floating window is positively correlated at a distance from floating window to content to be pushed.
Optionally, during display floating window is moved towards content to be pushed position, when target line and second After direction is parallel, floating window is equal to moving distance of the content to be pushed along first direction, target along the moving distance of first direction Straight line is determined by the display position of floating window and the display position of content to be pushed.
Optionally, as shown in figure 14, device 800 further include: receiving module 803 is shown for receiving display control signal Control instruction is used to indicate content to be pushed.
Display module 802, be used for: when determine content show in the page there are indicated by display control signal wait in pushing Rong Shi shows floating window in screen.
Wherein, display control signal is also used to indicate when showing that content shows the page, shows floating window in screen, and During executing the n times display content display page, if the clicking operation for content to be pushed is not detected, instruction is no longer Floating window is shown in screen, N is positive integer.
Alternatively, display control signal is also used to indicate that display is floating during executing the repeatedly display content display page The total degree of window.
In conclusion content push device provided by the embodiments of the present application, is determining content display page by display module There are the floating window for being directed toward content to be pushed when content to be pushed, is shown in screen in face, obtains module and getting for interior After holding the display page or the slide of floating window, display module is updated according to the slide in the direction and display position of floating window At least one of so that the floating window remains pointing to content to be pushed, compared to the relevant technologies, no matter whether show in screen to Content is pushed, the display position of floating window instruction content to be pushed is able to use, effectively improves pushing away for content to be pushed Send efficiency.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Figure 15 shows the structural schematic diagram of the terminal 1300 of one exemplary embodiment of the application offer.The terminal 1300 It can be portable mobile termianl, such as: smart phone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard audio level 4) player, laptop Or desktop computer.Terminal 1300 be also possible to referred to as user equipment, portable terminal, laptop terminal, terminal console etc. other Title.
In general, terminal 1300 includes: processor 1301 and memory 1302.
Processor 1301 may include one or more processing cores, such as 4 core processors, 8 core processors etc..Place Reason device 1301 can use DSP (Digital Signal Processing, Digital Signal Processing), FPGA (Field- Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, may be programmed Logic array) at least one of example, in hardware realize.Processor 1301 also may include primary processor and coprocessor, master Processor is the processor for being handled data in the awake state, also referred to as CPU (Central Processing Unit, central processing unit).Coprocessor is the low power processor for being handled data in the standby state.? In some embodiments, processor 1301 can be integrated with GPU (Graphics Processing Unit, image processor), GPU is used to be responsible for the rendering and drafting of content to be shown needed for display screen.In some embodiments, processor 1301 can also be wrapped AI (Artificial Intelligence, artificial intelligence) processor is included, the AI processor is for handling related machine learning Calculating operation.
Memory 1302 may include one or more computer readable storage mediums, which can To be non-transient.Memory 1302 may also include high-speed random access memory and nonvolatile memory, such as one Or multiple disk storage equipments, flash memory device.In some embodiments, the non-transient computer in memory 1302 can Storage medium is read for storing at least one instruction, at least one instruction performed by processor 1301 for realizing this Shen Please in embodiment of the method provide content delivery method.
In some embodiments, terminal 1300 is also optional includes: peripheral device interface 1303 and at least one periphery are set It is standby.It can be connected by bus or signal wire between processor 1301, memory 1302 and peripheral device interface 1303.It is each outer Peripheral equipment can be connected by bus, signal wire or circuit board with peripheral device interface 1303.Specifically, peripheral equipment includes: In radio circuit 1304, display screen 1305, CCD camera assembly 1306, voicefrequency circuit 1307, positioning component 1308 and power supply 1309 At least one.
Peripheral device interface 1303 can be used for I/O (Input/Output, input/output) is relevant outside at least one Peripheral equipment is connected to processor 1301 and memory 1302.In some embodiments, processor 1301, memory 1302 and periphery Equipment interface 1303 is integrated on same chip or circuit board.In some other embodiments, processor 1301, memory 1302 and peripheral device interface 1303 in any one or two can be realized on individual chip or circuit board, this implementation Example is not limited this.
Radio circuit 1304 is for receiving and emitting RF (Radio Frequency, radio frequency) signal, also referred to as electromagnetic signal. Radio circuit 1304 is communicated by electromagnetic signal with communication network and other communication equipments.Radio circuit 1304 is by telecommunications Number being converted to electromagnetic signal is sent, alternatively, the electromagnetic signal received is converted to electric signal.Optionally, radio circuit 1304 include: antenna system, RF transceiver, one or more amplifiers, tuner, oscillator, digital signal processor, volume solution Code chipset, user identity module card etc..Radio circuit 1304 can by least one wireless communication protocol come with it is other Terminal is communicated.The wireless communication protocol includes but is not limited to: WWW, Metropolitan Area Network (MAN), Intranet, each third generation mobile communication network (2G, 3G, 4G and 5G), WLAN and/or WiFi (Wireless Fidelity, Wireless Fidelity) network.In some implementations In example, radio circuit 1304 can also include that NFC (Near Field Communication, wireless near field communication) is related Circuit, the application are not limited this.
Display screen 1305 is for showing UI (User Interface, user interface).The UI may include figure, text, Icon, video and its their any combination.When display screen 1305 is touch display screen, display screen 1305 also there is acquisition to exist The ability of the touch signal on the surface or surface of display screen 1305.The touch signal can be used as control signal and be input to place Reason device 1301 is handled.At this point, display screen 1305 can be also used for providing virtual push button and/or dummy keyboard, it is also referred to as soft to press Button and/or soft keyboard.In some embodiments, display screen 1305 can be one, and the front panel of terminal 1300 is arranged.Another In a little embodiments, display screen 1305 can be at least two, be separately positioned on the different surfaces of terminal 1300 or in foldover design. In still other embodiments, display screen 1305 can be flexible display screen, is arranged on the curved surface of terminal 1300 or folds On face.Even, display screen 1305 can also be arranged to non-rectangle irregular figure, namely abnormity screen.Display screen 1305 can be with Using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. materials preparation.
CCD camera assembly 1306 is for acquiring image or video.Optionally, CCD camera assembly 1306 includes front camera And rear camera.In general, the front panel of terminal is arranged in front camera, the back side of terminal is arranged in rear camera.? In some embodiments, rear camera at least two is that main camera, depth of field camera, wide-angle camera, focal length are taken the photograph respectively As any one in head, to realize that main camera and the fusion of depth of field camera realize background blurring function, main camera and wide Pan-shot and VR (Virtual Reality, virtual reality) shooting function or other fusions are realized in camera fusion in angle Shooting function.In some embodiments, CCD camera assembly 1306 can also include flash lamp.Flash lamp can be monochromatic temperature flash of light Lamp is also possible to double-colored temperature flash lamp.Double-colored temperature flash lamp refers to the combination of warm light flash lamp and cold light flash lamp, can be used for Light compensation under different-colour.
Voicefrequency circuit 1307 may include microphone and loudspeaker.Microphone is used to acquire the sound wave of user and environment, and It converts sound waves into electric signal and is input to processor 1301 and handled, or be input to radio circuit 1304 to realize that voice is logical Letter.For stereo acquisition or the purpose of noise reduction, microphone can be separately positioned on the different parts of terminal 1300 to be multiple. Microphone can also be array microphone or omnidirectional's acquisition type microphone.Loudspeaker is then used to that processor 1301 or radio frequency will to be come from The electric signal of circuit 1304 is converted to sound wave.Loudspeaker can be traditional wafer speaker, be also possible to piezoelectric ceramics loudspeaking Device.When loudspeaker is piezoelectric ceramic loudspeaker, the audible sound wave of the mankind can be not only converted electrical signals to, can also be incited somebody to action Electric signal is converted to the sound wave that the mankind do not hear to carry out the purposes such as ranging.In some embodiments, voicefrequency circuit 1307 may be used also To include earphone jack.
Positioning component 1308 is used for the current geographic position of positioning terminal 1300, to realize navigation or LBS (Location Based Service, location based service).Positioning component 1308 can be the GPS (Global based on the U.S. Positioning System, global positioning system), China dipper system or Russia Galileo system positioning group Part.
Power supply 1309 is used to be powered for the various components in terminal 1300.Power supply 1309 can be alternating current, direct current Electricity, disposable battery or rechargeable battery.When power supply 1309 includes rechargeable battery, which can be line charge Battery or wireless charging battery.Wired charging battery is the battery to be charged by Wireline, and wireless charging battery is to pass through The battery of wireless coil charging.The rechargeable battery can be also used for supporting fast charge technology.
In some embodiments, terminal 1300 further includes having one or more sensors 1310.One or more sensing Device 1310 includes but is not limited to: acceleration transducer 1311, gyro sensor 1312, pressure sensor 1313, fingerprint sensing Device 1314, optical sensor 1315 and proximity sensor 1316.
Acceleration transducer 1311 can detecte the acceleration in three reference axis of the coordinate system established with terminal 1300 Size.For example, acceleration transducer 1311 can be used for detecting component of the acceleration of gravity in three reference axis.Processor The 1301 acceleration of gravity signals that can be acquired according to acceleration transducer 1311, control display screen 1305 with transverse views or indulge The display of direction view progress user interface.Acceleration transducer 1311 can be also used for adopting for game or the exercise data of user Collection.
Gyro sensor 1312 can detecte body direction and the rotational angle of terminal 1300, gyro sensor 1312 Acquisition user can be cooperateed with to act the 3D of terminal 1300 with acceleration transducer 1311.Processor 1301 is according to gyro sensors The data that device 1312 acquires, following function may be implemented: action induction (for example changing UI according to the tilt operation of user) is clapped Image stabilization, game control and inertial navigation when taking the photograph.
The lower layer of side frame and/or display screen 1305 in terminal 1300 can be set in pressure sensor 1313.Work as pressure When the side frame of terminal 1300 is arranged in sensor 1313, user can detecte to the gripping signal of terminal 1300, by processor 1301 carry out right-hand man's identification or prompt operation according to the gripping signal that pressure sensor 1313 acquires.When pressure sensor 1313 When the lower layer of display screen 1305 is set, the pressure operation of display screen 1305 is realized to UI according to user by processor 1301 Operability control on interface is controlled.Operability control includes button control, scroll bar control, icon control, dish At least one of single control part.
Fingerprint sensor 1314 is used to acquire the fingerprint of user, is collected by processor 1301 according to fingerprint sensor 1314 Fingerprint recognition user identity, alternatively, by fingerprint sensor 1314 according to the identity of collected fingerprint recognition user.Knowing Not Chu the identity of user when being trusted identity, authorize the user to execute relevant sensitive operation by processor 1301, which grasps Make to include solving lock screen, checking encryption information, downloading software, payment and change setting etc..Fingerprint sensor 1314 can be set Set the front, the back side or side of terminal 1300.When being provided with physical button or manufacturer Logo in terminal 1300, fingerprint sensor 1314 can integrate with physical button or manufacturer Logo.
Optical sensor 1315 is for acquiring ambient light intensity.In one embodiment, processor 1301 can be according to light The ambient light intensity that sensor 1315 acquires is learned, the display brightness of display screen 1305 is controlled.Specifically, when ambient light intensity is higher When, the display brightness of display screen 1305 is turned up.When ambient light intensity is lower, the display brightness of display screen 1305 is turned down.Another In one embodiment, the ambient light intensity that processor 1301 can also be acquired according to optical sensor 1315, dynamic adjustment camera shooting The acquisition parameters of head assembly 1306.
Proximity sensor 1316, also referred to as range sensor are generally arranged at the front panel of terminal 1300.Proximity sensor 1316 for acquiring the distance between the front of user Yu terminal 1300.In one embodiment, when proximity sensor 1316 is examined When measuring the distance between the front of user and terminal 1300 and gradually becoming smaller, display screen 1305 is controlled from bright screen by processor 1301 State is switched to breath screen state.When proximity sensor 1316 detects that the distance between user and the front of terminal 1300 gradually become When big, display screen 1305 is controlled by processor 1301 and is switched to bright screen state from breath screen state.
It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal 1300 of structure shown in Figure 15 Including than illustrating more or fewer components, perhaps combining certain components or being arranged using different components.
The embodiment of the present application also provides a kind of computer readable storage medium, which is non-volatile memories Jie Matter is stored at least one instruction, at least a Duan Chengxu, code set or instruction set in the storage medium, at least one instruction, An at least Duan Chengxu, the code set or the instruction set are loaded by processor and are executed to realize that the above embodiments of the present application such as provide Content delivery method.
The embodiment of the present application also provides a kind of computer program product, it is stored with instruction in the computer program product, When run on a computer, it enables a computer to execute content delivery method provided by the embodiments of the present application.
The embodiment of the present application also provides a kind of chip, which includes programmable logic circuit and/or program instruction, when The chip is able to carry out content delivery method provided by the embodiments of the present application when running.
In the embodiment of the present application, relative determinative "and/or" indicates three kinds of logical relations, and A and/or B expression are individually deposited In A, individualism B and exist simultaneously tri- kinds of logical relations of A and B.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely the preferred embodiments of the application, not to limit the application, it is all in spirit herein and Within principle, any modification, equivalent replacement, improvement and so on be should be included within the scope of protection of this application.

Claims (10)

1. a kind of content delivery method, which is characterized in that the described method includes:
The content for obtaining terminal shows the state of the page;
The content described in the state instruction shows the page, and there are when content to be pushed, show that direction is described wait push in screen The floating window of content, to prompt content to be pushed described in user;
Obtain the slide that the page or the floating window are shown for the content;
Based on the slide, at least one in the direction and display position of the floating window is updated, to keep the floating window It is directed toward the content to be pushed.
2. the method according to claim 1, wherein the content described in the state instruction shows that the page is deposited In content to be pushed, the floating window for being directed toward the content to be pushed is shown in screen, comprising:
The content described in the state instruction shows the page there are when content to be pushed, and acquisition is used to indicate the content to be pushed The first display position information of position in the page is shown in the content, and is used to indicate the content and is shown the page in the screen Display area on curtain shows the second display position information of position in the page in the content;
When being based on first display position information and second display position information, determines in the screen and do not show When stating content to be pushed, the floating window is shown in the reference position of the screen;
When being based on first display position information and second display position information, determine described in being shown in the screen When content to be pushed, the floating window is shown in the content to be pushed position.
3. updating the floating window the method according to claim 1, wherein described be based on the slide It is directed toward, comprising:
Based on the slide, obtains the content to be pushed and the content shows the viewing area of the page on the screen The situation of change of the relative position in domain;
When being based on the situation of change, determine when showing the content to be pushed in the screen before variation or after variation, Update the direction of the floating window;
When being based on the situation of change, determines before variation and do not show the content to be pushed after variation in the screen When, update the direction of the floating window.
4. method according to any one of claims 1 to 3, which is characterized in that described based on screen sliding operation or the touching Hair operation, updates the display position of the floating window, comprising:
Based on the slide, obtains the content to be pushed and the content shows the viewing area of the page on the screen The situation of change of the relative position in domain;
When determined based on the situation of change show the content to be pushed in described after variation screen when, update described floating The display position of window.
5. according to the method described in claim 4, it is characterized in that, being rolled in the screen when the slide is used to indicate When the dynamic display content shows the different zones of the page, the screen described after being determined based on the situation of change in variation In when showing the content to be pushed, update the display position of the floating window, comprising:
During scrolling the different zones of the content display page, if being determined based on the situation of change described When showing the content to be pushed always in the screen in the process, show the floating window towards the content to be pushed place The process moved at position;
And/or during scrolling the different zones of the content display page, if being determined based on the situation of change Show the content to be pushed in the screen always in this process, and the floating window have been moved into it is described wait in pushing Hold position, the floating window is with the content to be pushed synchronizing moving.
6. according to the method described in claim 5, it is characterized in that,
In the moving process of the floating window, the floating window along first direction moving distance, with the content to be pushed along institute The moving distance for stating first direction is positively correlated, and the first direction is parallel to the rotating direction that the content shows the page;
And/or in the moving process of the floating window, the moving distance of the floating window in a second direction, with described wait in pushing The moving distance held along the first direction is positively correlated, and the second direction is vertical with the first direction;
And/or in the moving process of the floating window, the size of the floating window and the floating window to the content to be pushed away from From positive correlation.
7. method according to any one of claims 1 to 3, which is characterized in that the content described in the state instruction shows page Face there are when content to be pushed, being shown in screen before being directed toward the floating window of the content to be pushed, the method also includes:
Display control signal is received, the display control signal is used to indicate the content to be pushed;
The content described in the state instruction show the page there are when content to be pushed, show in screen be directed toward described in Push the floating window of content, comprising:
When determining that the content shows in the page there are when content to be pushed indicated by the display control signal, in the screen The floating window is shown in curtain;
Wherein, the display control signal is also used to indicate when showing that the content shows the page, shows in the screen The floating window, and during execution n times show that the content shows the page, if being not detected for described wait in pushing The clicking operation of appearance, instruction no longer show the floating window in the screen, and the N is positive integer;
Alternatively, the display control signal is also used to indicate to show during execution repeatedly shows that the content shows the page Show the total degree of the floating window.
8. a kind of content push device, which is characterized in that described device includes:
Module is obtained, the content for obtaining terminal shows the state of the page;
Display module shows that the page there are when content to be pushed, is shown in screen for the content described in the state instruction It is directed toward the floating window of the content to be pushed, to prompt user to have content to be pushed;
The acquisition module is also used to obtain the slide for showing the page or the floating window for the content;
The display module is also used to update in the direction and display position of the floating window at least based on the slide One, to keep the floating window to be directed toward the content to be pushed.
9. a kind of terminal, which is characterized in that the terminal includes processor and memory, and at least one is stored in the memory Item instruction, at least a Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code Collection or instruction set are loaded by the processor and are executed to realize the content delivery method as described in claim 1 to 7 is any.
10. a kind of computer readable storage medium, which is characterized in that be stored at least one instruction, extremely in the storage medium A few Duan Chengxu, code set or instruction set, at least one instruction, an at least Duan Chengxu, the code set or instruction Collection is loaded by processor and is executed to realize the content delivery method as described in claim 1 to 7 is any.
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 true CN110119233A (en) 2019-08-13
CN110119233B 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)

Cited By (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 (5)

* 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
US20160188125A1 (en) * 2014-08-24 2016-06-30 Lintelus, Inc. Method to include interactive objects in presentation
CN106445306A (en) * 2016-10-09 2017-02-22 广州阿里巴巴文学信息技术有限公司 Prompting method in application, device and client equipment

Patent Citations (5)

* 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
US20160188125A1 (en) * 2014-08-24 2016-06-30 Lintelus, Inc. Method to include interactive objects in presentation
CN106445306A (en) * 2016-10-09 2017-02-22 广州阿里巴巴文学信息技术有限公司 Prompting method in application, device and client equipment

Cited By (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

Also Published As

Publication number Publication date
CN110119233B (en) 2022-04-08

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
CN109246466A (en) Video broadcasting method, device and electronic equipment
EP3835953A1 (en) Display adaptation method and apparatus for application, device, and storage medium
CN103793167A (en) Mobile terminal and control method thereof
CN110362366B (en) Application interface display method and device
CN108737897A (en) Video broadcasting method, device, equipment and storage medium
CN107803030B (en) Refreshing method and device for resource site on virtual map
CN110046018A (en) Show method, apparatus, electronic equipment and the medium of message
WO2019192061A1 (en) Method, device, computer readable storage medium for identifying and generating graphic code
CN109948581A (en) Picture and text rendering method, device, equipment and readable storage medium storing program for executing
CN108172176B (en) Page refreshing method and device for ink screen
CN110288689A (en) The method and apparatus that electronic map is rendered
KR20160035865A (en) Apparatus and method for identifying an object
CN110245255B (en) Song display method, device, equipment and storage medium
CN108734662A (en) The method and apparatus for showing icon
CN110275655A (en) Lyric display method, device, equipment and storage medium
CN110211202A (en) Broken line method for drafting, device, electronic equipment and storage medium
CN111857793A (en) Network model training method, device, equipment and storage medium
CN109445963A (en) Content share method, device, equipment and computer readable storage medium
CN108509127A (en) Start the method, apparatus and computer equipment of record screen task
CN111158575B (en) Method, device and equipment for terminal to execute processing and storage medium
CN109833624A (en) The display methods and device for line information of marching on virtual map
CN110191236B (en) Song playing queue management method and device, terminal equipment and storage medium
CN110119233A (en) Content delivery method and device, terminal, storage medium
CN111949341A (en) Method, device and equipment for displaying information and 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