protocol HomeBriefsController : SendableController for fetching home briefs.
-
Fetches an AsyncSequence of pages of home briefs with the given page size.
Declaration
Swift
@available(*, deprecated, message: "This API is experimental and is subject to change.") func stream(pageSize: UInt) throws -> PagedHomeBriefsStream -
Fetches a single home brief by its ID, for example the ID received in a Home Brief notification.
Throws
HomeErrorifidis empty or contains only whitespace, or if the request fails (for example, when no home brief exists with the given ID).Declaration
Swift
@available(*, deprecated, message: "This API is experimental and is subject to change.") func getHomeBrief(id: String) async throws -> HomeBrief?Parameters
idThe ID of the home brief to fetch.
Return Value
The
HomeBriefwith the given ID, ornilif no valid home brief was returned.