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 CKRecord allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

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

        @NotNull
        public static @NotNull 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

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

        public static CKRecord 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

        @NotNull
        public @NotNull 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

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

        @Nullable
        public @Nullable NSDate creationDate()
      • creatorUserRecordID

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

        public void encodeSystemFieldsWithCoder​(@NotNull
                                                @NotNull 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​(@NotNull
                                           @NotNull java.lang.String recordType)
        This creates the record in the default zone.
      • initWithRecordTypeRecordID

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

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

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

        @Nullable
        public @Nullable NSDate modificationDate()
      • parent

        @Nullable
        public @Nullable 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. API-Since: 10.0
      • recordChangeTag

        @Nullable
        public @Nullable 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.
      • recordID

        @NotNull
        public @NotNull CKRecordID recordID()
      • recordType

        @NotNull
        public @NotNull java.lang.String recordType()
      • setParent

        public void setParent​(@Nullable
                              @Nullable 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. API-Since: 10.0
      • setParentReferenceFromRecord

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

        public void setParentReferenceFromRecordID​(@Nullable
                                                   @Nullable CKRecordID parentRecordID)
        API-Since: 10.0
      • share

        @Nullable
        public @Nullable 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. API-Since: 10.0
      • _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
      • encryptedValues

        @NotNull
        public @NotNull CKRecordKeyValueSetting encryptedValues()
        Any values set here will be locally encrypted before being saved to the server and locally decrypted when fetched from the server. Encryption and decryption is handled by the CloudKit framework. Key material necessary for decryption are available to the owner of the record, as well as any users that can access this record via a CKShare. All CKRecordValue types can be set here except CKAsset and CKReference. API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.