public static enum PinCodeConfig.PinCodeType extends java.lang.Enum<PinCodeConfig.PinCodeType> implements PinCodeConfig.Type
PinCodeConfig.Type
s that should cover most desired pin code configs: Alpha, Numeric, and
Alphanumberic.Enum Constant and Description |
---|
Alphabetic |
AlphaNumeric |
Numeric |
Modifier and Type | Method and Description |
---|---|
android.text.InputFilter |
getInputFilter()
Returns the
InputFilter for the EditText. |
int |
getInputType()
Returns the
InputType that should be applied to the EditText during pincode
entry. |
int |
getInputTypeStringId()
Returns the id for the string resource representing the input character type.
|
int |
getVisibleVariationType(boolean visible)
Returns the
InputType that should be applied to the EditText based on whether the
text is visible or not. |
static PinCodeConfig.PinCodeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PinCodeConfig.PinCodeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PinCodeConfig.PinCodeType Alphabetic
public static final PinCodeConfig.PinCodeType Numeric
public static final PinCodeConfig.PinCodeType AlphaNumeric
public static PinCodeConfig.PinCodeType[] values()
for (PinCodeConfig.PinCodeType c : PinCodeConfig.PinCodeType.values()) System.out.println(c);
public static PinCodeConfig.PinCodeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getInputType()
PinCodeConfig.Type
InputType
that should be applied to the EditText during pincode
entry.getInputType
in interface PinCodeConfig.Type
public int getInputTypeStringId()
PinCodeConfig.Type
This will be inserted into the instructions for creating a pincode. For example, if you return 'digit', it will tell the user to enter a '4-digit code'. If you return 'letter', it will say '4-letter code'.
getInputTypeStringId
in interface PinCodeConfig.Type
public android.text.InputFilter getInputFilter()
PinCodeConfig.Type
InputFilter
for the EditText. Use this to limit the types of
characters that may be used in the pin code type.getInputFilter
in interface PinCodeConfig.Type
public int getVisibleVariationType(boolean visible)
PinCodeConfig.Type
InputType
that should be applied to the EditText based on whether the
text is visible or not.getVisibleVariationType
in interface PinCodeConfig.Type