NotificationHandler Class
Base class for all implementations of an Ipc notification response interface. This class is implemented on your frontend to supply methods to receive notifications from your backend.
Create a subclass to implement your Ipc response interface. Your class should be declared like this:
class MyNotificationHandler extends NotificationHandler implements MyNotifications
to ensure all method names and signatures are correct. Your methods cannot have a return value.
Then, call MyNotificationHandler.register
at startup to connect your class to your channel.
Extended by
Methods
Name | Description | |
---|---|---|
constructor(): NotificationHandler | ||
registerImpl(): RemoveFunction | ||
register(): RemoveFunction Static | Register this class as the handler for notifications on its channel. |
Properties
Name | Type | Description | |
---|---|---|---|
channelName Accessor Abstract ReadOnly | string | All subclasses must implement this method to specify their response channel name. |
Defined in
- core/frontend/src/IpcApp.ts Line 180
Last Updated: 17 December, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.