Schnittstelle SimpleInputDialog.InputValidator

Umschließende Klasse:
SimpleInputDialog

public static interface SimpleInputDialog.InputValidator
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    validate(String dialogTag, String input, 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.
  • 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 fragment
      input - the text entered by the user
      extras - the extras passed with SimpleDialog.extra(Bundle)
      Gibt zurück:
      an error message to display or null if the input is valid