Package org.robovm.apple.foundation
Class NSMetadataQuery
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.foundation.NSMetadataQuery
-
- All Implemented Interfaces:
NSObjectProtocol
,org.robovm.objc.ObjCProtocol
public class NSMetadataQuery extends NSObject
- Since:
- Available in iOS 5.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NSMetadataQuery.Notifications
static class
NSMetadataQuery.NSMetadataQueryPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description NSMetadataQuery()
protected
NSMetadataQuery(NSObject.Handle h, long handle)
protected
NSMetadataQuery(NSObject.SkipInit skipInit)
-
Method Summary
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
NSMetadataQuery
public NSMetadataQuery()
-
NSMetadataQuery
protected NSMetadataQuery(NSObject.Handle h, long handle)
-
NSMetadataQuery
protected NSMetadataQuery(NSObject.SkipInit skipInit)
-
-
Method Detail
-
getDelegate
public NSMetadataQueryDelegate getDelegate()
-
setDelegate
public void setDelegate(NSMetadataQueryDelegate v)
-
getPredicate
public NSPredicate getPredicate()
-
setPredicate
public void setPredicate(NSPredicate v)
-
getSortDescriptors
public NSArray<NSSortDescriptor> getSortDescriptors()
-
setSortDescriptors
public void setSortDescriptors(NSArray<NSSortDescriptor> v)
-
getValueListAttributes
public java.util.List<NSMetadataItemAttribute> getValueListAttributes()
-
setValueListAttributes
public void setValueListAttributes(java.util.List<NSMetadataItemAttribute> v)
-
getGroupingAttributes
public java.util.List<NSMetadataItemAttribute> getGroupingAttributes()
-
setGroupingAttributes
public void setGroupingAttributes(java.util.List<NSMetadataItemAttribute> v)
-
getNotificationBatchingInterval
public double getNotificationBatchingInterval()
-
setNotificationBatchingInterval
public void setNotificationBatchingInterval(double v)
-
getSearchScopes0
protected NSArray<?> getSearchScopes0()
-
setSearchScopes0
protected void setSearchScopes0(NSArray<?> v)
-
getSearchItems0
protected NSArray<?> getSearchItems0()
- Since:
- Available in iOS 7.0 and later.
-
setSearchItems0
protected void setSearchItems0(NSArray<?> v)
- Since:
- Available in iOS 7.0 and later.
-
getOperationQueue
public NSOperationQueue getOperationQueue()
- Since:
- Available in iOS 7.0 and later.
-
setOperationQueue
public void setOperationQueue(NSOperationQueue v)
- Since:
- Available in iOS 7.0 and later.
-
isStarted
public boolean isStarted()
-
isGathering
public boolean isGathering()
-
isStopped
public boolean isStopped()
-
getResultCount
public long getResultCount()
-
getResults
public NSArray<NSMetadataItem> getResults()
-
getValueLists0
protected NSDictionary<NSString,NSMetadataQueryAttributeValueTuple> getValueLists0()
-
getGroupedResults
public NSArray<NSMetadataQueryResultGroup> getGroupedResults()
-
setSearchScopes
public void setSearchScopes(java.util.List<java.lang.String> scopes)
-
setSearchScopes
public void setSearchScopes(NSMetadataQueryScope... scopes)
-
getSearchScopes
public java.util.List<java.lang.String> getSearchScopes()
-
setSearchItems
public void setSearchItems(NSArray<NSMetadataItem> items)
-
getValueLists
public java.util.Map<NSMetadataItemAttribute,NSMetadataQueryAttributeValueTuple> getValueLists()
-
DidStartGatheringNotification
public static NSString DidStartGatheringNotification()
- Since:
- Available in iOS 5.0 and later.
-
GatheringProgressNotification
public static NSString GatheringProgressNotification()
- Since:
- Available in iOS 5.0 and later.
-
DidFinishGatheringNotification
public static NSString DidFinishGatheringNotification()
- Since:
- Available in iOS 5.0 and later.
-
DidUpdateNotification
public static NSString DidUpdateNotification()
- Since:
- Available in iOS 5.0 and later.
-
startQuery
public boolean startQuery()
-
stopQuery
public void stopQuery()
-
disableUpdates
public void disableUpdates()
-
enableUpdates
public void enableUpdates()
-
getResult
public NSMetadataItem getResult(long idx)
-
enumerateResults
public void enumerateResults(org.robovm.objc.block.VoidBlock3<NSMetadataItem,java.lang.Long,org.robovm.rt.bro.ptr.BooleanPtr> block)
- Since:
- Available in iOS 7.0 and later.
-
enumerateResults
public void enumerateResults(NSEnumerationOptions opts, org.robovm.objc.block.VoidBlock3<NSMetadataItem,java.lang.Long,org.robovm.rt.bro.ptr.BooleanPtr> block)
- Since:
- Available in iOS 7.0 and later.
-
indexOfResult
public long indexOfResult(NSMetadataItem result)
-
getValueForResult
public NSObject getValueForResult(NSMetadataItemAttribute attrName, long idx)
-
-