Package apple.uikit

Class UITextField

    • Constructor Detail

      • UITextField

        protected UITextField​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UITextField allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • appearance

        @NotNull
        public static @NotNull UITextField appearance()
      • appearanceForTraitCollection

        @NotNull
        public static @NotNull UITextField appearanceForTraitCollection​(@NotNull
                                                                        @NotNull UITraitCollection trait)
      • appearanceForTraitCollectionWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UITextField appearanceForTraitCollectionWhenContainedIn​(@NotNull
                                                                                       @NotNull UITraitCollection trait,
                                                                                       @Nullable
                                                                                       @Nullable UIAppearanceContainer ContainerClass,
                                                                                       java.lang.Object... varargs)
        Deprecated.
      • appearanceForTraitCollectionWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UITextField appearanceForTraitCollectionWhenContainedInInstancesOfClasses​(@NotNull
                                                                                                         @NotNull UITraitCollection trait,
                                                                                                         @NotNull
                                                                                                         @NotNull NSArray<?> containerTypes)
      • appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public static @NotNull UITextField appearanceWhenContainedIn​(@Nullable
                                                                     @Nullable UIAppearanceContainer ContainerClass,
                                                                     java.lang.Object... varargs)
        Deprecated.
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UITextField appearanceWhenContainedInInstancesOfClasses​(@NotNull
                                                                                       @NotNull NSArray<?> containerTypes)
      • areAnimationsEnabled

        public static boolean areAnimationsEnabled()
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • beginAnimationsContext

        @Deprecated
        public static void beginAnimationsContext​(@Nullable
                                                  @Nullable java.lang.String animationID,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr context)
        Deprecated.
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • clearTextInputContextIdentifier

        public static void clearTextInputContextIdentifier​(@NotNull
                                                           @NotNull java.lang.String identifier)
      • commitAnimations

        @Deprecated
        public static void commitAnimations()
        Deprecated.
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • inheritedAnimationDuration

        public static double inheritedAnimationDuration()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • layerClass

        @NotNull
        public static @NotNull org.moe.natj.objc.Class layerClass()
      • requiresConstraintBasedLayout

        public static boolean requiresConstraintBasedLayout()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setAnimationBeginsFromCurrentState

        @Deprecated
        public static void setAnimationBeginsFromCurrentState​(boolean fromCurrentState)
        Deprecated.
      • setAnimationCurve

        @Deprecated
        public static void setAnimationCurve​(long curve)
        Deprecated.
      • setAnimationDelay

        @Deprecated
        public static void setAnimationDelay​(double delay)
        Deprecated.
      • setAnimationDelegate

        @Deprecated
        public static void setAnimationDelegate​(@Nullable
                                                @Nullable java.lang.Object delegate)
        Deprecated.
      • setAnimationDidStopSelector

        @Deprecated
        public static void setAnimationDidStopSelector​(@Nullable
                                                       @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationDuration_static

        @Deprecated
        public static void setAnimationDuration_static​(double duration)
        Deprecated.
      • setAnimationRepeatAutoreverses

        @Deprecated
        public static void setAnimationRepeatAutoreverses​(boolean repeatAutoreverses)
        Deprecated.
      • setAnimationRepeatCount_static

        @Deprecated
        public static void setAnimationRepeatCount_static​(float repeatCount)
        Deprecated.
      • setAnimationStartDate

        @Deprecated
        public static void setAnimationStartDate​(@NotNull
                                                 @NotNull NSDate startDate)
        Deprecated.
      • setAnimationTransitionForViewCache

        @Deprecated
        public static void setAnimationTransitionForViewCache​(long transition,
                                                              @NotNull
                                                              @NotNull UIView view,
                                                              boolean cache)
        Deprecated.
      • setAnimationWillStartSelector

        @Deprecated
        public static void setAnimationWillStartSelector​(@Nullable
                                                         @Nullable org.moe.natj.objc.SEL selector)
        Deprecated.
      • setAnimationsEnabled

        public static void setAnimationsEnabled​(boolean enabled)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

        public static long userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection​(long semanticContentAttribute,
                                                                                                            long layoutDirection)
      • version_static

        public static long version_static()
      • adjustsFontForContentSizeCategory

        public boolean adjustsFontForContentSizeCategory()
        Description copied from interface: UIContentSizeCategoryAdjusting
        Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed. For this property to take effect, the element’s font must be one of the following: - a font vended using +preferredFontForTextStyle: or +preferredFontForTextStyle:compatibleWithTraitCollection: with a valid UIFontTextStyle - a font vended using - [UIFontMetrics scaledFontForFont:] or one of its variants
        Specified by:
        adjustsFontForContentSizeCategory in interface UIContentSizeCategoryAdjusting
      • adjustsFontSizeToFitWidth

        public boolean adjustsFontSizeToFitWidth()
        default is NO. if YES, text will shrink to minFontSize along baseline
      • allowsEditingTextAttributes

        public boolean allowsEditingTextAttributes()
        default is NO. allows editing text attributes with style operations and pasting rich text API-Since: 6.0
      • _appearance

        @NotNull
        public @NotNull UITextField _appearance()
        Description copied from interface: UIAppearance
        To customize the appearance of all instances of a class, send the relevant appearance modification messages to the appearance proxy for the class. For example, to modify the bar tint color for all UINavigationBar instances: [[UINavigationBar appearance] setBarTintColor:myColor]; Note for iOS7: On iOS7 the tintColor property has moved to UIView, and now has special inherited behavior described in UIView.h. This inherited behavior can conflict with the appearance proxy, and therefore tintColor is now disallowed with the appearance proxy.
        Specified by:
        _appearance in interface UIAppearance
        Overrides:
        _appearance in class UIControl
      • _appearanceWhenContainedIn

        @NotNull
        @Deprecated
        public @NotNull UITextField _appearanceWhenContainedIn​(@Nullable
                                                               @Nullable UIAppearanceContainer ContainerClass,
                                                               java.lang.Object... varargs)
        Deprecated.
        Description copied from interface: UIAppearance
        To customize the appearances for instances of a class contained within an instance of a container class, or instances in a hierarchy, use +appearanceWhenContainedInInstancesOfClasses: for the appropriate appearance proxy. For example: [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UISplitViewController class]]] setBarTintColor:myColor]; [[UINavigationBar appearanceWhenContainedInInstancesOfClasses:@[[UITabBarController class], [UISplitViewController class]]] setBarTintColor:myTabbedNavBarColor]; In any given view hierarchy the outermost appearance proxy wins. Specificity (depth of the chain) is the tie-breaker. In other words, the containment statement is treated as a partial ordering. Given a concrete ordering (actual subview hierarchy), we select the partial ordering that is the first unique match when reading the actual hierarchy from the window down. API-Since: 5.0 Deprecated-Since: 9.0
        Specified by:
        _appearanceWhenContainedIn in interface UIAppearance
        Overrides:
        _appearanceWhenContainedIn in class UIControl
      • attributedPlaceholder

        @Nullable
        public @Nullable NSAttributedString attributedPlaceholder()
        default is nil API-Since: 6.0
      • attributedText

        @Nullable
        public @Nullable NSAttributedString attributedText()
        default is nil API-Since: 6.0
      • background

        @Nullable
        public @Nullable UIImage background()
        default is nil. draw in border rect. image should be stretchable
      • beginFloatingCursorAtPoint

        public void beginFloatingCursorAtPoint​(CGPoint point)
        Description copied from interface: UITextInput
        The following three optional methods are for clients that wish to display a floating cursor to guide user manipulation of the selected text range via the system-provided keyboard. If a client does not implement these methods, user feedback will be limited to the outcome after setting the selected text range using positions resulting from hit testing. API-Since: 9.0
        Specified by:
        beginFloatingCursorAtPoint in interface UITextInput
      • borderRectForBounds

        public CGRect borderRectForBounds​(CGRect bounds)
        drawing and positioning overrides
      • borderStyle

        public long borderStyle()
        default is UITextBorderStyleNone. If set to UITextBorderStyleRoundedRect, custom background images are ignored.
      • clearButtonMode

        public long clearButtonMode()
        sets when the clear button shows up. default is UITextFieldViewModeNever
      • clearButtonRectForBounds

        public CGRect clearButtonRectForBounds​(CGRect bounds)
      • clearsOnBeginEditing

        public boolean clearsOnBeginEditing()
        default is NO which moves cursor to location clicked. if YES, all text cleared
      • clearsOnInsertion

        public boolean clearsOnInsertion()
        defaults to NO. if YES, the selection UI is hidden, and inserting text will replace the contents of the field. changing the selection will automatically set this to NO. API-Since: 6.0
      • defaultTextAttributes

        @NotNull
        public @NotNull NSDictionary<java.lang.String,​?> defaultTextAttributes()
        applies attributes to the full range of text. Unset attributes act like default values. API-Since: 7.0
      • delegate

        @Nullable
        public @Nullable UITextFieldDelegate delegate()
        default is nil. weak reference
      • dictationRecordingDidEnd

        public void dictationRecordingDidEnd()
        Description copied from interface: UITextInput
        These are optional methods for clients that wish to know when there are pending dictation results.
        Specified by:
        dictationRecordingDidEnd in interface UITextInput
      • disabledBackground

        @Nullable
        public @Nullable UIImage disabledBackground()
        default is nil. ignored if background not set. image should be stretchable
      • drawPlaceholderInRect

        public void drawPlaceholderInRect​(CGRect rect)
      • drawTextInRect

        @Deprecated
        public void drawTextInRect​(CGRect rect)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 15.0 Deprecated-Message: This method is no longer called.
      • editingRectForBounds

        public CGRect editingRectForBounds​(CGRect bounds)
      • enablesReturnKeyAutomatically

        public boolean enablesReturnKeyAutomatically()
        Description copied from interface: UITextInputTraits
        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)
        Specified by:
        enablesReturnKeyAutomatically in interface UITextInputTraits
      • font

        @Nullable
        public @Nullable UIFont font()
        default is nil. use system font 12 pt
      • inputDelegate

        @Nullable
        public @Nullable UITextInputDelegate inputDelegate()
        Description copied from interface: UITextInput
        A system-provided input delegate is assigned when the system is interested in input changes.
        Specified by:
        inputDelegate in interface UITextInput
      • inputView

        @Nullable
        public @Nullable UIView inputView()
        Presented when object becomes first responder. If set to nil, reverts to following responder chain. If set while first responder, will not take effect until reloadInputViews is called.
        Overrides:
        inputView in class UIResponder
      • insertDictationResult

        public void insertDictationResult​(@NotNull
                                          @NotNull NSArray<? extends UIDictationPhrase> dictationResult)
        Description copied from interface: UITextInput
        This is an optional method for clients that wish to support dictation phrase alternatives. If they do not implement this method, dictation will just insert the most likely interpretation of what was spoken via -insertText:. dictationResult is an array of UIDictationPhrases.
        Specified by:
        insertDictationResult in interface UITextInput
      • insertDictationResultPlaceholder

        @NotNull
        public @NotNull java.lang.Object insertDictationResultPlaceholder()
        Description copied from interface: UITextInput
        The following three optional methods are for clients that wish to support a placeholder for pending dictation results. -insertDictationPlaceholder must return a reference to the placeholder. This reference will be used to identify the placeholder by the other methods (there may be more than one placeholder).
        Specified by:
        insertDictationResultPlaceholder in interface UITextInput
      • insertText

        public void insertText​(@NotNull
                               @NotNull java.lang.String text)
        Specified by:
        insertText in interface UIKeyInput
      • isEditing

        public boolean isEditing()
      • leftView

        @Nullable
        public @Nullable UIView leftView()
        e.g. magnifying glass
      • leftViewMode

        public long leftViewMode()
        sets when the left view shows up. default is UITextFieldViewModeNever
      • leftViewRectForBounds

        public CGRect leftViewRectForBounds​(CGRect bounds)
      • markedTextStyle

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> markedTextStyle()
        Description copied from interface: UITextInput
        Describes how the marked text should be drawn.
        Specified by:
        markedTextStyle in interface UITextInput
      • minimumFontSize

        public double minimumFontSize()
        default is 0.0. actual min may be pinned to something readable. used if adjustsFontSizeToFitWidth is YES
      • placeholder

        @Nullable
        public @Nullable java.lang.String placeholder()
        default is nil. string is drawn 70% gray
      • placeholderRectForBounds

        public CGRect placeholderRectForBounds​(CGRect bounds)
      • positionWithinRangeAtCharacterOffset

        @Nullable
        public @Nullable UITextPosition positionWithinRangeAtCharacterOffset​(@NotNull
                                                                             @NotNull UITextRange range,
                                                                             long offset)
        Description copied from interface: UITextInput
        To be implemented if there is not a one-to-one correspondence between text positions within range and character offsets into the associated string.
        Specified by:
        positionWithinRangeAtCharacterOffset in interface UITextInput
      • removeDictationResultPlaceholderWillInsertResult

        public void removeDictationResultPlaceholderWillInsertResult​(@NotNull
                                                                     @NotNull java.lang.Object placeholder,
                                                                     boolean willInsertResult)
        Description copied from interface: UITextInput
        willInsertResult will be NO if the recognition failed.
        Specified by:
        removeDictationResultPlaceholderWillInsertResult in interface UITextInput
      • rightView

        @Nullable
        public @Nullable UIView rightView()
        e.g. bookmarks button
      • rightViewMode

        public long rightViewMode()
        sets when the right view shows up. default is UITextFieldViewModeNever
      • rightViewRectForBounds

        public CGRect rightViewRectForBounds​(CGRect bounds)
      • selectedTextRange

        @Nullable
        public @Nullable UITextRange selectedTextRange()
        Description copied from interface: UITextInput
        Text may have a selection, either zero-length (a caret) or ranged. Editing operations are always performed on the text from this selection. nil corresponds to no selection.
        Specified by:
        selectedTextRange in interface UITextInput
      • selectionAffinity

        public long selectionAffinity()
        Description copied from interface: UITextInput
        Selection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.
        Specified by:
        selectionAffinity in interface UITextInput
      • setAdjustsFontForContentSizeCategory

        public void setAdjustsFontForContentSizeCategory​(boolean value)
        Description copied from interface: UIContentSizeCategoryAdjusting
        Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed. For this property to take effect, the element’s font must be one of the following: - a font vended using +preferredFontForTextStyle: or +preferredFontForTextStyle:compatibleWithTraitCollection: with a valid UIFontTextStyle - a font vended using - [UIFontMetrics scaledFontForFont:] or one of its variants
        Specified by:
        setAdjustsFontForContentSizeCategory in interface UIContentSizeCategoryAdjusting
      • setAdjustsFontSizeToFitWidth

        public void setAdjustsFontSizeToFitWidth​(boolean value)
        default is NO. if YES, text will shrink to minFontSize along baseline
      • setAllowsEditingTextAttributes

        public void setAllowsEditingTextAttributes​(boolean value)
        default is NO. allows editing text attributes with style operations and pasting rich text API-Since: 6.0
      • setAttributedPlaceholder

        public void setAttributedPlaceholder​(@Nullable
                                             @Nullable NSAttributedString value)
        default is nil API-Since: 6.0
      • setAttributedText

        public void setAttributedText​(@Nullable
                                      @Nullable NSAttributedString value)
        default is nil API-Since: 6.0
      • setBackground

        public void setBackground​(@Nullable
                                  @Nullable UIImage value)
        default is nil. draw in border rect. image should be stretchable
      • setBorderStyle

        public void setBorderStyle​(long value)
        default is UITextBorderStyleNone. If set to UITextBorderStyleRoundedRect, custom background images are ignored.
      • setClearButtonMode

        public void setClearButtonMode​(long value)
        sets when the clear button shows up. default is UITextFieldViewModeNever
      • setClearsOnBeginEditing

        public void setClearsOnBeginEditing​(boolean value)
        default is NO which moves cursor to location clicked. if YES, all text cleared
      • setClearsOnInsertion

        public void setClearsOnInsertion​(boolean value)
        defaults to NO. if YES, the selection UI is hidden, and inserting text will replace the contents of the field. changing the selection will automatically set this to NO. API-Since: 6.0
      • setDefaultTextAttributes

        public void setDefaultTextAttributes​(@NotNull
                                             @NotNull NSDictionary<java.lang.String,​?> value)
        applies attributes to the full range of text. Unset attributes act like default values. API-Since: 7.0
      • setDelegate_unsafe

        public void setDelegate_unsafe​(@Nullable
                                       @Nullable UITextFieldDelegate value)
        default is nil. weak reference
      • setDelegate

        public void setDelegate​(@Nullable
                                @Nullable UITextFieldDelegate value)
        default is nil. weak reference
      • setDisabledBackground

        public void setDisabledBackground​(@Nullable
                                          @Nullable UIImage value)
        default is nil. ignored if background not set. image should be stretchable
      • setEnablesReturnKeyAutomatically

        public void setEnablesReturnKeyAutomatically​(boolean value)
        Description copied from interface: UITextInputTraits
        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)
        Specified by:
        setEnablesReturnKeyAutomatically in interface UITextInputTraits
      • setFont

        public void setFont​(@Nullable
                            @Nullable UIFont value)
        default is nil. use system font 12 pt
      • setInputAccessoryView

        public void setInputAccessoryView​(@Nullable
                                          @Nullable UIView value)
      • setInputDelegate_unsafe

        public void setInputDelegate_unsafe​(@Nullable
                                            @Nullable UITextInputDelegate value)
        Description copied from interface: UITextInput
        A system-provided input delegate is assigned when the system is interested in input changes.
        Specified by:
        setInputDelegate_unsafe in interface UITextInput
      • setInputDelegate

        public void setInputDelegate​(@Nullable
                                     @Nullable UITextInputDelegate value)
      • setInputView

        public void setInputView​(@Nullable
                                 @Nullable UIView value)
        Presented when object becomes first responder. If set to nil, reverts to following responder chain. If set while first responder, will not take effect until reloadInputViews is called.
      • setLeftView

        public void setLeftView​(@Nullable
                                @Nullable UIView value)
        e.g. magnifying glass
      • setLeftViewMode

        public void setLeftViewMode​(long value)
        sets when the left view shows up. default is UITextFieldViewModeNever
      • setMarkedTextSelectedRange

        public void setMarkedTextSelectedRange​(@Nullable
                                               @Nullable java.lang.String markedText,
                                               NSRange selectedRange)
        Description copied from interface: UITextInput
        selectedRange is a range within the markedText
        Specified by:
        setMarkedTextSelectedRange in interface UITextInput
      • setMarkedTextStyle

        public void setMarkedTextStyle​(@Nullable
                                       @Nullable NSDictionary<java.lang.String,​?> value)
        Description copied from interface: UITextInput
        Describes how the marked text should be drawn.
        Specified by:
        setMarkedTextStyle in interface UITextInput
      • setMinimumFontSize

        public void setMinimumFontSize​(double value)
        default is 0.0. actual min may be pinned to something readable. used if adjustsFontSizeToFitWidth is YES
      • setPlaceholder

        public void setPlaceholder​(@Nullable
                                   @Nullable java.lang.String value)
        default is nil. string is drawn 70% gray
      • setReturnKeyType

        public void setReturnKeyType​(long value)
        Description copied from interface: UITextInputTraits
        default is UIReturnKeyDefault (See note under UIReturnKeyType enum)
        Specified by:
        setReturnKeyType in interface UITextInputTraits
      • setRightView

        public void setRightView​(@Nullable
                                 @Nullable UIView value)
        e.g. bookmarks button
      • setRightViewMode

        public void setRightViewMode​(long value)
        sets when the right view shows up. default is UITextFieldViewModeNever
      • setSelectedTextRange

        public void setSelectedTextRange​(@Nullable
                                         @Nullable UITextRange value)
        Description copied from interface: UITextInput
        Text may have a selection, either zero-length (a caret) or ranged. Editing operations are always performed on the text from this selection. nil corresponds to no selection.
        Specified by:
        setSelectedTextRange in interface UITextInput
      • setSelectionAffinity

        public void setSelectionAffinity​(long value)
        Description copied from interface: UITextInput
        Selection affinity determines whether, for example, the insertion point appears after the last character on a line or before the first character on the following line in cases where text wraps across line boundaries.
        Specified by:
        setSelectionAffinity in interface UITextInput
      • setText

        public void setText​(@Nullable
                            @Nullable java.lang.String value)
        default is nil
      • setTextAlignment

        public void setTextAlignment​(long value)
        default is NSLeftTextAlignment
      • setTextColor

        public void setTextColor​(@Nullable
                                 @Nullable UIColor value)
        default is nil. use opaque black
      • setTypingAttributes

        public void setTypingAttributes​(@Nullable
                                        @Nullable NSDictionary<java.lang.String,​?> value)
        automatically resets when the selection changes API-Since: 6.0
      • text

        @Nullable
        public @Nullable java.lang.String text()
        default is nil
      • textAlignment

        public long textAlignment()
        default is NSLeftTextAlignment
      • textColor

        @Nullable
        public @Nullable UIColor textColor()
        default is nil. use opaque black
      • textInRange

        @Nullable
        public @Nullable java.lang.String textInRange​(@NotNull
                                                      @NotNull UITextRange range)
        Description copied from interface: UITextInput
        Methods for manipulating text.
        Specified by:
        textInRange in interface UITextInput
      • textInputView

        @NotNull
        public @NotNull UIView textInputView()
        Description copied from interface: UITextInput
        An affiliated view that provides a coordinate system for all geometric values in this protocol. If unimplemented, the first view in the responder chain will be selected.
        Specified by:
        textInputView in interface UITextInput
      • textRectForBounds

        public CGRect textRectForBounds​(CGRect bounds)
      • textStylingAtPositionInDirection

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> textStylingAtPositionInDirection​(@NotNull
                                                                                                 @NotNull UITextPosition position,
                                                                                                 long direction)
        Description copied from interface: UITextInput
        Text styling information can affect, for example, the appearance of a correction rect. Returns a dictionary containing NSAttributedString keys.
        Specified by:
        textStylingAtPositionInDirection in interface UITextInput
      • tokenizer

        @NotNull
        public @NotNull UITextInputTokenizer tokenizer()
        Description copied from interface: UITextInput
        A tokenizer must be provided to inform the text input system about text units of varying granularity.
        Specified by:
        tokenizer in interface UITextInput
      • typingAttributes

        @Nullable
        public @Nullable NSDictionary<java.lang.String,​?> typingAttributes()
        automatically resets when the selection changes API-Since: 6.0
      • isTextDragActive

        public boolean isTextDragActive()
        Description copied from interface: UITextDraggable
        Returns whether this control currently has at least one active drag session.
        Specified by:
        isTextDragActive in interface UITextDraggable
      • isTextDropActive

        public boolean isTextDropActive()
        Description copied from interface: UITextDroppable
        Returns whether this control currently has at least one active drag session.
        Specified by:
        isTextDropActive in interface UITextDroppable
      • setPasteDelegate

        public void setPasteDelegate​(@Nullable
                                     @Nullable UITextPasteDelegate value)
      • setTextDragDelegate

        public void setTextDragDelegate​(@Nullable
                                        @Nullable UITextDragDelegate value)
      • setTextDropDelegate

        public void setTextDropDelegate​(@Nullable
                                        @Nullable UITextDropDelegate value)
      • textDragInteraction

        @Nullable
        public @Nullable UIDragInteraction textDragInteraction()
        Description copied from interface: UITextDraggable
        The text drag interaction that UIKit installs on the text control. Use this to explicitly disable drag interactions on system text controls, if desired.
        Specified by:
        textDragInteraction in interface UITextDraggable
      • textDropInteraction

        @Nullable
        public @Nullable UIDropInteraction textDropInteraction()
        Description copied from interface: UITextDroppable
        The text drop interaction that UIKit installs on the text control. Use this to explicitly disable drop interactions on system text controls, if desired.
        Specified by:
        textDropInteraction in interface UITextDroppable
      • insertTextAlternativesStyle

        public void insertTextAlternativesStyle​(@NotNull
                                                @NotNull java.lang.String text,
                                                @NotNull
                                                @NotNull NSArray<java.lang.String> alternatives,
                                                long style)
        Description copied from interface: UITextInput
        This is an optional method for clients that wish to support text phrase alternatives. If they do not implement this method, the text will be inserted by -insertText: without the phase alternatives.
        Specified by:
        insertTextAlternativesStyle in interface UITextInput
      • insertTextPlaceholderWithSize

        @NotNull
        public @NotNull UITextPlaceholder insertTextPlaceholderWithSize​(CGSize size)
        Description copied from interface: UITextInput
        Insert a placeholder If `size.height` is <= 0, then the placeholder is inline and line height. If `size.height` is > 0, then the placeholder is treated as a paragraph of height `size.height`.
        Specified by:
        insertTextPlaceholderWithSize in interface UITextInput
      • initWithFramePrimaryAction

        public UITextField initWithFramePrimaryAction​(CGRect frame,
                                                      @Nullable
                                                      @Nullable UIAction primaryAction)
        Description copied from class: UIControl
        Initializes the control and adds primaryAction for the UIControlEventPrimaryActionTriggered control event. Subclasses of UIControl may alter or add behaviors around the usage of primaryAction, see subclass documentation of this initializer for additional information. API-Since: 14.0
        Overrides:
        initWithFramePrimaryAction in class UIControl
      • interactionState

        @NotNull
        public @NotNull java.lang.Object interactionState()
        Note that the interaction state of a UITextField does _not_ encode the textual content of the field. It should be saved separately, and restored _before_ the interaction state. Currently, this encodes selection (and/or cursor position), and first responder status. The object returned here will be a plist type, so can e.g. be stored in an NSUserActivity's userInfo dictionary. API-Since: 15.0
      • setInteractionState

        public void setInteractionState​(@NotNull
                                        @NotNull java.lang.Object value)
        Note that the interaction state of a UITextField does _not_ encode the textual content of the field. It should be saved separately, and restored _before_ the interaction state. Currently, this encodes selection (and/or cursor position), and first responder status. The object returned here will be a plist type, so can e.g. be stored in an NSUserActivity's userInfo dictionary. API-Since: 15.0
      • editMenuForTextRangeSuggestedActions

        @Nullable
        public @Nullable UIMenu editMenuForTextRangeSuggestedActions​(@NotNull
                                                                     @NotNull UITextRange textRange,
                                                                     @NotNull
                                                                     @NotNull NSArray<? extends UIMenuElement> suggestedActions)
        Description copied from interface: UITextInput
        Called when the text input is preparing an edit menu presentation for the specified text range.
        Specified by:
        editMenuForTextRangeSuggestedActions in interface UITextInput
        Parameters:
        textRange - The text range for which the menu is presented for.
        suggestedActions - The actions and commands that the system suggests.
        Returns:
        Return a UIMenu describing the desired menu hierarchy. Return @c nil to present the default system menu. API-Since: 16.0
      • setSizingRule

        public void setSizingRule​(long value)
        Description copied from interface: UILetterformAwareAdjusting
        `sizingRule` defaults to `UILetterformAwareSizingRuleTypographic` and determines what rule is used during the calculation of `-sizeThatFits:` and `-intrinsicContentSize`
        Specified by:
        setSizingRule in interface UILetterformAwareAdjusting
      • sizingRule

        public long sizingRule()
        Description copied from interface: UILetterformAwareAdjusting
        `sizingRule` defaults to `UILetterformAwareSizingRuleTypographic` and determines what rule is used during the calculation of `-sizeThatFits:` and `-intrinsicContentSize`
        Specified by:
        sizingRule in interface UILetterformAwareAdjusting
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.