Instance Method

endIndexBatchWithClientState:completionHandler:

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

Declaration

- (void)endIndexBatchWithClientState:(NSData *)clientState completionHandler:(void (^)(NSError *error))completionHandler;

Parameters

clientState

Up to 250 bytes of information that can help you recover from a crash and resume indexing.

completionHandler

The block that’s called after the client state has been stored.

The block receives the following parameter:

error

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

- beginIndexBatch

Begins a batch of updates to an index.

- fetchLastClientStateWithCompletionHandler:

Gets the app’s most recently stored state information.