Movatterモバイル変換


[0]ホーム

URL:


CN108228300B - Method and device for controlling real-time refreshing of content - Google Patents

Method and device for controlling real-time refreshing of content
Download PDF

Info

Publication number
CN108228300B
CN108228300BCN201810002473.3ACN201810002473ACN108228300BCN 108228300 BCN108228300 BCN 108228300BCN 201810002473 ACN201810002473 ACN 201810002473ACN 108228300 BCN108228300 BCN 108228300B
Authority
CN
China
Prior art keywords
timer
singleton
attribute
content
display
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.)
Expired - Fee Related
Application number
CN201810002473.3A
Other languages
Chinese (zh)
Other versions
CN108228300A (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.)
Wuhan Douyu Network Technology 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 LtdfiledCriticalWuhan Douyu Network Technology Co Ltd
Priority to CN201810002473.3ApriorityCriticalpatent/CN108228300B/en
Publication of CN108228300ApublicationCriticalpatent/CN108228300A/en
Application grantedgrantedCritical
Publication of CN108228300BpublicationCriticalpatent/CN108228300B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明公开了一种控制内容实时刷新的方法及装置,应用于移动终端开发领域。本发明提供的方法包括:创建单例,在所述单例中添加定时器,设置所述定时器的回调;定义一个函数变量,当所述定时器每次回调时,设定所述函数变量进行特定改变,根据当前所述函数变量具有的特性,设置对应的显示内容;将所述显示内容赋值给单例属性,当检测到所述单例属性的属性值发生改变,刷新当前界面的显示内容。在本发明中,通过在所述单例中添加定时器,并定义函数变量,根据函数变量的变化设置显示内容,再通过检测属性变化,刷新当前显示内容。使得在动态的页面上,也可以进行数据内容实时显示并刷新,保证了页面显示效率,提升了终端用户体验。

Figure 201810002473

The invention discloses a method and a device for controlling real-time refresh of content, which are applied to the field of mobile terminal development. The method provided by the present invention includes: creating a singleton, adding a timer in the singleton, and setting the callback of the timer; defining a function variable, and setting the function variable when the timer calls back each time Make a specific change, and set the corresponding display content according to the current characteristics of the function variable; assign the display content to the singleton attribute, and refresh the display of the current interface when it is detected that the attribute value of the singleton attribute changes content. In the present invention, by adding a timer in the singleton and defining a function variable, the display content is set according to the change of the function variable, and the current display content is refreshed by detecting the change of the attribute. This enables real-time display and refresh of data content on dynamic pages, ensuring page display efficiency and improving end-user experience.

Figure 201810002473

Description

Method and device for controlling real-time refreshing of content
Technical Field
The invention relates to the field of mobile terminal application development, in particular to a method and a device for controlling real-time refreshing of content.
Background
Along with the rapid popularization of mobile phones, people's entertainment life becomes rich and colorful, and the mobile phone becomes a window for watching a virtual world. However, the size of the mobile phone screen is limited, which greatly restricts the amount of information pushed by an application software provider, and it is inconvenient for a user to acquire more information.
More contents are displayed in a specific area, and at present, a scheme is adopted to perform carousel in a text or picture mode in the specific area, so that information to be displayed to a user is displayed through a specific display control of a UI (user interface) and disappears continuously. For the dynamic page display, it is difficult to add more display contents to the dynamic page and ensure the real-time performance of the display contents, so that the data display efficiency is low in a manner of displaying the data contents in a carousel manner, so that a user cannot know more real-time data, and the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling content real-time refreshing, which can solve the problem that the real-time performance is difficult to guarantee in the conventional dynamic data display.
In a first aspect, a method for controlling content real-time refreshing is provided, including: step a: creating a singleton, adding a timer in the singleton, and setting the callback of the timer; step b: defining a function variable, setting the function variable to carry out specific change when the timer is reset every time, and setting corresponding display content according to the characteristics of the current function variable; step c: and assigning the display content to the singleton attribute, and refreshing the display content of the current interface when detecting that the attribute value of the singleton attribute changes.
In a first possible implementation manner of the first aspect, the step a includes: and setting the callback time of the timer.
In a second possible implementation manner of the first aspect, the step a further includes: defining an attribute variable, acquiring the timer through the attribute variable, calling a method for failing the timer when detecting that the current display interface is removed, and removing the timer.
In a third possible implementation manner of the first aspect, the characteristic of the current function variable in step b is specifically: and dividing the current function variable by a preset numerical value, and judging whether the function variable can be divided completely.
In a fourth possible implementation manner of the first aspect, the step c specifically includes: step c 1: and when the display content is assigned to the singleton attribute, judging whether the changed attribute value of the singleton attribute is a preset observed attribute value, and if so, displaying the content contained in the attribute value of the singleton attribute. .
In a fifth possible implementation manner of the first aspect, the step c1 further includes: step c 2: and acquiring the created singleton object, adding an observer to the object, setting an observed attribute, and setting an attribute value change range of the attribute.
In a second aspect, an apparatus for controlling content real-time refreshing is provided, including: a creation unit: the method comprises the steps of creating a singleton, adding a timer in the singleton, and setting a callback of the timer; a control unit: the function variable is set to carry out specific change when the timer is reset every time, and corresponding display content is set according to the characteristics of the current function variable; a refresh unit: and the display content is assigned to the singleton attribute, and when the singleton attribute is detected to be changed, the display content of the current interface is refreshed.
In a first possible implementation manner of the second aspect, the creating a love unit further includes: a removing unit: the method is used for defining a timer variable, acquiring the timer through the attribute variable, calling a method for failing the timer when the removal of the current display interface is detected, and removing the timer.
In a third aspect, a terminal device is provided, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method as described above when executing the computer program.
In a fourth aspect, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 6.
According to the technical scheme, the embodiment of the invention has the following advantages:
in the embodiment of the invention, a single case is created, a timer is added in the single case, the callback of the timer is set, a function variable is defined, the display content is set according to the change of the function variable, and the current display content is refreshed by detecting the attribute change. Therefore, data content can be displayed and refreshed in real time on a dynamic page, page display efficiency is guaranteed, and terminal user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a flow chart of an embodiment of a method for controlling real-time refreshing of content according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating an effect of real-time refresh according to an embodiment of the present invention;
FIG. 3 is a flow chart of another embodiment of a method for controlling real-time content refresh according to an embodiment of the present invention;
FIG. 4 is a block diagram of an embodiment of an apparatus for controlling real-time refreshing of content according to the present invention;
fig. 5 is a schematic block diagram of a terminal device provided in an embodiment of the present invention;
Detailed Description
The embodiment of the invention provides a method and a device for controlling real-time refreshing of content, which are used for carrying out real-time displaying and refreshing of data content on a dynamic interface and ensuring the display efficiency of the interface.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of an embodiment of a method for controlling real-time content refresh according to an embodiment of the present invention includes:
s101, creating a single case, adding a timer in the single case, and setting the callback of the timer;
and the setting of the callback of the timer comprises setting the time of each callback of the timer, and setting the timer to repeatedly execute the callback operation.
The timer is removed after the timer is added, and the specific implementation process is as follows: defining a timer variable, acquiring a timer through the attribute variable, calling a method invalid to the timer when detecting that the current display interface is removed, pausing the timer, and setting the timer to nil, namely removing the timer from the program. The timer is removed to avoid the problem of memory explosion, and effective management of the timer can be realized.
S102, defining a function variable, setting the function variable to perform specific change when the timer is reset every time, and setting corresponding display content according to the characteristics of the current function variable;
defining a large natural number, such as 10000, wherein the function variable will increase or decrease regularly during each callback process by fixing the timer, obtaining the value of the current function variable, dividing the value by a specific number, such as natural numbers of 2 or 3, judging whether the integer division can be performed, and respectively setting the display content which can be performed with the integer division and the display content which can not be performed with the integer division according to whether the integer division can be performed.
S103, assigning the display content to the singleton attribute, and refreshing the display content of the current interface when the singleton attribute is detected to be changed.
The method comprises the steps of obtaining a created singleton object, adding an observer to the object, setting observed attributes, wherein the attributes can be one or a plurality of attributes, setting an attribute value change range of the attributes, judging whether the changed attribute values are preset observed attribute values or not after the display content is assigned to the attribute values of the attributes, and displaying data contents such as texts, pictures and the like contained in the attribute values if the changed attribute values are the preset observed attribute values.
Preferably, steps S101, S102 and S103 may all be performed on the IOS system.
With reference to fig. 2, the display content of the current interface is displayed through the area B, and the operation of adding and removing the timer is performed along with the disappearance and appearance of the area a, because the area a is in the dynamic change process, there is a technical difficulty in directly performing dynamic display of the content in the area a, and it cannot be guaranteed that the display content can be refreshed in real time. As can be seen from the embodiment illustrated in fig. 1, in the embodiment of the present invention, the timer is added by creating a single instance, and because only one part of the lifecycle exists in the single instance, there is no need to repeatedly add the timer as the conventional UI appears with the disappearance of the interface, which can ensure that the timer is added only once, save the storage space, and ensure the timing and regularity of the interface refresh. Meanwhile, in S103, attribute change is observed by adding KVO, and the KVO observes the attribute value very quickly, so that the attribute change can be monitored immediately after the callback function of the timer assigns the attribute, and the real-time performance of interface content refreshing is further ensured.
Based on the embodiment shown in fig. 1, further, a method for controlling content real-time refreshing in the embodiment of the present invention is described in detail in conjunction with a program execution flow, as shown in fig. 3,
in S301, a single instance is created and named dynannualtwomanager, and a timer is defined in the single instance and the following method is added to the timer:
defining a timer variable countDowntimer, triggering a method internal fireTimer of the timer variable, wherein the method is mainly used for judging whether the countDowntimer exists or not, if not, creating a timer by using a method for creating the timer, and the method for creating the timer is timeWithTimeInterval. Meanwhile, the timer is added into the system running cycle, and the addition of the timer into the running cycle can ensure that the timer is not interfered by other events.
Meanwhile, an attribute is added in a singleton, and the attribute value is set to shouldShowMval.
In S302, the setting of the callback of the timer includes setting the callback time of the timer and repeatedly executing the setting of the timer.
In S303, the timer is called back to the function oncountdown normaltime fire, here set to 1 second, every time the timer is called back, the showTime value changes, here set to minus one.
In S304, according to the feature of the current showTime value, for example, according to whether the set showTime is divisible by 3, the corresponding display content is set, and if yes, the display content is set to a, and if not, the display content is set to B.
In S306, adding KVO and observing attribute changes during interface initialization and data configuration, specifically, the following steps:
and acquiring the created singleton object by using the shareManager, taking the object, adding an observer to the singleton object by using the addObserver, and setting the attribute of the observed object. Here, the observed attribute is shouldShowMval, which can be defined by itself, and the number of observed attributes is not limited. Meanwhile, the change range of the attribute is set, the old attribute value of the new attribute value is set to be observed in the invention, the new attribute value is set through a parameter NSKeyValueObservingOptionNew, and the old attribute value is set through a parameter NSKeyValueObservingOptionOld.
When the attribute value shouldShowMval changes, a function observeValueForKeyPath callback is triggered, and parameters of the function include: observed property value keyPath, dictionary type change, with new and old values in the change. And comparing whether the keyPath attribute value is the attribute value to be observed or not, if so, acquiring the display content in the new value, and further displaying the refreshing content of the interface.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The foregoing mainly describes a method for controlling content real-time refresh, and a detailed description will be given below of an apparatus for controlling content real-time refresh.
Fig. 4 is a block diagram illustrating an embodiment of a device for real-time refreshing of a control interface according to an embodiment of the present invention, including:
the creating unit 41: the method comprises the steps of creating a singleton, adding a timer in the singleton, and setting a callback of the timer;
the control unit 42: the function variable is set to carry out specific change when the timer is reset every time, and corresponding display content is set according to the characteristics of the current function variable;
the refresh unit 43: and the display content is assigned to the singleton attribute, and when the singleton attribute is detected to be changed, the display content of the current interface is refreshed.
Further, the above apparatus further comprises:
the removing unit 34: the method is used for defining an attribute variable, acquiring a timer through the attribute variable, calling a method for disabling the timer when detecting that the current display interface is removed, and removing the timer.
Optionally, the removing unit 34 is specifically configured to remove the timer from the program after the current view is displayed, and release the storage space occupied by the timer.
It will be apparent to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units is merely illustrated, and in practical applications, the above function distribution may be performed by different functional units and modules as needed, that is, the internal structure of the mobile terminal is divided into different functional units or modules to perform all or part of the above described functions. Each functional module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional modules are only used for distinguishing one functional module from another, and are not used for limiting the protection scope of the application. The specific working process of the module in the mobile terminal may refer to the corresponding process in the foregoing method embodiment, and is not described herein again.
Fig. 5 is a schematic block diagram of a terminal device according to a fifth embodiment of the present invention. The mobile terminal as shown in the figure may include: one or more processors 501 (only one shown), a display 502, a memory 503, one or more input devices 504 (only one shown), and one or more output devices 505 (only one shown). The processor 501, theinput device 504, theoutput device 505, and the display 602 are connected by a bus 506. The memory 503 is used to store instructions and the processor 501 is used to execute instructions stored by the memory 503. Wherein:
the processor 501 is configured to create a singleton, add a timer to the singleton, and set a callback of the timer; defining a function variable, setting the function variable to carry out specific change when the timer is reset every time, and setting corresponding display content according to the characteristics of the current function variable; and assigning the display content to the singleton attribute, and refreshing the display content of the current interface when detecting that the attribute value of the singleton attribute changes. Theinput device 504 is configured to input preset display content, and similarly, the display content may also be obtained from a background database, which is not limited herein. The display 502 is used to present display content to a user.
After the processor 501 in the terminal device obtains the execution instruction, the program stored in the memory 503 is read and executed, and by reading the specific data, after the data of the display content is detected to be transmitted, the display 502 is used for refreshing and displaying on the terminal device. Display data received from theinput device 504 is stored in the memory 503, wherein the display data may be data generated by the specific application program running
The memory 503 is used for storing software programs and units. The processor 501 executes various functional applications and data processing by running software programs and modules stored in the memory 503 to control an interface to refresh and display specific contents in real time.
It should be understood that, in the embodiment of the present invention, the Processor 501 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Theinput device 504 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, a data receiving interface, and the like. Theoutput device 505 may include a display (LCD, etc.), speakers, a data transmission interface, and so forth.
The memory 503 may include both read-only memory and random access memory, and provides instructions and data to the processor 501. A portion of the memory 503 may also include non-volatile random access memory. For example, the memory 503 may also store information of device types.
The display 502 may be used to display information entered by a user or provided to a user, etc. The Display 502 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the display 502 may further include a touch panel, which may cover the display panel, and when the touch panel detects a touch operation on or near the touch panel, the touch panel transmits the touch operation to the processor 501 to determine the type of the touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of the touch event.
In a specific implementation, the processor 501, the display 502, the memory 503, theinput device 504, and theoutput device 505 described in this embodiment of the present invention may execute the implementation described in the embodiment of the method for processing information provided in this embodiment of the present invention, or may execute the implementation described in the mobile terminal described in the fourth embodiment, which is not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art would appreciate that the modules, elements, and/or method steps of the various embodiments described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (8)

Translated fromChinese
1.一种控制内容实时刷新的方法,其特征在于,包括:1. a method for controlling content to be refreshed in real time, is characterized in that, comprising:步骤a:创建单例,在所述单例中添加定时器,设置所述定时器的回调;Step a: Create a singleton, add a timer to the singleton, and set the callback of the timer;步骤b:定义一个函数变量,当所述定时器每次回调时,设定所述函数变量进行特定改变,根据当前所述函数变量能否被整除,设置对应的显示内容;Step b: define a function variable, when the timer calls back each time, set the function variable to make a specific change, and set the corresponding display content according to whether the current function variable is divisible;步骤c:将所述显示内容赋值给单例属性,当检测到所述单例属性的属性值发生改变,刷新当前界面的显示内容;所述步骤c具体为:Step c: assigning the display content to the singleton attribute, when detecting that the attribute value of the singleton attribute changes, refresh the display content of the current interface; the step c is specifically:步骤c1:当所述显示内容赋值给所述单例属性后,判断改变后的所述单例属性的属性值是否为预设观察的属性值,如果是,则显示所述单例属性的属性值包含的内容。Step c1: After the display content is assigned to the singleton property, determine whether the changed property value of the singleton property is the property value of the preset observation, and if so, display the property of the singleton property What the value contains.2.根据权利要求1所述的方法,其特征在于,所述步骤a包括:2. The method according to claim 1, wherein the step a comprises:设置所述定时器的回调时间。Set the callback time of the timer.3.根据权利要求1所述的方法,其特征在于,所述步骤a还包括:3. The method according to claim 1, wherein the step a further comprises:定义一个属性变量,通过所述属性变量获取到所述定时器,当检测到当前显示界面移除后,调用所述定时器失效的方法,并将所述定时器移除。An attribute variable is defined, the timer is obtained through the attribute variable, and when it is detected that the current display interface is removed, a method for invalidating the timer is called, and the timer is removed.4.根据权利要求1所述的方法,其特征在于,所述步骤c1还包括:4. The method according to claim 1, wherein the step c1 further comprises:步骤c2:获取创建的单例对象,为所述对象添加观察者,设置观察的属性,并设置所述属性的属性值变化范围。Step c2: Acquire the created singleton object, add an observer to the object, set the observed property, and set the property value change range of the property.5.一种控制内容实时刷新的装置,其特征在于,包括:5. A device for controlling real-time refresh of content, comprising:创建单元:用于创建单例,在所述单例中添加定时器,设置所述定时器的回调;Creation unit: used to create a singleton, add a timer to the singleton, and set the callback of the timer;控制单元:用于定义一个函数变量,当所述定时器每次回调时,设定所述函数变量进行特定改变,根据当前所述函数变量能否被整除,设置对应的显示内容;Control unit: used to define a function variable, when the timer calls back each time, set the function variable to make a specific change, and set the corresponding display content according to whether the current function variable can be divisible;刷新单元:用于将所述显示内容赋值给单例属性,当检测到所述单例属性的属性值发生改变,刷新当前界面的显示内容;所述刷新单元具体用于:当所述显示内容赋值给所述单例属性后,判断改变后的所述单例属性的属性值是否为预设观察的属性值,如果是,则显示所述单例属性的属性值包含的内容。Refresh unit: used to assign the display content to the singleton attribute, and when it is detected that the attribute value of the singleton attribute changes, refresh the display content of the current interface; the refresh unit is specifically used for: when the display content is changed After assigning the value to the singleton attribute, it is judged whether the changed attribute value of the singleton attribute is the preset observed attribute value, and if so, the content contained in the attribute value of the singleton attribute is displayed.6.根据权利要求5所述的装置,其特征在于,所述创建单元还包括:6. The apparatus according to claim 5, wherein the creating unit further comprises:移除单元:用于定义一个属性变量,通过所述属性变量获取到所述定时器,当检测到当前显示界面移除后,调用所述定时器失效的方法,并将所述定时器移除。Removal unit: used to define an attribute variable, obtain the timer through the attribute variable, when it is detected that the current display interface is removed, call the method for invalidating the timer, and remove the timer .7.一种控制内容实时刷新的装置,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至4中任一项所述控制内容实时刷新的方法的步骤。7. A device for controlling real-time refresh of content, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that, when the processor executes the computer program The steps of implementing the method for controlling real-time refresh of content according to any one of claims 1 to 4.8.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至4中任一项所述控制内容实时刷新方法的步骤。8. A computer-readable storage medium storing a computer program, characterized in that, when the computer program is executed by a processor, the control content according to any one of claims 1 to 4 is implemented Steps for the live refresh method.
CN201810002473.3A2018-01-022018-01-02Method and device for controlling real-time refreshing of contentExpired - Fee RelatedCN108228300B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201810002473.3ACN108228300B (en)2018-01-022018-01-02Method and device for controlling real-time refreshing of content

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201810002473.3ACN108228300B (en)2018-01-022018-01-02Method and device for controlling real-time refreshing of content

Publications (2)

Publication NumberPublication Date
CN108228300A CN108228300A (en)2018-06-29
CN108228300Btrue CN108228300B (en)2021-03-16

Family

ID=62642590

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201810002473.3AExpired - Fee RelatedCN108228300B (en)2018-01-022018-01-02Method and device for controlling real-time refreshing of content

Country Status (1)

CountryLink
CN (1)CN108228300B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110727482B (en)*2018-07-162023-05-12阿里巴巴集团控股有限公司Interface updating method and device
CN109240773B (en)*2018-08-202022-08-16武汉斗鱼网络科技有限公司Method, device, terminal and readable storage medium for solving room string data
CN109491803B (en)*2018-10-112021-08-24腾讯科技(深圳)有限公司Page processing method and device and related equipment
CN111240651A (en)*2018-11-282020-06-05武汉斗鱼网络科技有限公司Single instance interface calling method, terminal device and storage medium
CN111158829A (en)*2019-12-302020-05-15北京金山安全软件有限公司Operation rollback processing method and device
CN115964186B (en)*2021-10-112025-08-26腾讯科技(深圳)有限公司 Data processing method, device, equipment, storage medium and product
CN117271924A (en)*2023-05-252023-12-22北京陌陌信息技术有限公司Webpage refreshing method and device based on WebView

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
TW200513950A (en)*2003-10-072005-04-16Inventec CorpMethod for jointly controlling computer audio channel through intermediate layer
CN105302574A (en)*2015-11-202016-02-03深圳圣诺医疗设备有限公司Graphic interface operating system and implementation method thereof
CN105955777A (en)*2016-05-032016-09-21网易(杭州)网络有限公司User interface refreshing method and device
CN107357598A (en)*2016-05-092017-11-17中兴通讯股份有限公司One parameter configuration method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8645973B2 (en)*2006-09-222014-02-04Oracle International CorporationMobile applications

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
TW200513950A (en)*2003-10-072005-04-16Inventec CorpMethod for jointly controlling computer audio channel through intermediate layer
CN105302574A (en)*2015-11-202016-02-03深圳圣诺医疗设备有限公司Graphic interface operating system and implementation method thereof
CN105955777A (en)*2016-05-032016-09-21网易(杭州)网络有限公司User interface refreshing method and device
CN107357598A (en)*2016-05-092017-11-17中兴通讯股份有限公司One parameter configuration method and device

Also Published As

Publication numberPublication date
CN108228300A (en)2018-06-29

Similar Documents

PublicationPublication DateTitle
CN108228300B (en)Method and device for controlling real-time refreshing of content
CN108874289B (en)Application history record viewing method and device and electronic equipment
CN110515871B (en)Interrupt method, interrupt device, FPGA (field programmable Gate array) and storage medium
CN107506637B (en)Information display method and device, terminal and readable storage medium
KR20090024541A (en) Hyperlink selection method and mobile communication terminal using same
WO2020156236A1 (en)Associated information pushing method and apparatus, electronic device and storage medium
CN108073346A (en)A kind of record screen method, terminal and computer readable storage medium
CN107402804B (en) Background process control method, device, storage medium and electronic device
CN105677025A (en)Terminal application starting method and device, and terminal
KR20190047142A (en)Method and apparatus for setting background of ui control, and terminal
CN107480001A (en)System recovery method and device
CN113051493A (en)Application program display method and device, storage medium and terminal
EP3021250B1 (en)Electronic device and method for suggesting response manual in occurrence of denial
CN112579686A (en)Interaction method, interaction device, storage medium and electronic equipment
CN104679391A (en)Icon display method and device of smart watch
WO2024212949A1 (en)Search result display method and apparatus, computer device and storage medium
CN106909383A (en)The display methods and display device of application program
CN109358927B (en) Application program display method, device and terminal device
CN108664301B (en)Menu generation method, system and terminal equipment
US9043464B1 (en)Automatically grouping resources accessed by a user
CN110020336B (en)Method and apparatus for controlling mask layer
CN111813307B (en) Application display method, device and electronic device
CN106919597A (en)Information recommendation method and device
CN106095487B (en)Application program closing method and device
CN112328351A (en) Animation display method, animation display device and terminal device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20210316


[8]ページ先頭

©2009-2025 Movatter.jp