SearchInAppsSDK Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
DetentOptions
enum DetentOptions : NSInteger {}
The detent options for the search suggestions view.
Medium = half screen, Large = full screen.
-
half of the screen only, cannot grow or shrink.
Declaration
Swift
case mediumOnly = 0
Objective-C
DetentOptionsMediumOnly = 0
-
full screen only, cannot grow or shrink.
Declaration
Objective-C
DetentOptionsLargeOnly = 1
-
half screen by default, but can grow to full screen.
Declaration
Swift
case mediumByDefault = 2
Objective-C
DetentOptionsMediumByDefault = 2
-
full screen by default, but can shrink to half screen.
Declaration
Swift
case largeByDefault = 3
Objective-C
DetentOptionsLargeByDefault = 3
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."],[[["`DetentOptions` is an enum that defines how the search suggestions view is presented."],["It offers four options: `mediumOnly`, `largeOnly`, `mediumByDefault`, and `largeByDefault`, controlling the view's initial and adjustable size."],["`mediumOnly` and `largeOnly` fix the view to half and full screen respectively, while `mediumByDefault` and `largeByDefault` allow resizing between half and full screen with a default starting size."],["These options are represented by integer values (0-3) accessible in both Swift and Objective-C."]]],["`DetentOptions` controls the search suggestions view's size. `MediumOnly` and `LargeOnly` lock the view to half or full screen, respectively. `MediumByDefault` starts at half screen but can expand, while `LargeByDefault` starts full screen and can shrink. These options are implemented as an enum with integer values (0-3) for both Swift and Objective-C.\n"]]