OHOS::AbilityEventHandler

Overview

Related Modules:

AbilityKit

Description:

Declares functions for performing operations during inter-thread communication, including running and quitting the event loop of the current thread and posting tasks to an asynchronous thread.

Since:

1.0

Version:

1.0

Summary

Public Member Functions

Public Member Function Name Description
Run () void Starts running the event loop of the current thread.
PostTask (const Task &task) void Posts a task to an asynchronous thread.
PostQuit () void Quits the event loop of the current thread.

Static Public Member Functions

Static Public Member Function Name Description
GetCurrentHandler () static AbilityEventHandler * Obtains the event handler of the current thread.