HistoryController

struct HistoryController
extension HistoryController : Sendable

The entry point for interacting with the history API.

  • Creates a new HistoryQuery for querying history.

    Declaration

    Swift

    func query() -> HistoryQuery
  • Fetches the list of applicable filters for the given object.

    Declaration

    Swift

    func fetchApplicableFilters() async throws -> [HistoryController.FilterSpec]
  • Deletes all history items for the given objects.

    Declaration

    Swift

    func deleteAll(from object: any HomeObject) async throws
  • Deletes all history items for the referenced objects.

    Declaration

    Swift

    func deleteAll(from objectID: String) async throws
  • Imformation about a single attribute filter and its supported values.

    Declaration

    Swift

    struct FilterSpec
    extension HistoryController.FilterSpec : Sendable