Protocol

MKLocalSearchCompleterDelegate

Defines the methods for receiving search completion data.

Declaration

protocol MKLocalSearchCompleterDelegate

Overview

You use this protocol when implementing an auto-complete solution that is tied to a map in your app. As the user types search terms, use an MKLocalSearchCompleter object to start searching for valid completions. The delegate you assign to that object must conform to this protocol. As it receives completions, the local search completer calls the methods of this protocol to deliver the results.

Topics

Getting the Search Results

func completerDidUpdateResults(MKLocalSearchCompleter)

Called when the specified search completer updates its array of search completions.

func completer(MKLocalSearchCompleter, didFailWithError: Error)

Called when the specified search completer is unable to generate a list of search results.

Relationships

Inherits From

See Also

Receiving the Search Results

var delegate: MKLocalSearchCompleterDelegate?

The object that receives the completion results.

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