Package eltos.simpledialogfragment.form
Schnittstelle SimpleFormDialog.InputValidator
- Umschließende Klasse:
SimpleFormDialog
public static interface SimpleFormDialog.InputValidator
-
Methodenübersicht
-
Methodendetails
-
validate
String validate(String dialogTag, String fieldKey, @Nullable String input, @NonNull android.os.Bundle extras) Let the hosting fragment or activity implement this interface to make custom validations forInput
fields. You may also useInput.validatePattern(java.lang.String, java.lang.String)
with a custom or predefined pattern. The method is called every time the user hits the positive button or next key.- Parameter:
dialogTag
- the tag of this fragmentfieldKey
- the key of the field as supplied when the correspondingInput
was created (seeInput.plain(String)
etc)input
- the text entered by the userextras
- the extras passed withSimpleDialog.extra(Bundle)
- Gibt zurück:
- the error message to display or null if the input is valid
-