SearchInAppsSDK Framework Reference

GetSearchContentOptions

@objc
final class GetSearchContentOptions

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

  • The number of content blocks to request. The number returned may be fewer than this. Defaults to 1.

    Declaration

    Swift

    @objc
    final var blockCount: Int
  • The client ID used to request search content if it is different from the client ID specified in Info.plist.

    Declaration

    Swift

    @objc
    final var clientId: String?
  • Creates options with given location data (i.e. the location context used for generating location-based search suggestions).

    Declaration

    Swift

    @objc
    init(locationContext: [LocationSuggestionsContext])
  • Creates options with given search repeat text (i.e. the string used for generating the Google search query).

    Declaration

    Swift

    @objc
    init(searchRepeat: String)
  • Create options with a given text context (i.e. the strings used for generating search content).

    Declaration

    Swift

    @objc
    init(textContext: [String])
  • The information used to generate location-based search suggestions.

    Declaration

    Swift

    @objc
    final var locationContext: [LocationSuggestionsContext]?
  • The search repeat text used to generate the Google search query. The returned query might not be exactly the same as the search repeat text.

    Declaration

    Swift

    @objc
    final var searchRepeat: String?
  • The text used to generate query-based search suggestions.

    Declaration

    Swift

    @objc
    final var textContext: [String]?