Events
In addition to intent and context events, the FDC3 API and PrivateChannel API may be used to listen for other types of events via their addEventListener() functions.
ApiEvent
Type defining a basic event object that may be emitted by an FDC3 API interface such as DesktopAgent or PrivateChannel. There are more specific event types defined for each interface.
- TypeScript/JavaScript
- .NET
interface ApiEvent {
readonly type: string;
readonly details: any;
}
Not implemented, as ApiEvent and Fdc3Event definitions are the same, given .NET can not restrict on a string enum. Use IFdc3Event instead
See also:
EventHandler
- TypeScript/JavaScript
- .NET
type EventHandler = (event: ApiEvent) => void;
public delegate void Fdc3EventHandler(IFdc3Event fdc3Event);
Describes a callback that handles non-context and non-intent events. Provides the details of the event.
Used when attaching listeners to events.
See also: