Warning

This feature is available in the Full MapKit SDK version

YMKSearchLayerResponseHandler

@protocol YMKSearchLayerResponseHandler <NSObject>

Interface for callbacks on search events.

Summary

Instance methods

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

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

- (void)onSearchErrorWithError:(nonnull NSError *)error
                   requestType:(YMKSearchLayerRequestType)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:(YMKSearchLayerRequestType)requestType;

Called when the search starts.

Parameters

requestType

Type of the started request.


onSearchSuccessWithRequestType:

- (void)onSearchSuccessWithRequestType:(YMKSearchLayerRequestType)requestType;

Called after a succesful search.

Parameters

requestType

Type of the finished request.


onSearchErrorWithError:requestType:

- (void)onSearchErrorWithError:(nonnull NSError *)error
                   requestType:(YMKSearchLayerRequestType)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.