OCKCareContentsViewController Class Reference

Inherits from UIViewController
Declared in OCKCareContentsViewController.h

The OCKCareContentsViewController class is a view controller that displays the activities and events from an OCKCarePlanStore that are of intervention type (see OCKCarePlanActivityTypeIntervention), assessment type (see OCKCarePlanActivityTypeAssessment), and read only intervention and assessment types (see OCKCarePlanActivityTypeReadOnly).

Activities can include a detail view. Therefore, it must be embedded inside a UINavigationController.

– initWithCarePlanStore:

Returns an initialized care view controller using the specified store.

- (instancetype)initWithCarePlanStore:(OCKCarePlanStore *)store

Parameters

store

A care plan store.

Return Value

An initialized care view controller.

Declared In

OCKCareContentsViewController.h

  store

The care plan store that provides the content for the care card.

@property (nonatomic, readonly) OCKCarePlanStore *store

Discussion

The care view displays activites and events of type intervention, assessment, intervention read-only, and assessment read-only (see OCKCarePlanActivityType).

Declared In

OCKCareContentsViewController.h

  lastSelectedActivity

The last activity selected by the user.

@property (nonatomic, readonly, nullable) OCKCarePlanActivity *lastSelectedActivity

Discussion

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

Declared In

OCKCareContentsViewController.h

  lastSelectedEvent

The last event selected by the user.

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

Discussion

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

Declared In

OCKCareContentsViewController.h

  glyphTintColor

The image that will be used to mask the fill shape in the week view.

@property (nonatomic, null_resettable) UIColor *glyphTintColor

Discussion

In order to provide a custom maskImage, you must have a regular size and small size. For example, in the assets catalog, there are “heart” and a “heart-small” assets. Both assets must be provided in order to properly render the interface.

The tint color that will be used to fill the shape.

If tint color is not specified, a default red color will be used.

Declared In

OCKCareContentsViewController.h

  glyphType

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

@property (nonatomic) OCKGlyphType glyphType

Declared In

OCKCareContentsViewController.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, copy) NSString *customGlyphImageName

Declared In

OCKCareContentsViewController.h

  delegate

The delegate can be used to modify or update the internvention events before they are displayed.

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

Discussion

See the OCKCareContentsViewControllerDelegate protocol.

Declared In

OCKCareContentsViewController.h

  optionalSectionHeader

The section header title for all the Optional activities. Default is Optional if nil.

@property (nonatomic, nullable) NSString *optionalSectionHeader

Declared In

OCKCareContentsViewController.h

  readOnlySectionHeader

The section header title for all the ReadOnly activities. Default is Read Only if nil.

@property (nonatomic, nullable) NSString *readOnlySectionHeader

Declared In

OCKCareContentsViewController.h