fetchAndObserveEvents(forTaskID:eventQuery:errorHandler:)
Retrieves and observes events using a specific task identifier, and match a query, .
Declaration
func fetchAndObserveEvents(forTaskID taskID: String, eventQuery: OCKEventQuery, errorHandler: ((Error) -> Void)? = nil)Parameters
- taskID:
The unique identifier for the task 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.