APIdia Launch Partner
Top Methods
com.badlogic.gdx.input

public Interface TextInputWrapper


Method Summary

Modifier and TypeMethod and Description
public int
getSelectionEnd()

This method will be queried for the initial text selection end.

public int
getSelectionStart()

This method will be queried for the initial text selection start.

public String
getText()

This method will be queried for the initial text.

public void
writeResults(String text, int selectionStart, int selectionEnd)

This is called, when text was retrieved from the native input.

Method Detail

getSelectionEndback to summary
public int getSelectionEnd()

This method will be queried for the initial text selection end. No guarantee of the calling thread is made. Should be consistent with the text returned by TextInputWrapper#getText()

getSelectionStartback to summary
public int getSelectionStart()

This method will be queried for the initial text selection start. No guarantee of the calling thread is made Should be consistent with the text returned by TextInputWrapper#getText()

getTextback to summary
public String getText()

This method will be queried for the initial text. No guarantee of the calling thread is made

writeResultsback to summary
public void writeResults(String text, int selectionStart, int selectionEnd)

This is called, when text was retrieved from the native input. Only use this to write back results. This will always be called on the main thread. For close logic use NativeInputConfiguration#setCloseCallback