Package apple.corespotlight
Class CSSearchableIndex
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.corespotlight.CSSearchableIndex
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCSSearchableIndex.Block_deleteAllSearchableItemsWithCompletionHandlerstatic interfaceCSSearchableIndex.Block_deleteSearchableItemsWithDomainIdentifiersCompletionHandlerstatic interfaceCSSearchableIndex.Block_deleteSearchableItemsWithIdentifiersCompletionHandlerstatic interfaceCSSearchableIndex.Block_endIndexBatchWithClientStateCompletionHandlerstatic interfaceCSSearchableIndex.Block_fetchLastClientStateWithCompletionHandlerstatic interfaceCSSearchableIndex.Block_indexSearchableItemsCompletionHandler-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCSSearchableIndex(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static CSSearchableIndexalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)voidbeginIndexBatch()Begin a batch of index adds, updates, or deletes.static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget, org.moe.natj.objc.SEL aSelector, java.lang.Object anArgument)static NSArray<java.lang.String>classFallbacksForKeyedArchiver()static org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.ObjectdefaultSearchableIndex()voiddeleteAllSearchableItemsWithCompletionHandler(CSSearchableIndex.Block_deleteAllSearchableItemsWithCompletionHandler completionHandler)Call this method to delete all searchable items from the index.voiddeleteSearchableItemsWithDomainIdentifiersCompletionHandler(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.voiddeleteSearchableItemsWithIdentifiersCompletionHandler(NSArray<java.lang.String> identifiers, CSSearchableIndex.Block_deleteSearchableItemsWithIdentifiersCompletionHandler completionHandler)Call this method to remove items with the given identifiers from the index.static java.lang.Stringdescription_static()voidendIndexBatchWithClientStateCompletionHandler(NSData clientState, CSSearchableIndex.Block_endIndexBatchWithClientStateCompletionHandler completionHandler)End a batch passing in client state information to be persisted in the index.voidfetchLastClientStateWithCompletionHandler(CSSearchableIndex.Block_fetchLastClientStateWithCompletionHandler completionHandler)Async fetches the app's last stored client state information.static longhash_static()CSSearchableIndexDelegateindexDelegate()voidindexSearchableItemsCompletionHandler(NSArray<? extends CSSearchableItem> items, CSSearchableIndex.Block_indexSearchableItemsCompletionHandler completionHandler)Call this method to add or update items in the index.CSSearchableIndexinit()CSSearchableIndexinitWithName(java.lang.String name)Apps can set a name for the index instance.CSSearchableIndexinitWithNameProtectionClass(java.lang.String name, java.lang.String protectionClass)Apps can set a default protection class for items in their entitlements.static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisIndexingAvailable()Not all devices support indexing.static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)static java.lang.Objectnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetIndexDelegate(CSSearchableIndexDelegate value)voidsetIndexDelegate_unsafe(CSSearchableIndexDelegate value)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static CSSearchableIndex alloc()
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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.
-
deleteAllSearchableItemsWithCompletionHandler
public void deleteAllSearchableItemsWithCompletionHandler(CSSearchableIndex.Block_deleteAllSearchableItemsWithCompletionHandler completionHandler)
Call this method to delete all searchable items from the index.
-
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.
-
fetchLastClientStateWithCompletionHandler
public void fetchLastClientStateWithCompletionHandler(CSSearchableIndex.Block_fetchLastClientStateWithCompletionHandler completionHandler)
Async fetches the app's last stored client state information.
-
indexDelegate
public CSSearchableIndexDelegate indexDelegate()
-
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.
-
init
public CSSearchableIndex init()
-
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.
-
setIndexDelegate_unsafe
public void setIndexDelegate_unsafe(CSSearchableIndexDelegate value)
-
setIndexDelegate
public void setIndexDelegate(CSSearchableIndexDelegate value)
-
-