Package apple.uikit.protocol
Interface UITextInputTraits
-
- All Known Subinterfaces:
UIKeyInput,UITextDocumentProxy,UITextDraggable,UITextDroppable,UITextInput
- All Known Implementing Classes:
UISearchBar,UISearchTextField,UITextField,UITextView
public interface UITextInputTraitsUITextInputTraits Controls features of text widgets (or other custom objects that might wish to respond to keyboard input).
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default longautocapitalizationType()default is UITextAutocapitalizationTypeSentencesdefault longautocorrectionType()default is UITextAutocorrectionTypeDefaultdefault booleanenablesReturnKeyAutomatically()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 longinlinePredictionType()default is UITextInlinePredictionTypeDefault API-Since: 17.0default booleanisSecureTextEntry()default is NOdefault longkeyboardAppearance()default is UIKeyboardAppearanceDefaultdefault longkeyboardType()default is UIKeyboardTypeDefaultdefault @Nullable UITextInputPasswordRulespasswordRules()default is nil API-Since: 12.0default longreturnKeyType()default is UIReturnKeyDefault (See note under UIReturnKeyType enum)default voidsetAutocapitalizationType(long value)default is UITextAutocapitalizationTypeSentencesdefault voidsetAutocorrectionType(long value)default is UITextAutocorrectionTypeDefaultdefault voidsetEnablesReturnKeyAutomatically(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 voidsetInlinePredictionType(long value)default is UITextInlinePredictionTypeDefault API-Since: 17.0default voidsetKeyboardAppearance(long value)default is UIKeyboardAppearanceDefaultdefault voidsetKeyboardType(long value)default is UIKeyboardTypeDefaultdefault voidsetPasswordRules(@Nullable UITextInputPasswordRules value)default is nil API-Since: 12.0default voidsetReturnKeyType(long value)default is UIReturnKeyDefault (See note under UIReturnKeyType enum)default voidsetSecureTextEntry(boolean value)default is NOdefault voidsetSmartDashesType(long value)default is UITextSmartDashesTypeDefault; API-Since: 11.0default voidsetSmartInsertDeleteType(long value)default is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0default voidsetSmartQuotesType(long value)default is UITextSmartQuotesTypeDefault; API-Since: 11.0default voidsetSpellCheckingType(long value)default is UITextSpellCheckingTypeDefault; API-Since: 5.0default voidsetTextContentType(java.lang.String value)default is nil API-Since: 10.0default longsmartDashesType()default is UITextSmartDashesTypeDefault; API-Since: 11.0default longsmartInsertDeleteType()default is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0default longsmartQuotesType()default is UITextSmartQuotesTypeDefault; API-Since: 11.0default longspellCheckingType()default is UITextSpellCheckingTypeDefault; API-Since: 5.0default java.lang.StringtextContentType()default is nil API-Since: 10.0
-
-
-
Method Detail
-
autocapitalizationType
default long autocapitalizationType()
default is UITextAutocapitalizationTypeSentences
-
autocorrectionType
default long autocorrectionType()
default is UITextAutocorrectionTypeDefault
-
enablesReturnKeyAutomatically
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)
-
isSecureTextEntry
default boolean isSecureTextEntry()
default is NO
-
setSecureTextEntry
default void setSecureTextEntry(boolean value)
default is NO
-
keyboardAppearance
default long keyboardAppearance()
default is UIKeyboardAppearanceDefault
-
keyboardType
default long keyboardType()
default is UIKeyboardTypeDefault
-
returnKeyType
default long returnKeyType()
default is UIReturnKeyDefault (See note under UIReturnKeyType enum)
-
setAutocapitalizationType
default void setAutocapitalizationType(long value)
default is UITextAutocapitalizationTypeSentences
-
setAutocorrectionType
default void setAutocorrectionType(long value)
default is UITextAutocorrectionTypeDefault
-
setEnablesReturnKeyAutomatically
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)
-
setKeyboardAppearance
default void setKeyboardAppearance(long value)
default is UIKeyboardAppearanceDefault
-
setKeyboardType
default void setKeyboardType(long value)
default is UIKeyboardTypeDefault
-
setReturnKeyType
default void setReturnKeyType(long value)
default is UIReturnKeyDefault (See note under UIReturnKeyType enum)
-
setSpellCheckingType
default void setSpellCheckingType(long value)
default is UITextSpellCheckingTypeDefault; API-Since: 5.0
-
setTextContentType
default void setTextContentType(java.lang.String value)
default is nil API-Since: 10.0
-
spellCheckingType
default long spellCheckingType()
default is UITextSpellCheckingTypeDefault; API-Since: 5.0
-
textContentType
default java.lang.String textContentType()
default is nil API-Since: 10.0
-
setSmartDashesType
default void setSmartDashesType(long value)
default is UITextSmartDashesTypeDefault; API-Since: 11.0
-
setSmartInsertDeleteType
default void setSmartInsertDeleteType(long value)
default is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0
-
setSmartQuotesType
default void setSmartQuotesType(long value)
default is UITextSmartQuotesTypeDefault; API-Since: 11.0
-
smartDashesType
default long smartDashesType()
default is UITextSmartDashesTypeDefault; API-Since: 11.0
-
smartInsertDeleteType
default long smartInsertDeleteType()
default is UITextSmartInsertDeleteTypeDefault; API-Since: 11.0
-
smartQuotesType
default long smartQuotesType()
default is UITextSmartQuotesTypeDefault; API-Since: 11.0
-
passwordRules
@Nullable default @Nullable UITextInputPasswordRules passwordRules()
default is nil API-Since: 12.0
-
setPasswordRules
default void setPasswordRules(@Nullable @Nullable UITextInputPasswordRules value)default is nil API-Since: 12.0
-
inlinePredictionType
default long inlinePredictionType()
default is UITextInlinePredictionTypeDefault API-Since: 17.0
-
setInlinePredictionType
default void setInlinePredictionType(long value)
default is UITextInlinePredictionTypeDefault API-Since: 17.0
-
-