SearchInAppsSDK Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
SearchSuggestionsViewOptionsTheme
enum SearchSuggestionsViewOptionsTheme : NSInteger {}
The theme options for the search suggestions view.
-
The theme is always light mode.
Declaration
Swift
case alwaysLight = 0
Objective-C
SearchSuggestionsViewOptionsThemeAlwaysLight = 0
-
The theme is always dark mode.
Declaration
Swift
case alwaysDark = 1
Objective-C
SearchSuggestionsViewOptionsThemeAlwaysDark = 1
-
The theme will switch between light and dark modes based on the current system settings.
Declaration
Swift
case matchSystem = 2
Objective-C
SearchSuggestionsViewOptionsThemeMatchSystem = 2
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-08-06 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-08-06 UTC."],[[["\u003cp\u003e\u003ccode\u003eSearchSuggestionsViewOptionsTheme\u003c/code\u003e provides options to customize the theme of the search suggestions view.\u003c/p\u003e\n"],["\u003cp\u003eThree theme options are available: \u003ccode\u003ealwaysLight\u003c/code\u003e, \u003ccode\u003ealwaysDark\u003c/code\u003e, and \u003ccode\u003ematchSystem\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ealwaysLight\u003c/code\u003e and \u003ccode\u003ealwaysDark\u003c/code\u003e force the view to be in light or dark mode respectively, while \u003ccode\u003ematchSystem\u003c/code\u003e follows the system's current theme settings.\u003c/p\u003e\n"]]],["The `SearchSuggestionsViewOptionsTheme` enum defines theme options for a search suggestions view. It offers three options: `alwaysLight` (0), which forces light mode; `alwaysDark` (1), which forces dark mode; and `matchSystem` (2), which dynamically switches between light and dark modes based on the device's current system settings. These options are available in both Swift and Objective-C with corresponding integer values.\n"],null,["# SearchInAppsSDK Framework Reference\n\nSearchSuggestionsViewOptionsTheme\n=================================\n\n enum SearchSuggestionsViewOptionsTheme : NSInteger {}\n\nThe theme options for the search suggestions view.\n- `\n ``\n ``\n `\n\n ### [SearchSuggestionsViewOptionsThemeAlwaysLight](#/c:@M@SearchInAppsSDK@E@SearchSuggestionsViewOptionsTheme@SearchSuggestionsViewOptionsThemeAlwaysLight)\n\n `\n ` \n The theme is always light mode. \n\n #### Declaration\n\n Swift \n\n case alwaysLight = 0\n\n Objective-C \n\n SearchSuggestionsViewOptionsThemeAlwaysLight = 0\n\n- `\n ``\n ``\n `\n\n ### [SearchSuggestionsViewOptionsThemeAlwaysDark](#/c:@M@SearchInAppsSDK@E@SearchSuggestionsViewOptionsTheme@SearchSuggestionsViewOptionsThemeAlwaysDark)\n\n `\n ` \n The theme is always dark mode. \n\n #### Declaration\n\n Swift \n\n case alwaysDark = 1\n\n Objective-C \n\n SearchSuggestionsViewOptionsThemeAlwaysDark = 1\n\n- `\n ``\n ``\n `\n\n ### [SearchSuggestionsViewOptionsThemeMatchSystem](#/c:@M@SearchInAppsSDK@E@SearchSuggestionsViewOptionsTheme@SearchSuggestionsViewOptionsThemeMatchSystem)\n\n `\n ` \n The theme will switch between light and dark modes based on the current system settings. \n\n #### Declaration\n\n Swift \n\n case matchSystem = 2\n\n Objective-C \n\n SearchSuggestionsViewOptionsThemeMatchSystem = 2"]]