# SearchInAppsSDK Framework Reference

# GetSearchContentOptions


    @interface GetSearchContentOptions : NSObject <NSCopying>

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


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


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

  #### Declaration

  Objective-C

      @property (nonatomic, copy) NSArray<NSString *> *_Nullable textContext;

- `


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


  ` The information used to generate location-based search suggestions.

  #### Declaration

  Objective-C

      @property (nonatomic, copy) NSArray<https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/LocationSuggestionsContext.html *> *_Nullable locationContext;

- `


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


  ` 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

  Objective-C

      @property (nonatomic, copy) NSString *_Nullable searchRepeat;

- `


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


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

  #### Declaration

  Objective-C

      @property (nonatomic) NSInteger blockCount;

- `


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


  ` The client ID used to request search content if it is different from the
  client ID specified in Info.plist.

  #### Declaration

  Objective-C

      @property (nonatomic, copy) NSString *_Nullable clientId;

- `


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


  ` Create options with a given text context (i.e. the strings used for generating search
  content).
  \\param textContext A list of strings used to generate search content.

  #### Declaration

  Objective-C

      - (nonnull instancetype)initWithTextContext:
          (NSArray<NSString *> *_Nonnull)textContext;

- `


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


  ` Creates 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<https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/LocationSuggestionsContext.html *> *_Nonnull)locationContext;

- `


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


  ` Creates options with given search repeat text (i.e. the string used for generating the Google
  search query).
  \\param searchRepeat A string used to generate the Google search query.

  #### Declaration

  Objective-C

      - (nonnull instancetype)initWithSearchRepeat:(NSString *_Nonnull)searchRepeat;

- `


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


  ` Undocumented

  #### Declaration

  Objective-C

      - (id _Nonnull)copyWithZone:(struct https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Structs.html#/c:@S@_NSZone * _Nullable)zone SWIFT_WARN_UNUSED_RESULT;

- `


  ### [-init](https://developers.google.com/search-in-apps/ios/reference/api/objc_reference/Classes/GetSearchContentOptions#/c:@M@SearchInAppsSDK@objc(cs)GetSearchContentOptions(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/GetSearchContentOptions#/c:@M@SearchInAppsSDK@objc(cs)GetSearchContentOptions(cm)new)


  ` Unavailable

  -init is unavailable
  Undocumented

  #### Declaration

  Objective-C

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