CN107085530B - Method and device for refreshing application interface and mobile terminal - Google Patents

Method and device for refreshing application interface and mobile terminal Download PDF

Info

Publication number
CN107085530B
CN107085530B CN201710350904.0A CN201710350904A CN107085530B CN 107085530 B CN107085530 B CN 107085530B CN 201710350904 A CN201710350904 A CN 201710350904A CN 107085530 B CN107085530 B CN 107085530B
Authority
CN
China
Prior art keywords
function
refreshing
page
refresh
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710350904.0A
Other languages
Chinese (zh)
Other versions
CN107085530A (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.)
Yami Technology Guangzhou Co ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710350904.0A priority Critical patent/CN107085530B/en
Publication of CN107085530A publication Critical patent/CN107085530A/en
Application granted granted Critical
Publication of CN107085530B publication Critical patent/CN107085530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention relates to the technical field of Internet, in particular to a method and a device for refreshing an application interface and a mobile terminal.

Description

Method and device for refreshing application interface and mobile terminal
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for refreshing an application interface and a mobile terminal.
Background
The method comprises the steps of starting a mobile terminal, updating a mobile terminal application, and updating a mobile terminal application, wherein the mobile terminal application is used as a display window, the mobile terminal application is mostly of a display type, and loading data from a background in real time is an indispensable process.
Disclosure of Invention
The invention aims to provide a method for refreshing an application interface, which is convenient for code management and can realize quick refreshing of a page.
Another object of the present invention is to provide an apparatus for refreshing an application interface, so as to facilitate code management and achieve quick page refreshing.
Another object of the present invention is to provide a mobile terminal to facilitate code management while implementing fast refresh of pages.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a method for updating an application interface, where the method is applied to a mobile terminal, and the method includes:
monitoring refreshing operation of a user by using a predefined object, wherein the refreshing operation comprises at least one of pull-up page operation and pull-down page operation;
calling a refreshing monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal in response to the pull-up page operation of the user; or
And responding to the pull-down page operation of the user, calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal.
In a second aspect, an embodiment of the present invention further provides an apparatus for refreshing an application interface, which is applied to a mobile terminal, the apparatus includes an operation monitoring module, a bottom refreshing module, and a top refreshing module,
the operation monitoring module is used for monitoring refreshing operation of a user by using a predefined object, wherein the refreshing operation comprises at least one of a pull-up page operation and a pull-down page operation;
the bottom refreshing module is used for responding to the pull-up page operation of the user and calling a refreshing monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal; or
And the top refreshing module is used for responding to the pull-down page operation of the user and calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, where the mobile terminal includes:
a memory;
a processor; and
means for refreshing an application interface, said means for refreshing an application interface installed in said memory and comprising one or more software function modules executed by said processor, said means for refreshing an application interface comprising an operation listening module, a bottom refresh module and a top refresh module,
the operation monitoring module is used for monitoring refreshing operation of a user by using a predefined object, wherein the refreshing operation comprises at least one of a pull-up page operation and a pull-down page operation;
the bottom refreshing module is used for responding to the pull-up page operation of the user and calling a refreshing monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal; or
And the top refreshing module is used for responding to the pull-down page operation of the user and calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal.
The method and the device for refreshing the application interface and the mobile terminal are applied to the mobile terminal, the method for refreshing the application interface comprises the steps of monitoring refreshing operation of a user by using a predefined object, wherein the refreshing operation comprises one of pull-up page operation and pull-down page operation, calling a refreshing monitoring function to respond to the pull-up page operation of the user to trigger bottom loading data to refresh bottom data of the application interface of the mobile terminal, and responding to the pull-down page operation of the user to trigger a top loading data function to refresh top data of the application interface of the mobile terminal.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 shows a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Fig. 2 is a flowchart illustrating a method for updating an application interface according to an embodiment of the present invention.
Fig. 3 is a flowchart illustrating another method for refreshing an application interface according to an embodiment of the present invention.
Fig. 4 is a functional module schematic diagram of an apparatus for updating an application interface according to an embodiment of the present invention.
Fig. 5 is a schematic functional block diagram of another apparatus for refreshing an application interface according to an embodiment of the present invention.
The figure is as follows: 100-a mobile terminal; 110-means to refresh the application interface; 120-a memory; 130-a memory controller; 140-a processor; 150-peripheral interface; 160-a display unit; 111-operation monitoring module; 112-bottom refresh module; 113-top refresh module; 114-an operation listening module; 115-bottom refresh module; 116-a page number acquisition module; 117-judgment module; 118-a top refresh module; 119-calling the module.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Referring to fig. 1, a schematic structural diagram of a mobile terminal 100 according to an embodiment of the present invention is shown, where the method for refreshing an application interface is applied to the mobile terminal 100, and the mobile terminal 100 may be, but is not limited to, a mobile electronic device such as a mobile phone. The mobile terminal 100 includes a device for refreshing an application interface 110, a memory 120, a memory controller 130, a processor 140, a peripheral interface 150, and a display unit 160.
The memory 120, the memory controller 130, the processor 140, the peripheral interface 150, and the display unit 160 are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The means 110 for refreshing an application interface includes at least one software function module which can be stored in the memory 120 in the form of software or firmware (firmware) or fixed in an Operating System (OS) of the mobile terminal 100 device. The processor 140 is configured to execute an executable module stored in the memory 120, such as a software functional module or a computer program included in the apparatus for refreshing an application interface 110.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is configured to store a program, and the processor 140 executes the program after receiving an execution instruction, and the method executed by the mobile terminal 100 defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 140, or implemented by the processor 140.
The processor 140 may be an integrated circuit chip having signal processing capabilities. The Processor 140 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 140 may be any conventional processor 140 or the like.
The peripheral interface 150 couples various input/output devices to the processor 140 as well as to the memory 120. In some embodiments, peripheral interface 150, processor 140, and memory controller 130 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The display unit 160 provides an interactive interface (e.g., a user operation interface) between the mobile terminal 100 and a user or for displaying image data to a user reference. In this embodiment, the display unit 160 may be a liquid crystal display or a touch display. In the case of a touch display, the display can be a capacitive touch screen or a resistive touch screen, which supports single-point and multi-point touch operations. Supporting single-point and multi-point touch operations means that the touch display can sense touch operations from one or more locations on the touch display at the same time, and the sensed touch operations are sent to the processor 140 for calculation and processing.
Fig. 2 is a flowchart illustrating a method for refreshing an application interface according to an embodiment of the present invention, where the method for refreshing an application interface is applied to the mobile terminal 100, and the method for refreshing an application interface includes:
step S110, using a predefined object to monitor a refresh operation of a user, wherein the refresh operation comprises at least one of a pull-up page operation and a pull-down page operation.
The function- (void) createRefresh for realizing refreshing is written in the parent function, and various child pages can realize the refreshing function only by writing a refreshing method in which the child function inherits the parent function without repeatedly writing refreshing codes, thereby greatly facilitating the management of program codes. The function- (void) createRefresh written in the parent class function for realizing refresh specifically comprises: define a weakSelf of insecure non-strong application type __ unsafee _ unretained, create an object self of the type weakSelf. Calling MJRefresh bottom refreshing method to create a bottom refreshing control, specifically, creating a self-defined automatic refreshing view MJRefreshAuutoNormalFootter, defining a refreshing monitoring method, namely, footWithRefreshingTarget in the automatic refreshing view MJRefreshAunotenotFootter, calling a defined self object to monitor the refreshing operation of a user by using the refreshing monitoring method, wherein the refreshing operation is the pull-up operation of the user.
It is easy to understand that, the mjrefreshsh top refresh method is called to create the top refresh control, specifically, a self-defined type of automatic refresh view mjrefreshahauto normaheader is created, a refresh listening method headwithrefreshtarget is defined in the automatic refresh view mjrefreshahauto normaheader, the refresh listening method headwithrefreshtarget is used to call the defined self object to monitor the refresh operation of the user, and the refresh operation is the pull-down operation of the user.
Step S120, responding to the pull-up page operation of the user, calling a refresh monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal.
When the self object monitors that the refresh operation of the user is a pull-up operation, the mobile terminal 100 calls a refresh monitoring function to trigger the bottom loading data function loadLastData to load the bottom data of the application interface of the mobile terminal 100. And meanwhile, when the bottom loading data function loadLastData is called to load bottom data, hiding the top refreshing control so that the top refreshing control is not called to be executed.
Step S130, responding to the pull-down page operation of the user, calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal.
When the self object monitors that the refresh operation of the user is a page pull-down operation, the mobile terminal 100 calls a refresh monitoring function to trigger a top loading data function to load top data of an application interface of the mobile terminal 100, and a current page number _ currentPage is generally set to be 1 in the top loading data function, so that when the top data is refreshed, the application interface of the mobile terminal 100 directly displays the content of the first page after the refresh is successful. It is readily understood that when the top load data function is called for top data refresh, the bottom refresh control is hidden so that the bottom refresh control is not called for execution.
Referring to fig. 3, another method for refreshing an application interface according to an embodiment of the present invention is applied to a mobile terminal 100, and the method for refreshing an application interface includes: step S210, using a predefined object to monitor a refresh operation of a user, wherein the refresh operation comprises at least one of a pull-up page operation and a pull-down page operation.
The function- (void) createRefresh for realizing refreshing is written in the parent function, and various child pages can realize the refreshing function only by writing a refreshing method in which the child function inherits the parent function without repeatedly writing refreshing codes, thereby greatly facilitating the management of program codes. The function- (void) createRefresh written in the parent class function for realizing refresh specifically comprises: define a weakSelf of insecure non-strong application type __ unsafee _ unretained, create an object self of the type weakSelf. Calling MJRefresh bottom refreshing method to create a bottom refreshing control, specifically, creating a self-defined automatic refreshing view MJRefreshAuutoNormalFootter, defining a refreshing monitoring method, namely, footWithRefreshingTarget in the automatic refreshing view MJRefreshAunotenotFootter, calling a defined self object to monitor the refreshing operation of a user by using the refreshing monitoring method, wherein the refreshing operation is the pull-up operation of the user.
It is easy to understand that, the mjrefreshsh top refresh method is called to create the top refresh control, specifically, a self-defined type of automatic refresh view mjrefreshahauto normaheader is created, a refresh listening method headwithrefreshtarget is defined in the automatic refresh view mjrefreshahauto normaheader, the refresh listening method headwithrefreshtarget is used to call the defined self object to monitor the refresh operation of the user, and the refresh operation is the pull-down operation of the user.
Step S220, responding to the pull-up page operation of the user, calling a refresh monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal.
When the self object monitors that the refresh operation of the user is a pull-up operation, the mobile terminal 100 calls a refresh monitoring function to trigger the bottom loading data function loadLastData to load the bottom data of the application interface of the mobile terminal 100. And meanwhile, when the bottom loading data function loadLastData is called to load bottom data, hiding the top refreshing control so that the top refreshing control is not called to be executed.
In step S230, the page number of the refreshed current page is obtained.
The function for acquiring the current page information is defined in the parent function as- (void) refreshCurrentPg (NSInter) currentPageTotal (NSInter) Total pgSize (NSInter) pgSize, wherein Total represents how many pages in Total, currentPage represents the current page number, and pgSize represents the data amount of each page. The child function passes the current number of pages, the total number of pages, and the amount of data per page into the parent function.
In step S240, it is determined whether the current page is the last page.
The father function receives the parameters transferred by the child function, and judges whether the current page number transferred by the child function, namely the current page number, is the last page by calling the hasMoredata function.
If the current page is the last page, step S250 is executed to issue a prompt message to indicate that there is no more loaded data, i.e. the parent function calls the endreflushing withnomoredata function to issue a prompt message to be displayed on the application interface of the mobile terminal 100 to inform the user that there is no more loaded data.
If the current page is not the last page, step S260 is executed to add 1 to the page number of the current page, that is, to add 1 to the value of currentPage parameter, so as to prepare for the next refresh.
Step S270, responding to the pull-down page operation of the user, calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal.
When the self object monitors that the refresh operation of the user is a page pull-down operation, the mobile terminal 100 calls a refresh monitoring function to trigger a top loading data function to load top data of an application interface of the mobile terminal 100, and a current page number _ currentPage is generally set to be 1 in the top loading data function, so that when the top data is refreshed, the application interface of the mobile terminal 100 directly displays the content of the first page after the refresh is successful. It is readily understood that when the top load data function is called for top data refresh, the bottom refresh control is hidden so that the bottom refresh control is not called for execution.
Step S280, if the refreshing of the bottom data of the application interface of the mobile terminal fails or the refreshing of the top data of the application interface of the mobile terminal fails, a refresh stop function is called to stop the refreshing.
A function (void) endRefresh for stopping refreshing is defined in the parent function, and when the bottom data loading fails or the top data loading fails, the function for stopping refreshing disclosed in the parent function is called to stop refreshing.
According to the technical scheme disclosed by the invention, the function for realizing refreshing, the function for acquiring the current page information and the function for stopping refreshing are compiled in the parent function so as to realize the page refreshing function, and if the child functions in other pages need to realize the refreshing function, the function codes in the parent function are inherited in an inheritance mode so as to avoid repeated code writing, and under the condition of realizing the refreshing function, the unified management of the program codes is facilitated.
Referring to fig. 4, which is a schematic diagram of functional modules of an apparatus 110 for refreshing an application interface according to an embodiment of the present invention, where the apparatus 110 for refreshing an application interface is applied to a mobile terminal 100, and the apparatus 110 for refreshing an application interface includes:
the operation monitoring module 111 is configured to monitor a refresh operation of a user using a predefined object, where the refresh operation includes at least one of a pull-up page operation and a pull-down page operation.
In the embodiment of the present invention, step S110 may be performed by the operation monitoring module 111.
A bottom refresh module 112, configured to invoke a refresh listening function in response to the user's operation on the pull-up page to trigger a bottom loading data function to refresh bottom data of the application interface of the mobile terminal.
In an embodiment of the present invention, step S120 may be performed by the bottom refresh module 112.
A top refresh module 113, configured to invoke a refresh monitoring function in response to the user's drop-down page operation to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal.
In an embodiment of the present invention, step S130 may be performed by the top refresh module 113.
Referring to fig. 5, a functional module diagram of another apparatus for refreshing an application interface 110 according to an embodiment of the present invention is shown, where the apparatus for refreshing an application interface 110 is applied to a mobile terminal 100, and the apparatus for refreshing an application interface 110 includes:
an operation listening module 114 for listening a refresh operation of the user using the predefined object, the refresh operation including at least one of a pull-up page operation and a pull-down page operation.
In the embodiment of the present invention, step S210 may be performed by the operation listening module 114.
And a bottom refresh module 115, configured to invoke a refresh monitoring function in response to the user's pull-up page operation to trigger a bottom loading data function to refresh bottom data of the application interface of the mobile terminal.
In an embodiment of the present invention, step S220 may be performed by the bottom refresh module 115.
A page number obtaining module 116, configured to obtain a page number of the refreshed current page.
In the embodiment of the present invention, step S230 may be performed by the page number obtaining module 116.
And the judging module 117 is configured to judge whether the current page is the last page, send a prompt message to indicate that there is no more loaded data if the current page is the last page, and add 1 to the page number of the current page if the current page is not the last page.
In the embodiment of the present invention, steps S240 to S260 may be performed by the determination module 117.
A top refresh module 118, configured to invoke a refresh listening function in response to the user's drop-down page operation to trigger a top loading data function to refresh top data of the application interface of the mobile terminal.
In an embodiment of the present invention, step S270 may be performed by the top refresh module 118.
A calling module 119, configured to call a stop-refresh function to stop refreshing if the bottom data of the application interface of the mobile terminal fails to be refreshed or the top data of the application interface of the mobile terminal fails to be refreshed.
In the embodiment of the present invention, step S280 may be performed by the calling module 119.
Since the detailed description is already given in the section of the method for refreshing the application interface, the detailed description is omitted here.
In summary, the method, the apparatus, and the mobile terminal for refreshing an application interface according to embodiments of the present invention are both applied to a mobile terminal, and the method and the apparatus for refreshing an application interface provided in the present invention includes monitoring a refresh operation of a user by using a predefined object, where the refresh operation includes one of a pull-up page operation and a pull-down page operation, invoking a refresh monitoring function in response to the pull-up page operation of the user to trigger a bottom-loading data to refresh bottom data of the application interface of the mobile terminal, and triggering a top-loading data function to refresh top data of the application interface of the mobile terminal in response to the pull-down page operation of the user to refresh the top data.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A method for refreshing an application interface is applied to a mobile terminal, and is characterized in that the method comprises the following steps:
monitoring refreshing operation of a user by using a predefined object, wherein the refreshing operation comprises at least one of pull-up page operation and pull-down page operation; the method for monitoring the refresh operation of the user by using the predefined object specifically comprises the following steps: using a refresh monitoring method, footerWithRefreshingTarget, in a parent function to call a defined self object to monitor the refresh operation of a user;
calling a refreshing monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal in response to the pull-up page operation of the user;
acquiring the page number of a refreshed current page; the obtaining of the page number of the refreshed current page specifically includes: defining a function for acquiring current page information in the parent function, and transmitting the current page number, the total number of pages and the data volume of each page into the parent function by the child function;
or
Responding to the pull-down page operation of the user, calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal;
if the data at the bottom of the application interface of the mobile terminal fails to be refreshed or the data at the top of the application interface of the mobile terminal fails to be refreshed, calling a refresh stop function to stop refreshing; the invoking of the refresh stop function to stop the refresh specifically includes: and defining a function for stopping refreshing in the parent function, and calling the function for stopping refreshing disclosed in the parent function to stop refreshing after the bottom data loading fails or the top data loading fails.
2. The method for refreshing an application interface of claim 1, wherein the step of obtaining a page number of the refreshed current page is followed by:
and judging whether the current page is the last page or not, if so, sending a prompt message to indicate that no more loading data exists, and if not, adding 1 to the page number of the current page.
3. An apparatus for refreshing an application interface, applied to a mobile terminal, the apparatus comprising:
the operation monitoring module is used for monitoring refreshing operation of a user by using a predefined object, wherein the refreshing operation comprises at least one of a pull-up page operation and a pull-down page operation; the method for monitoring the refresh operation of the user by using the predefined object specifically comprises the following steps: using a refresh monitoring method, footerWithRefreshingTarget, in a parent function to call a defined self object to monitor the refresh operation of a user;
the bottom refreshing module is used for responding to the pull-up page operation of the user and calling a refreshing monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal;
a page number obtaining module, configured to obtain a page number of a refreshed current page, where the obtaining of the page number of the refreshed current page specifically includes: defining a function for acquiring current page information in the parent function, and transmitting the current page number, the total number of pages and the data volume of each page into the parent function by the child function;
or
The top refreshing module is used for responding to the pull-down page operation of the user and calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal;
the calling module is used for calling the refresh stopping function to stop refreshing if the bottom data of the application interface of the mobile terminal fails to be refreshed or the top data of the application interface of the mobile terminal fails to be refreshed; the invoking of the refresh stop function to stop the refresh specifically includes: and defining a function for stopping refreshing in the parent function, and calling the function for stopping refreshing disclosed in the parent function to stop refreshing after the bottom data loading fails or the top data loading fails.
4. An apparatus to refresh an application interface as recited in claim 3, wherein the apparatus further comprises:
and the judging module is used for judging whether the current page is the last page or not, sending prompt information to indicate that no more loading data exists if the current page is the last page, and adding 1 to the page number of the current page if the current page is not the last page.
5. A mobile terminal, characterized in that the mobile terminal comprises:
a memory;
a processor; and
means for refreshing an application interface, said means for refreshing an application interface being installed in said memory and comprising one or more software functional modules executed by said processor, said means for refreshing an application interface comprising:
the operation monitoring module is used for monitoring refreshing operation of a user by using a predefined object, wherein the refreshing operation comprises at least one of a pull-up page operation and a pull-down page operation; the method for monitoring the refresh operation of the user by using the predefined object specifically comprises the following steps: using a refresh monitoring method, footerWithRefreshingTarget, in a parent function to call a defined self object to monitor the refresh operation of a user;
the bottom refreshing module is used for responding to the pull-up page operation of the user and calling a refreshing monitoring function to trigger a bottom loading data function to refresh the bottom data of the application interface of the mobile terminal;
a page number obtaining module, configured to obtain a page number of a refreshed current page, where the obtaining of the page number of the refreshed current page specifically includes: defining a function for acquiring current page information in the parent function, and transmitting the current page number, the total number of pages and the data volume of each page into the parent function by the child function;
or
The top refreshing module is used for responding to the pull-down page operation of the user and calling a refreshing monitoring function to trigger a top loading data function to refresh the top data of the application interface of the mobile terminal;
the calling module is used for calling the refresh stopping function to stop refreshing if the bottom data of the application interface of the mobile terminal fails to be refreshed or the top data of the application interface of the mobile terminal fails to be refreshed; the invoking of the refresh stop function to stop the refresh specifically includes: and defining a function for stopping refreshing in the parent function, and calling the function for stopping refreshing disclosed in the parent function to stop refreshing after the bottom data loading fails or the top data loading fails.
6. The mobile terminal according to claim 5, wherein the apparatus further comprises a page number obtaining module, the page number obtaining module is configured to obtain a page number of a current page to be refreshed, the apparatus further comprises a determining module, the determining module is configured to determine whether the current page is a last page, if the current page is the last page, a prompt message is sent to indicate that there is no more loaded data, and if the current page is not the last page, the page number of the current page is increased by 1.
CN201710350904.0A 2017-05-17 2017-05-17 Method and device for refreshing application interface and mobile terminal Active CN107085530B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710350904.0A CN107085530B (en) 2017-05-17 2017-05-17 Method and device for refreshing application interface and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710350904.0A CN107085530B (en) 2017-05-17 2017-05-17 Method and device for refreshing application interface and mobile terminal

Publications (2)

Publication Number Publication Date
CN107085530A CN107085530A (en) 2017-08-22
CN107085530B true CN107085530B (en) 2021-03-16

Family

ID=59608016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710350904.0A Active CN107085530B (en) 2017-05-17 2017-05-17 Method and device for refreshing application interface and mobile terminal

Country Status (1)

Country Link
CN (1) CN107085530B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857473A (en) * 2017-11-29 2019-06-07 北京京东尚科信息技术有限公司 A kind of loading method and device of page data
CN110737409B (en) * 2019-10-21 2023-09-26 网易(杭州)网络有限公司 Data loading method and device and terminal equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1388783A1 (en) * 2002-08-02 2004-02-11 Sap Ag Method and computer system for handling incremental data in client-server communication
CN1516844A (en) * 2001-06-14 2004-07-28 �Ҵ���˾ Screen refresh method
CN104252354A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and device for refreshing data list of intelligent terminal
CN103093529B (en) * 2013-01-10 2016-01-06 高新现代智能系统股份有限公司 The method of dynamic refresh data
WO2017004038A1 (en) * 2015-06-30 2017-01-05 Citrix Systems, Inc. Virtualization layer for mobile applications
CN106648399A (en) * 2015-11-02 2017-05-10 广州市动景计算机科技有限公司 Interface display processing method, apparatus and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8930944B2 (en) * 2003-11-18 2015-01-06 Microsoft Corporation Application model that integrates the web experience with the traditional client application experience
CN103731723B (en) * 2013-12-02 2018-04-10 乐视致新电子科技(天津)有限公司 The method and system of refreshing a device list in terminal device
CN105511754A (en) * 2015-11-27 2016-04-20 北京京东尚科信息技术有限公司 Page jump method and device based on page pull-down operation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1516844A (en) * 2001-06-14 2004-07-28 �Ҵ���˾ Screen refresh method
EP1388783A1 (en) * 2002-08-02 2004-02-11 Sap Ag Method and computer system for handling incremental data in client-server communication
CN103093529B (en) * 2013-01-10 2016-01-06 高新现代智能系统股份有限公司 The method of dynamic refresh data
CN104252354A (en) * 2013-06-29 2014-12-31 北京新媒传信科技有限公司 Method and device for refreshing data list of intelligent terminal
WO2017004038A1 (en) * 2015-06-30 2017-01-05 Citrix Systems, Inc. Virtualization layer for mobile applications
CN106648399A (en) * 2015-11-02 2017-05-10 广州市动景计算机科技有限公司 Interface display processing method, apparatus and device

Also Published As

Publication number Publication date
CN107085530A (en) 2017-08-22

Similar Documents

Publication Publication Date Title
US9672023B2 (en) Providing a unified update center for security software updates and application software updates
US9727326B2 (en) Providing customized notifications for security software updates
US9135019B2 (en) Computer and hardware parameter configuring method thereof
CN110764986B (en) Page fluency detection method and device
CN107818008B (en) Page loading method and device
US10841530B2 (en) Method, device, and mobile terminal for converting video playing mode
CN107908442B (en) Spring-based resource loading method and device, terminal equipment and computer-readable storage medium
CN103793224A (en) Window display method and device
CN107085530B (en) Method and device for refreshing application interface and mobile terminal
CN106991036B (en) Prompting method and system for information input abnormity
CN110989877B (en) Message management method, related equipment and computer readable storage medium
KR20160083691A (en) Method of selecting contents and electronic device thereof
WO2017206893A1 (en) Interface refresh synchronization method and apparatus, terminal, and storage medium
US20190205357A1 (en) Method for browsing virtual reality webpage content and electronic device using the same
CN107148027B (en) Method and device for solving ZigBee internetwork communication
US20160154554A1 (en) Visual indication method and device
CN107122305B (en) Software testing device and method
CN108563744B (en) Slow query method and device based on Redis database and terminal equipment
CN109284101B (en) Method and device for changing association of object attributes
CN108011964B (en) Picture uploading method and device, electronic terminal and readable storage medium
CN108228126B (en) Screen projection control method and device, electronic terminal and readable storage medium
CN108228836B (en) Video compatible loading method and device and video component
CN106708705B (en) Terminal background process monitoring method and system
CN110764849A (en) Rendering method and device for user interface, client device and electronic device
CN115758004A (en) Webpage table display method and device, computer readable medium and electronic equipment

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: 20240202

Address after: Room 801, 85 Kefeng Road, Huangpu District, Guangzhou City, Guangdong Province

Patentee after: Yami Technology (Guangzhou) Co.,Ltd.

Guo jiahuodiqu after: Zhong Guo

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

Guo jiahuodiqu before: Zhong Guo