Interface UserNotificationOperationBuilder.WithDuration<T>

All Known Subinterfaces:
UserNotificationOperationBuilder.Alert, UserNotificationOperationBuilder.Alert.Html, UserNotificationOperationBuilder.Alert.Text, UserNotificationOperationBuilder.Alert.WithMessage<T>, UserNotificationOperationBuilder.Banner, UserNotificationOperationBuilder.Banner.Text, UserNotificationOperationBuilder.Banner.WithMessage<T>, UserNotificationOperationBuilder.Growl, UserNotificationOperationBuilder.Growl.Html, UserNotificationOperationBuilder.Growl.Text, UserNotificationOperationBuilder.Growl.WithMessage<T>
Enclosing interface:
UserNotificationOperationBuilder

public static interface UserNotificationOperationBuilder.WithDuration<T>
This interface represents a specific builder to display a notification with a duration.
Since:
12.13
  • Method Summary

    Modifier and Type
    Method
    Description
    duration(Duration duration)
    Sets the duration to display the notification.
  • Method Details

    • duration

      T duration(Duration duration) throws ValidationException
      Sets the duration to display the notification. By default a notification has no duration and the agent has to close the notification manually.
      Parameters:
      duration - the duration to display the notification
      Returns:
      the specific UserNotificationOperationBuilder instance of type T
      Throws:
      ValidationException - if the duration is not valid
      Since:
      12.13