## **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
Init () override | |
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) | Removes the Animator instance from the AnimatorManager linked list. |
Callback () override | 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 () | A destructor used to delete the Task instance. |
SetPeriod (uint32_t period) | Sets the running period for this task. |
SetLastRun (uint32_t lastRun) | Sets the end time for this task. |
GetPeriod () const | Obtains the running period of this task. |
GetLastRun () const | Obtains the end time of this task. |
TaskExecute () | |
operator new (size_t size) | |
operator delete (void *p) | Overrides the delete function. |
## Static Public Member Functions
Static Public Member Function Name | |
---|---|
GetInstance () | static AnimatorManager * Obtains the AnimatorManager instance. |