SKSearchServiceDelegate Protocol Reference

Conforms to NSObject
Declared in SKSearchServiceDelegate.h

Overview

The SKSearchServiceDelegate defines a set of optional methods that you can be used to receive search results. The SKSearchService class uses these methods to notify the caller objects when a specific search operation finished. The searches happen asynchronously, but these callbacks are called on the main thread.

– searchService:didRetrieveMultiStepSearchResults:

Called for a successfull step by step search operation.

- (void)searchService:(SKSearchService *)searchService didRetrieveMultiStepSearchResults:(NSArray<SKSearchResult*> *)searchResults

Parameters

searchService

The search service.

searchResults

Contains the step by step search results (a list of SKSearchResult objects).

Discussion

Called for a successfull step by step search operation.

Declared In

SKSearchServiceDelegate.h

– searchServiceDidFailToRetrieveMultiStepSearchResults:

Called for a failed step by step search operation.

- (void)searchServiceDidFailToRetrieveMultiStepSearchResults:(SKSearchService *)searchService

Parameters

searchService

The search service.

Discussion

Called for a failed step by step search operation.

Declared In

SKSearchServiceDelegate.h

– searchService:didRetrieveNearbySearchResults:withSearchMode:

Called for a successfull nearby search operation.

- (void)searchService:(SKSearchService *)searchService didRetrieveNearbySearchResults:(NSArray<SKSearchResult*> *)searchResults withSearchMode:(SKSearchMode)searchMode

Parameters

searchService

The search service.

searchResults

Contains the nearby search results (a list of SKSearchResult objects).

searchMode

Specifies the search type (SKSearchOnline if the search results were returned after an online search, SKSearchOffline if the search results were returned after an offline search).

Discussion

Called for a successfull nearby search operation.

Declared In

SKSearchServiceDelegate.h

– searchService:didFailToRetrieveNearbySearchResultsWithSearchMode:

Called for a failed nearby search operation.

- (void)searchService:(SKSearchService *)searchService didFailToRetrieveNearbySearchResultsWithSearchMode:(SKSearchMode)searchMode

Parameters

searchService

The search service.

searchMode

Specifies the search type (SKSearchOnline if the online search failed, SKSearchOffline if the offline search failed).

Discussion

Called for a failed nearby search operation.

Declared In

SKSearchServiceDelegate.h

– searchService:didRetrieveOneLineSearchResults:withSearchMode:

Called for a successfull one line search operation.

- (void)searchService:(SKSearchService *)searchService didRetrieveOneLineSearchResults:(NSArray<SKSearchResult*> *)searchResults withSearchMode:(SKSearchMode)searchMode

Parameters

searchService

The search service.

searchResults

Contains the one line search results (a list of SKSearchResult objects).

searchMode

Specifies the search type (SKSearchOnline if the search results were returned after an online search, SKSearchOffline if the search results were returned after an offline search.)

Discussion

Called for a successfull one line search operation.

Declared In

SKSearchServiceDelegate.h

– searchServiceDidFailToRetrieveOneLineSearchResults:withSearchMode:

Called for a failed one line search operation.

- (void)searchServiceDidFailToRetrieveOneLineSearchResults:(SKSearchService *)searchService withSearchMode:(SKSearchMode)searchMode

Parameters

searchService

The search service.

searchMode

Specifies the search type (SKSearchOnline if the online search failed, SKSearchOffline if the offline search failed).

Discussion

Called for a failed one line search operation.

Declared In

SKSearchServiceDelegate.h