Package apple.uikit

Class UISearchSuggestionItem

  • All Implemented Interfaces:
    NSObject, UISearchSuggestion

    public class UISearchSuggestionItem
    extends NSObject
    implements UISearchSuggestion
    A concrete container for search suggestion string and optional image and associated information for providing shortcuts in search experience on tvOS. API-Since: 16.0
    • Constructor Detail

      • UISearchSuggestionItem

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UISearchSuggestionItem allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • 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()
      • 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()
      • initWithLocalizedAttributedSuggestion

        public UISearchSuggestionItem initWithLocalizedAttributedSuggestion​(@NotNull
                                                                            @NotNull NSAttributedString suggestion)
        Initializers taking NSAttributedString instead of NSString for the suggestion API-Since: 16.0
      • initWithLocalizedAttributedSuggestionLocalizedDescription

        public UISearchSuggestionItem initWithLocalizedAttributedSuggestionLocalizedDescription​(@NotNull
                                                                                                @NotNull NSAttributedString suggestion,
                                                                                                @Nullable
                                                                                                @Nullable java.lang.String description)
        API-Since: 16.0
      • initWithLocalizedAttributedSuggestionLocalizedDescriptionIconImage

        public UISearchSuggestionItem initWithLocalizedAttributedSuggestionLocalizedDescriptionIconImage​(@NotNull
                                                                                                         @NotNull NSAttributedString suggestion,
                                                                                                         @Nullable
                                                                                                         @Nullable java.lang.String description,
                                                                                                         @Nullable
                                                                                                         @Nullable UIImage iconImage)
        API-Since: 16.0
      • initWithLocalizedSuggestion

        public UISearchSuggestionItem initWithLocalizedSuggestion​(@NotNull
                                                                  @NotNull java.lang.String suggestion)
        Initializes a search suggestion object with a specified search suggestion string.
      • initWithLocalizedSuggestionLocalizedDescription

        public UISearchSuggestionItem initWithLocalizedSuggestionLocalizedDescription​(@NotNull
                                                                                      @NotNull java.lang.String suggestion,
                                                                                      @Nullable
                                                                                      @Nullable java.lang.String description)
        Initializes a search suggestion object with a specified search suggestion string and a description string.
      • initWithLocalizedSuggestionLocalizedDescriptionIconImage

        public UISearchSuggestionItem initWithLocalizedSuggestionLocalizedDescriptionIconImage​(@NotNull
                                                                                               @NotNull java.lang.String suggestion,
                                                                                               @Nullable
                                                                                               @Nullable java.lang.String description,
                                                                                               @Nullable
                                                                                               @Nullable UIImage iconImage)
        Initializes a search suggestion object with a specified search suggestion string, a description string, and a search icon image.
      • 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)
      • localizedSuggestion

        @Nullable
        public @Nullable java.lang.String localizedSuggestion()
        Description copied from interface: UISearchSuggestion
        The localized suggestion that will be displayed as the search string
        Specified by:
        localizedSuggestion in interface UISearchSuggestion
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • suggestionWithLocalizedAttributedSuggestion

        @NotNull
        public static @NotNull UISearchSuggestionItem suggestionWithLocalizedAttributedSuggestion​(@NotNull
                                                                                                  @NotNull NSAttributedString suggestion)
        Factory methods taking NSAttributedString instead of NSString for the suggestion API-Since: 16.0
      • suggestionWithLocalizedAttributedSuggestionDescriptionString

        @NotNull
        public static @NotNull UISearchSuggestionItem suggestionWithLocalizedAttributedSuggestionDescriptionString​(@NotNull
                                                                                                                   @NotNull NSAttributedString suggestion,
                                                                                                                   @Nullable
                                                                                                                   @Nullable java.lang.String description)
        API-Since: 16.0
      • suggestionWithLocalizedAttributedSuggestionDescriptionStringIconImage

        @NotNull
        public static @NotNull UISearchSuggestionItem suggestionWithLocalizedAttributedSuggestionDescriptionStringIconImage​(@NotNull
                                                                                                                            @NotNull NSAttributedString suggestion,
                                                                                                                            @Nullable
                                                                                                                            @Nullable java.lang.String description,
                                                                                                                            @Nullable
                                                                                                                            @Nullable UIImage iconImage)
        API-Since: 16.0
      • suggestionWithLocalizedSuggestion

        @NotNull
        public static @NotNull UISearchSuggestionItem suggestionWithLocalizedSuggestion​(@NotNull
                                                                                        @NotNull java.lang.String suggestion)
        Returns a new search suggestion object with a specified suggestion string.
      • suggestionWithLocalizedSuggestionDescriptionString

        @NotNull
        public static @NotNull UISearchSuggestionItem suggestionWithLocalizedSuggestionDescriptionString​(@NotNull
                                                                                                         @NotNull java.lang.String suggestion,
                                                                                                         @Nullable
                                                                                                         @Nullable java.lang.String description)
        Returns a new search suggestion object with a specified suggestion string and a description string.
      • suggestionWithLocalizedSuggestionDescriptionStringIconImage

        @NotNull
        public static @NotNull UISearchSuggestionItem suggestionWithLocalizedSuggestionDescriptionStringIconImage​(@NotNull
                                                                                                                  @NotNull java.lang.String suggestion,
                                                                                                                  @Nullable
                                                                                                                  @Nullable java.lang.String description,
                                                                                                                  @Nullable
                                                                                                                  @Nullable UIImage iconImage)
        Returns a new search suggestion object with a specified suggestion string, description string, and a search icon image.
      • superclass_static

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

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.