Interface ClickCallback.Options.Builder
- All Superinterfaces:
AbstractBuilder<ClickCallback.Options>
- Enclosing interface:
ClickCallback.Options
public static sealed interface ClickCallback.Options.Builder
extends AbstractBuilder<ClickCallback.Options>
A builder for callback options.
- Since:
- 4.13.0
-
Method Summary
Modifier and TypeMethodDescriptionlifetime(TemporalAmount duration) Set how long the callback should last from sending.uses(int useCount) Set the number of uses allowed for this callback.Methods inherited from interface AbstractBuilder
build
-
Method Details
-
uses
Set the number of uses allowed for this callback.- Parameters:
useCount- the number of allowed uses, orClickCallback.UNLIMITED_USES- Returns:
- this builder
- Since:
- 4.13.0
-
lifetime
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
-