MapKit Mobile SDK

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)
Called when the search starts

func onSearchSuccess(with requestType: MMKSearchLayerRequestType)
Called after a succesful search

func onSearchErrorWithError(_ error: Error,
                        requestType: MMKSearchLayerRequestType)
Called on any search error

func onPresentedResultsUpdate()
Called when presented results are updated and thus search results list can change

func onAllResultsClear()
Called before all results are cleared

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,
                        requestType: MMKSearchLayerRequestType)

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.