Interface ClickCallback.Options.Builder

All Superinterfaces:
AbstractBuilder<ClickCallback.Options>
Enclosing interface:
ClickCallback.Options

@NonExtendable public static interface ClickCallback.Options.Builder extends AbstractBuilder<ClickCallback.Options>
A builder for callback options.
Since:
4.13.0
  • Method Details

    • uses

      @NotNull @NotNull ClickCallback.Options.Builder uses(int useCount)
      Set the number of uses allowed for this callback.
      Parameters:
      useCount - the number of allowed uses, or ClickCallback.UNLIMITED_USES
      Returns:
      this builder
      Since:
      4.13.0
    • lifetime

      @NotNull @NotNull ClickCallback.Options.Builder lifetime(@NotNull @NotNull TemporalAmount duration)
      Set how long the callback should last from sending.
      Parameters:
      duration - the duration of this callback, from the time it is sent
      Returns:
      this builder
      Since:
      4.13.0