SearchInAppsSDK Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
SearchContents
@available(iOS, introduced: 14)
@objc
final class SearchContents
A collection of search content block data
-
The type of publisher that emits before the object has changed.
Declaration
Swift
@available(iOS, introduced: 14)
typealias ObjectWillChangePublisher = ObservableObjectPublisher
-
Request additional content (if available) using the same options as the original request.
Declaration
Swift
@available(iOS, introduced: 14)
@objc
final func loadMoreContents() async throws -> [SearchContentBlockData]
Return Value
An array containing the additional search content.
-
The set of search content blocks ready to be displayed
Declaration
Swift
@available(iOS, introduced: 14)
@Published
@objc
final var searchContentBlocks: [SearchContentBlockData] { get }
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."],[[["`SearchContents` is a collection of search content block data available in iOS 14 and later."],["It provides a publisher (`ObjectWillChangePublisher`) that emits before the object changes."],["The `loadMoreContents()` function allows requesting additional search content asynchronously."],["The `searchContentBlocks` property provides access to the ready-to-display search content blocks."]]],["`SearchContents` class, available on iOS 14+, manages search content blocks. It publishes changes via `ObjectWillChangePublisher`. Key actions include `loadMoreContents()`, which asynchronously retrieves additional content blocks, returning an array of them. `searchContentBlocks` is a published property containing the set of content blocks ready for display. The core functionality revolves around fetching and managing a collection of search results for display.\n"]]