Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#constants) \| [Inherited Constants](https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#inhconstants)

# CalendarContract.SyncColumns

*** ** * ** ***


`
protected
static


interface
CalendarContract.SyncColumns
`


`


implements

https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns


`

|---|
| android.provider.CalendarContract.SyncColumns |

|---|
| Known indirect subclasses [CalendarContract.CalendarEntity](https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity), [CalendarContract.Calendars](https://developer.android.com/reference/android/provider/CalendarContract.Calendars), [CalendarContract.Events](https://developer.android.com/reference/android/provider/CalendarContract.Events), [CalendarContract.EventsEntity](https://developer.android.com/reference/android/provider/CalendarContract.EventsEntity) |---|---| | [CalendarContract.CalendarEntity](https://developer.android.com/reference/android/provider/CalendarContract.CalendarEntity) | Class that represents a Calendar Entity. | | [CalendarContract.Calendars](https://developer.android.com/reference/android/provider/CalendarContract.Calendars) | Constants and helpers for the Calendars table, which contains details for individual calendars. | | [CalendarContract.Events](https://developer.android.com/reference/android/provider/CalendarContract.Events) | Constants and helpers for the Events table, which contains details for individual events. | | [CalendarContract.EventsEntity](https://developer.android.com/reference/android/provider/CalendarContract.EventsEntity) | Class that represents an Event Entity. | |

<br />

*** ** * ** ***

Columns for Sync information used by Calendars and Events tables. These
have specific uses which are expected to be consistent by the app and
sync adapter.

## Summary

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#ACCOUNT_NAME` The account that was used to sync the entry to the device. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#ACCOUNT_TYPE` The type of the account that was used to sync the entry to the device. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#CAN_PARTIALLY_UPDATE` If set to 1 this causes events on this calendar to be duplicated with `https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#LAST_SYNCED` set to 1 whenever the event transitions from non-dirty to dirty. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#DELETED` Whether the row has been deleted but not synced to the server. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#DIRTY` Used to indicate that local, unsynced, changes are present. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#MUTATORS` Used in conjunction with `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#DIRTY` to indicate what packages wrote local changes. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#_SYNC_ID` The unique ID for a row assigned by the sync source. |

| ### Inherited constants |
|---|
| From interface `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns` |---|---| | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC1` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC10` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC2` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC3` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC4` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC5` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC6` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC7` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC8` Generic column for use by sync adapters. | | `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/provider/CalendarContract.CalendarSyncColumns#CAL_SYNC9` Generic column for use by sync adapters. | |

## Constants

### ACCOUNT_NAME

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACCOUNT_NAME
```

The account that was used to sync the entry to the device. If the
account_type is not `https://developer.android.com/reference/android/provider/CalendarContract#ACCOUNT_TYPE_LOCAL` then the name and
type must match an account on the device or the calendar will be
deleted.

Type: TEXT

<br />

<br />

Constant Value:

"account_name"


### ACCOUNT_TYPE

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACCOUNT_TYPE
```

The type of the account that was used to sync the entry to the
device. A type of `https://developer.android.com/reference/android/provider/CalendarContract#ACCOUNT_TYPE_LOCAL` will keep this event
form being deleted if there are no matching accounts on the device.

Type: TEXT

<br />

<br />

Constant Value:

"account_type"


### CAN_PARTIALLY_UPDATE

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String CAN_PARTIALLY_UPDATE
```

If set to 1 this causes events on this calendar to be duplicated with
`https://developer.android.com/reference/android/provider/CalendarContract.EventsColumns#LAST_SYNCED` set to 1 whenever the event
transitions from non-dirty to dirty. The duplicated event will not be
expanded in the instances table and will only show up in sync adapter
queries of the events table. It will also be deleted when the
originating event has its dirty flag cleared by the sync adapter.

Type: INTEGER (boolean)

<br />

<br />

Constant Value:

"canPartiallyUpdate"


### DELETED

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DELETED
```

Whether the row has been deleted but not synced to the server. A
deleted row should be ignored.


Type: INTEGER (boolean)

<br />

<br />

Constant Value:

"deleted"


### DIRTY

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String DIRTY
```

Used to indicate that local, unsynced, changes are present.

Type: INTEGER (long)

<br />

<br />

Constant Value:

"dirty"


### MUTATORS

Added in [API level 18](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String MUTATORS
```

Used in conjunction with `https://developer.android.com/reference/android/provider/CalendarContract.SyncColumns#DIRTY` to indicate what packages wrote local changes.

Type: TEXT

<br />

<br />

Constant Value:

"mutators"


### _SYNC_ID

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String _SYNC_ID
```

The unique ID for a row assigned by the sync source. NULL if the row
has never been synced. This is used as a reference id for exceptions
along with `https://developer.android.com/reference/android/provider/BaseColumns#_ID`.

Type: TEXT

<br />

<br />

Constant Value:

"_sync_id"