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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • defaultSearchableIndex

        public static java.lang.Object 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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​(NSArray<java.lang.String> domainIdentifiers,
                                                                                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​(NSArray<java.lang.String> identifiers,
                                                                          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​(NSData clientState,
                                                                  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​(NSArray<? extends CSSearchableItem> items,
                                                          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​(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​(java.lang.String name,
                                                             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.