Contents

MKLocalSearch.CompletionHandler

A completion handler block for a search operation.

Declaration

typealias CompletionHandler = (MKLocalSearch.Response?, (any Error)?) -> Void

Discussion

This block takes two parameters:

  • The response parameter contains the search results. If an error occurs, this parameter is nil and the framework provides an appropriate error object in the error parameter.

  • The error parameter is nil if the search is successful. If an error occurs during the operation, the framework sets this parameter to an appropriate error object.

This block has no return value.

See Also

Performing the search