OCKSymptomTrackerViewControllerDelegate Protocol Reference

Conforms to NSObject
Declared in OCKSymptomTrackerViewController.h

An object that adopts the OCKSymptomTrackerViewControllerDelegate protocol is responsible for presenting the appropriate view controller to perform the assessment. It also allows the object to modify or update the events before they are displayed.

– symptomTrackerViewController:didSelectRowWithAssessmentEvent: required method

Tells the delegate when the user selected an assessment event.

- (void)symptomTrackerViewController:(OCKSymptomTrackerViewController *)viewController didSelectRowWithAssessmentEvent:(OCKCarePlanEvent *)assessmentEvent

Parameters

viewController

The view controller providing the callback.

assessmentEvent

The assessment event that the user selected.

Declared In

OCKSymptomTrackerViewController.h

– symptomTrackerViewController:willDisplayEvents:dateComponents:

Tells the delegate when a new set of events is fetched from the care plan store.

- (void)symptomTrackerViewController:(OCKSymptomTrackerViewController *)viewController willDisplayEvents:(NSArray<NSArray<OCKCarePlanEvent*> *> *)events dateComponents:(NSDateComponents *)dateComponents

Parameters

viewController

The view controller providing the callback.

events

An array containing the fetched set of assessment events grouped by activity.

dateComponents

The date components for which the events will be displayed.

Discussion

This is invoked when the date changes or when the care plan store’s carePlanStoreActivityListDidChange delegate method is called. This provides a good opportunity to update the store such as fetching data from HealthKit.

Declared In

OCKSymptomTrackerViewController.h