Heart rate component refreshing control method and device and computer readable storage medium
A control method and heart rate technology, applied in program control design, computing, program control devices, etc., can solve the problems of unresponsive heart rate widgets and poor user experience, achieve an efficient refresh control scheme, and extend the refresh interval. , the effect of reducing the number of rounds of the cycle
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0071] image 3 It is a flow chart of the first embodiment of the heart rate component refresh control method of the present invention. A heart rate component refresh control method, the method comprising:
[0072] S1. When the heart rate component on the desktop receives the broadcast sent by the heart rate activity component, acquire the layout type of the heart rate component, and determine whether the refresh type of the notification component is the completion of the heart rate detection or the change of the desktop layout.
[0073] S2. When the refresh type of the notification component is the completion of heart rate detection, reset the layout variable of the heart rate component, initialize the heart rate component, and edit the animation picture of the heart rate component according to the preset animation rounds to refresh.
[0074] S3. When the refresh type of the notification component is desktop layout change, reset the layout variable, call component update to...
Embodiment 2
[0079] Figure 4 It is a flow chart of the second embodiment of the heart rate component refresh control method of the present invention. Based on the above embodiment, when the heart rate component on the desktop receives the broadcast sent by the heart rate activity component, acquire the layout type of the heart rate component, and determine The type of notification component refresh is the completion of the heart rate detection, or the change of the desktop layout, including:
[0080] S11. Acquire the layout type when the heart rate component receives the broadcast sent by the heart rate activity component.
[0081] S12. Assign the layout file corresponding to the layout type to the layout ID.
[0082] Optionally, in this embodiment, the broadcast sent by the heart rate Activity is received in the onReceive() of heartWidget; the layout type of the heart rate widget is obtained by using Settings.Global.getString; what kind of layout is judged by this type (4 *5, 4*6, 5*5,...
Embodiment 3
[0085] Figure 5 It is a flow chart of the third embodiment of the heart rate component refresh control method of the present invention. Based on the above embodiment, when the heart rate component on the desktop receives the broadcast sent by the heart rate activity component, acquire the layout type of the heart rate component, and determine The refresh type of the notification component is the completion of the heart rate detection, or the change of the desktop layout, and also includes:
[0086] S13. Judging whether the notification component is refreshed when the heart rate detection is completed according to a preset specific value.
[0087] S14. When the notification component is not refreshed when the heart rate detection is completed, it is determined whether the notification component is refreshed when the desktop layout is changed.
[0088] Optionally, in this embodiment, determine the refresh type: obtain a specific value through getSharedPreference to determine w...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com