Method ObtainMessage
ObtainMessage(int, object)
Get a Message from the message pool.
Declaration
public Message ObtainMessage(int id, object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The message ID |
| object | obj | An arbitrary object that will be passed with the message. |
Returns
| Type | Description |
|---|---|
| Message | A Message instance. |
ObtainMessage(int, int, object)
Get a Message from the message pool.
Declaration
public Message ObtainMessage(int id, int arg1, object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The message ID |
| int | arg1 | An arbitrary integer value that will be passed with the message. |
| object | obj | An arbitrary object that will be passed with the message. |
Returns
| Type | Description |
|---|---|
| Message | A Message instance. |