[go: up one dir, main page]

Crate objc2_cloud_kit

Crate objc2_cloud_kit 

Source
Expand description

§Bindings to the CloudKit framework

See Apple’s docs and the general docs on framework crates for more information.

Structs§

CKAcceptSharesOperationCKAcceptSharesOperation and CKOperation
Apple’s documentation
CKAccountStatusCKContainer
credentials in Settings app.
CKAllowedSharingOptionsCKAllowedSharingOptions
Apple’s documentation
CKApplicationPermissionStatusDeprecatedCKContainer
Apple’s documentation
CKApplicationPermissionsCKContainer
Apple’s documentation
CKAssetCKAsset
Apple’s documentation
CKContainerCKContainer
A CKContainer, and its CKDatabases, are the main entry points into the CloudKit framework.
CKDatabaseCKDatabase
Apple’s documentation
CKDatabaseNotificationCKNotification
A notification generated by a CKDatabaseSubscription
CKDatabaseOperationCKDatabaseOperation and CKOperation
Apple’s documentation
CKDatabaseScopeCKDatabase
Apple’s documentation
CKDatabaseSubscriptionCKSubscription
A subscription fires whenever any change happens in the database that this subscription was saved in.
CKDiscoverAllUserIdentitiesOperationDeprecatedCKDiscoverAllUserIdentitiesOperation and CKOperation
Finds all discoverable users in the device’s contacts database. No Contacts access dialog will be displayed.
CKDiscoverUserIdentitiesOperationDeprecatedCKDiscoverUserIdentitiesOperation and CKOperation
Apple’s documentation
CKErrorCodeCKError
Apple’s documentation
CKFetchDatabaseChangesOperationCKDatabaseOperation and CKFetchDatabaseChangesOperation and CKOperation
This operation will fetch changes to record zones within a database
CKFetchNotificationChangesOperationCKFetchNotificationChangesOperation and CKOperation
Apple’s documentation
CKFetchRecordChangesOperationDeprecatedCKDatabaseOperation and CKFetchRecordChangesOperation and CKOperation
Use CKFetchRecordZoneChangesOperation instead of this class.
CKFetchRecordZoneChangesConfigurationCKFetchRecordZoneChangesOperation
Apple’s documentation
CKFetchRecordZoneChangesOperationCKDatabaseOperation and CKFetchRecordZoneChangesOperation and CKOperation
This operation will fetch records changes across the given record zones
CKFetchRecordZoneChangesOptionsDeprecatedCKFetchRecordZoneChangesOperation
Apple’s documentation
CKFetchRecordZonesOperationCKDatabaseOperation and CKFetchRecordZonesOperation and CKOperation
Apple’s documentation
CKFetchRecordsOperationCKDatabaseOperation and CKFetchRecordsOperation and CKOperation
Apple’s documentation
CKFetchShareMetadataOperationCKFetchShareMetadataOperation and CKOperation
Fetch the CKShareMetadatafor a share URL.
CKFetchShareParticipantsOperationCKFetchShareParticipantsOperation and CKOperation
Apple’s documentation
CKFetchSubscriptionsOperationCKDatabaseOperation and CKFetchSubscriptionsOperation and CKOperation
Apple’s documentation
CKFetchWebAuthTokenOperationCKDatabaseOperation and CKFetchWebAuthTokenOperation and CKOperation
This operation will fetch a web auth token given an API token obtained from the CloudKit Dashboard for your container
CKLocationSortDescriptorCKLocationSortDescriptor
Apple’s documentation
CKMarkNotificationsReadOperationCKMarkNotificationsReadOperation and CKOperation
Apple’s documentation
CKModifyBadgeOperationCKModifyBadgeOperation and CKOperation
Apple’s documentation
CKModifyRecordZonesOperationCKDatabaseOperation and CKModifyRecordZonesOperation and CKOperation
Apple’s documentation
CKModifyRecordsOperationCKDatabaseOperation and CKModifyRecordsOperation and CKOperation
Apple’s documentation
CKModifySubscriptionsOperationCKDatabaseOperation and CKModifySubscriptionsOperation and CKOperation
Apple’s documentation
CKNotificationCKNotification
Pushes from CloudKit servers contain both CloudKit-specific and APS-specific information. APS-specific information includes elements like alerts, badges, sounds, categories, etc. When receiving a push from CloudKit servers, the push may be delivered via multiple API flows. The flow(s) chosen will depend on the type of push requested (e.g. via the CKSubscription that triggered it and its configured notificationInfo).
CKNotificationIDCKNotification
Apple’s documentation
CKNotificationInfoCKSubscription
The payload of a push notification delivered in the UIApplication application:didReceiveRemoteNotification:delegate method contains information about the firing subscription.
CKNotificationTypeCKNotification
Apple’s documentation
CKOperationCKOperation
Apple’s documentation
CKOperationConfigurationCKOperation
An operation configuration is a set of properties that describes how your operation should behave. All properties have a default value. When determining what properties to apply to an operation, we consult the operation’s configuration property, as well as the operation->group->defaultConfiguration property. We combine them following these rules:
CKOperationGroupCKOperationGroup
A mechanism for your app to group several operations at the granularity of a user action.
CKOperationGroupTransferSizeCKOperationGroup
Valid values for expectedSendSize and expectedReceiveSize
CKQueryCKQuery
Only AND compound predicates are allowed.
CKQueryCursorCKQueryOperation
Apple’s documentation
CKQueryNotificationCKNotification
A notification generated by a CKQuerySubscription
CKQueryNotificationReasonCKNotification
Apple’s documentation
CKQueryOperationCKDatabaseOperation and CKOperation and CKQueryOperation
Apple’s documentation
CKQuerySubscriptionCKSubscription
A subscription that fires whenever a change matching the predicate occurs.
CKQuerySubscriptionOptionsCKSubscription
Apple’s documentation
CKRecordCKRecord
Apple’s documentation
CKRecordIDCKRecordID
Apple’s documentation
CKRecordSavePolicyCKModifyRecordsOperation
Locally edited keys are sent to the server, updating the record if the server record has not been modified. This is the default and recommended save policy for regular use. This policy compares the record change tag with the server record, and may return CKErrorServerRecordChangedif the server record has been modified, for example by another device. Note: A CKSharerecord is always treated as CKRecordSaveIfServerRecordUnchanged,regardless of the savePolicyof the operation that modifies the share.
CKRecordZoneCKRecordZone
Apple’s documentation
CKRecordZoneCapabilitiesCKRecordZone
Apple’s documentation
CKRecordZoneEncryptionScopeCKRecordZone
Apple’s documentation
CKRecordZoneIDCKRecordZoneID
Apple’s documentation
CKRecordZoneNotificationCKNotification
A notification generated by a CKRecordZoneSubscription
CKRecordZoneSubscriptionCKSubscription
A subscription that fires whenever any change happens in the indicated Record Zone.
CKReferenceCKReference
Apple’s documentation
CKReferenceActionCKReference
Apple’s documentation
CKServerChangeTokenCKServerChangeToken
Apple’s documentation
CKShareCKRecord and CKShare
Like CKRecords, CKShares can store arbitrary key-value pairs. They are modified and fetched in the same manner. A share, its root record, and its root record’s children records will only appear in a participant’s CKFetchRecordChangesOperation’s results after the share has been accepted by that participant. Clients have access to the share (and optionally the root record) before accepting a share, via the CKShareMetadata object. Note that in order to access a root record before accepting a share, you must run a CKFetchShareMetadataOperation requesting the root record. A CKShare will appear in a CKFetchRecordChangesOperation’s results set whenever the participant list is updated. For that reason, you shouldn’t place heavy key-value pairs in it.
CKShareAccessRequesterCKShareAccessRequester
Apple’s documentation
CKShareBlockedIdentityCKShareBlockedIdentity
Apple’s documentation
CKShareMetadataCKShareMetadata
Apple’s documentation
CKShareParticipantCKShareParticipant
Apple’s documentation
CKShareParticipantAcceptanceStatusCKShareParticipant
Apple’s documentation
CKShareParticipantPermissionCKShareParticipant
These permissions determine what share participants can do with records inside that share
CKShareParticipantRoleCKShareParticipant
Defines the participant role in a share:
CKShareParticipantTypeDeprecatedCKShareParticipant
Apple’s documentation
CKShareRequestAccessOperationCKOperation and CKShareRequestAccessOperation
Apple’s documentation
CKSharingParticipantAccessOptionCKAllowedSharingOptions
Apple’s documentation
CKSharingParticipantPermissionOptionCKAllowedSharingOptions
Apple’s documentation
CKSubscriptionCKSubscription
Apple’s documentation
CKSubscriptionTypeCKSubscription
Apple’s documentation
CKSyncEngineCKSyncEngine
CKSyncEngine encapsulates the logic of syncing data with a CloudKit database.
CKSyncEngineAccountChangeEventCKSyncEngineEvent
The user signed in or out of their account.
CKSyncEngineAccountChangeTypeCKSyncEngineEvent
Apple’s documentation
CKSyncEngineConfigurationCKSyncEngineConfiguration
Apple’s documentation
CKSyncEngineDidFetchChangesEventCKSyncEngineEvent
The sync engine finished fetching changes from the server.
CKSyncEngineDidFetchRecordZoneChangesEventCKSyncEngineEvent
The sync engine finished fetching record zone changes from the server for a specific zone.
CKSyncEngineDidSendChangesEventCKSyncEngineEvent
The sync engine finished sending changes to the server.
CKSyncEngineEventCKSyncEngineEvent
An event that occurs during the operation of a CKSyncEngine.
CKSyncEngineEventTypeCKSyncEngineEvent
An event that occurs during the operation of a CKSyncEngine. See CKSyncEngineEvent for more details.
CKSyncEngineFailedRecordSaveCKSyncEngineEvent
Apple’s documentation
CKSyncEngineFailedZoneSaveCKSyncEngineEvent
Apple’s documentation
CKSyncEngineFetchChangesContextCKSyncEngine
The context of an attempt to fetch changes from the server.
CKSyncEngineFetchChangesOptionsCKSyncEngine
A set of options to use when fetching changes from the server.
CKSyncEngineFetchChangesScopeCKSyncEngine
A scope in which the sync engine will fetch changes from the server.
CKSyncEngineFetchedDatabaseChangesEventCKSyncEngineEvent
A batch of database changes was fetched from the server.
CKSyncEngineFetchedRecordDeletionCKSyncEngineEvent
Apple’s documentation
CKSyncEngineFetchedRecordZoneChangesEventCKSyncEngineEvent
A batch of record zone changes was fetched from the server.
CKSyncEngineFetchedZoneDeletionCKSyncEngineEvent
Apple’s documentation
CKSyncEnginePendingDatabaseChangeCKSyncEngineState
A change in a database that needs to be sent to the server.
CKSyncEnginePendingDatabaseChangeTypeCKSyncEngineState
Apple’s documentation
CKSyncEnginePendingRecordZoneChangeCKSyncEngineState
A change in a record zone that needs to be sent to the server.
CKSyncEnginePendingRecordZoneChangeTypeCKSyncEngineState
Apple’s documentation
CKSyncEnginePendingZoneDeleteCKSyncEngineState
A zone delete that needs to be sent to the server.
CKSyncEnginePendingZoneSaveCKSyncEngineState
A zone save that needs to be sent to the server.
CKSyncEngineRecordZoneChangeBatchCKSyncEngineRecordZoneChangeBatch
A batch of record zone changes that CKSyncEngine will send to the server in a single request.
CKSyncEngineSendChangesContextCKSyncEngine
The context of an attempt to send changes to the server.
CKSyncEngineSendChangesOptionsCKSyncEngine
A set of options to use when sending changes to the server.
CKSyncEngineSendChangesScopeCKSyncEngine
A scope in which the sync engine will send changes to the server.
CKSyncEngineSentDatabaseChangesEventCKSyncEngineEvent
The sync engine finished sending a batch of database changes to the server.
CKSyncEngineSentRecordZoneChangesEventCKSyncEngineEvent
The sync engine finished sending a batch of record zone changes to the server.
CKSyncEngineStateCKSyncEngineState
An object that tracks some state required for proper and efficient operation of CKSyncEngine-5sie5.
CKSyncEngineStateSerializationCKSyncEngineState
A serialized representation of a CKSyncEngineState.
CKSyncEngineStateUpdateEventCKSyncEngineEvent
The sync engine state was updated, and you should persist it locally.
CKSyncEngineSyncReasonCKSyncEngine
Apple’s documentation
CKSyncEngineWillFetchChangesEventCKSyncEngineEvent
The sync engine is about to fetch changes from the server.
CKSyncEngineWillFetchRecordZoneChangesEventCKSyncEngineEvent
The sync engine is about to fetch record zone changes from the server for a specific zone.
CKSyncEngineWillSendChangesEventCKSyncEngineEvent
The sync engine is about to send changes to the server.
CKSyncEngineZoneDeletionReasonCKSyncEngineEvent
Apple’s documentation
CKSystemSharingUIObserverCKSystemSharingUIObserver
Apple’s documentation
CKUserIdentityCKUserIdentity
Apple’s documentation
CKUserIdentityLookupInfoCKUserIdentityLookupInfo
Apple’s documentation

Statics§

CKAccountChangedNotificationCKContainer
This local notification is posted when there has been any change to the logged in iCloud account.
CKCurrentUserDefaultNameCKContainer
Stand-in for the current user’s ID; most often used in RecordZoneID->ownerName
CKErrorDomainCKError
Apple’s documentation
CKErrorRetryAfterKeyCKError
On some errors, the userInfo dictionary may contain a NSNumber instance that specifies the period of time in seconds after which the client may retry the request. For example, this key will be on CKErrorServiceUnavailable,``CKErrorRequestRateLimited,and other errors for which the recommended resolution is to retry after a delay.
CKErrorUserDidResetEncryptedDataKeyCKError
Apple’s documentation
CKOwnerDefaultNameDeprecatedCKContainer
Apple’s documentation
CKPartialErrorsByItemIDKeyCKError
When a CKErrorPartialFailure happens this key will be set in the error’s userInfo dictionary.
CKQueryOperationMaximumResultsCKQueryOperation
Query operations have a dynamically defined maximum number of results. If the results of a query exceed this max, your completion block will invoked with a cursor. Issue a new query with that cursor to fetch the next batch of results.
CKRecordChangedErrorAncestorRecordKeyCKError
If the server rejects a record save because it has been modified since the last time it was read, a CKErrorServerRecordChangedwill be returned. The error’s userInfodictionary will contain a CKRecordkeyed by CKRecordChangedErrorAncestorRecordKey.This is the original record used as a basis for making your changes.
CKRecordChangedErrorClientRecordKeyCKError
If the server rejects a record save because it has been modified since the last time it was read, a CKErrorServerRecordChangedwill be returned. The error’s userInfodictionary will contain a CKRecordkeyed by CKRecordChangedErrorClientRecordKey.This is the record object that you tried to save.
CKRecordChangedErrorServerRecordKeyCKError
If the server rejects a record save because it has been modified since the last time it was read, a CKErrorServerRecordChangedwill be returned. The error’s userInfodictionary will contain a CKRecordkeyed by CKRecordChangedErrorServerRecordKey.This is the record object that was found on the server.
CKRecordCreationDateKeyCKRecord
For use in queries to match on record properties. Matches record.creationDate. Value is a NSDate
CKRecordCreatorUserRecordIDKeyCKRecord
For use in queries to match on record properties. Matches record.creatorUserRecordID. Value is a CKRecordID
CKRecordLastModifiedUserRecordIDKeyCKRecord
For use in queries to match on record properties. Matches record.lastModifiedUserRecordID. Value is a CKRecordID
CKRecordModificationDateKeyCKRecord
For use in queries to match on record properties. Matches record.modificationDate. Value is a NSDate
CKRecordNameZoneWideShareCKShare
A zone-wide CKShare always uses the record name CKRecordNameZoneWideShare.You can use this to fetch the CKSharerecord for the zone with a CKFetchRecordsOperation.
CKRecordParentKeyCKRecord
For use in queries to match on record properties. Matches record.parent
CKRecordRecordIDKeyCKRecord
For use in queries to match on record properties. Matches record.recordID. Value is a CKRecordID
CKRecordShareKeyCKRecord
For use in queries to match on record properties. Matches record.share
CKRecordTypeShareCKRecord and CKShare
Apple’s documentation
CKRecordTypeUserRecordCKRecord
Use this constant for the recordType parameter when fetching User Records.
CKRecordZoneDefaultNameCKRecordZone
Apple’s documentation
CKShareThumbnailImageDataKeyCKRecord and CKShare
Value is a data blob suitable to pass into
CKShareTitleKeyCKRecord and CKShare
Value is a string. Example for a recipe sharing app: “Pot Roast”
CKShareTypeKeyCKRecord and CKShare
Value is a string representing a UTI. Example for a recipe sharing app: “com.mycompany.recipe”

Traits§

CKRecordKeyValueSettingCKRecord
Formalizes a protocol for getting and setting keys on a CKRecord. Not intended to be used directly by client code
CKRecordValueCKRecord
Apple’s documentation
CKSyncEngineDelegateCKSyncEngine
An interface by which CKSyncEngine communicates with your application.
NSItemProviderCKSharingSupportNSItemProvider_CKSharingSupport
Category “CKSharingSupport” on NSItemProvider.

Type Aliases§

CKApplicationPermissionBlockDeprecatedCKContainer and block2
Apple’s documentation
CKOperationIDCKOperation
Apple’s documentation
CKRecordFieldKeyCKRecord
Apple’s documentation
CKRecordTypeCKRecord
Apple’s documentation
CKSharePreparationCompletionHandlerCKRecord and CKShare and NSItemProvider_CKSharingSupport and block2
Apple’s documentation
CKSharePreparationHandlerCKRecord and CKShare and NSItemProvider_CKSharingSupport and block2
Apple’s documentation
CKSubscriptionIDCKSubscription
Apple’s documentation