NotificationActionHandler Interface
Implement this interface to execute an action on a custom notification.
-
NotificationActionHandler Example Implementation
This is an example implementation of the
Messaging.NotificationActionHandlerinterface.
The following are methods for NotificationActionHandler.
-
executeAction(actionableNotification)
Executes the actionable notification.
Executes the actionable notification.
public Messaging.ActionResult executeAction(Messaging.ActionableNotification actionableNotification)
-
actionableNotification:
Type: Messaging.ActionableNotification
An actionable custom notification.
Type: Messaging.ActionResult
This is an example implementation of the Messaging.NotificationActionHandler interface.
The following example tests the implementation: