Platforms to show: All Mac Windows Linux Cross-Platform

Back to MKLocalSearchCompleterMBS class.

MKLocalSearchCompleterMBS.DidFailWithError(error as NSErrorMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ❌ No
Called when the specified search completer is unable to generate a list of search results.

completer: The search completer object reporting the error.
error: The error object containing the reason for the failure.

Use this object to process any errors that occurred while generating search results. Even when an error occurs, the search completer starts a new search if it already has a new search string. Depending on the error, you might do nothing or let the user know that you were unable to obtain a list of search completions.

MKLocalSearchCompleterMBS.DidUpdateResults

Type Topic Plugin Version macOS Windows Linux iOS Targets
event MapKit MBS MacFrameworks Plugin 19.0 ✅ Yes ❌ No ❌ No ❌ No
Called when the specified search completer updates its array of search completions.

After receiving results from a query, the search completer updates its results property with the new MKLocalSearchCompletionMBS objects and calls this method. Use this method to update your app’s interface based on the new search results. For example, you might update a table that you use to display search results to the user.

Some examples using this event:

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


The biggest plugin in space...