| Modifier and Type | Method and Description |
|---|---|
| public IComEventCallbackCookie | Returns: - a cookie that can be used to detach (unadvise) the event callback listener throws COMException if an error occurs trying to set up the listener on the target COM object, see exception cause for details.- the COM interface that the listener will receive events from comEventCallbackInterface, IComEventCallbackListener - and object that will receive the callback events comEventCallbackListener)Set up the comEventCallbackListener to receive callback events from the target COM object |
| public void | unadvise(Class<?>
- the interface that is being listened to comEventCallbackInterface, final IComEventCallbackCookie - the cookie that was returned when advise was called cookie)Stop listening for callback events |
| advise | back to summary |
|---|---|
| public IComEventCallbackCookie advise(Class<?> comEventCallbackInterface, IComEventCallbackListener comEventCallbackListener) throws COMException Set up the comEventCallbackListener to receive callback events from the target COM object
| |
| unadvise | back to summary |
|---|---|
| public void unadvise(Class<?> comEventCallbackInterface, final IComEventCallbackCookie cookie) throws COMException Stop listening for callback events
| |