init
TypeScriptstatic init(container: CKContainer): CKSystemSharingUIObserverSwift declarationinit(container: CKContainer)class · iOS 16.0+ · SDK 27.1
class CKSystemSharingUIObserverstatic init(container: CKContainer): CKSystemSharingUIObserverSwift declarationinit(container: CKContainer)get systemSharingUIDidSaveShareBlock(): (((arg0: CKRecord_ID, arg1: SDKHandle) => Promise<void>)) | nullSwift 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 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 systemSharingUIDidStopSharingBlock(): (((arg0: CKRecord_ID, arg1: SDKHandle) => Promise<void>)) | nullSwift 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 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.
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)