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: required method

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

- (void)connectViewController:(OCKConnectViewController *)connectViewController didSelectShareButtonForContact:(OCKContact *)contact presentationSourceView:(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