Warning

This feature is available in the Full MapKit SDK version

MMKSearchSuggestSession

@interface MMKSearchSuggestSession : NSObject

Undocumented

Summary

Instance methods

- (void)suggestWithText:(nonnull NSString *)text
                 window:(nonnull MMKBoundingBox *)window
         suggestOptions:(nonnull MMKSuggestOptions *)suggestOptions
        responseHandler:
            (nonnull MMKSearchSuggestSessionResponseHandler)responseHandler;

Begin a suggest request

- (void)reset;
Cancels current suggest request and resets internal state

Instance methods

suggestWithText:window:suggestOptions:responseHandler:

- (void)suggestWithText:(nonnull NSString *)text
                 window:(nonnull MMKBoundingBox *)window
         suggestOptions:(nonnull MMKSuggestOptions *)suggestOptions
        responseHandler:
            (nonnull MMKSearchSuggestSessionResponseHandler)responseHandler;

Begin a suggest request. The current request is cancelled, if present.

Parameters

text

Text to get suggestions for.

window

Current map window position.

suggestOptions

Various additional suggest parameters. See the MMKSuggestOptions definition for details.

suggestListener

Function called when the result is ready.


reset

- (void)reset;

Cancels current suggest request and resets internal state. Next queries via this suggest session will be seen as a new suggest session from backend point of view.