OCKCareCardViewController Class Reference

Inherits from UIViewController
Declared in OCKCareCardViewController.h

The OCKCareCardViewController class is a view controller that displays the activities and events from an OCKCarePlanStore that are of intervention type (see OCKCarePlanActivityTypeIntervention).

It includes a master view and a detail view. Therefore, it must be embedded inside a UINavigationController.

– initWithCarePlanStore:

Returns an initialized care card view controller using the specified store.

- (instancetype)initWithCarePlanStore:(OCKCarePlanStore *)store

Parameters

store

A care plan store.

Return Value

An initialized care card view controller.

Declared In

OCKCareCardViewController.h

  store

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

@property (nonatomic, readonly) OCKCarePlanStore *store

Discussion

The care card displays activites and events that are of intervention type (see OCKCarePlanActivityTypeIntervention).

Declared In

OCKCareCardViewController.h

  delegate

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

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

Discussion

See the OCKCareCardViewControllerDelegate protocol.

Declared In

OCKCareCardViewController.h

  maskImage

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

@property (nonatomic, null_resettable) UIImage *maskImage

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.

If no image is specified, the “heart” image will be loaded from the assets catalog.

Declared In

OCKCareCardViewController.h

  smallMaskImage

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

@property (nonatomic, null_resettable) UIImage *smallMaskImage

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.

If no image is specified, the “heart-small” image will be loaded from the assets catalog.

Declared In

OCKCareCardViewController.h

  maskImageTintColor

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

@property (nonatomic, null_resettable) UIColor *maskImageTintColor

Discussion

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

Declared In

OCKCareCardViewController.h

  showEdgeIndicators

A boolean to show the edge indicators.

@property (nonatomic) BOOL showEdgeIndicators

Discussion

The default value is NO.

Declared In

OCKCareCardViewController.h