OCKConnectViewControllerDataSource Protocol Reference

Conforms to NSObject
Declared in OCKConnectViewController.h

An object that adopts the OCKConnectViewControllerDataSource protocol can use it provide connect message to be displayed.

– connectViewControllerCareTeamConnections: required method

Asks the data source for an array of contacts to be displayed under inbox.

- (NSArray<OCKContact*> *)connectViewControllerCareTeamConnections:(OCKConnectViewController *)viewController

Parameters

viewController

The view controller providing the callback.

Declared In

OCKConnectViewController.h

– connectViewController:connectMessageItemAtIndex:careTeamContact: required method

Asks the data source for a connect message item for a given index.

- (OCKConnectMessageItem *)connectViewController:(OCKConnectViewController *)viewController connectMessageItemAtIndex:(NSInteger)index careTeamContact:(OCKContact *)contact

Parameters

viewController

The view controller providing the callback.

index

The index of the table view row.

contact

The care team contact.

Discussion

The message items (connect messages) are displayed in the inbox under connect. The connectViewControllerNumberOfConnectMessageItems: and connectViewControllerCareTeamConnections: implementations are required with this method.

Declared In

OCKConnectViewController.h

– connectViewControllerNumberOfConnectMessageItems:careTeamContact: required method

Asks the data source for the number of connect message items.

- (NSInteger)connectViewControllerNumberOfConnectMessageItems:(OCKConnectViewController *)viewController careTeamContact:(OCKContact *)contact

Parameters

viewController

The view controller providing the callback.

contact

The care team contact.

Discussion

The message items (connect messages) are displayed in the inbox under connect. The connectViewController:connectMessageItemAtIndex: implementation is required with this method.

Declared In

OCKConnectViewController.h