Package eltos.simpledialogfragment.input
Interface SimpleInputDialog.InputValidator
- Enclosing class:
- SimpleInputDialog
public static interface SimpleInputDialog.InputValidator
-
Method Summary
-
Method Details
-
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- Parameters:
dialogTag
- the tag of this fragmentinput
- the text entered by the userextras
- the extras passed withSimpleDialog.extra(Bundle)
- Returns:
- an error message to display or null if the input is valid
-