Package apple.cloudkit.c
Class CloudKit
- java.lang.Object
-
- apple.cloudkit.c.CloudKit
-
public final class CloudKit extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringCKAccountChangedNotification()This local notification is posted when there has been any change to the logged in iCloud account.static java.lang.StringCKCurrentUserDefaultName()Stand-in for the current user's ID; most often used in RecordZoneID->ownerNamestatic java.lang.StringCKErrorDomain()static java.lang.StringCKErrorRetryAfterKey()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.static java.lang.StringCKOwnerDefaultName()static java.lang.StringCKPartialErrorsByItemIDKey()When a CKErrorPartialFailure happens this key will be set in the error's userInfo dictionary.static longCKQueryOperationMaximumResults()Query operations have a dynamically defined maximum number of results.static java.lang.StringCKRecordChangedErrorAncestorRecordKey()If the server rejects a record save because it has been modified since the last time it was read, a @c CKErrorServerRecordChanged error will be returned and it will contain versions of the record in its userInfo dictionary.static java.lang.StringCKRecordChangedErrorClientRecordKey()static java.lang.StringCKRecordChangedErrorServerRecordKey()static java.lang.StringCKRecordParentKey()Use these keys in queries to match on the record's parent or share referencestatic java.lang.StringCKRecordShareKey()static java.lang.StringCKRecordTypeShare()static java.lang.StringCKRecordTypeUserRecord()Use this constant for the recordType parameter when fetching User Records.static java.lang.StringCKRecordZoneDefaultName()static java.lang.StringCKShareThumbnailImageDataKey()Value is a data blob suitable to pass into @code -[NSImage imageWithData:] or -[UIImage imageWithData:] @endcodestatic java.lang.StringCKShareTitleKey()Value is a string.static java.lang.StringCKShareTypeKey()Value is a string representing a UTI.
-
-
-
Method Detail
-
CKCurrentUserDefaultName
public static java.lang.String CKCurrentUserDefaultName()
Stand-in for the current user's ID; most often used in RecordZoneID->ownerName
-
CKOwnerDefaultName
public static java.lang.String CKOwnerDefaultName()
-
CKAccountChangedNotification
public static java.lang.String CKAccountChangedNotification()
This local notification is posted when there has been any change to the logged in iCloud account. On receipt, an updated account status should be obtained by calling @c accountStatusWithCompletionHandler:
-
CKErrorDomain
public static java.lang.String CKErrorDomain()
-
CKPartialErrorsByItemIDKey
public static java.lang.String CKPartialErrorsByItemIDKey()
When a CKErrorPartialFailure happens this key will be set in the error's userInfo dictionary. The value of this key will be a dictionary, and the values will be errors for individual items with the keys being the item IDs that failed.
-
CKRecordChangedErrorAncestorRecordKey
public static java.lang.String CKRecordChangedErrorAncestorRecordKey()
If the server rejects a record save because it has been modified since the last time it was read, a @c CKErrorServerRecordChanged error will be returned and it will contain versions of the record in its userInfo dictionary. Apply your custom conflict resolution logic to the server record under @c CKServerRecordKey and attempt a save of that record.
-
CKRecordChangedErrorServerRecordKey
public static java.lang.String CKRecordChangedErrorServerRecordKey()
-
CKRecordChangedErrorClientRecordKey
public static java.lang.String CKRecordChangedErrorClientRecordKey()
-
CKErrorRetryAfterKey
public static java.lang.String CKErrorRetryAfterKey()
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 @c CKErrorServiceUnavailable, @c CKErrorRequestRateLimited, and other errors for which the recommended resolution is to retry after a delay.
-
CKRecordTypeUserRecord
public static java.lang.String CKRecordTypeUserRecord()
Use this constant for the recordType parameter when fetching User Records.
-
CKRecordParentKey
public static java.lang.String CKRecordParentKey()
Use these keys in queries to match on the record's parent or share reference
-
CKRecordShareKey
public static java.lang.String CKRecordShareKey()
-
CKRecordZoneDefaultName
public static java.lang.String CKRecordZoneDefaultName()
-
CKRecordTypeShare
public static java.lang.String CKRecordTypeShare()
-
CKShareTitleKey
public static java.lang.String CKShareTitleKey()
Value is a string. Example for a recipe sharing app: "Pot Roast"
-
CKShareThumbnailImageDataKey
public static java.lang.String CKShareThumbnailImageDataKey()
Value is a data blob suitable to pass into @code -[NSImage imageWithData:] or -[UIImage imageWithData:] @endcode
-
CKShareTypeKey
public static java.lang.String CKShareTypeKey()
Value is a string representing a UTI. Example for a recipe sharing app: "com.mycompany.recipe"
-
CKQueryOperationMaximumResults
public static long CKQueryOperationMaximumResults()
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.
-
-