Protocol

UICloudSharingControllerDelegate

The protocol you implement to provide additional information to, and receive notifications from, the CloudKit sharing controller.

Declaration

protocol UICloudSharingControllerDelegate

Overview

Implement an object that conforms to the UICloudSharingControllerDelegate protocol when you want to:

Topics

Configuring the View Controller

func itemTitle(for: UICloudSharingController) -> String?

Asks the delegate for the title to display on the invitation screen.

Required.

func itemType(for: UICloudSharingController) -> String?

Asks the delegate for the Uniform Type Identifier (UTI) of the item.

func itemThumbnailData(for: UICloudSharingController) -> Data?

Asks the delegate for the thumbnail image data to display on the invitation.

Processing Shared Items

func cloudSharingController(UICloudSharingController, failedToSaveShareWithError: Error)

Tells the delegate that the CloudKit sharing controller failed to save the share record.

Required.

func cloudSharingControllerDidStopSharing(UICloudSharingController)

Tells the delegate that the user has stopped sharing the record.

func cloudSharingControllerDidSaveShare(UICloudSharingController)

Tells the delegate that the CloudKit sharing controller saved the share record.

Relationships

Inherits From

See Also

Customizing the Cloud Sharing Controller Behavior

var delegate: UICloudSharingControllerDelegate?

A reference to an object that conforms to the CloudKit sharing controller delegate protocol.