Contents

systemSharingUIDidSaveShareBlock

A callback block the system invokes after the success or failure of a share save by the system sharing UI.

Declaration

@property (copy) void (^)(CKRecordID *, CKShare *, NSError *) systemSharingUIDidSaveShareBlock;

Discussion

Following a successful share save by the system sharing UI in the provided CKContainer, the system invokes this callback with a nonnull CKRecord.ID, a nonnull share, and a nil error.

If a save failure occurs due to a per-item error like CKError.Code.serverRecordChanged, the system invokes this callback with a nonnull CKRecord.ID, a nil share, and a nonnull error.

Each CKSystemSharingUIObserver instance has a private serial queue. The system uses this queue for all callback block invocations.

See Also

Accessing sharing blocks