CN111124122A - Multi-page object control method realized based on manager and electronic equipment - Google Patents

Multi-page object control method realized based on manager and electronic equipment Download PDF

Info

Publication number
CN111124122A
CN111124122A CN201911348236.3A CN201911348236A CN111124122A CN 111124122 A CN111124122 A CN 111124122A CN 201911348236 A CN201911348236 A CN 201911348236A CN 111124122 A CN111124122 A CN 111124122A
Authority
CN
China
Prior art keywords
page
page object
event
response method
gesture operation
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
CN201911348236.3A
Other languages
Chinese (zh)
Other versions
CN111124122B (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.)
Shenzhen Zhangyue Animation Technology Co ltd
Original Assignee
Ireader 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 Ireader Technology Co Ltd filed Critical Ireader Technology Co Ltd
Priority to CN201911348236.3A priority Critical patent/CN111124122B/en
Publication of CN111124122A publication Critical patent/CN111124122A/en
Application granted granted Critical
Publication of CN111124122B publication Critical patent/CN111124122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • 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

Abstract

The invention discloses a multi-page object control method, electronic equipment and a storage medium which are realized based on a manager, wherein the multi-page object control method is realized based on the manager, the manager is used for managing n page objects, and the n page objects are used for loading reading contents of continuous reading pages, and the method comprises the following steps: monitoring gesture operation of a user; analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event; and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation. The manager manages n page objects in a unified manner, and can conveniently, timely and quickly operate a plurality of page objects to complete response to operation events together. User gesture operations may be responded to more quickly than prior art single page objects responding to an event.

Description

Multi-page object control method realized based on manager and electronic equipment
Technical Field
The invention relates to the field of electronic books, in particular to a multi-page object control method based on a manager, electronic equipment and a storage medium.
Background
The content of the electronic book is displayed through the page in the electronic book, and a user can read the electronic book through turning the page. When the e-book reading page displays the reading content, in the prior art, when receiving various events such as clicking and sliding of the e-book reading page by a user, a system based on a mobile device directly delivers the event to a current page object for processing, and when receiving the event, the current page object performs page turning, loading of the next page reading content, and the like, thereby causing problems such as low loading efficiency. Often, a user can load the reading content required to be displayed on the next reading page only after the page turns, so that when the user turns the page faster, the page flickering problem of the electronic book can occur, and the user has no way to load the reading content required to be displayed on the next reading page in time, thereby causing a bad experience effect to the user.
Disclosure of Invention
In view of the above, the present invention has been made to provide a multi-page object control method, an electronic device, and a storage medium implemented based on a manager that overcome or at least partially solve the above-mentioned problems.
According to one aspect of the present invention, there is provided a multi-page object control method implemented based on a manager, where the manager is configured to manage n page objects, and the n page objects are used to load reading contents of consecutive reading pages, the method includes:
monitoring gesture operation of a user;
analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event;
and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
According to another aspect of the present invention, there is provided an electronic apparatus including: the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction causes the processor to execute the following operations:
monitoring gesture operation of a user;
analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event;
and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
According to yet another aspect of the present invention, there is provided a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to:
monitoring gesture operation of a user;
analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event;
and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
According to the multi-page object control method, the electronic device and the storage medium which are realized based on the manager, the manager is used for managing n page objects, the n page objects are used for loading reading contents of continuous reading pages and monitoring gesture operation of a user; analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event; and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation. The manager manages n page objects in a unified manner, and can conveniently, timely and quickly operate a plurality of page objects to complete response to operation events together. Compared with the prior art that a single page object responds to an event, the method and the device can respond to the gesture operation of the user more quickly, improve the response efficiency of the page object and improve the experience effect of the user.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow diagram illustrating a multi-page object control method implemented based on a manager according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a multi-page object control method implemented based on a manager according to another embodiment of the present invention;
fig. 3 shows a schematic structural diagram of an electronic device according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Example one
Fig. 1 is a flowchart illustrating a multi-page object control method implemented based on a manager according to an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
and step S101, monitoring gesture operation of a user.
The embodiment realizes control over a plurality of page objects based on a manager, wherein the manager is used for managing n page objects, and the n page objects are used for loading reading contents of continuous reading pages. Preferably, n is greater than 1, the manager can simultaneously manage a plurality of page objects, the page objects can preload multi-page reading contents of a plurality of continuous reading pages, a user can read smoothly when browsing the electronic book, and the influence of the loading speed of the reading contents on the reading effect of the user is avoided. Different contents can be loaded according to different forms of the electronic book, for example, the electronic book is a text electronic book, and characters are loaded in the reading contents; the electronic book is a cartoon electronic book, and pictures are loaded in reading content; the e-book is a streaming e-book, and the reading content loads view controls (webview, etc.).
The existing mobile equipment can directly transmit the event to the current page object for the operation of gesture, action and the like of the user, the current page object is used for processing, and the processing efficiency is influenced by the execution speed of the page object. Especially when the operation involves a plurality of reading pages, the processing of the plurality of reading pages is completed using only one page object, and the processing speed of the page object is slow. When two or more page objects are adopted for processing, the manager needs to coordinate each page object so as to quickly call each page object to respond to the operation, and the response efficiency is improved.
The manager is in butt joint with a system of the mobile equipment, various gesture operations triggered by a user on a current reading page are monitored, the manager can analyze the gesture operations conveniently, n page objects are managed in a unified mode, and the n page objects are scheduled to respond to the gesture operations of the user. The user gesture operation can be triggered by a finger of a user in a display screen of the current mobile device, or triggered by the touch device in the display screen of the current mobile device, and the manager monitors the triggered user gesture operation received by the display screen to analyze the triggered user gesture operation.
Step S102, analyzing the operation event of the user gesture operation to obtain at least one page object and at least one response method of the page object for responding to the operation event.
And the manager analyzes the monitored user gesture operation into one operation event or a plurality of continuous operation events. The manager analyzes the analysis of the user gesture operation based on a plurality of actions of the user gesture operation, and the operation events obtained by the analysis comprise click events (clicking a current reading page, clicking a certain control in the current reading page, and the like), long press events (pressing for a long time on the current reading page, and the like), press events (pressing on the current reading page), sliding events (sliding in a certain direction in the current reading page), lift events (leaving from the current reading page), and the like; or, the manager analyzes the gesture operation of the user based on the corresponding operation function, such as a page turning operation, a selection operation, and the like, and the above analysis is set according to the implementation situation, which is not limited herein.
After the manager analyzes the gesture operation of the user to obtain the corresponding operation event, the manager determines at least one page object and at least one page object response method for responding to the operation event according to the specific operation event.
Further, when the manager analyzes the operation event of the user gesture operation, the manager determines a response method of at least one page object and at least one page object for responding to the operation event, and obtains a transfer parameter of the response method of at least one page object according to operation information such as an initial position, operation time, operation speed and the like of the user gesture operation. The transfer parameters include coordinate parameters, time parameters, distance parameters, speed parameters, etc., as determined from the operation information, such as the start position, the operation time, the operation speed, etc. The transfer parameters are response methods for calling the page object, and the parameters called by the response methods.
Further, when the manager performs operation event analysis on the user gesture operation, the page object determined according to the operation event may be: a page object and a corresponding response method; a page object and a plurality of corresponding response methods; a plurality of page objects and one or more response methods in the corresponding plurality of page objects. And the manager determines the calling sequence of the page objects and the response methods according to the sequence of the operation events.
Step S103, sending a calling command of the response method to at least one page object, so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
And sending a call command of a response method to the determined at least one page object for responding to the operation event by the manager, namely after the manager determines the page object, calling the response method (corresponding function and the like) of the page object, executing the corresponding response method by the page object, and finishing the page operation corresponding to the user gesture operation. Further, the call command sent by the manager to the at least one page object carries a transfer parameter, and the at least one page object executes a response method according to the transfer parameter.
Further, when the manager is used for responding to the operation event and needs to call the multiple response methods of the page object, the manager sequentially sends the call command of the response methods to the response methods of the page object according to the call sequence determined by the manager, and sequentially calls the multiple response methods of the page object to complete the page operation corresponding to the user gesture operation. Or, if there are multiple page objects for responding to the operation event, the manager needs to sequentially send a call command of a response method to each page object according to the execution sequence of the multiple page objects, and call the multiple page objects and the response method of each page object to complete the page operation corresponding to the user gesture operation.
The manager sends a calling command of the response method to at least one page object, manages all the page objects uniformly, coordinates all the page objects to finish page operations corresponding to the user gesture operations together, reduces the time spent by a single page object for receiving operation events responding to the user gesture operations for multiple times, and greatly improves the response efficiency of the page operations. When the manager manages the n page objects, after the manager calls one or more page objects to execute the corresponding response method, the manager receives an execution result returned after any page object executes the response method, and confirms whether to continue sending a call instruction to other page objects according to the execution result so as to continue responding to the gesture operation of the user. If the user gesture operation is analyzed into a plurality of operation events, after one page object responds to a certain operation event, the returned execution result is that the reading page of the page object is moved out of the display screen of the mobile equipment, the manager determines that other page objects need to continue responding according to the subsequent operation event obtained by analysis, and sends a calling instruction to other page objects to continue responding to the user gesture operation; or the returned execution result is that the reading page of the page object is the last page of the electronic book, or the reading page of the page object is not moved out of the display screen of the mobile device, and the manager determines not to continue to respond to the subsequent operation event. Here, the execution result returned after any page object received by the manager executes the response method may be an execution result automatically returned after any page object executes the response method, or an execution result returned by the manager sending the acquisition request to the page object, or an execution result returned by the manager viewing the page object and acquiring the page object. The execution result may include status information of the page object, such as coordinate information of the page object in a display screen of the mobile device.
According to the multi-page object control method realized based on the manager, the manager is used for managing n page objects, the n page objects are used for loading reading contents of continuous reading pages and monitoring gesture operation of a user; analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event; and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation. The manager manages n page objects in a unified manner, and can conveniently, timely and quickly operate a plurality of page objects to complete response to operation events together. Compared with the prior art that a single page object responds to an event, the method and the device can respond to the gesture operation of the user more quickly, improve the response efficiency of the page object and improve the experience effect of the user.
Example two
Fig. 2 is a flowchart illustrating a multi-page object control method implemented based on a manager according to another embodiment of the present invention, and as shown in fig. 2, the method includes the following steps:
step S201, a sliding page-turning gesture operation triggered by the user on the current reading page is monitored.
In this embodiment, a specific description is given by taking a user gesture operation as a sliding page-turning gesture operation as an example. And detecting a sliding page turning gesture operation triggered by a user on the current reading page by the manager, wherein the current reading page is recorded as the ith page.
Further, in the present embodiment, it is preferable that the manager manages 3 page objects, and the 3 page objects are used for loading the reading contents of the continuous reading pages by using a loop mechanism. If the 1 st page object loads the reading content of the (i-1) th page, the 2 nd page object loads the reading content of the (i) th page, and the 3 rd page object loads the reading content of the (i + 1) th page. When the display screen of the mobile device displays the reading content of the ith page loaded by the 2 nd page object, no matter whether the user slides and turns pages forwards or backwards, the reading content after sliding and turning pages forwards or backwards can be directly displayed to the user because the reading content of the (i-1) th page is loaded by the 1 st page object and the reading content of the (i + 1) th page is loaded by the 3 rd page object, and the user does not need to wait for the loading of the reading content after turning pages, so that the reading experience of the user is greatly improved. In addition, after the page is turned, the 3 page objects can be recycled, new reading contents are loaded in advance, and it is ensured that the reading contents of the corresponding page can be directly read no matter the page is turned forwards or backwards when the page is turned. And the problem of large memory occupation and the like caused by excessive page objects stored in the memory is also solved by adopting the manager to manage 3 page objects. In addition, in the embodiment, each page object is directly recycled without being recycled by adopting a recycling pool, so that the method is quicker.
Step S202, performing operation event analysis on the sliding page-turning gesture operation to obtain at least one page object and at least one response method of the page object for responding to the operation event, and sending a call command of the response method to the at least one page object so that the at least one page object can execute the response method to complete the page operation corresponding to the sliding page-turning gesture operation.
And analyzing the operation event of the sliding page turning gesture operation to obtain a sliding event and a lifting event. And respectively determining at least one corresponding page object and at least one corresponding response method for responding to each operation event aiming at the sliding event and the lifting event. In the prior art, when receiving a triggered sliding page-turning gesture operation, a page object performs sliding processing on a response of the page object, and after the sliding processing is completed, reading content is loaded, wherein the sliding and loading speeds are slow. In the embodiment, the operation of the sliding page-turning gesture is analyzed into the sliding event and the lifting event, and the sliding event and the lifting event are responded respectively, so that the response is fast. And the reading content is loaded when the event is lifted, so that the reading method is quicker and can deal with the quick page turning of the user in time.
Specifically, according to the slide event obtained through the analysis, a first page object for responding to the slide event and a slide response method (e.g., a slide response method such as scrollby and scrolllo) of the first page object are determined. The first page object is a page object for loading the ith page, namely the first page object is a page object of the current reading page. Meanwhile, the manager determines the transmission parameters such as coordinate parameters, time parameters, distance parameters, speed parameters and the like according to the operation information such as the initial position, the operation time, the operation speed and the like of the sliding event. And when a calling command of the sliding response method is sent to the first page object, the first page object carries the corresponding transfer parameter, and executes the sliding response method to perform page sliding. And according to the uplift event obtained by analysis, determining a second page object for responding to the uplift event and a reading page loading method of the second page object, and sending a calling command of the reading page loading method to the second page object so that the second page object can execute the reading page loading method to load the reading content of the corresponding page. When the second page object loads the corresponding page, the reading content of the i + (n-1) th page or the i- (n-1) th page needs to be loaded. Taking n as an example, 3, that is, the manager manages 3 page objects, the 1 st page object has been loaded with the reading content of the i-1 st page, the 2 nd page object has been loaded with the reading content of the i-th page, and the 3 rd page object has been loaded with the reading content of the i +1 st page. According to the sliding event, the first page object is a2 nd page object for loading the reading content of the ith page, the ith page is turned backwards, namely the 2 nd page object is turned, and the display screen of the mobile device can directly display the reading content of the (i + 1) th page loaded by the 3 rd page object. At this time, the reading content of the (i-1) th page loaded by the 1 st page object is read by the user needing to turn forward by 2 pages, preferably, the 1 st page object is recycled and used as the second page object to load the reading content of the (i + 2) th page in advance, so that the user can continue to turn pages on the basis of the (i + 1) th page to obtain the reading content of the (i + 2) th page. Similarly, according to the sliding event, the first page object is the 2 nd page object loading the reading content of the ith page, the ith page is turned forward, that is, the 2 nd page object is turned, and the display screen of the mobile device can directly display the reading content of the (i-1) th page loaded by the 1 st page object. At this time, the reading content of the (i + 1) th page loaded by the 3 rd page object is read by the user needing to turn back 2 pages, preferably, the 3 rd page object is recycled and used as the second page object to load the reading content of the (i-2) th page in advance, so that the user can continue to turn pages on the basis of the (i-1) th page to obtain the reading content of the (i-2) th page. By utilizing the 3 page objects, the user can conveniently finish the pre-loading of the reading content when the page is turned rapidly and the event is lifted, and the problems that the reading experience of the user is influenced by page flicker and the like are avoided.
Here, after the first page object is called to execute the sliding response method, the manager receives an execution result returned after the first page object executes the sliding response method, so as to confirm whether to send a calling instruction to other page objects to continuously respond to the sliding page turning gesture according to the execution result. If the first page object executes the sliding response method, the returned execution result is only sliding upwards, and the reading page of the first page object is not slid out of the current display screen of the mobile device, then the lifting event is judged not to be continuously responded, if the returned execution result is that the reading page of the first page object is slid out of the current display screen of the mobile device, the lifting event needs to be continuously responded, the page object of the response event is determined, and the like. Or, the manager may also determine whether the reading page of the first page object has been moved out of the display screen of the mobile device according to the sliding distance in the transfer parameter, or determine whether the reading page of the first page object has been moved out of the display screen of the mobile device according to the sliding distance in the transfer parameter, such as a time parameter, a speed parameter, and the like, to determine whether to continue to respond to the lift event, turn the page, and pre-load the reading content of the corresponding page. The manager can prejudge the page object to be called and the response method corresponding to the user gesture operation, so that the user gesture operation can be quickly responded.
According to the multi-page object control method based on the manager, provided by the invention, the manager monitors the sliding page-turning gesture operation triggered by a user on a current reading page, analyzes the sliding page-turning gesture operation to obtain a sliding event and a lifting event, and determines the page object responding to each event and the corresponding response method according to different events. In the embodiment, the 3 page objects are used for facilitating the user to finish the pre-loading of the reading content when the user rapidly turns the page and lifts up the event, so that the problems that the reading experience of the user is influenced by page flickering and the like are avoided. The manager manages 3 page objects in a unified manner, can quickly coordinate response of each page object to the operation event, and improves response efficiency of page operation.
EXAMPLE III
The third embodiment of the present application provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the multi-page object control method implemented based on a manager in any method embodiment described above.
The executable instructions may be specifically configured to cause the processor to:
the processor comprises a manager for managing n page objects, wherein the n page objects are used for loading reading contents of continuous reading pages; monitoring gesture operation of a user; analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event; and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
In an alternative embodiment, the executable instructions further cause the processor to:
analyzing an operation event of the gesture operation of the user to obtain a transmission parameter of a response method of at least one page object; and sending a calling command carrying a response method of the transmission parameters to the at least one page object so that the at least one page object and the transmission parameters execute the response method to complete the page operation corresponding to the user gesture operation.
In an alternative embodiment, the operational events include one or more of the following events: click event, long press event, slide event, lift event; the transfer parameters include: a coordinate parameter, a time parameter, a distance parameter, and/or a speed parameter.
In an alternative embodiment, the executable instructions further cause the processor to: receiving an execution result returned after any page object executes the response method; and determining whether to send a calling instruction to other page objects according to the execution result so as to continuously respond to the gesture operation of the user.
In an alternative embodiment, the executable instructions further cause the processor to: monitoring a sliding page turning gesture operation triggered by a user on a current reading page, wherein the current reading page is the ith page; analyzing the sliding page turning gesture operation to obtain a sliding event, determining a first page object for responding to the sliding event and a sliding response method of the first page object, and sending a calling command of the sliding response method to the first page object so that the first page object can execute the sliding response method; the first page object is used for loading the ith page; analyzing the sliding page turning gesture operation to obtain a lift-up event, determining a second page object for responding to the lift-up event and a reading page loading method of the second page object, and sending a calling command of the reading page loading method to the second page object so that the second page object can execute the reading page loading method to load the reading content of the i + (n-1) th page or the i- (n-1) th page.
In an alternative embodiment, the manager is used to manage 3 page objects; the 3 page objects are used for loading the reading content of the continuous reading pages by adopting a loop mechanism.
In an alternative embodiment, the reading content includes text, pictures, and/or view controls.
Example four
Fig. 3 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, and the specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 3, the electronic device may include: a processor (processor)302, a communication Interface 304, a memory 306, and a communication bus 308.
Wherein:
the processor 302, communication interface 304, and memory 306 communicate with each other via a communication bus 308.
A communication interface 304 for communicating with network elements of other devices, such as clients or other servers.
The processor 302 is configured to execute the program 310, and may specifically perform relevant steps in the embodiment of the multi-page object control method implemented based on the manager.
In particular, program 310 may include program code comprising computer operating instructions.
The processor 302 may be a central processing unit CPU, or an application specific Integrated circuit (asic), or one or more Integrated circuits configured to implement an embodiment of the present invention. The server comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
And a memory 306 for storing a program 310. Memory 306 may comprise high-speed RAM memory and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 310 may specifically be configured to cause the processor 302 to perform the following operations:
the processor comprises a manager for managing n page objects, wherein the n page objects are used for loading reading contents of continuous reading pages; monitoring gesture operation of a user; analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event; and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
In an alternative embodiment, the program 310 is configured to enable the processor 302 to perform operation event parsing on the gesture operation of the user to obtain a transfer parameter of a response method of at least one page object; and sending a calling command carrying a response method of the transmission parameters to the at least one page object so that the at least one page object and the transmission parameters execute the response method to complete the page operation corresponding to the user gesture operation.
In an alternative embodiment, the operational events include one or more of the following events: click event, long press event, slide event, lift event; the transfer parameters include: a coordinate parameter, a time parameter, a distance parameter, and/or a speed parameter.
In an alternative embodiment, program 310 is configured to cause processor 302 to receive the execution result returned after any page object executes the response method; and determining whether to send a calling instruction to other page objects according to the execution result so as to continuously respond to the gesture operation of the user.
In an alternative embodiment, the program 310 is configured to enable the processor 302 to monitor a sliding page-turning gesture operation triggered by a user on a current reading page, wherein the current reading page is the ith page; analyzing the sliding page turning gesture operation to obtain a sliding event, determining a first page object for responding to the sliding event and a sliding response method of the first page object, and sending a calling command of the sliding response method to the first page object so that the first page object can execute the sliding response method; the first page object is used for loading the ith page; analyzing the sliding page turning gesture operation to obtain a lift-up event, determining a second page object for responding to the lift-up event and a reading page loading method of the second page object, and sending a calling command of the reading page loading method to the second page object so that the second page object can execute the reading page loading method to load the reading content of the i + (n-1) th page or the i- (n-1) th page.
In an alternative embodiment, the manager is used to manage 3 page objects; the 3 page objects are used for loading the reading content of the continuous reading pages by adopting a loop mechanism.
In an alternative embodiment, the reading content includes text, pictures, and/or view controls.
For specific implementation of each step in the program 310, reference may be made to the corresponding description in the corresponding step in the multi-page object control embodiment implemented based on the manager, which is not described herein again. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described devices and modules may refer to the corresponding process descriptions in the foregoing method embodiments, and are not described herein again.
According to the scheme provided by the embodiment, the manager is used for managing n page objects, the n page objects are used for loading reading contents of continuous reading pages, and the gesture operation of a user is monitored; analyzing an operation event of the gesture operation of the user to obtain at least one page object and at least one page object response method for responding to the operation event; and sending a calling command of the response method to at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation. The manager manages n page objects in a unified manner, and can conveniently, timely and quickly operate a plurality of page objects to complete response to operation events together. Compared with the prior art that a single page object responds to an event, the method and the device can respond to the gesture operation of the user more quickly, improve the response efficiency of the page object and improve the experience effect of the user.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments may be used in any combination.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
The invention discloses: A1. a multi-page object control method implemented based on a manager, the manager being configured to manage n page objects, the n page objects being configured to load reading contents of consecutive reading pages, the method comprising:
monitoring gesture operation of a user;
analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object;
and sending a calling command of the response method to the at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
A2. The method according to a1, wherein the operation event parsing of the user gesture operation further comprises: analyzing the operation event of the user gesture operation to obtain a transmission parameter of a response method of the at least one page object;
the sending of the call command of the response method to the at least one page object for the at least one page object to execute the response method to complete the page operation corresponding to the user gesture operation further includes:
and sending a call command carrying the response method of the transmission parameter to the at least one page object, so that the at least one page object and the transmission parameter execute the response method to complete the page operation corresponding to the user gesture operation.
A3. The method of a2, wherein the operational events include one or more of the following events: click event, long press event, slide event, lift event;
the transfer parameters include: a coordinate parameter, a time parameter, a distance parameter, and/or a speed parameter.
A4. The method of any one of a1-A3, wherein the method further comprises:
receiving an execution result returned after the response method is executed by any page object;
and determining whether to send a calling instruction to other page objects according to the execution result so as to continuously respond to the gesture operation of the user.
A5. The method according to any one of a1-a4, wherein the monitoring of user gesture operations is specifically: monitoring a sliding page turning gesture operation triggered by a user on a current reading page, wherein the current reading page is the ith page;
the analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object, and sending a call command of the response method to the at least one page object, so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation further comprises:
analyzing the sliding page turning gesture operation to obtain a sliding event, determining a first page object for responding to the sliding event and a sliding response method of the first page object, and sending a calling command of the sliding response method to the first page object so that the first page object can execute the sliding response method; the first page object is used for loading the ith page;
analyzing the sliding page turning gesture operation to obtain a lift-up event, determining a second page object for responding to the lift-up event and a reading page loading method of the second page object, and sending a calling command of the reading page loading method to the second page object so that the second page object can execute the reading page loading method to load the reading content of the i + (n-1) th page or the i- (n-1) th page.
A6. The method of any of A1-A5, wherein the manager is to manage 3 page objects; the 3 page objects are used for loading the reading content of the continuous reading pages by adopting a loop mechanism.
A7. The method of a1, wherein the reading content includes text, pictures and/or view controls.
The invention also discloses: B8. an electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to: the processor comprises a manager for managing n page objects, wherein the n page objects are used for loading reading contents of continuous reading pages;
monitoring gesture operation of a user;
analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object;
and sending a calling command of the response method to the at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
B9. The electronic device of B8, the executable instructions further cause the processor to:
analyzing the operation event of the user gesture operation to obtain a transmission parameter of a response method of the at least one page object;
and sending a call command carrying the response method of the transmission parameter to the at least one page object, so that the at least one page object and the transmission parameter execute the response method to complete the page operation corresponding to the user gesture operation.
B10. The electronic device of B9, the operational events including one or more of the following: click event, long press event, slide event, lift event;
the transfer parameters include: a coordinate parameter, a time parameter, a distance parameter, and/or a speed parameter.
B11. The electronic device of any of B8-B10, the executable instructions further cause the processor to:
receiving an execution result returned after the response method is executed by any page object;
and determining whether to send a calling instruction to other page objects according to the execution result so as to continuously respond to the gesture operation of the user.
B12. The electronic device of any of B8-B11, the executable instructions further cause the processor to:
monitoring a sliding page turning gesture operation triggered by a user on a current reading page, wherein the current reading page is the ith page;
analyzing the sliding page turning gesture operation to obtain a sliding event, determining a first page object for responding to the sliding event and a sliding response method of the first page object, and sending a calling command of the sliding response method to the first page object so that the first page object can execute the sliding response method; the first page object is used for loading the ith page;
analyzing the sliding page turning gesture operation to obtain a lift-up event, determining a second page object for responding to the lift-up event and a reading page loading method of the second page object, and sending a calling command of the reading page loading method to the second page object so that the second page object can execute the reading page loading method to load the reading content of the i + (n-1) th page or the i- (n-1) th page.
B13. The electronic device of any of B8-B12, the manager to manage 3 page objects; the 3 page objects are used for loading the reading content of the continuous reading pages by adopting a loop mechanism.
B14. The electronic device of B8, wherein the reading content includes text, pictures, and/or view controls.
The invention also discloses: C15. a computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to: the processor comprises a manager for managing n page objects, wherein the n page objects are used for loading reading contents of continuous reading pages;
monitoring gesture operation of a user;
analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object;
and sending a calling command of the response method to the at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
C16. The computer storage medium of C15, the executable instructions further cause the processor to:
analyzing the operation event of the user gesture operation to obtain a transmission parameter of a response method of the at least one page object;
and sending a call command carrying the response method of the transmission parameter to the at least one page object, so that the at least one page object and the transmission parameter execute the response method to complete the page operation corresponding to the user gesture operation.
C17. The computer storage medium of C16, the operational events comprising one or more of the following events: click event, long press event, slide event, lift event;
the transfer parameters include: a coordinate parameter, a time parameter, a distance parameter, and/or a speed parameter.
C18. The computer storage medium of any of C15-C17, the executable instructions further cause the processor to:
receiving an execution result returned after the response method is executed by any page object;
and determining whether to send a calling instruction to other page objects according to the execution result so as to continuously respond to the gesture operation of the user.
C19. The computer storage medium of any of C15-C18, the executable instructions further cause the processor to:
monitoring a sliding page turning gesture operation triggered by a user on a current reading page, wherein the current reading page is the ith page;
analyzing the sliding page turning gesture operation to obtain a sliding event, determining a first page object for responding to the sliding event and a sliding response method of the first page object, and sending a calling command of the sliding response method to the first page object so that the first page object can execute the sliding response method; the first page object is used for loading the ith page;
analyzing the sliding page turning gesture operation to obtain a lift-up event, determining a second page object for responding to the lift-up event and a reading page loading method of the second page object, and sending a calling command of the reading page loading method to the second page object so that the second page object can execute the reading page loading method to load the reading content of the i + (n-1) th page or the i- (n-1) th page.
C20. The computer storage medium of any of C15-C19, the manager to manage 3 page objects; the 3 page objects are used for loading the reading content of the continuous reading pages by adopting a loop mechanism.
C21. The computer storage medium of C15, wherein the reading content comprises text, pictures, and/or view controls.

Claims (10)

1. A multi-page object control method implemented based on a manager, the manager being configured to manage n page objects, the n page objects being configured to load reading contents of consecutive reading pages, the method comprising:
monitoring gesture operation of a user;
analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object;
and sending a calling command of the response method to the at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
2. The method of claim 1, wherein the operative event parsing the user gesture operation further comprises: analyzing the operation event of the user gesture operation to obtain a transmission parameter of a response method of the at least one page object;
the sending of the call command of the response method to the at least one page object for the at least one page object to execute the response method to complete the page operation corresponding to the user gesture operation further includes:
and sending a call command carrying the response method of the transmission parameter to the at least one page object, so that the at least one page object and the transmission parameter execute the response method to complete the page operation corresponding to the user gesture operation.
3. The method of claim 2, wherein the operational events include one or more of the following events: click event, long press event, slide event, lift event;
the transfer parameters include: a coordinate parameter, a time parameter, a distance parameter, and/or a speed parameter.
4. The method according to any one of claims 1-3, wherein the method further comprises:
receiving an execution result returned after the response method is executed by any page object;
and determining whether to send a calling instruction to other page objects according to the execution result so as to continuously respond to the gesture operation of the user.
5. The method according to any one of claims 1-4, wherein the monitoring of the user gesture operation is specifically: monitoring a sliding page turning gesture operation triggered by a user on a current reading page, wherein the current reading page is the ith page;
the analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object, and sending a call command of the response method to the at least one page object, so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation further comprises:
analyzing the sliding page turning gesture operation to obtain a sliding event, determining a first page object for responding to the sliding event and a sliding response method of the first page object, and sending a calling command of the sliding response method to the first page object so that the first page object can execute the sliding response method; the first page object is used for loading the ith page;
analyzing the sliding page turning gesture operation to obtain a lift-up event, determining a second page object for responding to the lift-up event and a reading page loading method of the second page object, and sending a calling command of the reading page loading method to the second page object so that the second page object can execute the reading page loading method to load the reading content of the i + (n-1) th page or the i- (n-1) th page.
6. The method of any of claims 1-5, wherein the manager is to manage 3 page objects; the 3 page objects are used for loading the reading content of the continuous reading pages by adopting a loop mechanism.
7. The method of claim 1, wherein the reading content comprises text, pictures, and/or view controls.
8. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to: the processor comprises a manager for managing n page objects, wherein the n page objects are used for loading reading contents of continuous reading pages;
monitoring gesture operation of a user;
analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object;
and sending a calling command of the response method to the at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
9. The electronic device of claim 8, the executable instructions further cause the processor to:
analyzing the operation event of the user gesture operation to obtain a transmission parameter of a response method of the at least one page object;
and sending a call command carrying the response method of the transmission parameter to the at least one page object, so that the at least one page object and the transmission parameter execute the response method to complete the page operation corresponding to the user gesture operation.
10. A computer storage medium having at least one executable instruction stored therein, the executable instruction causing a processor to: the processor comprises a manager for managing n page objects, wherein the n page objects are used for loading reading contents of continuous reading pages;
monitoring gesture operation of a user;
analyzing the operation event of the user gesture operation to obtain at least one page object for responding to the operation event and a response method of the at least one page object;
and sending a calling command of the response method to the at least one page object so that the at least one page object executes the response method to complete the page operation corresponding to the user gesture operation.
CN201911348236.3A 2019-12-24 2019-12-24 Multi-page object control method realized based on manager and electronic equipment Active CN111124122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911348236.3A CN111124122B (en) 2019-12-24 2019-12-24 Multi-page object control method realized based on manager and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911348236.3A CN111124122B (en) 2019-12-24 2019-12-24 Multi-page object control method realized based on manager and electronic equipment

Publications (2)

Publication Number Publication Date
CN111124122A true CN111124122A (en) 2020-05-08
CN111124122B CN111124122B (en) 2020-10-23

Family

ID=70501911

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911348236.3A Active CN111124122B (en) 2019-12-24 2019-12-24 Multi-page object control method realized based on manager and electronic equipment

Country Status (1)

Country Link
CN (1) CN111124122B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912227A (en) * 2016-04-13 2016-08-31 广州阿里巴巴文学信息技术有限公司 Text information display method, device and mobile device
CN110109665A (en) * 2018-10-18 2019-08-09 神思旭辉医疗信息技术有限责任公司 A kind of front end UI system and method based on container encapsulation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105912227A (en) * 2016-04-13 2016-08-31 广州阿里巴巴文学信息技术有限公司 Text information display method, device and mobile device
CN110109665A (en) * 2018-10-18 2019-08-09 神思旭辉医疗信息技术有限责任公司 A kind of front end UI system and method based on container encapsulation

Also Published As

Publication number Publication date
CN111124122B (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US20140075394A1 (en) Method and apparatus to facilitate interoperability of applications in a device
TWI545450B (en) Browser and method for displaying subsites
JP5932831B2 (en) Managing an immersive environment
WO2012036756A1 (en) Branded browser frame
CN110908837B (en) Application program exception handling method and device, electronic equipment and storage medium
CN103488372A (en) Method for displaying load data and electronic equipment
US10193989B2 (en) Visualization of user behavior
CN112579187A (en) Optimization method and device for cold start of application program
US10541854B2 (en) Component loading based on user interactions
CN113168356A (en) Unified support framework for contact centers
US20160299671A1 (en) Opening New Application Window in Response to Remote Resource Sharing
EP3093759B1 (en) Electronic device and method for managing applications on an electronic device
US9448710B2 (en) Tracking user interactions with a mobile UI to facilitate UI optimizations
US20160307296A1 (en) Image zooming method and terminal device
CN111124122B (en) Multi-page object control method realized based on manager and electronic equipment
CN111309221B (en) Page processing method, device and equipment
CN111581553A (en) Network image display method, system, electronic equipment and storage medium
US11134116B2 (en) System and method for dynamically loading a webpage
CN113204299B (en) Display method, display device, electronic equipment and storage medium
CN116627521A (en) Service module preloading method, skipping method, device and storage medium
WO2017097221A1 (en) Method and device for presenting data and assisting data presentation
CN103744573A (en) Data quick viewing and analyzing system based on graphic device interface
CN111679778A (en) Interactive display method of electronic book comment information, electronic equipment and storage medium
CN117075784B (en) Binding method, device, system, equipment and medium of central processing unit
CN106095445B (en) Installation method, device and the terminal of driver

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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220830

Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd.

Address before: 100124 2029e, Sihui building, Chaoyang District, Beijing

Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd.