加入收藏
举报
02-14 20:02
#0
文件名称:
OHOS-AnimatorManager.md
所在目录:
Openharmony v1.0 / docs / api / api-SmartVision-Devices
文件大小:
12.15 KB
下载地址:
fenwii/OpenHarmony
   
免责声明:本网站仅提供指向 GitHub 上的文件的链接,所有文件的版权归原作者所有,本网站不对文件内容的合法性、准确性或安全性承担任何责任。
文本预览:
# OHOS::AnimatorManager
## **Overview**
**Related Modules:**
[Graphic](Graphic.md)
**Description:**
Represents the animator manager.
This is a singleton class used to manage **[Animator](OHOS-Animator.md)** instances.
**Since:**
1.0
**Version:**
1.0
## **Summary**
## Public Member Functions
















































Public Member Function Name


Description


Init () override


void 


Initializes this task.


Add (Animator *animator)


void 


Adds the Animator instance to the AnimatorManager linked list for management, so that the Run function of the Animator class is called once for each frame.


Remove (const Animator *animator)


void 


Removes the Animator instance from the AnimatorManager linked list.


Callback () override


void 


Called when this task is executed.


Task ()


 


A constructor used to create a Task instance.


Task (uint32_t period)


 


A constructor used to create a Task instance with the specified running period.


~Task ()


virtual 


A destructor used to delete the Task instance.


SetPeriod (uint32_t period)


void 


Sets the running period for this task.


SetLastRun (uint32_t lastRun)


void 


Sets the end time for this task.


GetPeriod () const


uint32_t 


Obtains the running period of this task.


GetLastRun () const


uint32_t 


Obtains the end time of this task.


TaskExecute ()


void 


Executes this task.


operator new (size_t size)


void * 


Overrides the new function.


operator delete (void *p)


void 


Overrides the delete function.



## Static Public Member Functions









Static Public Member Function Name


Description


GetInstance ()


static AnimatorManager


Obtains the AnimatorManager instance.


点赞 回复
回帖
支持markdown部分语法 ?