Warning

This feature is available in the Full MapKit SDK version

MMKSearchLayerResponseHandler

@protocol MMKSearchLayerResponseHandler <NSObject>

Interface for callbacks on search events.

Summary

Instance methods

- (void)onSearchStartWithRequestType:(MMKSearchLayerRequestType)requestType;
Called when the search starts

- (void)onSearchSuccessWithRequestType:(MMKSearchLayerRequestType)requestType;
Called after a succesful search

- (void)onSearchErrorWithError:(nonnull NSError *)error
                   requestType:(MMKSearchLayerRequestType)requestType;

Called on any search error

- (void)onPresentedResultsUpdate;
Called when presented results are updated and thus search results list can change

- (void)onAllResultsClear;
Called before all results are cleared

Instance methods

onSearchStartWithRequestType:

- (void)onSearchStartWithRequestType:(MMKSearchLayerRequestType)requestType;

Called when the search starts.

Parameters

requestType

Type of the started request.


onSearchSuccessWithRequestType:

- (void)onSearchSuccessWithRequestType:(MMKSearchLayerRequestType)requestType;

Called after a succesful search.

Parameters

requestType

Type of the finished request.


onSearchErrorWithError:requestType:

- (void)onSearchErrorWithError:(nonnull NSError *)error
                   requestType:(MMKSearchLayerRequestType)requestType;

Called on any search error.

Parameters

error

Error occured.

requestType

Type of the finished request.


onPresentedResultsUpdate

- (void)onPresentedResultsUpdate;

Called when presented results are updated and thus search results list can change.


onAllResultsClear

- (void)onAllResultsClear;

Called before all results are cleared.