Class Handler
Handler gives you the ability to send and receive Message objects.
When you create a new Handler it is bound to a Looper. It will deliver messages to that Looper's message queue and execute them.Inherited Members
Namespace: Unity.AppUI.Core
Assembly: solution.dll
Syntax
public class Handler
Constructors
Name | Description |
---|---|
Handler(Looper, Func<Message, bool>) | Construct an Handler instance using a provided Looper and a callback to handle received messages.. |
Methods
Name | Description |
---|---|
ObtainMessage(int, int, object) | Get a Message from the message pool. |
ObtainMessage(int, object) | Get a Message from the message pool. |
RemoveCallbacksAndMessages(object) | Remove any pending posts of callbacks and sent messages whose obj is token. If token is null, all callbacks and messages will be removed. |
SendMessage(Message) | Send a message to the Looper message queue. |
SendMessageDelayed(Message, int) | Send a message that will be enqueued into the Looper's message queue later. |