Class DynamicInputUtils

java.lang.Object
com.pranavpandey.android.dynamic.util.DynamicInputUtils

public class DynamicInputUtils extends Object
Helper class to perform input operations.
  • Constructor Details

    • DynamicInputUtils

      public DynamicInputUtils()
  • Method Details

    • setFilter

      public static void setFilter(@Nullable View view, @Nullable InputFilter filter)
      Set the input filter for the supplied view.
      Parameters:
      view - The view to be used.
      filter - The input filter to be set.
    • removeFilter

      public static void removeFilter(@Nullable View view, @Nullable InputFilter filter)
      Remove the input filter for the supplied view.
      Parameters:
      view - The view to be used.
      filter - The input filter to be removed.
    • setMaxLength

      public static void setMaxLength(@Nullable View view, int length)
      Set the maximum length input filter for the supplied view.
      Parameters:
      view - The view to be used.
      length - The maximum length to be set.
      See Also:
    • setAllCaps

      public static void setAllCaps(@Nullable View view, boolean allCaps)
      Set the all caps input filter for the supplied view.
      Parameters:
      view - The view to be used.
      allCaps - true to set all caps.
      See Also: