new CallbackCustom(thisContext, functionPointer, oUserObject, sCallbackUniqueId)
This subclass of Callback passes along a
user object with the callback. The userObject type is anything
decided by the function constructing this callback. To use this,
the function that is called back should expect to receive the
userObject and uniqueId as arguments.
Parameters:
Name | Type | Description |
---|---|---|
thisContext |
|
a reference to the instance of a class providing the callback method or null if the callback is a function |
functionPointer |
|
a pointer to a method of a class or a function |
oUserObject |
|
Any object decided by the function constructing this callback |
sCallbackUniqueId |
|
Optional unique callback ID, helpful for debugging queued callbacks |