Notifications

To send notifications, the Notification API can be accessed using the JSAPI.get().getNotificationAPI() function. It features the following functions:

  • sendInformation(String message)
  • sendWarning(String message)
  • sendError(String message)

These three functions open modal windows.

To send a notification to FlowerDocs, you can use the sendNotification(String message) function.

Example:

JSAPI.get().getNotificationAPI().sendError("An error has occurred");