Важно

This feature is available in the Full MapKit SDK version

YMKSearchLayerResponseHandler

protocol YMKSearchLayerResponseHandler : NSObjectProtocol

Interface for callbacks on search events.

Summary

Instance methods

func onSearchStart(with requestType: YMKSearchLayerRequestType)
Called when the search starts

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

func onSearchErrorWithError(_ error: Error,
                        requestType: YMKSearchLayerRequestType)
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: YMKSearchLayerRequestType)

Called when the search starts.

Parameters

requestType

Type of the started request.


onSearchSuccess(with:)

func onSearchSuccess(with requestType: YMKSearchLayerRequestType)

Called after a succesful search.

Parameters

requestType

Type of the finished request.


onSearchErrorWithError(_:requestType:)

func onSearchErrorWithError(_ error: Error,
                        requestType: YMKSearchLayerRequestType)

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.


Предыдущая
Следующая