Class CKRecord

    • Constructor Detail

      • CKRecord

        protected CKRecord​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static CKRecord alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • allTokens

        public NSArray<java.lang.String> allTokens()
        A special property that returns an array of token generated from all the string field values in the record. These tokens have been normalized for the current locale, so they are suitable for performing full-text searches.
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • creationDate

        public NSDate creationDate()
      • creatorUserRecordID

        public CKRecordID creatorUserRecordID()
        This is a User Record recordID, identifying the user that created this record.
      • encodeSystemFieldsWithCoder

        public void encodeSystemFieldsWithCoder​(NSCoder coder)
        [@c] CKRecord supports @c NSSecureCoding. When you invoke @c encodeWithCoder: on a @c CKRecord, it encodes all its values. Including the record values you've set. If you want to store a @c CKRecord instance locally, AND you're already storing the record values locally, that's overkill. In that case, you can use @c encodeSystemFieldsWithCoder:. This will encode all parts of a @c CKRecord except the record keys / values you have access to via the @c changedKeys and @c objectForKey: methods. If you use @c initWithCoder: to reconstitute a @c CKRecord you encoded via @c encodeSystemFieldsWithCoder:, then be aware that - any record values you had set on the original instance, but had not saved, will be lost - the reconstituted CKRecord's @c changedKeys will be empty
      • initWithRecordType

        public CKRecord initWithRecordType​(java.lang.String recordType)
        This creates the record in the default zone.
      • initWithRecordTypeRecordID

        public CKRecord initWithRecordTypeRecordID​(java.lang.String recordType,
                                                   CKRecordID recordID)
      • initWithRecordTypeZoneID

        public CKRecord initWithRecordTypeZoneID​(java.lang.String recordType,
                                                 CKRecordZoneID zoneID)
      • lastModifiedUserRecordID

        public CKRecordID lastModifiedUserRecordID()
        This is a User Record recordID, identifying the user that last modified this record.
      • modificationDate

        public NSDate modificationDate()
      • parent

        public CKReference parent()
        Use a parent reference to teach CloudKit about the hierarchy of your records. When a record is shared, all children of that record are also shared. A parent record reference must have @c CKReferenceActionNone set. You can create a separate reference with @c CKReferenceActionDeleteSelf if you would like your hierarchy cleaned up when the parent record is deleted. The target of a parent reference must exist at save time - either already on the server, or part of the same @c CKModifyRecordsOperation batch. You are encouraged to set up the @c parent relationships as part of normal record saves, even if you're not planning on sharing records at this time. This allows you to share and unshare a hierarchy of records at a later date by only modifying the "top level" record, setting or clearing its @c share reference.
      • recordChangeTag

        public java.lang.String recordChangeTag()
        Change tags are updated by the server to a unique value every time a record is modified. A different change tag necessarily means that the contents of the record are different.
      • recordType

        public java.lang.String recordType()
      • setParent

        public void setParent​(CKReference value)
        Use a parent reference to teach CloudKit about the hierarchy of your records. When a record is shared, all children of that record are also shared. A parent record reference must have @c CKReferenceActionNone set. You can create a separate reference with @c CKReferenceActionDeleteSelf if you would like your hierarchy cleaned up when the parent record is deleted. The target of a parent reference must exist at save time - either already on the server, or part of the same @c CKModifyRecordsOperation batch. You are encouraged to set up the @c parent relationships as part of normal record saves, even if you're not planning on sharing records at this time. This allows you to share and unshare a hierarchy of records at a later date by only modifying the "top level" record, setting or clearing its @c share reference.
      • setParentReferenceFromRecord

        public void setParentReferenceFromRecord​(CKRecord parentRecord)
        Convenience wrappers around creating a @c CKReference to a parent record. The resulting @c CKReference will have @code referenceAction = CKReferenceActionNone @endcode
      • setParentReferenceFromRecordID

        public void setParentReferenceFromRecordID​(CKRecordID parentRecordID)
      • share

        public CKReference share()
        The share property on a record can be set by creating a share using @code -[CKShare initWithRootRecord:] @endcode. The share property on a record will be removed when the corresponding CKShare is deleted from the server. Send this record in the same batch as the share delete and this record's share property will be updated. Sharing is only supported in zones with the @c CKRecordZoneCapabilitySharing capability. The default zone does not support sharing. If any records have a parent reference to this record, they are implicitly shared alongside this record. Note that records in a parent chain must only exist within one share. If a child record already has a share reference set then you will get a @c CKErrorAlreadyShared error if you try to share any of that record's parents. Child records can be shared independently, even if they have a common parent. For example: Record A has two child records, Record B and Record C. A / \ B C These configurations are supported: - Record A part of Share 1, or - Record B part of Share 1, or - Record C part of Share 1, or - Record B part of Share 1, Record C part of Share 2 These configurations are not supported: Record A part of Share 1, Record B part of Share 2, or -- This is not allowed because Record B would then be in two shares; Share 1 by being Record A's child, and Share 2 Record A part of Share 1, Record C part of Share 2, or -- This is not allowed because Record C would then be in two shares; Share 1 by being Record A's child, and Share 2 Record A part of Share 1, Record B part of Share 2, Record C part of Share 3 -- This is not allowed because both Record B and Record C would then each be in two shares. Whenever possible, it is suggested that you construct your parent hierarchies such that you will only need to share the topmost record of that hierarchy.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding