Method Obtain
Obtain(Handler, int, object)
Obtain a message from the pool with pre specified properties.
Declaration
public static Message Obtain(Handler handler, int id, object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Handler | handler | The target. |
| int | id | The message ID. |
| object | obj | An arbitrary object. |
Returns
| Type | Description |
|---|---|
| Message | The message. |
Obtain(Handler, int, int, object)
Obtain a message from the pool with pre specified properties.
Declaration
public static Message Obtain(Handler handler, int id, int arg1, object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| Handler | handler | The target. |
| int | id | The message ID. |
| int | arg1 | An arbitrary integer value. |
| object | obj | An arbitrary object. |
Returns
| Type | Description |
|---|---|
| Message | The message. |