Instance Method


Gets the app’s most recently stored state information.


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



The block that’s called when the request has been journaled by the index (“journaled” means that the index makes a note that it has to perform this operation). Note that the request may not have completed.

The block receives the following parameter:


If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is nil.

See Also

Batching Index Updates

func beginBatch()

Begins a batch of updates to an index.

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

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