# SearchInAppsSDK Framework Reference

# SearchContentViewController


    @interface SearchContentViewController : NSObject

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; }`
- `


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


  ` The customization options of the search content view.

  #### Declaration

  Objective-C

      @property (nonatomic, strong) https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/SearchSuggestionsViewOptions.html *_Nonnull customizationOptions;

- `


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


  ` The UIView of the search content which is converted from the hostingController's SwiftUI
  rootview.

  #### Declaration

  Objective-C

      @property (nonatomic, strong, readonly) UIView *_Nonnull view;

- `


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


  ` The search content block data used to generate the UI.

  #### Declaration

  Objective-C

      @property (nonatomic, strong) https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/SearchContentBlockData.html *_Nullable blockData;

- `


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


  ` Undocumented

  #### Declaration

  Objective-C

      - (nonnull instancetype)initWithOptions:(https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/SearchSuggestionsViewOptions.html * _Nonnull)options OBJC_DESIGNATED_INITIALIZER;

- `


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


  ` Undocumented

  #### Declaration

  Objective-C

      - (void)addToViewController:(UIViewController * _Nonnull)controller;

- `


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


  ` Unavailable
  Undocumented

  #### Declaration

  Objective-C

      - (nonnull instancetype)init SWIFT_UNAVAILABLE;

- `


  ### [+new](https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/SearchContentViewController#/c:@M@SearchInAppsSDK@objc(cs)SearchContentViewController(cm)new)


  ` Unavailable

  -init is unavailable
  Undocumented

  #### Declaration

  Objective-C

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