One Logo Pool Ball
CloudKit · IOS API REFERENCE

CKSystemSharingUIObserver

class · iOS 16.0+ · SDK 27.1

class CKSystemSharingUIObserver

Members (5)

init · iOS 16.0+

init

TypeScript
static init(container: CKContainer): CKSystemSharingUIObserver
Swift declaration
init(container: CKContainer)
get · iOS 16.0+

systemSharingUIDidSaveShareBlock

TypeScript
get systemSharingUIDidSaveShareBlock(): (((arg0: CKRecord_ID, arg1: SDKHandle) => Promise<void>)) | null
Swift declaration
@preconcurrency var systemSharingUIDidSaveShareBlock: (@Sendable (CKRecord.ID, Result<CKShare, any Error>) -> Void)? { get set }

A callback block the system invokes after the success or failure of a share save by the system sharing UI. 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.

set · iOS 16.0+

systemSharingUIDidSaveShareBlock

TypeScript
set systemSharingUIDidSaveShareBlock(value: (((arg0: CKRecord_ID, arg1: SDKHandle) => void)) | null)
Swift declaration
@preconcurrency var systemSharingUIDidSaveShareBlock: (@Sendable (CKRecord.ID, Result<CKShare, any Error>) -> Void)? { get set }

A callback block the system invokes after the success or failure of a share save by the system sharing UI. 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.

get · iOS 16.0+

systemSharingUIDidStopSharingBlock

TypeScript
get systemSharingUIDidStopSharingBlock(): (((arg0: CKRecord_ID, arg1: SDKHandle) => Promise<void>)) | null
Swift declaration
@preconcurrency var systemSharingUIDidStopSharingBlock: (@Sendable (CKRecord.ID, Result<Void, any Error>) -> Void)? { get set }

A callback block the system invokes after the success or failure of a share delete by the system sharing UI. The system invokes this block on the success or failure of a ``CKShare`` delete when the user decides to stop sharing through the system sharing UI. Each ``CKSystemSharingUIObserver`` instance has a private serial queue. The system uses this queue for all callback block invocations.

set · iOS 16.0+

systemSharingUIDidStopSharingBlock

TypeScript
set systemSharingUIDidStopSharingBlock(value: (((arg0: CKRecord_ID, arg1: SDKHandle) => void)) | null)
Swift declaration
@preconcurrency var systemSharingUIDidStopSharingBlock: (@Sendable (CKRecord.ID, Result<Void, any Error>) -> Void)? { get set }

A callback block the system invokes after the success or failure of a share delete by the system sharing UI. The system invokes this block on the success or failure of a ``CKShare`` delete when the user decides to stop sharing through the system sharing UI. Each ``CKSystemSharingUIObserver`` instance has a private serial queue. The system uses this queue for all callback block invocations.

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

CKSystemSharingUIObserver.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All CloudKit types →