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.