Interface SimpleInputDialog.InputValidator

Enclosing class:
SimpleInputDialog

public static interface SimpleInputDialog.InputValidator
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
  • 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 fragment
      input - the text entered by the user
      extras - the extras passed with SimpleDialog.extra(Bundle)
      Returns:
      an error message to display or null if the input is valid