public final class CKRecordSavePolicy
extends java.lang.Object
[@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 previously committed change to the server, for example by other devices, will be overwritten by the locally changed value. This policy does not compare the record change tag and therefore will never return @c CKErrorServerRecordChanged
[@constant] CKRecordSaveAllKeys
All local keys are written to the server. Any previously committed change to the server, for example by other devices, will be overwritten by the local value. 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. This policy does not compare the record change tag and therefore will never return @c CKErrorServerRecordChanged.
| Modifier and Type | Field and Description |
|---|---|
static long |
AllKeys
Does not compare record change tags
|
static long |
ChangedKeys |
static long |
IfServerRecordUnchanged |
public static final long IfServerRecordUnchanged
public static final long ChangedKeys
public static final long AllKeys