Class UISearchTextField

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UIContentSizeCategoryAdjusting, UIContextMenuInteractionDelegate, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UIKeyInput, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITextDraggable, UITextDroppable, UITextInput, UITextInputTraits, UITextPasteConfigurationSupporting, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class UISearchTextField
extends UITextField
Since:
Available in iOS 13.0 and later.
  • Constructor Details

    • UISearchTextField

      public UISearchTextField()
    • UISearchTextField

      protected UISearchTextField​(NSObject.Handle h, long handle)
    • UISearchTextField

      protected UISearchTextField​(NSObject.SkipInit skipInit)
    • UISearchTextField

      public UISearchTextField​(CGRect frame)
    • UISearchTextField

      public UISearchTextField​(NSCoder coder)
    • UISearchTextField

      public UISearchTextField​(CGRect frame, UIAction primaryAction)
      Since:
      Available in iOS 14.0 and later.
  • Method Details

    • getTokens

      public NSArray<UISearchToken> getTokens()
    • setTokens

      public void setTokens​(NSArray<UISearchToken> v)
    • getTextualRange

      public UITextRange getTextualRange()
    • getTokenBackgroundColor

      public UIColor getTokenBackgroundColor()
    • setTokenBackgroundColor

      public void setTokenBackgroundColor​(UIColor v)
    • allowsDeletingTokens

      public boolean allowsDeletingTokens()
    • setAllowsDeletingTokens

      public void setAllowsDeletingTokens​(boolean v)
    • allowsCopyingTokens

      public boolean allowsCopyingTokens()
    • setAllowsCopyingTokens

      public void setAllowsCopyingTokens​(boolean v)
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • insertToken

      public void insertToken​(UISearchToken token, long tokenIndex)
    • removeTokenAtIndex

      public void removeTokenAtIndex​(long tokenIndex)
    • positionOfTokenAtIndex

      public UITextPosition positionOfTokenAtIndex​(long tokenIndex)
    • tokensInRange

      public NSArray<UISearchToken> tokensInRange​(UITextRange textRange)
    • replaceTextualPortionOfRange

      public void replaceTextualPortionOfRange​(UITextRange textRange, UISearchToken token, long tokenIndex)
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.