Class YMKSuggestOptions

Struct to fine-tune suggest request.

Class Methods

Properties

suggestTypes

The suggest type can be one of YMKSuggestType values or their bitwise 'OR' combination.

suggestWords

Enable word-by-word suggestion items.

userPosition

The server uses the user position to calculate the distance from the user to suggest results.

Method Detail

+suggestOptionsWithSuggestTypes:userPosition:suggestWords:

+ (nonnull YMKSuggestOptions *)suggestOptionsWithSuggestTypes:(YMKSuggestType)suggestTypes
                                                 userPosition:(nullable YMKPoint *)userPosition
                                                 suggestWords:(BOOL)suggestWords 

Property Detail

suggestTypes

(assign, readwrite) YMKSuggestType suggestTypes

The suggest type can be one of YMKSuggestType values or their bitwise 'OR' combination.

If suggestType is not initialized, it means to use server-defined types.

suggestWords

(assign, readwrite) BOOL suggestWords

Enable word-by-word suggestion items.

userPosition

(strong, readwrite) YMKPoint * userPosition

The server uses the user position to calculate the distance from the user to suggest results.

Optional property, can be null.