SearchInAppsSDK Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
SearchSuggestionsViewOptions
@interface SearchSuggestionsViewOptions : NSObject
This class provides all the options to customize the search suggestions UI view.
-
The specified layout to render search suggestion chips (e.g. carousel)
-
The specified theme to render search suggestion chips (e.g. light/dark mode)
-
The specified detent option to render search sheet (e.g. medium/large).
Declaration
Objective-C
@property (nonatomic) enum DetentOptions detentOption;
-
The specified fraction of the screen height to present the sheet. The valid value is between
0.5 and 1.0. iOS 16.0+ only.
Declaration
Objective-C
@property (nonatomic) CGFloat customizedSheetHeightFraction;
-
The click notification delegate for the search suggestions view.
-
The open URL delegate for the search suggestions view.
-
Declaration
Objective-C
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-07 UTC."],[[["\u003cp\u003e\u003ccode\u003eSearchSuggestionsViewOptions\u003c/code\u003e allows customization of the search suggestions UI view, including layout, theme, and sheet presentation.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can configure the layout of search suggestion chips (e.g., carousel) and the theme (e.g., light/dark mode).\u003c/p\u003e\n"],["\u003cp\u003eOptions exist to control the search sheet's detent (size) and, on iOS 16.0+, a custom sheet height.\u003c/p\u003e\n"],["\u003cp\u003eDelegates can be assigned to handle click notifications and opening URLs from the search suggestions.\u003c/p\u003e\n"]]],["This class, `SearchSuggestionsViewOptions`, customizes the UI for search suggestions. Key options include setting the `layout` for suggestion chips, applying a `theme`, and defining the `detentOption` for the search sheet. Users can also specify a `customizedSheetHeightFraction` for sheet size (iOS 16.0+). It also allows setting `clickNotificationDelegate` and `openURLDelegate` to handle user interactions and open URLs. Finally it provides an `init` method.\n"],null,["# SearchInAppsSDK Framework Reference\n\nSearchSuggestionsViewOptions\n============================\n\n\n @interface SearchSuggestionsViewOptions : NSObject\n\nThis class provides all the options to customize the search suggestions UI view.\n- `\n ``\n ``\n `\n\n ### [layout](#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewOptions(py)layout)\n\n `\n ` \n The specified layout to render search suggestion chips (e.g. carousel) \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic) enum ../Enums/SearchSuggestionsViewOptionsLayout.html layout;\n\n- `\n ``\n ``\n `\n\n ### [theme](#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewOptions(py)theme)\n\n `\n ` \n The specified theme to render search suggestion chips (e.g. light/dark mode) \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic) enum ../Enums/SearchSuggestionsViewOptionsTheme.html theme;\n\n- `\n ``\n ``\n `\n\n ### [detentOption](#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewOptions(py)detentOption)\n\n `\n ` \n The specified detent option to render search sheet (e.g. medium/large). \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic) enum ../Enums/DetentOptions.html detentOption;\n\n- `\n ``\n ``\n `\n\n ### [customizedSheetHeightFraction](#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewOptions(py)customizedSheetHeightFraction)\n\n `\n ` \n The specified fraction of the screen height to present the sheet. The valid value is between\n 0.5 and 1.0. iOS 16.0+ only. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic) CGFloat customizedSheetHeightFraction;\n\n- `\n ``\n ``\n `\n\n ### [clickNotificationDelegate](#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewOptions(py)clickNotificationDelegate)\n\n `\n ` \n The click notification delegate for the search suggestions view. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, weak) id\u003c ../Protocols/SearchContentClickNotificationDelegate.html\u003e _Nullable clickNotificationDelegate;\n\n- `\n ``\n ``\n `\n\n ### [openURLDelegate](#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewOptions(py)openURLDelegate)\n\n `\n ` \n The open URL delegate for the search suggestions view. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, weak) id\u003c../Protocols/SearchContentOpenURLDelegate.html\u003e _Nullable openURLDelegate;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:@M@SearchInAppsSDK@objc(cs)SearchSuggestionsViewOptions(im)init)\n\n `\n ` \n Undocumented \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;"]]