Package eltos.simpledialogfragment.input
Schnittstelle SimpleInputDialog.InputValidator
- Umschließende Klasse:
SimpleInputDialog
public static interface SimpleInputDialog.InputValidator
-
Methodenübersicht
-
Methodendetails
-
validate
@Nullable String validate(String dialogTag, @Nullable String input, @NonNull android.os.Bundle extras) Let the hosting fragment or activity implement this interface to control when a user can proceed or to display an error message on an invalid input. The method is called every time the user hits the positive button- Parameter:
dialogTag
- the tag of this fragmentinput
- the text entered by the userextras
- the extras passed withSimpleDialog.extra(Bundle)
- Gibt zurück:
- an error message to display or null if the input is valid
-