OCKSymptomTrackerViewController Class Reference

Inherits from UIViewController
Declared in OCKSymptomTrackerViewController.h

The OCKSymptomTrackerViewController class is a view controller that displays the activities and events from an OCKCarePlanStore that are of assessment type (see OCKCarePlanActivityTypeAssessment).

It must be embedded inside a UINavigationController to allow for calendar operations, such as Today bar button item.

– initWithCarePlanStore:

Returns an initialized symptom tracker view controller using the specified store.

- (instancetype)initWithCarePlanStore:(OCKCarePlanStore *)store

Parameters

store

A care plan store.

Return Value

An initialized symptom tracker view controller.

Declared In

OCKSymptomTrackerViewController.h

  store

The care plan store that provides the content for the symptom tracker.

@property (nonatomic, readonly) OCKCarePlanStore *store

Discussion

The symptom tracker displays activites and events that are of assessment type (see OCKCarePlanActivityTypeAssessment).

Declared In

OCKSymptomTrackerViewController.h

  delegate

The delegate is used to provide the appropriate view controller for a given assessment event. It also allows the fetched events to be modified or updated before they are displayed.

@property (nonatomic, weak, nullable) id<OCKSymptomTrackerViewControllerDelegate> delegate

Discussion

See the OCKSymptomTrackerViewControllerDelegate protocol.

Declared In

OCKSymptomTrackerViewController.h

  lastSelectedAssessmentEvent

The last assessment event selected by the user.

@property (nonatomic, readonly, nullable) OCKCarePlanEvent *lastSelectedAssessmentEvent

Discussion

This value is nil if no assessment has been selected yet.

Declared In

OCKSymptomTrackerViewController.h

  tableView

A reference to the UITableView contained in the view controller

@property (nonatomic, readonly, nonnull) UITableView *tableView

Declared In

OCKSymptomTrackerViewController.h

  glyphTintColor

The tint color that will be used to fill the ring view.

@property (nonatomic, null_resettable) UIColor *glyphTintColor

Discussion

If the value is not specified, the app’s tint color is used.

Declared In

OCKSymptomTrackerViewController.h

  headerTitle

The string that will be used as the Symptom Tracker header title.

@property (nonatomic, null_resettable) NSString *headerTitle

Discussion

If the value is not specified, CareKit’s default string (“Activity Completion”) is used.

Declared In

OCKSymptomTrackerViewController.h

  glyphType

The glyph type for the header view (see OCKGlyphType).

@property (nonatomic) OCKGlyphType glyphType

Declared In

OCKSymptomTrackerViewController.h

  customGlyphImageName

Image name string if using a custom image. Cannot access image name once image has been created and we need a way to access that to send the custom image name string to the watch

@property (nonatomic) NSString *customGlyphImageName

Declared In

OCKSymptomTrackerViewController.h