MMKSearchLayerResponseHandler
Warning
This feature is available in the Full MapKit SDK version
|
@protocol MMKSearchLayerResponseHandler <NSObject> |
Interface for callbacks on search events.
Summary
Instance methods
|
- (void)onSearchStartWithRequestType:(MMKSearchLayerRequestType)requestType; |
|
- (void)onSearchSuccessWithRequestType:(MMKSearchLayerRequestType)requestType; |
|
- (void)onSearchErrorWithError:(nonnull NSError *)error |
|
- (void)onPresentedResultsUpdate; |
|
- (void)onAllResultsClear; |
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 |
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.