# OHOS::Animator ## **Overview** **Related Modules:** [Graphic](Graphic.md) **Description:** Represents an animator. This class is used to set the animator attributes, such as the duration, whether an animator is repeated, start and stop of an animator. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Types
Animator () |
A default constructor used to create an Animator instance. |
Animator (AnimatorCallback *callback, UIView *view, uint32_t time, bool repeat) |
A constructor used to create an Animator instance. |
~Animator () |
A destructor used to delete the Animator instance. |
Start () |
|
Stop () |
|
Pause () |
|
Resume () |
|
GetState () const |
|
SetState (uint8_t state) |
|
GetTime () const |
|
GetRunTime () const |
|
SetRunTime (uint32_t runTime) |
|
IsRepeat () const |
|
operator new (size_t size) |
|
operator delete (void *p) |