- Home /
Question by
Juniorklawa · Oct 23, 2017 at 12:01 AM ·
androidinputfield
InputText, done button question
How do i call a function/method when i press the done or the ok button? (the blue one)
inputtext.jpeg
(38.4 kB)
Comment
Answer by Hellium · Oct 23, 2017 at 07:14 AM
What have you tried so far? Have you checked the documentation?
Maybe you are looking for onValidateInput
public InputField mainInputField;
public void Start()
{
mainInputField.onValidateInput += OnInputValidated;
}
private void OnInputValidated(string input, int charIndex, char addedChar)
{
Debug.Log( input ) ;
}
Your answer
Follow this Question
Related Questions
Why Android device need to loose Inputfield focus to listen to others events ? 0 Answers
Set android:hardwareAccelerated="true" for input field on Android 0 Answers
InputField not triggering on screen keyboard in Android 0 Answers
On Android, when I touch an InputField, the keyboard doesn't show. 0 Answers