Class CSSearchableIndex

  • All Implemented Interfaces:
    NSObject

    public class CSSearchableIndex
    extends NSObject
    • Constructor Detail

      • CSSearchableIndex

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static CSSearchableIndex 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()
      • defaultSearchableIndex

        @NotNull
        public static @NotNull CSSearchableIndex defaultSearchableIndex()
      • 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)
      • isIndexingAvailable

        public static boolean isIndexingAvailable()
        Not all devices support indexing. Call this method to check if indexing is supported on the current device.
      • 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()
      • beginIndexBatch

        public void beginIndexBatch()
        Begin a batch of index adds, updates, or deletes.
      • deleteSearchableItemsWithDomainIdentifiersCompletionHandler

        public void deleteSearchableItemsWithDomainIdentifiersCompletionHandler​(@NotNull
                                                                                @NotNull NSArray<java.lang.String> domainIdentifiers,
                                                                                @Nullable
                                                                                @Nullable CSSearchableIndex.Block_deleteSearchableItemsWithDomainIdentifiersCompletionHandler completionHandler)
        Call this method on the index to remove any items from the index with the given domain identifiers. The delete is recursive so if domain identifiers are of the form ., for example, calling delete with will delete all the searchable items with that account and any mailbox.
      • deleteSearchableItemsWithIdentifiersCompletionHandler

        public void deleteSearchableItemsWithIdentifiersCompletionHandler​(@NotNull
                                                                          @NotNull NSArray<java.lang.String> identifiers,
                                                                          @Nullable
                                                                          @Nullable CSSearchableIndex.Block_deleteSearchableItemsWithIdentifiersCompletionHandler completionHandler)
        Call this method to remove items with the given identifiers from the index. Completion handlers will be called once the data has been journaled by the index. If the completion handler returns an error, the client should retry, as it was not journaled correctly. reindexSearchableItemsWithIdentifiers will be called if the journaling completed successfully but the data was not able to be indexed for some reason.
      • endIndexBatchWithClientStateCompletionHandler

        public void endIndexBatchWithClientStateCompletionHandler​(@NotNull
                                                                  @NotNull NSData clientState,
                                                                  @Nullable
                                                                  @Nullable CSSearchableIndex.Block_endIndexBatchWithClientStateCompletionHandler completionHandler)
        End a batch passing in client state information to be persisted in the index. The completion handler will be called once the client state has been persisted.
      • indexSearchableItemsCompletionHandler

        public void indexSearchableItemsCompletionHandler​(@NotNull
                                                          @NotNull NSArray<? extends CSSearchableItem> items,
                                                          @Nullable
                                                          @Nullable CSSearchableIndex.Block_indexSearchableItemsCompletionHandler completionHandler)
        Call this method to add or update items in the index. Completion handlers will be called once the data has been journaled by the index. If the completion handler returns an error, the client should retry, as it was not journaled correctly. reindexSearchableItemsWithIdentifiers will be called if the journaling completed successfully but the data was not able to be indexed for some reason.
      • initWithName

        public CSSearchableIndex initWithName​(@NotNull
                                              @NotNull java.lang.String name)
        Apps can set a name for the index instance. This name is used as a handle for the client state used with the batch API, allowing a single client to have multiple client states; you have to retrieve the client state for an index instance with the same name as you used when setting the client state.
      • initWithNameProtectionClass

        public CSSearchableIndex initWithNameProtectionClass​(@NotNull
                                                             @NotNull java.lang.String name,
                                                             @Nullable
                                                             @Nullable java.lang.String protectionClass)
        Apps can set a default protection class for items in their entitlements. You can alternately create an instance with a custom protection class to use on iOS. It should be one of NSFileProtectionComplete, NSFileProtectionCompleteUnlessOpen, or NSFileProtectionCompleteUntilFirstUserAuthentication.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.