[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN106528247B - Data refreshing method and device - Google Patents

Data refreshing method and device Download PDF

Info

Publication number
CN106528247B
CN106528247B CN201611077953.3A CN201611077953A CN106528247B CN 106528247 B CN106528247 B CN 106528247B CN 201611077953 A CN201611077953 A CN 201611077953A CN 106528247 B CN106528247 B CN 106528247B
Authority
CN
China
Prior art keywords
data
refreshing
data item
refresh
identifier
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
CN201611077953.3A
Other languages
Chinese (zh)
Other versions
CN106528247A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611077953.3A priority Critical patent/CN106528247B/en
Publication of CN106528247A publication Critical patent/CN106528247A/en
Application granted granted Critical
Publication of CN106528247B publication Critical patent/CN106528247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Landscapes

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

Abstract

The disclosure relates to a data refreshing method and device, and belongs to the technical field of terminals. The method comprises the following steps: when a viewing instruction of a target data item is detected, displaying the data content of the target data item; judging whether the identification of the target data item is a designated identification; when the identification of the target data item is the designated identification, judging whether a data refreshing event is triggered; and when the data refreshing event is triggered, refreshing data based on the stored first refreshing identification. The device comprises: the device comprises a display module, a first judgment module, a second judgment module and a refreshing module. According to the method and the device, in the process of displaying the data content of the target data item, data refreshing is carried out through the identification of the target data item and the data refreshing event, manual refreshing by a user is not needed, and the data refreshing efficiency is improved.

Description

Data refreshing method and device
Technical Field
The disclosure relates to the technical field of terminals, in particular to a data refreshing method and device.
Background
With the rapid development of terminal technology, more and more applications can be installed on a terminal, such as a social application, a browser, a news application, and the like. During the operation of the application program, data often needs to be acquired from the application server, for example, when the application program is a news application program, news data can be acquired from the news server and displayed through the news application program. In order to ensure real-time performance of data, data refreshing of acquired data is often required.
In the related art, in the process of displaying data by the terminal through the application program, when a refresh operation triggered by a user is detected, the latest data can be acquired from the application server to realize data refresh, that is, data refresh is usually realized manually by the user.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a data refresh method and apparatus.
According to a first aspect of embodiments of the present disclosure, there is provided a data refresh method, the method including:
when a viewing instruction of a target data item is detected, displaying the data content of the target data item, wherein the target data item is any one data item in a currently displayed data item list;
judging whether the identification of the target data item is a designated identification;
when the identification of the target data item is the designated identification, judging whether a data refreshing event is triggered, wherein the data refreshing event is used for indicating to refresh the currently displayed data item;
and when the data refreshing event is triggered, refreshing data based on a stored first refreshing identifier, wherein the first refreshing identifier is used for identifying the data item refreshed last time before the current time.
Optionally, before the determining whether the identifier of the target data item is a specific identifier, the method further includes:
selecting at least one data item from the list of data items;
setting the identification of the at least one item of data as the specified identification.
Optionally, before the determining whether the data refresh event is triggered, the method further includes:
determining the display proportion of the data content of the target data item, wherein the display proportion is the proportion of the displayed data content of the target data item in all the data contents of the data item;
and when the display proportion is larger than or equal to a preset display proportion, triggering the data refreshing event.
Optionally, before the determining whether the data refresh event is triggered, the method further includes:
determining a display duration of data content of the target data item;
and when the display duration is greater than or equal to the preset display duration, triggering the data refreshing event.
Optionally, the refreshing data based on the stored first refresh identifier includes:
sending a data refreshing request to the application server, wherein the data refreshing request carries the first refreshing identifier, and the data refreshing request is used for indicating the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
receiving the second refreshing identifier sent by the application server and the data item identified by the second refreshing identifier;
refreshing the list of data items based on the data items identified by the second refresh identification.
Optionally, the refreshing the list of data items based on the data items identified by the second refresh identification includes:
when an end viewing instruction of the target data item is detected, displaying the data item identified by the second refreshing identification at a specified position in the data item list so as to refresh the data item list.
According to a second aspect of the embodiments of the present disclosure, there is provided a data refresh apparatus, the apparatus including:
the display module is used for displaying the data content of a target data item when a viewing instruction of the target data item is detected, wherein the target data item is any one data item in a currently displayed data item list;
the first judgment module is used for judging whether the identification of the target data item is a designated identification;
the second judging module is used for judging whether a data refreshing event is triggered or not when the identification of the target data item is the designated identification, wherein the data refreshing event is used for indicating to refresh the currently displayed data item;
and the refreshing module is used for refreshing data based on a stored first refreshing identifier when the data refreshing event is triggered, wherein the first refreshing identifier is used for identifying a data item refreshed last time before the current time.
Optionally, the apparatus further comprises:
a selection module for selecting at least one item of data from the list of items of data;
a setting module, configured to set an identifier of the at least one data item as the specified identifier.
Optionally, the apparatus further comprises:
a first determining module, configured to determine a display proportion of the data content of the target data item, where the display proportion is a proportion of the displayed data content of the target data item in all data contents of the data item;
and the first triggering module is used for triggering the data refreshing event when the display proportion is larger than or equal to a preset display proportion.
Optionally, the apparatus further comprises:
a second determining module, configured to determine a display duration of the data content of the target data item;
and the second triggering module is used for triggering the data refreshing event when the display duration is greater than or equal to the preset display duration.
Optionally, the refresh module includes:
the sending submodule is used for sending a data refreshing request to the application server, wherein the data refreshing request carries the first refreshing identifier, and the data refreshing request is used for indicating the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
the receiving submodule is used for receiving the second refreshing identifier sent by the application server and the data item identified by the second refreshing identifier;
and the refreshing submodule is used for refreshing the data item list based on the data item identified by the second refreshing identification.
Optionally, the refresh submodule is specifically configured to:
when an end viewing instruction of the target data item is detected, displaying the data item identified by the second refreshing identification at a specified position in the data item list so as to refresh the data item list.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
in the embodiment of the present disclosure, in the display process of the data content of the target data item, it is determined whether data refreshing is required to be performed in the display process of the data content of the target data item by determining whether the identifier of the target data item is the designated identifier and whether the data refreshing event is triggered, that is, in the embodiment of the present disclosure, data refreshing is automatically performed in the display process of the data content of the target data item, so that manual refreshing by a user is not required, and compared with manual refreshing by a user, the embodiment of the present disclosure does not need to quit the interface currently used for displaying the data content to perform data refreshing on the display interface of the data item list, and further does not need to wait for the response time of the server in the display interface of the data item list, thereby improving the efficiency of data refreshing.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a data refresh method in accordance with an exemplary embodiment.
FIG. 2A is a flow chart illustrating another method of data refresh, according to an example embodiment.
FIG. 2B is a diagram illustrating a list of data items, according to an example embodiment.
Fig. 3 is a block diagram illustrating a first data refresh apparatus according to an example embodiment.
Fig. 4 is a block diagram illustrating a second data refresh apparatus according to an example embodiment.
FIG. 5 is a block diagram illustrating a third data refresh apparatus according to an example embodiment.
FIG. 6 is a block diagram illustrating a fourth data refresh apparatus according to an exemplary embodiment.
FIG. 7 is a block diagram illustrating a refresh module in accordance with an exemplary embodiment.
Fig. 8 is a block diagram illustrating a fifth data refresh apparatus according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before explaining the embodiments of the present disclosure in detail, an application scenario of the embodiments of the present disclosure will be described. In the related art, in the process that the terminal displays data through the application program, when a refresh operation triggered by a user is detected, the latest data can be acquired from the application server to refresh the data, that is, the data refresh is usually realized manually by the user, and when the data refresh is performed manually, the current interface for displaying data content needs to be exited to refresh the data on the display interface of the data item list, that is, the time for responding by the server needs to be waited in the display interface of the data item list, so that the efficiency of data refresh is affected. Therefore, the embodiment of the present disclosure provides a data refreshing method, in the process of displaying the data content of the target data item, data refreshing is performed through the identifier of the target data item and the data refreshing event, manual refreshing by a user is not needed, and the efficiency of data refreshing is improved.
Fig. 1 is a flowchart illustrating a data refresh method according to an exemplary embodiment, where the data refresh method is used in a terminal as shown in fig. 1, and includes the following steps.
In step 101, when a viewing instruction of a target data item is detected, the data content of the target data item is displayed, and the target data item is any one data item in a currently displayed data item list.
In step 102, it is determined whether the identification of the target data item is a specified identification.
In step 103, when the identifier of the target data item is the designated identifier, it is determined whether a data refresh event is triggered, where the data refresh event is used to instruct to refresh the currently displayed data item.
In step 104, when a data refresh event is triggered, a data refresh is performed based on a stored first refresh identifier, the first refresh identifier being used to identify a data item that was recently refreshed prior to a current time.
In the embodiment of the present disclosure, in the display process of the data content of the target data item, it is determined whether data refreshing is required to be performed in the display process of the data content of the target data item by determining whether the identifier of the target data item is the designated identifier and whether the data refreshing event is triggered, that is, in the embodiment of the present disclosure, data refreshing is automatically performed in the display process of the data content of the target data item, so that manual refreshing by a user is not required, and compared with manual refreshing by a user, the embodiment of the present disclosure does not need to quit the interface currently used for displaying the data content to perform data refreshing on the display interface of the data item list, and further does not need to wait for the response time of the server in the display interface of the data item list, thereby improving the efficiency of data refreshing.
Optionally, before determining whether the identifier of the target data item is the designated identifier, the method further includes:
selecting at least one data item from the list of data items;
setting the identification of the at least one item of data to be a specified identification.
Optionally, before determining whether the data refresh event is triggered, the method further includes:
determining the display proportion of the data content of the target data item, wherein the display proportion is the proportion of the displayed data content of the target data item in all the data content of the data item;
and when the display proportion is larger than or equal to the preset display proportion, triggering a data refreshing event.
Optionally, before determining whether the data refresh event is triggered, the method further includes:
determining the display duration of the data content of the target data item;
and when the display duration is greater than or equal to the preset display duration, triggering a data refreshing event.
Optionally, performing data refresh based on the stored first refresh identifier, including:
sending a data refreshing request to the application server, wherein the data refreshing request carries a first refreshing identifier, and the data refreshing request is used for indicating the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
receiving a second refreshing identifier sent by the application server and a data item identified by the second refreshing identifier;
the list of data items is refreshed based on the data items identified by the second refresh identification.
Optionally, refreshing the data item list based on the data item identified by the second refresh identifier includes:
and when an ending viewing instruction of the target data item is detected, displaying the data item identified by the second refreshing identification at a specified position in the data item list so as to refresh the data item list.
All the above optional technical solutions can be combined arbitrarily to form optional embodiments of the present disclosure, and the embodiments of the present disclosure are not described in detail again.
FIG. 2A is a flow chart illustrating another method of data refresh, as shown in FIG. 2A, according to an example embodiment, the method comprising:
in step 201, when the terminal detects a viewing instruction of a target data item, the data content of the target data item is displayed, and the target data item is any one data item in a currently displayed data item list.
The currently displayed data item list is a data item list obtained when the current time is before the last refresh, and the data item list includes a plurality of data items, for example, five data items in the currently displayed data item list, and the data item list may be as shown in fig. 2B.
In the embodiment of the present disclosure, the data item refers to thumbnail information of the data content, and is used for representing the data content, for example, when the data item list is used for displaying news information, the data item included in the data item list may be a title of a plurality of pieces of news information, and by clicking on the title of the plurality of pieces of news information, detailed news content may be displayed.
It should be noted that the viewing instruction of the target data item is used to instruct to display the data content of the target data item, so as to facilitate the user to view, and the viewing instruction of the target data item may be triggered by the user, that is, in practical applications, when the terminal detects that the user operates the target data item through an Input/Output (I/O) device of the terminal, the viewing instruction of the target data item is triggered, for example, when the terminal used is a computer, and when the computer detects that the user operates the target data item through a mouse or a keyboard, the viewing instruction of the target data item is triggered.
In step 202, the terminal determines whether the identification of the target data item is a specified identification.
Before judging whether the identifier of the target data item is the designated identifier, in order to determine whether to perform data refreshing when the data content of the target data item is displayed, the designated identifier may be set first, and the setting of the designated identifier includes the following steps (1) - (2):
(1) at least one data item is selected from the list of data items.
When at least one item of data is selected from the list of data items, the selection may be performed according to an arrangement rule of the data items in the list of data items, for example, when the arrangement rule of the list of data items is arranged from top to bottom according to the chronological order, at least one item of data located at the bottom may be selected from the list of data items, when the arrangement rule of the list of data items is arranged from bottom to top according to the degree of importance, at least one item of data located at the top may be selected from the list of data items, and so on. For example, as shown in fig. 2B, five data items on the current data item list are arranged from top to bottom according to the chronological order, and one or more data items at the bottom of the data item list may be selected.
Of course, in practical applications, at least one item of data may be selected from the list of items of data by the user, that is, the terminal displays the list of items of data, and each time a selection operation of an item of data in the list of items of data is detected, the item of data acted on by the selection operation may be determined as the item of data selected from the list of items of data.
(2) Setting the identification of the at least one item of data to be a specified identification.
After the terminal acquires the data item list, in order to ensure that each data item corresponds to the data content of the data item one to one, each data item in the data item list has an identifier of the data item, the identifier of the data item is used for uniquely identifying the data item, and further, the identifier of at least one selected data item can be set as an appointed identifier, wherein the appointed identifier is a preset identifier.
For example, as shown in fig. 2B, there are five items of data on the current data item list, and their respective corresponding identifications are as shown in table 1, if the fourth data item and the fifth data item are the two data items at the bottom of the data item list, the fourth data item and the fifth data item may be selected, and their respective corresponding data items are identified as ID4 and ID5, and the identifications ID4 and ID5 of the fourth data item and the fifth data item are set as the specified identifications, respectively.
TABLE 1
Data item Data item identification
A A A A A A A A A A A A ID1
B B B B B B B B B ID2
C C C C C C C C C C C C C ID3
D D D D D D D D D D D D D D D D ID4
E E E E E E E E E E E E E E E E E ID5
In the embodiment of the present disclosure, the correspondence between the data item and the data item identifier shown in table 1 is described as an example, and table 1 does not limit the embodiment of the present disclosure.
In step 203, when the identifier of the target data item is the designated identifier, the terminal determines whether a data refresh event is triggered, where the data refresh event is used to instruct to refresh the currently displayed data item.
Because data refreshing in the related art is usually realized manually by a user, when the data refreshing is performed manually, the current interface for displaying data content needs to be exited to perform data refreshing on the display interface of the data item list, that is, the time for responding by the server needs to be waited in the display interface of the data item list, which affects the efficiency of data refreshing. Therefore, in the embodiment of the disclosure, when the identifier of the target data item is determined to be the designated identifier and the data refresh event is triggered, the data refresh can be automatically performed without manual refresh by a user, thereby improving the data refresh efficiency.
When the identifier of the target data item is a designated identifier, the data refresh event can be triggered by the following two possible implementation manners:
in a first possible implementation manner, a display proportion of the data content of the target data item is determined, wherein the display proportion is the proportion of the displayed data content of the target data item in all the data contents of the data item; and when the display proportion is larger than or equal to the preset display proportion, triggering a data refreshing event.
When the data content of the target data item starts to be displayed, determining the display proportion of the data content of the target data item, comparing the display proportion with a preset display proportion, triggering a data refreshing event when the display proportion is larger than or equal to the preset display proportion, and not triggering the data refreshing event when the display proportion of the data content of the target data item is smaller than the preset display proportion. For example, the preset display ratio is 50%, when the display ratio is greater than or equal to 50%, the data refresh event is triggered, and when the display ratio is less than 50%, the data refresh event is not triggered.
In the embodiment of the present disclosure, the terminal may determine the display scale of the data content of the target data item in real time and compare the display scale with the preset display scale in real time, and of course, the terminal may also determine the display scale of the data content of the target data item periodically and compare the display scale with the preset display scale periodically.
It should be noted that, when the preset display ratio is set, in order to ensure that the data refresh event is triggered and then the data refresh is completed in the display process of the data content of the target data item, the preset display ratio as small as possible needs to be set, that is, as much time as possible is reserved for performing the data refresh, however, when the viewing instruction of the target data item is triggered by the misoperation of the user, at this time, the user usually selects the interface where the data item list is returned, and does not need to perform the data refresh, if the preset display ratio is too small, the viewing instruction of the target data item is triggered by the misoperation of the user, although the data refresh is not needed, the data refresh is actually performed, and in order to avoid this, the preset display ratio needs to be greater than the specified ratio threshold value, which is set in advance and is greater than zero, and when the display scale is larger than the specified scale threshold, the viewing instruction of the target data item can be determined not to be triggered by misoperation of the user.
In a second possible implementation manner, the display duration of the data content of the target data item is determined; and when the display duration is greater than or equal to the preset display duration, triggering a data refreshing event.
When the data content of the target data item starts to be displayed, determining the display duration of the data content of the target data item, comparing the display duration with a preset display duration, triggering a data refreshing event when the display duration is greater than or equal to the preset display duration, and not triggering the data refreshing event when the display duration is less than the preset display duration. For example, the preset display duration may be 30s, and when the display duration is greater than or equal to 30s, the data refresh event is triggered, and when the display duration is less than 30s, the data refresh event is not triggered.
In the embodiment of the present disclosure, the terminal may determine the display duration of the data content of the target data item in real time, and compare the display duration with the preset display duration in real time, and of course, the terminal may also determine the display duration of the data content of the target data item periodically, and compare the display duration with the preset display duration periodically.
It should be noted that, when the preset display duration is set, in order to ensure that the data refresh event is triggered and then the data refresh can be completed in the display process of the data content of the target data item, the preset display duration as small as possible needs to be set, that is, as much time as possible is reserved for performing the data refresh, however, when the viewing instruction of the target data item is triggered by the misoperation of the user, at this time, the user usually selects the interface where the data item list is returned, and does not need to perform the data refresh, if the preset display duration is too small, the viewing instruction of the target data item is triggered by the misoperation of the user, although the data refresh is not needed, the data refresh is actually performed, and in order to avoid this, the preset display duration needs to be greater than the specified duration threshold, which may be set in advance and greater than zero, and when the display duration is greater than the specified duration threshold, the viewing instruction of the target data item can be determined not to be triggered by misoperation of the user.
In step 204, when a data refresh event is triggered, the terminal sends a data refresh request to the application server, where the data refresh request carries a first refresh identifier.
The data refreshing request sent to the application server is to enable the application server to send a latest refreshing identifier and a data item corresponding to the latest refreshing identifier to the terminal, and when the first refreshing identifier is refreshed last time before the current time, the application server sends the refreshing identifier to the terminal, and the refreshing identifier is used for identifying the data item obtained when the current time is refreshed last time, so as to distinguish the data item returned by the current refreshing and the data item returned by the last refreshing application server, and ensure that the data item received during each refreshing is a new data item.
In step 205, when the application server receives the data refresh request, the second refresh identifier and the data item identified by the second refresh identifier are determined based on the first refresh identifier, and the data item identified by the second refresh identifier and the second refresh identifier is sent to the terminal.
Wherein the second refresh identification identifies the identified data items as all data items that can be updated in the application server within the refresh interval time, the refresh interval is the interval from the last refresh to the current time before the current time, however, since, in practical applications, the data items that the terminal can receive in one refresh are limited, i.e. the number of data items that the terminal can receive in one refresh does not exceed a specified number threshold, when the number of all data items updated in the application server within the refresh interval time is greater than the specified number threshold, the terminal receives a part of all data items updated in the application server during the refresh interval, the partial data items may be a specified number of threshold number of data items of all data items updated in the application server within the refresh interval time, the update time being closest to the current time.
It should be noted that, the application server sends the refresh identifier of the current refresh and the data item identified by the refresh identifier at each refresh, and the application server can allocate the refresh identifier by the time when the terminal sends the data refresh request. Of course, the application server may also record the refresh identifier sent during the current data refresh when the data is refreshed, allocate a refresh identifier different from the previously recorded refresh identifier when the data is refreshed next time, and send the currently allocated refresh identifier and the data item identified by the currently allocated refresh identifier to the terminal, thereby ensuring that the refresh identifiers obtained by the terminal are different during each refresh.
In step 206, when the terminal receives the second refresh identifier sent by the application server and the data item identified by the second refresh identifier, the data item list is refreshed based on the data item identified by the second refresh identifier.
After receiving the second refresh identifier sent by the application server and the data item identified by the second refresh identifier, the terminal locally caches the data item identified by the second refresh identifier, and the caching mode may be storage in a certain file, a memory, a database, or the like of the terminal.
When an ending view instruction of the target data item is detected, that is, the data content of the target data item is viewed completely, at this time, in order to ensure that the user can view the latest data item after finishing the viewing of the current target data item, the data item identified by the cached second refresh identifier is displayed at a specified position in the data item list. And deleting the local cache after the data item identified by the second refreshing identifier is displayed at the specified position in the data item list.
The end viewing instruction of the target data item is used to indicate that the end viewing of the data content of the target data item is ended, and the interface where the data item list is located is returned, and the end viewing instruction of the target data item may be triggered by the user, that is, in practical application, when the terminal detects that the end viewing operation of the data content of the target data item by the user through the I/O device of the terminal is ended, the end viewing instruction of the target data item is triggered, for example, when the used terminal is a computer, when the computer detects that the end viewing operation of the data content of the target data item by the user through a mouse or a keyboard is ended, the end viewing instruction of the target data item is triggered.
It should be noted that, when the terminal does not receive the second refresh identifier and the data item identified by the second refresh identifier sent by the application server due to factors such as a network or an application server, the terminal starts to execute the retry refresh mechanism, where the retry refresh mechanism is the step of repeating 201 and 206, and certainly, the retry refresh mechanism cannot be executed infinitely many times in actual applications, therefore, the terminal is provided with a maximum threshold for the number of times that the terminal executes the retry refresh mechanism, and when the number of times that the terminal executes the retry refresh mechanism is greater than the threshold, the terminal stops executing the retry refresh mechanism.
For example, in the case that the terminal includes a data control module, a data loading module, and a data updating module, the data control module determines whether the identifier of the target data item is a specific identifier; and when the identification of the target data item is the designated identification, the data control module judges whether a data refreshing event is triggered, wherein the data refreshing event is used for indicating to refresh the currently displayed data item. When the data control module determines that the data refresh event is triggered, the data control module may send a data loading instruction to the data loading module, and when the data loading module receives the data loading instruction sent by the data control module, the data loading module sends a data refresh request to the application server. When the data loading module receives the second refresh identifier sent by the application server and the data item identified by the second refresh identifier, the data loading module sends the data item identified by the second refresh identifier and the second refresh identifier to the data refreshing module, and the data refreshing module refreshes the data item list based on the data item identified by the second refresh identifier.
In the embodiment of the present disclosure, in the display process of the data content of the target data item, it is determined whether data refreshing is required to be performed in the display process of the data content of the target data item by determining whether the identifier of the target data item is the designated identifier and whether the data refreshing event is triggered, that is, in the embodiment of the present disclosure, data refreshing is automatically performed in the display process of the data content of the target data item, so that manual refreshing by a user is not required, and compared with manual refreshing by a user, the embodiment of the present disclosure does not need to quit the interface currently used for displaying the data content to perform data refreshing on the display interface of the data item list, and further does not need to wait for the response time of the server in the display interface of the data item list, thereby improving the efficiency of data refreshing.
FIG. 3 is a block diagram illustrating a data refresh apparatus according to an exemplary embodiment. As shown in fig. 3, the apparatus includes:
a display module 301, configured to display data content of a target data item when a viewing instruction of the target data item is detected, where the target data item is any one of data items in a currently displayed data item list;
a first judging module 302, configured to judge whether an identifier of a target data item is a specified identifier;
a second judging module 303, configured to, when the identifier of the target data item is the designated identifier, judge whether a data refresh event is triggered, where the data refresh event is used to instruct to refresh the currently displayed data item;
a refresh module 304, configured to perform a data refresh based on the stored first refresh identifier when the data refresh event is triggered, where the first refresh identifier is used to identify a data item that was refreshed last before the current time.
Optionally, as shown in fig. 4, the data refreshing apparatus further includes:
a selection module 305 for selecting at least one item from the list of items;
a setting module 306 for setting the identity of the at least one data item to a specified identity.
Optionally, as shown in fig. 5, the data refreshing apparatus further includes:
a first determining module 307, configured to determine a display ratio of the data content of the target data item, where the display ratio is a ratio of the displayed data content of the target data item to all data contents of the data item;
the first triggering module 308 is configured to trigger a data refresh event when the display scale is greater than or equal to a preset display scale.
Optionally, as shown in fig. 6, the data refreshing apparatus further includes:
a second determining module 309, configured to determine a display duration of the data content of the target data item;
the second triggering module 310 is configured to trigger a data refresh event when the display duration is greater than or equal to the preset display duration.
Optionally, as shown in fig. 7, the refresh module 304 includes:
the sending submodule 3041 is configured to send a data refreshing request to the application server, where the data refreshing request carries a first refreshing identifier, and the data refreshing request is used to instruct the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
a receiving submodule 3042, configured to receive the second refresh identifier sent by the application server and the data item identified by the second refresh identifier;
a refresh submodule 3043 for refreshing the list of data items based on the data items identified by the second refresh identification.
Optionally, the refresh submodule 3043 is specifically configured to:
and when an ending viewing instruction of the target data item is detected, displaying the data item identified by the second refreshing identification at a specified position in the data item list so as to refresh the data item list.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
In the embodiment of the present disclosure, in the display process of the data content of the target data item, it is determined whether data refreshing is required to be performed in the display process of the data content of the target data item by determining whether the identifier of the target data item is the designated identifier and whether the data refreshing event is triggered, that is, in the embodiment of the present disclosure, data refreshing is automatically performed in the display process of the data content of the target data item, so that manual refreshing by a user is not required, and compared with manual refreshing by a user, the embodiment of the present disclosure does not need to quit the interface currently used for displaying the data content to perform data refreshing on the display interface of the data item list, and further does not need to wait for the response time of the server in the display interface of the data item list, thereby improving the efficiency of data refreshing.
FIG. 8 is a block diagram illustrating an apparatus 800 for data refresh in accordance with an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a data refresh method, the method comprising:
when a viewing instruction of a target data item is detected, displaying the data content of the target data item, wherein the target data item is any one data item in a currently displayed data item list;
judging whether the identification of the target data item is a designated identification;
when the identification of the target data item is the designated identification, judging whether a data refreshing event is triggered or not, wherein the data refreshing event is used for indicating to refresh the currently displayed data item;
when the data refreshing event is triggered, data refreshing is carried out based on the stored first refreshing identification, and the first refreshing identification is used for identifying the data item which is refreshed last time before the current time.
Optionally, before determining whether the identifier of the target data item is the designated identifier, the method further includes:
selecting at least one data item from the list of data items;
setting the identification of the at least one item of data to be a specified identification.
Optionally, before determining whether the data refresh event is triggered, the method further includes:
determining the display proportion of the data content of the target data item, wherein the display proportion is the proportion of the displayed data content of the target data item in all the data content of the data item;
and when the display proportion is larger than or equal to the preset display proportion, triggering a data refreshing event.
Optionally, before determining whether the data refresh event is triggered, the method further includes:
determining the display duration of the data content of the target data item;
and when the display duration is greater than or equal to the preset display duration, triggering a data refreshing event.
Optionally, performing data refresh based on the stored first refresh identifier, including:
sending a data refreshing request to the application server, wherein the data refreshing request carries a first refreshing identifier, and the data refreshing request is used for indicating the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
receiving a second refreshing identifier sent by the application server and a data item identified by the second refreshing identifier;
the list of data items is refreshed based on the data items identified by the second refresh identification.
Optionally, refreshing the data item list based on the data item identified by the second refresh identifier includes:
and when an ending viewing instruction of the target data item is detected, displaying the data item identified by the second refreshing identification at a specified position in the data item list so as to refresh the data item list.
In the embodiment of the present disclosure, in the display process of the data content of the target data item, it is determined whether data refreshing is required to be performed in the display process of the data content of the target data item by determining whether the identifier of the target data item is the designated identifier and whether the data refreshing event is triggered, that is, in the embodiment of the present disclosure, data refreshing is automatically performed in the display process of the data content of the target data item, so that manual refreshing by a user is not required, and compared with manual refreshing by a user, the embodiment of the present disclosure does not need to quit the interface currently used for displaying the data content to perform data refreshing on the display interface of the data item list, and further does not need to wait for the response time of the server in the display interface of the data item list, thereby improving the efficiency of data refreshing.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (11)

1. A data refresh method, the method comprising:
when a viewing instruction of a target data item is detected, displaying the data content of the target data item, wherein the target data item is any one data item in a currently displayed data item list;
judging whether the identification of the target data item is a designated identification;
when the identification of the target data item is the designated identification, judging whether a data refreshing event is triggered, wherein the data refreshing event is used for indicating to refresh the currently displayed data item;
when the data refresh event is triggered, sending a data refresh request to an application server for data refresh based on a stored first refresh identification, the first refresh identification being used for identifying a data item refreshed last before a current time,
the sending of a data refresh request to an application server for data refresh based on the stored first refresh identifier includes:
sending a data refreshing request to the application server, wherein the data refreshing request carries the first refreshing identifier, and the data refreshing request is used for indicating the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
receiving the second refreshing identifier sent by the application server and the data item identified by the second refreshing identifier;
refreshing the list of data items based on the data items identified by the second refresh identification.
2. The method of claim 1, wherein prior to determining whether the identity of the target data item is a specified identity, further comprising:
selecting at least one data item from the list of data items;
setting the identification of the at least one item of data as the specified identification.
3. The method of claim 1, wherein prior to determining whether a data refresh event is triggered, further comprising:
determining the display proportion of the data content of the target data item, wherein the display proportion is the proportion of the displayed data content of the target data item in all the data contents of the data item;
and when the display proportion is larger than or equal to a preset display proportion, triggering the data refreshing event.
4. The method of claim 1, wherein prior to determining whether a data refresh event is triggered, further comprising:
determining a display duration of data content of the target data item;
and when the display duration is greater than or equal to the preset display duration, triggering the data refreshing event.
5. The method of claim 1, wherein refreshing the list of data items based on the data items identified by the second refresh identification comprises:
when an end viewing instruction of the target data item is detected, displaying the data item identified by the second refreshing identification at a specified position in the data item list so as to refresh the data item list.
6. A data refresh apparatus, the apparatus comprising:
the display module is used for displaying the data content of a target data item when a viewing instruction of the target data item is detected, wherein the target data item is any one data item in a currently displayed data item list;
the first judgment module is used for judging whether the identification of the target data item is a designated identification;
the second judging module is used for judging whether a data refreshing event is triggered or not when the identification of the target data item is the designated identification, wherein the data refreshing event is used for indicating to refresh the currently displayed data item;
a refresh module, configured to send a data refresh request to an application server for data refresh based on a stored first refresh identifier when the data refresh event is triggered, where the first refresh identifier is used to identify a data item that was refreshed last time before a current time,
the refresh module includes:
the sending submodule is used for sending a data refreshing request to the application server, wherein the data refreshing request carries the first refreshing identifier, and the data refreshing request is used for indicating the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
the receiving submodule is used for receiving the second refreshing identifier sent by the application server and the data item identified by the second refreshing identifier;
and the refreshing submodule is used for refreshing the data item list based on the data item identified by the second refreshing identification.
7. The apparatus of claim 6, wherein the apparatus further comprises:
a selection module for selecting at least one item of data from the list of items of data;
a setting module, configured to set an identifier of the at least one data item as the specified identifier.
8. The apparatus of claim 6, wherein the apparatus further comprises:
a first determining module, configured to determine a display proportion of the data content of the target data item, where the display proportion is a proportion of the displayed data content of the target data item in all data contents of the data item;
and the first triggering module is used for triggering the data refreshing event when the display proportion is larger than or equal to a preset display proportion.
9. The apparatus of claim 6, wherein the apparatus further comprises:
a second determining module, configured to determine a display duration of the data content of the target data item;
and the second triggering module is used for triggering the data refreshing event when the display duration is greater than or equal to the preset display duration.
10. The apparatus of claim 6,
the refresh submodule is specifically configured to:
when an end viewing instruction of the target data item is detected, displaying the data item identified by the second refreshing identification at a specified position in the data item list so as to refresh the data item list.
11. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of a mobile terminal, cause the mobile terminal to perform a data refresh method, the method comprising:
when a viewing instruction of a target data item is detected, displaying the data content of the target data item, wherein the target data item is any one data item in a currently displayed data item list;
judging whether the identification of the target data item is a designated identification;
when the identification of the target data item is the designated identification, judging whether a data refreshing event is triggered, wherein the data refreshing event is used for indicating to refresh the currently displayed data item;
when the data refreshing event is triggered, sending a data refreshing request to an application server for data refreshing based on a stored first refreshing identifier, wherein the first refreshing identifier is used for identifying a data item refreshed last time before the current time,
the sending of a data refresh request to an application server for data refresh based on the stored first refresh identifier includes:
sending a data refreshing request to the application server, wherein the data refreshing request carries the first refreshing identifier, and the data refreshing request is used for indicating the application server to return a second refreshing identifier and a data item identified by the second refreshing identifier;
receiving the second refreshing identifier sent by the application server and the data item identified by the second refreshing identifier;
refreshing the list of data items based on the data items identified by the second refresh identification.
CN201611077953.3A 2016-11-30 2016-11-30 Data refreshing method and device Active CN106528247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611077953.3A CN106528247B (en) 2016-11-30 2016-11-30 Data refreshing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611077953.3A CN106528247B (en) 2016-11-30 2016-11-30 Data refreshing method and device

Publications (2)

Publication Number Publication Date
CN106528247A CN106528247A (en) 2017-03-22
CN106528247B true CN106528247B (en) 2020-01-07

Family

ID=58353507

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611077953.3A Active CN106528247B (en) 2016-11-30 2016-11-30 Data refreshing method and device

Country Status (1)

Country Link
CN (1) CN106528247B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108391075B (en) * 2018-02-27 2020-10-30 北京酷我科技有限公司 Method for refreshing video playing Cell without interval
CN108848173A (en) * 2018-06-25 2018-11-20 郑州云海信息技术有限公司 A kind of data-updating method, device, equipment and readable storage medium storing program for executing
CN112632432B (en) * 2020-12-30 2023-07-18 平安证券股份有限公司 Terminal-based page refreshing method and device, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447874A (en) * 2008-12-25 2009-06-03 深圳华为通信技术有限公司 Data synchronization method, client and server
CN103428264A (en) * 2013-06-27 2013-12-04 华为软件技术有限公司 Data synchronization method, device and system
CN104111961A (en) * 2013-04-22 2014-10-22 北京壹人壹本信息科技有限公司 Data item display refreshing method and device
CN105893607A (en) * 2016-04-25 2016-08-24 青岛海信传媒网络技术有限公司 Page data management method, device and data server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447874A (en) * 2008-12-25 2009-06-03 深圳华为通信技术有限公司 Data synchronization method, client and server
CN104111961A (en) * 2013-04-22 2014-10-22 北京壹人壹本信息科技有限公司 Data item display refreshing method and device
CN103428264A (en) * 2013-06-27 2013-12-04 华为软件技术有限公司 Data synchronization method, device and system
CN105893607A (en) * 2016-04-25 2016-08-24 青岛海信传媒网络技术有限公司 Page data management method, device and data server

Also Published As

Publication number Publication date
CN106528247A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN105843615B (en) Notification message processing method and device
CN106896991B (en) Method and device for updating information
CN105912450B (en) Application state information display method and device
US11281363B2 (en) Method and device for setting identity image
CN106919629B (en) Method and device for realizing information screening in group chat
CN109525966B (en) Intelligent device query method and device and storage medium
CN106354571B (en) Message reminding method and device
CN107423394A (en) Page display method and device
CN107729098B (en) User interface display method and device
CN105763552B (en) Transmission method, device and system in remote control
CN106528247B (en) Data refreshing method and device
CN108011990B (en) Contact management method and device
CN104850643B (en) Picture comparison method and device
CN113382270A (en) Virtual resource processing method and device, electronic equipment and storage medium
CN112416219A (en) Target object processing method, device and system, electronic equipment and storage medium
CN104360875A (en) Private mode starting method and device
CN104951522B (en) Method and device for searching
CN112333518B (en) Function configuration method and device for video and electronic equipment
CN107463419B (en) Application restarting method and device and computer readable storage medium
CN106878654B (en) Video communication method and device
CN106506808B (en) Method and device for prompting communication message
CN106933111B (en) Method and device for controlling equipment
CN106773750B (en) Equipment image display method and device
CN110913276B (en) Data processing method, device, server, terminal and storage medium
CN109739415B (en) Session switching method and device

Legal Events

Date Code Title Description
C06 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