顯示搜尋結果
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
SFSafariViewController
根據預設,點選搜尋元件後,對應的 Google 搜尋結果會顯示在 SFSafariViewController 中。您可以使用檢視選項自訂高度。
查看選項
您可以使用 SearchSuggestionsViewOptions/SearchContentViewOptions 自訂每個 SearchSuggestionsViewController
、SearchSuggestionsView
、SearchContentViewController
、SearchContentView
。
可用的選項包括版面配置、主題、detentOption
和 customizedSheetHeightFraction
。
版面配置會決定搜尋建議的顯示方式。可用的選項包括 carousel
、compact carousel
和 tiling
。
主題可讓應用程式指定淺色模式、深色模式,或與系統外觀相符。
detentOption
(預先定義高度模式) 和 customizedSheetHeightFraction
(僅適用於 iOS 16.0 以上版本,可完全自訂高度) 可用於調整顯示 Google 搜尋頁面的底部面板 (SFSafariViewController) 高度。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[],["Clicking a search component displays Google Search results in an SFSafariViewController. This view's height is customizable via View Options, including layout, theme, `detentOption`, and `customizedSheetHeightFraction`. Layout options include carousel, compact carousel, and tiling. Themes allow for light, dark, or system-matched appearances. `detentOption` offers predefined height modes, while `customizedSheetHeightFraction` (iOS 16.0+) allows for full height customization. These options apply to `SearchSuggestionsViewController` and `SearchContentViewController`.\n"]]