Class CSSearchQuery

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    CSUserQuery

    public class CSSearchQuery
    extends NSObject
    API-Since: 10.0
    • Constructor Detail

      • CSSearchQuery

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CSSearchQuery 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()
      • 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)
      • 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)
      • superclass_static

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

        public static long version_static()
      • cancel

        public void cancel()
      • foundItemCount

        public long foundItemCount()
        The query will update the count before each foundItemsHandler invocation to reflect the number of items found so far; if foundItemsHandler is nil then the count will contain the total number of found items when the query completes.
      • foundItemsHandler

        @Nullable
        public @Nullable CSSearchQuery.Block_foundItemsHandler_ret foundItemsHandler()
        The foundItemsHandler will be invoked repeatedly with a new batch of searchable items. The query serializes all the foundItemsHandler invocations.
      • initWithQueryStringAttributes

        public CSSearchQuery initWithQueryStringAttributes​(@NotNull
                                                           @NotNull java.lang.String queryString,
                                                           @Nullable
                                                           @Nullable NSArray<java.lang.String> attributes)
        queryString: The query string (e.g., 'contentType == "public.email-message" && subject != "Re:*"') attributes: The attributes to be fetched for the searchable items
      • isCancelled

        public boolean isCancelled()
      • protectionClasses

        @NotNull
        public @NotNull NSArray<java.lang.String> protectionClasses()
        An array of NSFileProtectionComplete, NSFileProtectionCompleteUnlessOpen, or NSFileProtectionCompleteUntilFirstUserAuthentication. By default the data protection will be read from the "com.apple.developer.default-data-protection" entitlement if any or NSFileProtectionCompleteUntilFirstUserAuthentication will be used otherwise.
      • setFoundItemsHandler

        public void setFoundItemsHandler​(@Nullable
                                         @Nullable CSSearchQuery.Block_setFoundItemsHandler value)
        The foundItemsHandler will be invoked repeatedly with a new batch of searchable items. The query serializes all the foundItemsHandler invocations.
      • setProtectionClasses

        public void setProtectionClasses​(@NotNull
                                         @NotNull NSArray<java.lang.String> value)
        An array of NSFileProtectionComplete, NSFileProtectionCompleteUnlessOpen, or NSFileProtectionCompleteUntilFirstUserAuthentication. By default the data protection will be read from the "com.apple.developer.default-data-protection" entitlement if any or NSFileProtectionCompleteUntilFirstUserAuthentication will be used otherwise.
      • start

        public void start()
      • initWithQueryStringQueryContext

        public CSSearchQuery initWithQueryStringQueryContext​(@NotNull
                                                             @NotNull java.lang.String queryString,
                                                             @Nullable
                                                             @Nullable CSSearchQueryContext queryContext)
        queryString: The query string (e.g., 'contentType == "public.email-message" && subject != "Re:*"') API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.