One Logo Pool Ball
Foundation · IOS API REFERENCE

NSMetadataQuery

class · iOS 5.0+ · SDK 27.1

class NSMetadataQuery

Members (35)

method · iOS 5.0+

disableUpdates

TypeScript
disableUpdates(): void
Swift declaration
func disableUpdates()
method · iOS 5.0+

enableUpdates

TypeScript
enableUpdates(): void
Swift declaration
func enableUpdates()
method · iOS 7.0+

enumerateResults

TypeScript
enumerateResults(block: ((arg0: unknown, arg1: number, arg2: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateResults(_ block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 7.0+

enumerateResults

TypeScript
enumerateResultsOptionsUsing(opts: NSEnumerationOptions, block: ((arg0: unknown, arg1: number, arg2: NativeOut<boolean>) => void)): void
Swift declaration
func enumerateResults(options opts: NSEnumerationOptions = [], using block: (Any, Int, UnsafeMutablePointer<ObjCBool>) -> Void)
method · iOS 5.0+

index

TypeScript
index(result: unknown): number
Swift declaration
func index(ofResult result: Any) -> Int
init

init

TypeScript
static init(): NSMetadataQuery
Swift declaration
init()
method · iOS 5.0+

result

TypeScript
result(idx: number): unknown
Swift declaration
func result(at idx: Int) -> Any
method · iOS 5.0+

start

TypeScript
start(): boolean
Swift declaration
func start() -> Bool
method · iOS 5.0+

stop

TypeScript
stop(): void
Swift declaration
func stop()
method · iOS 5.0+

value

TypeScript
value(attrName: string, idx: number): (unknown) | null
Swift declaration
func value(ofAttribute attrName: String, forResultAt idx: Int) -> Any?
get · iOS 5.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
unowned(unsafe) var delegate: (any NSMetadataQueryDelegate)? { get set }
set · iOS 5.0+

delegate

TypeScript
set delegate(value: (Implements<NSMetadataQueryDelegate> | SDKHandle) | null)
Swift declaration
unowned(unsafe) var delegate: (any NSMetadataQueryDelegate)? { get set }
get · iOS 5.0+

isGathering

TypeScript
get isGathering(): boolean
Swift declaration
var isGathering: Bool { get }
get · iOS 5.0+

groupedResults

TypeScript
get groupedResults(): Array<NSMetadataQueryResultGroup>
Swift declaration
var groupedResults: [NSMetadataQueryResultGroup] { get }
get · iOS 5.0+

groupingAttributes

TypeScript
get groupingAttributes(): (Array<string>) | null
Swift declaration
var groupingAttributes: [String]? { get set }
set · iOS 5.0+

groupingAttributes

TypeScript
set groupingAttributes(value: (Array<string>) | null)
Swift declaration
var groupingAttributes: [String]? { get set }
get · iOS 5.0+

notificationBatchingInterval

TypeScript
get notificationBatchingInterval(): number
Swift declaration
var notificationBatchingInterval: TimeInterval { get set }
set · iOS 5.0+

notificationBatchingInterval

TypeScript
set notificationBatchingInterval(value: number)
Swift declaration
var notificationBatchingInterval: TimeInterval { get set }
get · iOS 7.0+

operationQueue

TypeScript
get operationQueue(): (OperationQueue) | null
Swift declaration
var operationQueue: OperationQueue? { get set }
set · iOS 7.0+

operationQueue

TypeScript
set operationQueue(value: (OperationQueue) | null)
Swift declaration
var operationQueue: OperationQueue? { get set }
get · iOS 5.0+

predicate

TypeScript
get predicate(): (NSPredicate) | null
Swift declaration
@NSCopying var predicate: NSPredicate? { get set }
set · iOS 5.0+

predicate

TypeScript
set predicate(value: (NSPredicate) | null)
Swift declaration
@NSCopying var predicate: NSPredicate? { get set }
get · iOS 5.0+

resultCount

TypeScript
get resultCount(): number
Swift declaration
var resultCount: Int { get }
get · iOS 5.0+

results

TypeScript
get results(): Array<unknown>
Swift declaration
var results: [Any] { get }
get · iOS 7.0+

searchItems

TypeScript
get searchItems(): (Array<unknown>) | null
Swift declaration
var searchItems: [Any]? { get set }
set · iOS 7.0+

searchItems

TypeScript
set searchItems(value: (Array<unknown>) | null)
Swift declaration
var searchItems: [Any]? { get set }
get · iOS 5.0+

searchScopes

TypeScript
get searchScopes(): Array<unknown>
Swift declaration
var searchScopes: [Any] { get set }
set · iOS 5.0+

searchScopes

TypeScript
set searchScopes(value: Array<unknown>)
Swift declaration
var searchScopes: [Any] { get set }
get · iOS 5.0+

sortDescriptors

TypeScript
get sortDescriptors(): Array<NSSortDescriptor>
Swift declaration
var sortDescriptors: [NSSortDescriptor] { get set }
set · iOS 5.0+

sortDescriptors

TypeScript
set sortDescriptors(value: Array<NSSortDescriptor>)
Swift declaration
var sortDescriptors: [NSSortDescriptor] { get set }
get · iOS 5.0+

isStarted

TypeScript
get isStarted(): boolean
Swift declaration
var isStarted: Bool { get }
get · iOS 5.0+

isStopped

TypeScript
get isStopped(): boolean
Swift declaration
var isStopped: Bool { get }
get · iOS 5.0+

valueListAttributes

TypeScript
get valueListAttributes(): Array<string>
Swift declaration
var valueListAttributes: [String] { get set }
set · iOS 5.0+

valueListAttributes

TypeScript
set valueListAttributes(value: Array<string>)
Swift declaration
var valueListAttributes: [String] { get set }
get · iOS 5.0+

valueLists

TypeScript
get valueLists(): Record<string, Array<NSMetadataQueryAttributeValueTuple>>
Swift declaration
var valueLists: [String : [NSMetadataQueryAttributeValueTuple]] { get }

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →