Class CloudKit


  • public final class CloudKit
    extends java.lang.Object
    • 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.