OCKConnectViewControllerDelegate Protocol Reference

Conforms to NSObject
Declared in OCKConnectViewController.h

An object that adopts the OCKConnectViewControllerDelegate protocol is responsible for providing the data required to populate the sharing section in the table view of an OCKConnectViewController object.

– connectViewController:didSelectShareButtonForContact:presentationSourceView:

Tells the delegate when the user selected the share button for a contact.

- (void)connectViewController:(OCKConnectViewController *)connectViewController didSelectShareButtonForContact:(OCKContact *)contact presentationSourceView:(nullable UIView *)sourceView

Parameters

connectViewController

The view controller providing the callback.

contact

The contact that is currently displayed.

sourceView

Source view can be used to present a popover on iPad.

Declared In

OCKConnectViewController.h

– connectViewController:titleForSharingCellForContact:

Asks the delegate for the title to be shown in the sharing cell for a contact. If the method returns nil or is not implemented, the localized string for the SHARING_CELL_TITLE key is displayed.

- (nullable NSString *)connectViewController:(OCKConnectViewController *)connectViewController titleForSharingCellForContact:(OCKContact *)contact

Parameters

connectViewController

The view controller providing the callback.

contact

The contact that is currently displayed.

Return Value

The string that will be displayed in the sharing cell for the contact.

Discussion

Single-lined.

Declared In

OCKConnectViewController.h

– connectViewController:handleContactInfoSelected:

Asks the delegate to handle the selection of the contact info. This can be used to provide custom handling for contacting the contact. If the method is not implemented or if it returns NO then the default handling will be used instead.

- (BOOL)connectViewController:(OCKConnectViewController *)connectViewController handleContactInfoSelected:(OCKContactInfo *)contactInfo

Parameters

connectViewController

The view controller providing the callback.

contactInfo

The contact info that was selected.

Return Value

YES if the contact info selection was handled, or NO if the default handling should be performed instead.

Declared In

OCKConnectViewController.h

– connectViewController:didSendConnectMessage:careTeamContact:

Tells the delegate when the user has sent a connect message.

- (void)connectViewController:(OCKConnectViewController *)viewController didSendConnectMessage:(NSString *)message careTeamContact:(OCKContact *)contact

Parameters

viewController

The view controller providing the callback.

message

The message that is being sent.

contact

The care team contact the message is being sent to.

Declared In

OCKConnectViewController.h

– connectViewController:didSelectProfileForPatient:

Tells the delegate when the user has tapped the profile header.

- (void)connectViewController:(OCKConnectViewController *)viewController didSelectProfileForPatient:(OCKPatient *)patient

Parameters

viewController

The view controller providing the callback.

patient

The patient profile.

Declared In

OCKConnectViewController.h