@FunctionalInterface public interface InputHandler
TextInputComponent.| Modifier and Type | Method and Description | 
|---|---|
static InputHandler | 
limitHandler(BiFunction<Interaction,String,String> inputHandler,
            int maxSize)
Creates an input handler that first applies the passed input handler and then substrings the input from the
 start if it is longer then the provided maxSize 
 | 
String | 
processInput(Interaction interaction,
            String input)
When input changes this method will be called with the new input and should output what the
 text input should actually be set to. 
 | 
String processInput(Interaction interaction, String input)
interaction - the interactioninput - the inputstatic InputHandler limitHandler(BiFunction<Interaction,String,String> inputHandler, int maxSize)
inputHandler - the input handlermaxSize - the max sizeCopyright © 2021. All rights reserved.