HomeBriefsController

protocol HomeBriefsController : Sendable

Controller 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

    HomeError if id is 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

    id

    The ID of the home brief to fetch.

    Return Value

    The HomeBrief with the given ID, or nil if no valid home brief was returned.