Class CKRecordSavePolicy


  • public final class CKRecordSavePolicy
    extends java.lang.Object
    [@enum] CKRecordSavePolicy [@constant] CKRecordSaveIfServerRecordUnchanged Locally-edited keys are sent to the server. If the record on the server has been modified, fail the write and return an error. A CKShare's participants array is always treated as @c CKRecordSaveIfServerRecordUnchanged, regardless of the @c savePolicy of the operation that modifies the share. [@constant] CKRecordSaveChangedKeys Locally-edited keys are written to the server. Any unseen changes on the server will be overwritten to the locally-edited value. [@constant] CKRecordSaveAllKeys All local keys are written to the server. Any unseen changes on the server will be overwritten to the local values. Keys present only on the server remain unchanged. There are two common ways in which a server record will contain keys not present locally: 1 - Since you've fetched this record, another client has added a new key to the record. 2 - The presence of @c desiredKeys on the fetch / query that returned this record meant that only a portion of the record's keys were downloaded.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait