public interface IJCEventEmit
Implement this interface to handle CLR events fired on objects registered via
JCObject.RegisterEventListener(String, IJCEventEmit). When the CLR event
fires, the bridge invokes EventRaised(Object...) and sends the returned
value back to the CLR caller. Use this interface for CLR event delegates that have
a non-void return type.
For CLR events with a void return type, use IJCVoidEventEmit
instead.
See also: JCOReflector for usage examples.
| Modifier and Type | Method and Description |
|---|---|
Object |
EventRaised(Object... args)
Invoked by the bridge when the associated CLR event fires.
|
Object EventRaised(Object... args)
The returned value is marshalled back across the JNI boundary and delivered to the CLR event caller as the delegate return value. The CLR type of the return value must be compatible with the declared return type of the CLR delegate.