Simulating a Touch event

I have added a touch listener to an object which is already working in my app.  Is there an API that can simulate or trigger the touch event?  For example, write a code that will programmatically touch the object and consequently trigger the touch event to occur.  Thanks!

I don’t know why you need the touch, but can’t you just call a function instead?

function doSomething()    [your logic of the touch function] end doSomething();

Thanks, Ziad.Ali.  I just need to know what API to use in the function to trigger the touch event without actually touching the object.

I don’t know why you need the touch, but can’t you just call a function instead?

function doSomething()    [your logic of the touch function] end doSomething();

Thanks, Ziad.Ali.  I just need to know what API to use in the function to trigger the touch event without actually touching the object.