public interface UITextInputTraits
Controls features of text widgets (or other custom objects that might wish to respond to keyboard input).
| Modifier and Type | Method and Description |
|---|---|
default long |
autocapitalizationType()
default is UITextAutocapitalizationTypeSentences
|
default long |
autocorrectionType()
default is UITextAutocorrectionTypeDefault
|
default boolean |
enablesReturnKeyAutomatically()
default is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)
|
default boolean |
isSecureTextEntry()
default is NO
|
default long |
keyboardAppearance()
default is UIKeyboardAppearanceDefault
|
default long |
keyboardType()
default is UIKeyboardTypeDefault
|
default UITextInputPasswordRules |
passwordRules()
default is nil
|
default long |
returnKeyType()
default is UIReturnKeyDefault (See note under UIReturnKeyType enum)
|
default void |
setAutocapitalizationType(long value)
default is UITextAutocapitalizationTypeSentences
|
default void |
setAutocorrectionType(long value)
default is UITextAutocorrectionTypeDefault
|
default void |
setEnablesReturnKeyAutomatically(boolean value)
default is NO (when YES, will automatically disable return key when text widget has zero-length contents, and will automatically enable when text widget has non-zero-length contents)
|
default void |
setKeyboardAppearance(long value)
default is UIKeyboardAppearanceDefault
|
default void |
setKeyboardType(long value)
default is UIKeyboardTypeDefault
|
default void |
setPasswordRules(UITextInputPasswordRules value)
default is nil
|
default void |
setReturnKeyType(long value)
default is UIReturnKeyDefault (See note under UIReturnKeyType enum)
|
default void |
setSecureTextEntry(boolean value)
default is NO
|
default void |
setSmartDashesType(long value)
default is UITextSmartDashesTypeDefault;
|
default void |
setSmartInsertDeleteType(long value)
default is UITextSmartInsertDeleteTypeDefault;
|
default void |
setSmartQuotesType(long value)
default is UITextSmartQuotesTypeDefault;
|
default void |
setSpellCheckingType(long value)
default is UITextSpellCheckingTypeDefault;
|
default void |
setTextContentType(java.lang.String value)
default is nil
|
default long |
smartDashesType()
default is UITextSmartDashesTypeDefault;
|
default long |
smartInsertDeleteType()
default is UITextSmartInsertDeleteTypeDefault;
|
default long |
smartQuotesType()
default is UITextSmartQuotesTypeDefault;
|
default long |
spellCheckingType()
default is UITextSpellCheckingTypeDefault;
|
default java.lang.String |
textContentType()
default is nil
|
default long autocapitalizationType()
default long autocorrectionType()
default boolean enablesReturnKeyAutomatically()
default boolean isSecureTextEntry()
default void setSecureTextEntry(boolean value)
default long keyboardAppearance()
default long keyboardType()
default long returnKeyType()
default void setAutocapitalizationType(long value)
default void setAutocorrectionType(long value)
default void setEnablesReturnKeyAutomatically(boolean value)
default void setKeyboardAppearance(long value)
default void setKeyboardType(long value)
default void setReturnKeyType(long value)
default void setSpellCheckingType(long value)
default void setTextContentType(java.lang.String value)
default long spellCheckingType()
default java.lang.String textContentType()
default void setSmartDashesType(long value)
default void setSmartInsertDeleteType(long value)
default void setSmartQuotesType(long value)
default long smartDashesType()
default long smartInsertDeleteType()
default long smartQuotesType()
default UITextInputPasswordRules passwordRules()
default void setPasswordRules(UITextInputPasswordRules value)