Instance Method


Begins a batch of updates to an index.


func beginBatch()


Don’t call this method again before endBatch(withClientState:completionHandler:) has returned. (You can call it again before the completion handler passed to endBatch(withClientState:completionHandler:) has been called.)

See Also

Batching Index Updates

func endBatch(withClientState: Data, completionHandler: ((Error?) -> Void)?)

Ends a batch of index updates and stores the specified state information.

func fetchLastClientState(completionHandler: (Data?, Error?) -> Void)

Gets the app’s most recently stored state information.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software