# SearchInAppsSDK Framework Reference

# Classes

The following classes are available globally.
- `


  ### [ContextualSearchRuntime](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/ContextualSearchRuntime)


  ` Runtime for issuing contextual search requests.

  The runtime can be reused across the app after it is initialized.

  #### Declaration

  Swift

      @objc
      final class ContextualSearchRuntime

- `


  ### [GetSearchContentOptions](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/GetSearchContentOptions)


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

  #### Declaration

  Swift

      @objc
      final class GetSearchContentOptions

- `


  ### [GetSearchSuggestionsOptions](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/GetSearchSuggestionsOptions)


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

  #### Declaration

  Swift

      @objc
      final class GetSearchSuggestionsOptions

- `


  ### [GetTrendingSearchesOptions](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/GetTrendingSearchesOptions)


  ` This class contains all the options necessary to request trending searches.

  #### Declaration

  Swift

      @objc
      final class GetTrendingSearchesOptions

- `


  ### [LocationSuggestionsContext](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/LocationSuggestionsContext)


  ` Context used for location-based search suggestions.

  #### Declaration

  Swift

      @objc
      final class LocationSuggestionsContext

- `


  ### [SearchContentBlockData](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchContentBlockData)


  ` The data necessary to render a single SearchContentBlock.

  #### Declaration

  Swift

      @objc
      final class SearchContentBlockData

- `


  ### [SearchContentClickProperties](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes#/c:@M@SearchInAppsSDK@objc(cs)SearchContentClickProperties)


  ` Properties to pass to the partner's delegate when a search content is clicked.

  #### Declaration

  Swift

      @objc
      class SearchContentClickProperties

- `


  ### [SearchContentViewController](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchContentViewController)


  ` A class to make it easier to use the SearchContentView in UIKit applications.

  The way this is to be included in a UIViewController is to:
  1. Create an instance of a SearchContentViewController with a specified customization option `_searchContentViewController = [[SearchContentViewController alloc] initWithCustomizationOption: [[SearchContentViewCustomizationOption alloc] init]];`
  2. Add this to the view controller `[_searchContentViewController addToViewController:self];`
  3. Add its view to the parent view `[self.view addSubview:_searchContentViewController.view];`
  4. Assign search contents to it to render search content. `dispatch_async(dispatch_get_main_queue(), ^{
     _searchContentViewController.searchContents = _searchContents;
     }`

  #### Declaration

  Swift

      @available(iOS, introduced: 14)
      @objc
      @objcMembers
      class SearchContentViewController

- `


  ### [SearchContents](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchContents)


  ` A collection of search content block data

  #### Declaration

  Swift

      @available(iOS, introduced: 14)
      @objc
      final class SearchContents

- `


  ### [SearchSuggestions](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestions)


  ` A collection of search suggestions.

  This class is opaque externally, but is required for rendering search suggestions by the SDK.

  #### Declaration

  Swift

      @objc
      final class SearchSuggestions

- `


  ### [SearchSuggestionsViewController](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchSuggestionsViewController)


  ` A class to make it easier to use the SearchSuggestionsView in UIKit applications.

  The way this is to be included in a UIViewController is to:
  1. Create an instance of a SearchSuggestionsViewController with a specified customization option `_searchSuggestionsViewController = [[SearchSuggestionsViewController alloc] initWithCustomizationOption: [[SearchSuggestionsViewCustomizationOption alloc] init]];`
  2. Add this to the view controller `[_searchSuggestionsViewController addToViewController:self];`
  3. Add its view to the parent view `[self.view addSubview:_searchSuggestionsViewController.view];`
  4. Assign search suggestions to it to render those search suggestions. `dispatch_async(dispatch_get_main_queue(), ^{
     _searchSuggestionsViewController.searchSuggestions = _searchSuggestions;
     }`

  #### Declaration

  Swift

      @available(iOS, introduced: 14)
      @objc
      @objcMembers
      class SearchSuggestionsViewController

- `


  ### [SearchSuggestionsViewOptions](https://developers.google.com/search-in-apps/ios/reference/api/swift_reference/Classes/SearchSuggestionsViewOptions)


  ` This class provides all the options to customize the search suggestions UI view.

  #### Declaration

  Swift

      @objc
      class SearchSuggestionsViewOptions