Class

CKShare

A reference to a shared record.

Declaration

@interface CKShare : CKRecord

Topics

Creating a Share

- initWithCoder:

Initializes and returns a share object.

- initWithRootRecord:

Initializes and returns a share object.

- initWithRootRecord:shareID:

Initializes and returns a share object.

Configuring the Share Object

publicPermission

Definition of permissions new users joining this share will have initially.

- addParticipant:

Adds a participant to this share.

- removeParticipant:

Removes a participant from the share.

Accessing the Share Metadata

URL

A URL that can be used to invite participants to this share.

currentUserParticipant

The current user’s metadata for this share.

owner

The share owner’s metadata.

participants

An array containing metadata objects for all participants in this share.

Relationships

Inherits From

Conforms To

See Also

Shared Content

CKShareMetadata

A reference to the metadata for a shared record.

CKShareParticipant

A reference to a person who accepted a shared record.

Share Operations

Operations are used to communicate shared information with CloudKit.