# OHOS::Task ## **Overview** **Related Modules:** [Graphic](Graphic.md) **Description:** Represents the **[Task](OHOS-Task.md)** class of the graphics module. This class provides functions for setting the running period and time of a task. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Public Member Functions
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) |
|
SetLastRun (uint32_t lastRun) |
|
GetPeriod () const |
|
GetLastRun () const |
|
TaskExecute () |
|
Callback ()=0 |
|
Init () |
|
operator new (size_t size) |
|
operator delete (void *p) |