Warning
This feature is available in the Full MapKit SDK version
MMKSearchLayerResponseHandler
protocol MMKSearchLayerResponseHandler : NSObjectProtocol |
Interface for callbacks on search events.
Summary
Instance methods
func onSearchStart(with requestType: MMKSearchLayerRequestType) |
func onSearchSuccess(with requestType: MMKSearchLayerRequestType) |
func onSearchErrorWithError(_ error: Error, |
func onPresentedResultsUpdate() |
func onAllResultsClear() |
Instance methods
onSearchStart(with:)
func onSearchStart(with requestType: MMKSearchLayerRequestType) |
Called when the search starts.
Parameters |
|
requestType |
Type of the started request. |
onSearchSuccess(with:)
func onSearchSuccess(with requestType: MMKSearchLayerRequestType) |
Called after a succesful search.
Parameters |
|
requestType |
Type of the finished request. |
onSearchErrorWithError(_:requestType:)
func onSearchErrorWithError(_ error: Error, |
Called on any search error.
Parameters |
|
error |
Error occured. |
requestType |
Type of the finished request. |
onPresentedResultsUpdate()
func onPresentedResultsUpdate() |
Called when presented results are updated and thus search results list can change.
onAllResultsClear()
func onAllResultsClear() |
Called before all results are cleared.