SearchInAppsSDK Framework Reference

GetSearchSuggestionsOptions


@interface GetSearchSuggestionsOptions : NSObject

This class contains all the options necessary to request search suggestions.

  • The text used to generate query-based search suggestions.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<NSString *> *_Nullable textContext;
  • The information used to generate location-based search suggestions.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<LocationSuggestionsContext *> *_Nullable locationContext;
  • The client ID used to request search suggestions if it is different from the client ID specified in Info.plist.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSString *_Nullable clientId;
  • Create options with a given text context (i.e. the strings used for generating search suggestions). \param textContext A list of strings used to generate search suggestions.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTextContext:
        (NSArray<NSString *> *_Nonnull)textContext;
  • Create options with given location data (i.e. the location context used for generating location-based search suggestions). \param locationContext A list of LocationSuggestionsContext objects used to generate search suggestions.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLocationContext:
        (NSArray<LocationSuggestionsContext *> *_Nonnull)locationContext;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init SWIFT_UNAVAILABLE;
  • Unavailable

    -init is unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");