The notification service that can be used to send notifications between different components in an app.
Subscribe method to subscribe to notifications and the
SendNotification method to send notifications.
IReactPropertyName notificationName, Object sender, Object data)
Sends the notification with
notificationNameis the name of the notification to send. It must not be null.
senderis the object that sends notification. It can be null.
datais the data associated with the notification. It can be null. Consider using
IReactPropertyBagfor sending semi-structured data. It can be created using the
Subscribes to a notification.
notificationNameis a non-null notification name that can belong to a specific namespace like any
dispatcheris used to call notification handlers. If it is null, then the handler is called synchronously.
handleris a delegate that can be implemented as a lambda to handle notifications. The method returns a
IReactNotificationSubscriptionthat must be kept alive while the subscription is active. The subscription is removed when the