fetchAndObserveEvents(forTaskIDs:eventQuery:errorHandler:)
Retrieves and observes events using an array of specific task identifiers, and match a query, .
Declaration
func fetchAndObserveEvents(forTaskIDs taskIDs: [String], eventQuery: OCKEventQuery, errorHandler: ((Error) -> Void)? = nil)Parameters
- taskIDs:
An array of unique identifiers for the tasks the events belong to.
- eventQuery :
An event query that limits the results the store returns.
- errorHandler :
An error handler the function uses when it encounters an error.