# SearchInAppsSDK Framework Reference

# ContextualSearchRuntime


    @interface ContextualSearchRuntime : NSObject

Runtime for issuing contextual search requests.
The runtime can be reused across the app after it is initialized.
- `


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


  ` Creates a new Search Runtime.
  The Search Runtime can be created at app startup and only needs to be
  created once. It can be reused throuhgout the app's lifecycle.

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;

- `


  ### [-getSearchSuggestionsWithOptions:completionHandler:](https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/ContextualSearchRuntime#/c:@M@SearchInAppsSDK@objc(cs)ContextualSearchRuntime(im)getSearchSuggestionsWithOptions:completionHandler:)


  ` Gets search suggestions.
  \\param withOptions The input options used to generate search suggestions.

  #### Declaration

  Objective-C

      - (void)getSearchSuggestionsWithOptions:
                  (https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/GetSearchSuggestionsOptions.html *_Nonnull)getSearchSuggestionsOptions
                            completionHandler:
                                (void (^_Nonnull)(https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/SearchSuggestions.html *_Nullable,
                                                  NSError *_Nullable))
                                    completionHandler;

- `


  ### [-getTrendingSearchesWithOptions:completionHandler:](https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/ContextualSearchRuntime#/c:@M@SearchInAppsSDK@objc(cs)ContextualSearchRuntime(im)getTrendingSearchesWithOptions:completionHandler:)


  ` Gets trending searches.
  \\param withOptions The input options used to generate trending searches.

  #### Declaration

  Objective-C

      - (void)getTrendingSearchesWithOptions:
                  (https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/GetTrendingSearchesOptions.html *_Nullable)getTrendingSearchesOptions
                           completionHandler:
                               (void (^_Nonnull)(https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/SearchSuggestions.html *_Nullable,
                                                 NSError *_Nullable))
                                   completionHandler;

- `


  ### [-getSearchContentWithOptions:completionHandler:](https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/ContextualSearchRuntime#/c:@M@SearchInAppsSDK@objc(cs)ContextualSearchRuntime(im)getSearchContentWithOptions:completionHandler:)


  ` Gets search content.
  \\param withOptions The input options used to generate search content.

  #### Declaration

  Objective-C

      - (void)getSearchContentWithOptions:(https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/GetSearchContentOptions.html *_Nonnull)options
                        completionHandler:
                            (void (^_Nonnull)(https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/SearchContents.html *_Nullable,
                                              NSError *_Nullable))completionHandler;