CN114816175A - Browsing method and device, electronic equipment and computer readable medium - Google Patents

Browsing method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN114816175A
CN114816175A CN202210478885.0A CN202210478885A CN114816175A CN 114816175 A CN114816175 A CN 114816175A CN 202210478885 A CN202210478885 A CN 202210478885A CN 114816175 A CN114816175 A CN 114816175A
Authority
CN
China
Prior art keywords
browsing
list
sliding
speed
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210478885.0A
Other languages
Chinese (zh)
Inventor
张淏然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202210478885.0A priority Critical patent/CN114816175A/en
Publication of CN114816175A publication Critical patent/CN114816175A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/0482Interaction with lists of selectable items, e.g. menus
    • 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
    • G06F3/04855Interaction with scrollbars
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a browsing method, a browsing device, an electronic device and a computer readable medium, which relate to the technical field of computers, and the method comprises the following steps: receiving a browsing request, determining a corresponding browsing list, calling a simulated click tool, and generating a touch event triggering method; executing a touch event triggering method, triggering a list sliding event, and automatically sliding a browsing list; in response to receiving the sliding speed adjustment request, creating a corresponding timer object, and adjusting the sliding speed of the browsing list based on the timer object; and responding to the detected browsing interruption, determining the interruption type, calling an interface corresponding to the interruption type, and executing the interruption of the browsing list. The automatic sliding of the list is realized by simulating touch behaviors, and a timer object is created to realize the adjustment of the sliding speed of the list. The user can free the fingers of the user, and only the mobile phone needs to be held, so that the browsing list can automatically slide at a required speed, and the browsing experience of the user is optimized.

Description

Browsing method and device, electronic equipment and computer readable medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a browsing method and apparatus, an electronic device, and a computer-readable medium.
Background
Currently, when a user slides a window to browse a list, the user's operation is uncertain, sometimes slides quickly and sometimes slides slowly, so that the user can slide away when seeing that the content of interest may not be clearly seen, and then the user needs to slide down the browsing list again to watch carefully.
In the process of implementing the present application, the inventor finds that at least the following problems exist in the prior art:
when a user manually slides a window to browse a list, the interaction is too frequent, which may reduce the user's attention and cause missing content that may be of interest.
Disclosure of Invention
In view of this, embodiments of the present application provide a browsing method, an apparatus, an electronic device, and a computer-readable medium, which can solve the problem that when a user manually slides a window to browse a list, interaction is too frequent, which reduces the attention of the user and causes the user to miss a content that may be of interest.
To achieve the above object, according to an aspect of an embodiment of the present application, there is provided a browsing method including:
receiving a browsing request, determining a corresponding browsing list, and then calling a simulated click tool to call a touch event triggering method;
executing a touch event triggering method to trigger a list sliding event and automatically sliding a browsing list;
in response to receiving the sliding speed adjustment request, creating a corresponding timer object to adjust the sliding speed of the browsing list based on the timer object;
and determining the interrupt type in response to the detection of the browsing interrupt, and further calling an interface corresponding to the interrupt type to execute the interrupt of the browsing list.
Optionally, creating a corresponding timer object comprises:
and determining a speed regulation identifier corresponding to the sliding speed regulation request, and creating a corresponding timer object based on the speed regulation identifier.
Optionally, determining a speed regulation identifier corresponding to the sliding speed regulation request includes:
determining the continuous clicking times of the user on the browsing list;
in response to the fact that the number of the continuous clicks is determined to be the first preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be an acceleration mark;
and in response to the fact that the number of continuous clicks is determined to be the second preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be a deceleration mark.
Optionally, before invoking the touch event triggering method, the browsing method further includes:
inheriting a system sliding list base class, and further rewriting a corresponding trigger method to generate a touch event trigger method.
Optionally, adjusting the sliding speed of the browsing list based on the timer object comprises:
determining a timer time range based on the timer object;
and keeping the locking of the clicking action corresponding to the touch event trigger method within the time range of the timer, and moving up the browsing list after the timer is timed to be finished.
Optionally, invoking an interface corresponding to the interrupt type to execute the interrupt of browsing the browsing list, including:
and in response to determining that the interrupt type is an active interrupt, invoking an active interrupt interface to stop the automatic sliding of the browsing list.
Optionally, invoking an interface corresponding to the interrupt type to execute the interrupt of browsing the browsing list, including:
and in response to determining that the interrupt type is a passive interrupt, calling a preset pause interface to pause the sliding of the browsing list.
Optionally, after pausing the sliding of the browsing list, the method further comprises:
and in response to detecting that the user re-enters the page corresponding to the browsing list, automatically sliding the browsing list, and in response to determining that the life cycle of the page is reached, stopping sliding the browsing list, and further releasing the corresponding object.
In addition, the present application also provides a browsing apparatus, including:
the receiving unit is configured to receive the browsing request, determine a corresponding browsing list and further call a simulated click tool to call a touch event triggering method;
an auto-slide unit configured to perform a touch event triggering method to trigger a list slide event, automatically slide a browsing list;
a speed adjustment unit configured to create a corresponding timer object in response to receiving the sliding speed adjustment request to adjust the sliding speed of the browsing list based on the timer object;
and the browsing interruption unit is configured to determine an interruption type in response to the detection of the browsing interruption, and further call an interface corresponding to the interruption type to execute interruption of browsing of the browsing list.
Optionally, the speed adjustment unit is further configured to:
and determining a speed regulation identifier corresponding to the sliding speed regulation request, and creating a corresponding timer object based on the speed regulation identifier.
Optionally, the speed adjustment unit is further configured to:
determining the continuous clicking times of the user on the browsing list;
in response to the fact that the number of the continuous clicks is determined to be the first preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be an acceleration mark;
and in response to the fact that the number of continuous clicks is determined to be the second preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be a deceleration mark.
Optionally, the receiving unit is further configured to:
inheriting a system sliding list base class, and further rewriting a corresponding trigger method to generate a touch event trigger method.
Optionally, the speed adjustment unit is further configured to:
determining a timer time range based on the timer object;
and keeping the locking of the clicking action corresponding to the touch event trigger method within the time range of the timer, and moving up the browsing list after the timer is timed to be finished.
Optionally, the browse interruption unit is further configured to:
and in response to determining that the interrupt type is an active interrupt, invoking an active interrupt interface to stop the automatic sliding of the browsing list.
Optionally, the browsing interruption unit is further configured to:
and in response to determining that the interrupt type is a passive interrupt, calling a preset pause interface to pause the sliding of the browsing list.
Optionally, the browsing interruption unit is further configured to:
and in response to detecting that the user re-enters the page corresponding to the browsing list, automatically sliding the browsing list, and in response to determining that the life cycle of the page is reached, stopping sliding the browsing list, and further releasing the corresponding object.
In addition, the present application also provides a browsing electronic device, including: one or more processors; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the browsing method as described above.
In addition, the present application also provides a computer readable medium, on which a computer program is stored, which when executed by a processor implements the browsing method as described above.
One embodiment of the above invention has the following advantages or benefits: the method comprises the steps of determining a corresponding browsing list by receiving a browsing request, and calling a simulated click tool to call a touch event triggering method; executing a touch event triggering method to trigger a list sliding event and automatically sliding a browsing list; in response to receiving the sliding speed adjustment request, creating a corresponding timer object to adjust the sliding speed of the browsing list based on the timer object; and determining the interrupt type in response to the detection of the browsing interrupt, and further calling an interface corresponding to the interrupt type to execute the interrupt of the browsing list. The automatic sliding of the list is realized by simulating touch behaviors, and a timer object is created to realize the adjustment of the sliding speed of the list. The user can release the fingers of the user, the user can automatically slide the browsing list at the required speed only by holding the mobile phone, the attention of the user is more concentrated, and the browsing experience of the user is optimized.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a further understanding of the application and are not to be construed as limiting the application. Wherein:
fig. 1 is a schematic view of a main flow of a browsing method according to a first embodiment of the present application;
fig. 2 is a schematic view of a main flow of a browsing method according to a second embodiment of the present application;
fig. 3 is a schematic view of an application scenario of a browsing method according to a third embodiment of the present application;
FIG. 4 is a schematic diagram of the main elements of a browsing device according to an embodiment of the present application;
FIG. 5 is an exemplary system architecture diagram to which embodiments of the present application may be applied;
FIG. 6 is a schematic block diagram of a computer system suitable for use in implementing a terminal device or server according to embodiments of the present application;
FIG. 7 is a schematic diagram of an automatically slideable browsing list according to the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a main flow of a browsing method according to a first embodiment of the present application, and as shown in fig. 1, the browsing method includes:
step S101, receiving a browsing request, determining a corresponding browsing list, and then calling a simulated click tool to call a touch event triggering method.
In this embodiment, the execution subject (for example, a server) of the browsing method may receive the browsing request through a wired connection or a wireless connection. Specifically, the browsing request received by the execution main body may be a request for browsing a commodity list, a request for browsing logistics record information, or a request for browsing a picture list, and the embodiment of the present application does not specifically limit an object requested to be browsed by the browsing request. For example, when a user purchases an item, the user needs to continuously slide the browsing list for browsing, and the execution main body detects the sliding operation of the user, that is, receives the browsing request, and displays the item to be browsed to the user in a manner of sliding the browsing list.
Specifically, before invoking the touch event triggering method, the browsing method further includes:
inheriting a system sliding list base class, and further rewriting a corresponding trigger method to generate a touch event trigger method.
For example, the execution agent may implement triggering of the list sliding event through the FakeTouch tool library. Specifically, the FakeTouch tool library is a bottom library, and a UIview method is rewritten inside the FakeTouch tool library, so that touch behaviors can be simulated, and triggering of a list sliding event is realized by simulating touch. If the sliding list page is simply refreshed, the list does not have the sliding visual effect, but the current page is refreshed continuously, although the design function can be realized, the user can see that the list disappears when the list is refreshed continuously instead of sliding on the top a little, so that the use habit of the user is not met, and the use experience of the user is worsened. Therefore, auto-sliding of the list is to be achieved by overwriting the touch event trigger method of UIView.
Specifically, the execution subject may simulate a touch action by associating a three-party library FakeTouch, and call an interface of a tool library in the autoscreenltableview, so as to realize automatic sliding of the list by simulating a touch event, where a specific implementation scheme is as follows:
when a user enters a page where a commodity list is located at a shopping client App, an autoscreenl button appears below the list, and the autoscreenl button can trigger a method for automatically sliding the list. When the autosrolbuffeton is clicked, the response of the event is transmitted to the autosrolstableview through the startautosroldelegate proxy method, and the autosrolstableview calls the startautostrol method to automatically slide the current list (1 × speed). The autoscreenltableview can be a sliding list class written in the mobile side App, and the sliding list class inherits a native technology list base class (i.e. a UITableView class) from the mobile side, has a function of a basic list, and also has a self-defined automatic sliding function. That is, the mobile terminal system has a most basic sliding list template which can be expanded for all developers, and the execution main body writes a new function on the basis of the basic sliding list, so that the mobile terminal system becomes a new sliding list template (namely, autoscreenl tableview) with an automatic sliding function.
Step S102, a touch event triggering method is executed to trigger a list sliding event and automatically slide a browsing list.
For example, as shown in fig. 7, the C list in fig. 7 that can automatically slide may be, for example, a simple description of a product list in the e-commerce app, that is, a product search result list displayed after a user searches for a certain product, where the C list includes information such as product details, product pictures, and product names. The list C that can automatically slide may be a browsing list in the embodiment of the present application. The method in the FakeTouch tool library is called in the startAutoScroll method for executing the main body, the FakeTouch constructs a basic screen action, and attributes capable of positioning a simulation action are respectively point ID (serial number of touch screen operation), point (destination position of operation) and phase (category of operation) on the screen. Determining operation is judged through the pointID, the operation position is determined through the point, and the operation category is locked through the phase. The called method is to acquire the pointID which can be used currently, the called method is getAvailablePointID, and after the pointID which can be used is acquired, the pointID is endowed with a sliding action, as shown in FIG. 7. Only the pointID needs to be continuously moved up (only the y axis of the pointID needs to be changed) during sliding, and then the simulation of the sliding page can be realized, and the list can be automatically browsed in a sliding manner.
In fig. 7, startautoscreenl starts an interface for list autosliding. The user in the endautoscreen auto-slide list actively interrupts the interface, that is, after the user touches the screen, it indicates that the user wants to stop the list slide, and invokes the interface to stop the list slide. The interface for adjusting the speed in the setaudiospeed automatic sliding list can control the speed of the list sliding. FakeTouch, a core library for triggering automatic sliding of the list, and realizing the list sliding with stable speed in a simulated touch mode. point id, point, phase, information that needs to be determined when a touch is simulated. The autoscreen button/setSpeedButton is a button that the user can control in the list, and the user can control the list sliding to start and adjust the list speed through the button. Here, startautoscreenldelag is a proxy method, and the behavior of the user clicking a button can call a startautoscreenl interface at a code level through the proxy method. setaudiospeed delete is also an agent method, and a setaudiospeed interface is called when a user clicks a button to adjust the speed. FakeTouch, a core library for triggering automatic sliding of the list, and realizing the list sliding with stable speed in a simulated touch mode. Point id, point, phase, information to be determined at the time of touch simulation, point id (serial number of touch screen operation), point (destination position of operation), and phase (type of operation).
Step S103, in response to receiving the sliding speed adjustment request, creating a corresponding timer object to adjust the sliding speed of the browsing list based on the timer object.
The bottom of the list will provide a button that will be converted to a speed doubling function when the autoslide is turned on. When the execution main body detects that the user double-clicks the button, the speed is accelerated by one stage, and when the execution main body detects that the user single-clicks the button, the speed is decelerated by one stage, the provided speed multiplication speeds can comprise 0.5 speed multiplication, 0.75 speed multiplication, 1 speed multiplication, 1.25 speed multiplication, 1.5 speed multiplication, 2 speed multiplication and the like, and specific numerical values of the speed multiplication speeds and corresponding speed multiplication levels are not limited.
For example, after the list starts to auto-slide, the previous autoscreenllbutton will become SetSpeedButton, the button function will become to adjust the current list auto-slide speed, and the Text above the button will show the slide speed of the current list. The sliding speed selection levels in the embodiments of the present application are (0.5 speed, 0.75 speed, 1 speed, 1.25 speed, 1.5 speed, and 2 speed). The specified interaction mode is that double-clicking the SetSpeedbutton represents that the current speed is increased by one grade, and the speed on the button is updated to display the Text until the speed is the fastest (2 times the speed, the embodiment of the application does not limit the concrete numerical value of the fastest speed); clicking the SetSpeedButton will reduce the current speed by one level (for example, 1-time speed is reduced to 0.75-time speed, and the embodiment of the present application does not limit the specific value corresponding to each level), and update the speed display Text on the button until the speed is reduced to the slowest (0.5-time speed, and the embodiment of the present application does not limit the value corresponding to the slowest speed).
Specifically, adjusting the sliding speed of the browsing list based on the timer object comprises: determining a timer time range based on the timer object; and keeping the locking of the clicking action corresponding to the touch event trigger method within the time range of the timer, and moving up the browsing list after the timer is timed to be finished. For example, as shown in fig. 7, each time the SetSpeedButton is clicked, a setaudiospeed method is called, in the method, a timer is customized to adjust the sliding speed of the list, the click action is kept locked within the time range of the timer, and the list is moved up after the timer is ended, so that the touch behavior of the sliding page can be simulated.
Step S104, responding to the detection of the browsing interruption, determining the interruption type, and further calling an interface corresponding to the interruption type to execute the interruption of the browsing list.
The interruption type of the browsing interruption detected by the execution subject can be active interruption or passive interruption. Specifically, invoking an interface corresponding to the interrupt type to execute the interrupt of browsing the browsing list includes: and in response to determining that the interrupt type is an active interrupt, invoking an active interrupt interface to stop the automatic sliding of the browsing list. Specifically, invoking an interface corresponding to the interrupt type to execute the interrupt of browsing the browsing list includes: and in response to determining that the interrupt type is a passive interrupt, calling a preset pause interface to pause the sliding of the browsing list.
Specifically, interrupt events are encountered in the automatic sliding process of the list, and the interrupt events are divided into active interrupts and passive interrupts. For browsing the list, the sliding is stopped after active interruption, and the sliding is stopped after passive interruption. The sliding is stopped after the sliding is stopped, the sliding is temporarily stopped when the sliding is suspended, and the sliding can be continued after the sliding is stopped. A stop swipe corresponds to an actively interrupted scenario, and a pause swipe corresponds to a passively interrupted scenario. In the embodiment of the application, the active interruption is permanent interruption, and can be that a user actively exits a page where a browsing list is located, and the user does not slide after interruption; the passive interruption is a temporary interruption, and the sliding can be resumed when a certain condition is reached after the interruption, for example, the user leaves the page where the browsing list is located temporarily because of a network drop, the browsing list is suspended for sliding at this time, and after the network is resumed, the user resumes the sliding of the browsing list after reentering the page corresponding to the browsing list, so as to improve the browsing experience of the user. Illustratively, the active interrupt includes the user clicking on the screen, the user clicking into the cell (the cell is 1 "line" in the sliding list, for example, one "line" displayed when searching for merchandise in the e-commerce App), and the user exiting the page. The operations all belong to the operation that a user actively wants to stop the automatic sliding of the screen, and when an active interrupt event occurs, an endautoscreen method is called to stop the automatic sliding of the page and release the object. Passive interruption includes answering a call, the application entering the background, etc., which the user does not subjectively want to stop, so the execution subject pauses the sliding browsing list in the face of a page passive interruption event before the App lifecycle expires. Specifically, after suspending the sliding of the browsing list, the browsing method further includes: and in response to detecting that the user re-enters the page corresponding to the browsing list, automatically sliding the browsing list, and in response to determining that the life cycle of the page is reached, stopping sliding the browsing list, and further releasing the corresponding object. Namely, after the execution subject pauses the sliding browsing list, the automatic sliding is automatically started until the user reenters the sliding page, or the automatic sliding is stopped and the object is released after the App life cycle is finished.
In the embodiment, a corresponding browsing list is determined by receiving a browsing request, and then a simulated click tool is called to call a touch event triggering method; executing a touch event triggering method to trigger a list sliding event and automatically sliding a browsing list; in response to receiving the sliding speed adjustment request, creating a corresponding timer object to adjust the sliding speed of the browsing list based on the timer object; and determining the interrupt type in response to the detection of the browsing interrupt, and further calling an interface corresponding to the interrupt type to execute the interrupt of the browsing list. The automatic sliding of the list is realized by simulating touch behaviors, and a timer object is created to realize the adjustment of the sliding speed of the list. The user can release the fingers of the user, the user can automatically slide the browsing list at the required speed only by holding the mobile phone, the attention of the user is more concentrated, and the browsing experience of the user is optimized.
Fig. 2 is a schematic main flow diagram of a browsing method according to a second embodiment of the present application, and as shown in fig. 2, the browsing method includes:
step S201, receiving a browsing request, determining a corresponding browsing list, and then calling a simulated click tool to call a touch event triggering method.
Step S202, a touch event triggering method is executed to trigger a list sliding event, and automatically slide a browsing list.
The principle of step S201 to step S202 is similar to that of step S101 to step S102, and is not described here again.
Step S203, in response to receiving the sliding speed adjustment request, determining a speed regulation identifier corresponding to the sliding speed adjustment request, and creating a corresponding timer object based on the speed regulation identifier, so as to adjust the sliding speed of the browsing list based on the timer object.
Specifically, determining a speed regulation identifier corresponding to the sliding speed regulation request includes:
determining the continuous clicking times of the user on the browsing list; in response to determining that the number of consecutive clicks is a first preset number, which may be, for example, two times/a single time, or a specific set value, for example, n times, determining that the speed adjustment identifier corresponding to the sliding speed adjustment request is an acceleration identifier (for example, "+", where specific content of the acceleration identifier is not limited in this embodiment of the present application); in response to determining that the number of consecutive clicks is a second preset number, which may be, for example, a single time/double times, or a set specific value, for example, m times, determining that the speed adjustment identifier corresponding to the sliding speed adjustment request is a deceleration identifier (for example, "-", the specific content of the deceleration identifier is not limited in this embodiment of the present application), and n and m may be positive integers, and the specific values of n and m are not limited in this embodiment of the present application.
In this embodiment, when the browsing list is not automatically slid, there is a bottom button to provide an automatic sliding function, and the button only provides an automatic sliding opening function. After the automatic sliding is started, the button becomes a speed doubling function, the double-click button accelerates for one level, the single-click button decelerates for one level, and the provided speed doubling grades are 0.5 speed (the corresponding speed regulation identification can be '-0.5'), 0.75 speed (the corresponding speed regulation identification can be '-0.25'), 1 speed (the corresponding speed regulation identification can be '-0'), 1.25 speed (the corresponding speed regulation identification can be '-0.25'), 1.5 speed (the corresponding speed regulation identification can be '-0.5'), and 2 speed (the corresponding speed regulation identification can be '-1').
Step S204, in response to the detection of the browsing interruption, determining an interruption type, and further calling an interface corresponding to the interruption type to execute the interruption of the browsing list.
The principle of step S204 is similar to that of step S104, and is not described here again.
Fig. 3 is a schematic view of an application scenario of a browsing method according to a third embodiment of the present application. The browsing method provided by the embodiment of the application is applied to a scene that a browsing list of an e-commerce mobile terminal automatically slides. As shown in FIG. 3, a server 302 receives a browse request 301, determines a corresponding browse list 303, and invokes a simulated click tool 304 to invoke a touch event trigger method 305. The server 302 executes a touch event trigger method 305 to trigger a list swipe event 306 to automatically swipe the browsing list 303. In response to receiving the swipe speed adjustment request 307, the server 302 creates a corresponding timer object 308 to adjust the swipe speed 309 of the browsing list 303 based on the timer object 308. In response to detecting the browsing interruption, the server 302 determines an interruption type 310, and then calls an interface 311 corresponding to the interruption type 310 to perform interruption of browsing of the browsing list 303.
In order to realize the design of the automatic sliding list, the execution main body can rewrite the sliding list class in the mobile terminal system, the rewritten class is named as the AutoScrollTableView, inherits the UiTableView class of the system, and the rewritten AutoScrollTableView class has the following new methods besides the existing method in the UiTableView class: startautosrol list starts autosliding (1 × speed); the endAutoScroll list stops auto-sliding; setaudiospeed (boul) speed sets the list slip speed. The list browsing (i.e. the list of goods browsed by the user in the e-commerce App) is performed by automatic sliding with stable and adjustable speed by simulating the touch behavior of the user. The UITableView is rewritten to create a browsing list with automatic sliding, and the list automatic sliding and the creation of the timer object are realized by simulating touch behaviors to realize the adjustment of the list sliding speed. Therefore, the user can free the fingers of the user, the commodity list can automatically slide at the required speed only by holding the mobile phone, the attention of the user is more concentrated, and the browsing experience of the user is optimized.
Fig. 4 is a schematic diagram of main units of a browsing apparatus according to an embodiment of the present application. As shown in fig. 4, the browsing apparatus includes a receiving unit 401, an automatic sliding unit 402, a speed adjusting unit 403, and a browsing interruption unit 404.
A receiving unit 401 configured to receive a browsing request, determine a corresponding browsing list, and then call a simulated click tool to call a touch event triggering method;
an auto slide unit 402 configured to execute a touch event triggering method to trigger a list slide event, automatically slide a browsing list;
a speed adjustment unit 403 configured to create a corresponding timer object in response to receiving the sliding speed adjustment request to adjust the sliding speed of the browsing list based on the timer object;
and a browsing interruption unit 404 configured to determine an interruption type in response to detecting the browsing interruption, and further call an interface corresponding to the interruption type to perform interruption of browsing the browsing list.
In some embodiments, the speed adjustment unit 403 is further configured to: and determining a speed regulation identifier corresponding to the sliding speed regulation request, and creating a corresponding timer object based on the speed regulation identifier.
In some embodiments, the speed adjustment unit 403 is further configured to: determining the continuous clicking times of the user on the browsing list; in response to the fact that the number of the continuous clicks is determined to be the first preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be an acceleration mark; and in response to the fact that the number of continuous clicks is determined to be the second preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be a deceleration mark.
In some embodiments, the receiving unit 401 is further configured to: inheriting a system sliding list base class, and further rewriting a corresponding trigger method to generate a touch event trigger method.
In some embodiments, the speed adjustment unit 403 is further configured to: determining a timer time range based on the timer object; and keeping the locking of the clicking action corresponding to the touch event trigger method in the time range of the timer, and moving the browsing list after the timing of the timer is finished.
In some embodiments, browse interruption unit 404 is further configured to: and in response to determining that the interrupt type is an active interrupt, invoking an active interrupt interface to stop the automatic sliding of the browsing list.
In some embodiments, browse interruption unit 404 is further configured to: and in response to determining that the interrupt type is a passive interrupt, calling a preset pause interface to pause the sliding of the browsing list.
In some embodiments, browse interruption unit 404 is further configured to: and in response to detecting that the user re-enters the page corresponding to the browsing list, automatically sliding the browsing list, and in response to determining that the life cycle of the page is reached, stopping sliding the browsing list, and further releasing the corresponding object.
It should be noted that, in the present application, the browsing method and the browsing apparatus have corresponding relationships in the specific implementation contents, so that the repeated contents are not described again.
Fig. 5 illustrates an exemplary system architecture 500 to which the browsing method or browsing apparatus of the embodiments of the present application may be applied.
As shown in fig. 5, the system architecture 500 may include terminal devices 501, 502, 503, a network 504, and a server 505. The network 504 serves to provide a medium for communication links between the terminal devices 501, 502, 503 and the server 505. Network 504 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 501, 502, 503 to interact with a server 505 over a network 504 to receive or send messages or the like. The terminal devices 501, 502, 503 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 501, 502, 503 may be various electronic devices having a browsing processing screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 505 may be a server providing various services, such as a background management server (for example only) providing support for browsing requests submitted by users using the terminal devices 501, 502, 503. The background management server can receive the browsing request, determine a corresponding browsing list and further call a simulated click tool to call a touch event triggering method; executing a touch event triggering method to trigger a list sliding event and automatically sliding a browsing list; in response to receiving the sliding speed adjustment request, creating a corresponding timer object to adjust the sliding speed of the browsing list based on the timer object; and determining the interrupt type in response to the detection of the browsing interrupt, and further calling an interface corresponding to the interrupt type to execute the interrupt of the browsing list. The automatic sliding of the list is realized by simulating touch behaviors, and a timer object is created to realize the adjustment of the sliding speed of the list. The user can release the fingers of the user, the user can automatically slide the browsing list at the required speed only by holding the mobile phone, the attention of the user is more concentrated, and the browsing experience of the user is optimized.
It should be noted that the browsing method provided in the embodiment of the present application is generally executed by the server 505, and accordingly, the browsing apparatus is generally disposed in the server 505.
It should be understood that the number of terminal devices, networks, and servers in fig. 5 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 6, shown is a block diagram of a computer system 600 suitable for use in implementing a terminal device of an embodiment of the present application. The terminal device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU)601 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the computer system 600 are also stored. The CPU601, ROM602, and RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output section 607 including a signal processing section such as a Cathode Ray Tube (CRT), a liquid crystal credit authorization inquiry processor (LCD), and the like, and a speaker and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
In particular, according to embodiments disclosed herein, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments disclosed herein include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The above-described functions defined in the system of the present application are executed when the computer program is executed by the Central Processing Unit (CPU) 601.
It should be noted that the computer readable medium shown in the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes a receiving unit, an auto-slide unit, a speed adjustment unit, and a browsing interruption unit. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs, and when the one or more programs are executed by the device, the device receives a browsing request, determines a corresponding browsing list, and then calls a simulated click tool to call a touch event triggering method; executing a touch event triggering method to trigger a list sliding event and automatically sliding a browsing list; in response to receiving the sliding speed adjustment request, creating a corresponding timer object to adjust the sliding speed of the browsing list based on the timer object; and determining the interrupt type in response to the detection of the browsing interrupt, and further calling an interface corresponding to the interrupt type to execute the interrupt of the browsing list.
According to the technical scheme of the embodiment of the application, the list automatic sliding is realized by simulating the touch behavior, and the adjustment of the list sliding speed is realized by creating the timer object. The user can release the fingers of the user, the user can automatically slide the browsing list at the required speed only by holding the mobile phone, the attention of the user is more concentrated, and the browsing experience of the user is optimized.
The above-described embodiments should not be construed as limiting the scope of the present application. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A browsing method, comprising:
receiving a browsing request, determining a corresponding browsing list, and then calling a simulated click tool to call a touch event triggering method;
executing the touch event triggering method to trigger a list sliding event and automatically sliding the browsing list;
in response to receiving a swipe speed adjustment request, creating a corresponding timer object to adjust a swipe speed of the browsing list based on the timer object;
and determining an interrupt type in response to the detection of the browsing interrupt, and further calling an interface corresponding to the interrupt type to execute the interrupt of the browsing list.
2. The method of claim 1, wherein the creating the corresponding timer object comprises:
and determining a speed regulation identifier corresponding to the sliding speed regulation request, and creating a corresponding timer object based on the speed regulation identifier.
3. The method of claim 2, wherein the determining the throttle flag corresponding to the slip speed adjustment request comprises:
determining the continuous clicking times of the user on the browsing list;
in response to the fact that the number of the continuous clicks is determined to be a first preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be an acceleration mark;
and in response to the fact that the number of the continuous clicks is determined to be a second preset number, determining a speed regulation mark corresponding to the sliding speed adjustment request to be a deceleration mark.
4. The method of claim 1, wherein prior to the invoking the touch event triggering method, the method further comprises:
inheriting a system sliding list base class, and further rewriting a corresponding trigger method to generate a touch event trigger method.
5. The method of claim 1, wherein adjusting the swipe speed of the browsing list based on the timer object comprises:
determining a timer time range based on the timer object;
and keeping the locking of the clicking action corresponding to the touch event triggering method in the time range of the timer, and moving the browsing list upwards after the timer is timed out.
6. The method according to claim 1, wherein the invoking an interface corresponding to the interrupt type to perform the interrupt of browsing the browsing list comprises:
and in response to determining that the interrupt type is an active interrupt, invoking an active interrupt interface to stop the automatic sliding of the browsing list.
7. The method according to claim 1, wherein the invoking an interface corresponding to the interrupt type to perform the interrupt of browsing the browsing list comprises:
and in response to determining that the interrupt type is a passive interrupt, calling a preset pause interface to pause the sliding of the browsing list.
8. The method of claim 7, wherein after the pausing of the sliding of the browsing list, the method further comprises:
and in response to detecting that the user reenters the page corresponding to the browsing list, automatically sliding the browsing list, and in response to determining that the life cycle of the page is reached, stopping sliding the browsing list, and further releasing the corresponding object.
9. A browsing device, comprising:
the receiving unit is configured to receive the browsing request, determine a corresponding browsing list and further call a simulated click tool to call a touch event triggering method;
an auto-slide unit configured to execute the touch event triggering method to trigger a list slide event to automatically slide the browsing list;
a speed adjustment unit configured to create a corresponding timer object in response to receiving a sliding speed adjustment request to adjust a sliding speed of the browsing list based on the timer object;
and the browsing interruption unit is configured to determine an interruption type in response to the detection of the browsing interruption, and further call an interface corresponding to the interruption type to execute interruption of browsing of the browsing list.
10. The apparatus of claim 9, wherein the speed adjustment unit is further configured to:
and determining a speed regulation identifier corresponding to the sliding speed regulation request, and creating a corresponding timer object based on the speed regulation identifier.
11. A browsing electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-8.
12. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-8.
CN202210478885.0A 2022-05-05 2022-05-05 Browsing method and device, electronic equipment and computer readable medium Pending CN114816175A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210478885.0A CN114816175A (en) 2022-05-05 2022-05-05 Browsing method and device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210478885.0A CN114816175A (en) 2022-05-05 2022-05-05 Browsing method and device, electronic equipment and computer readable medium

Publications (1)

Publication Number Publication Date
CN114816175A true CN114816175A (en) 2022-07-29

Family

ID=82510923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210478885.0A Pending CN114816175A (en) 2022-05-05 2022-05-05 Browsing method and device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN114816175A (en)

Similar Documents

Publication Publication Date Title
CN113938456B (en) Session message overhead processing method and device
US9720557B2 (en) Method and apparatus for providing always-on-top user interface for mobile application
CN113110941A (en) Managing delivery of code and dependency data using application containers
US20120047422A1 (en) Hovercard pivoting for mobile devices
AU2019257433B2 (en) Device, method and graphic user interface used to move application interface element
US20150378553A1 (en) Dynamic hover grace period
CN110020231A (en) Webpage capture method and device thereof
WO2023040443A1 (en) Method and device for drawing canvas
CN110520848A (en) Emerge application relevant to task in isomery tabs environment
US20180196584A1 (en) Execution of multiple applications on a device
CN113515202A (en) Cursor moving method and device and electronic equipment
CN115470432A (en) Page rendering method and device, electronic equipment and computer readable medium
CN111258800A (en) Page processing method and device and electronic equipment
CN110806834A (en) Information processing method and device based on input method, electronic equipment and medium
CN112256372B (en) Information processing method and device and electronic equipment
CN111698365A (en) Information display method and device
CN112363790B (en) Table view display method and device and electronic equipment
CN113778270A (en) Method and device for dragging icon
CN111460211A (en) Audio information playing method and device and electronic equipment
CN114816175A (en) Browsing method and device, electronic equipment and computer readable medium
CN110795194B (en) Desktop display control method, device, terminal and storage medium
US20130307872A1 (en) Integrating Remote Content with Local Content
CN112114735B (en) Method and device for managing tasks
CN113568695A (en) Corner mark processing method and device for boarder application
CN110806827A (en) Information processing method, information processing apparatus, electronic device, and 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