Package apple.uikit

Class UISearchTextField

    • Constructor Detail

      • UISearchTextField

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UISearchTextField allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • allowsCopyingTokens

        public boolean allowsCopyingTokens()
        Whether the user can copy tokens to the pasteboard or drag them out of the text field. To support copying tokens, this property must be true and the delegate must provide an item provider for the tokens to be copied. UISearchTextField always enables the Copy command if any plain text is selected, even if the selection also includes tokens and this property is false. Defaults to true.
      • allowsDeletingTokens

        public boolean allowsDeletingTokens()
        Whether the user can remove tokens through standard actions such as Delete and Cut. The application can always remove tokens programmatically. If this property is true, the application must be prepared not only for tokens to be removed, but also to be re-added through Undo. Defaults to true.
      • _appearance

        @NotNull
        public @NotNull UISearchTextField _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 UITextField
      • appearanceForTraitCollectionWhenContainedIn

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

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

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

        @NotNull
        @Deprecated
        public @NotNull UISearchTextField _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 UITextField
      • appearanceWhenContainedInInstancesOfClasses

        @NotNull
        public static @NotNull UISearchTextField 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()
      • insertTokenAtIndex

        public void insertTokenAtIndex​(@NotNull
                                       @NotNull UISearchToken token,
                                       long tokenIndex)
      • 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()
      • positionOfTokenAtIndex

        @NotNull
        public @NotNull UITextPosition positionOfTokenAtIndex​(long tokenIndex)
        Returns the position of the provided token. To select a token, assign a UITextRange containing its position to the selectedTextRange property.
      • removeTokenAtIndex

        public void removeTokenAtIndex​(long tokenIndex)
      • replaceTextualPortionOfRangeWithTokenAtIndex

        public void replaceTextualPortionOfRangeWithTokenAtIndex​(@NotNull
                                                                 @NotNull UITextRange textRange,
                                                                 @NotNull
                                                                 @NotNull UISearchToken token,
                                                                 long tokenIndex)
        Removes any text contained in the specified range, inserts the provided token at the specified index, and selects the newly-inserted token. Does not replace any tokens within the provided range. If the range intersects the marked text range, the marked text is committed. This method is essentially a convenience wrapper around the more fundamental `text`, `tokens`, and `selectedTextRange` properties, providing the selection behavior the user will expect. [@note] Because this method does not remove any tokens in the provided range, the caller can pass the field’s selectedTextRange to convert the selected portion of the text into a token without first having to trim the range.
      • 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)
      • setAllowsCopyingTokens

        public void setAllowsCopyingTokens​(boolean value)
        Whether the user can copy tokens to the pasteboard or drag them out of the text field. To support copying tokens, this property must be true and the delegate must provide an item provider for the tokens to be copied. UISearchTextField always enables the Copy command if any plain text is selected, even if the selection also includes tokens and this property is false. Defaults to true.
      • setAllowsDeletingTokens

        public void setAllowsDeletingTokens​(boolean value)
        Whether the user can remove tokens through standard actions such as Delete and Cut. The application can always remove tokens programmatically. If this property is true, the application must be prepared not only for tokens to be removed, but also to be re-added through Undo. Defaults to true.
      • 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)
      • setTokenBackgroundColor

        public void setTokenBackgroundColor​(UIColor value)
        Set this to nil for tokens to use their default color.
      • setTokens

        public void setTokens​(@NotNull
                              @NotNull NSArray<? extends UISearchToken> value)
        Simple access to the collection of tokens.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @NotNull
        public @NotNull UITextRange textualRange()
        The range that corresponds to the field’s text, exclusive of any tokens.
      • tokenBackgroundColor

        public UIColor tokenBackgroundColor()
        Set this to nil for tokens to use their default color.
      • tokens

        @NotNull
        public @NotNull NSArray<? extends UISearchToken> tokens()
        Simple access to the collection of tokens.
      • tokensInRange

        @NotNull
        public @NotNull NSArray<? extends UISearchToken> tokensInRange​(@NotNull
                                                                       @NotNull UITextRange textRange)
        Returns the tokens which are contained within the provided range. You can use this method to determine which tokens are included in the user’s current selection. The range may span more than one token or a mixture of tokens and text.
      • userInterfaceLayoutDirectionForSemanticContentAttribute

        public static long userInterfaceLayoutDirectionForSemanticContentAttribute​(long attribute)
      • userInterfaceLayoutDirectionForSemanticContentAttributeRelativeToLayoutDirection

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

        public static long version_static()
      • initWithFramePrimaryAction

        public UISearchTextField 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 UITextField
      • searchSuggestions

        @Nullable
        public @Nullable NSArray<?> searchSuggestions()
        An array of suggestions that will be presented as a menu beneath the search field when nonempty. Set to nil or @[] to dismiss the menu. The menu will also dismiss and the property will be set to nil when a suggestion is selected. The delegate is expected to execute any necessary updating when a suggestion is selected. API-Since: 16.0
      • setSearchSuggestions

        public void setSearchSuggestions​(@Nullable
                                         @Nullable NSArray<?> value)
        An array of suggestions that will be presented as a menu beneath the search field when nonempty. Set to nil or @[] to dismiss the menu. The menu will also dismiss and the property will be set to nil when a suggestion is selected. The delegate is expected to execute any necessary updating when a suggestion is selected. API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.