to top
Android APIs
protected static interface

CalendarContract.SyncColumns

implements CalendarContract.CalendarSyncColumns
android.provider.CalendarContract.SyncColumns
Known Indirect Subclasses

Class Overview

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
String ACCOUNT_NAME The account that was used to sync the entry to the device.
String ACCOUNT_TYPE The type of the account that was used to sync the entry to the device.
String CAN_PARTIALLY_UPDATE If set to 1 this causes events on this calendar to be duplicated with LAST_SYNCED set to 1 whenever the event transitions from non-dirty to dirty.
String DELETED Whether the row has been deleted but not synced to the server.
String DIRTY Used to indicate that local, unsynced, changes are present.
String _SYNC_ID The unique ID for a row assigned by the sync source.
[Expand]
Inherited Constants
From interface android.provider.CalendarContract.CalendarSyncColumns

Constants

public static final String ACCOUNT_NAME

Since: API Level 14

The account that was used to sync the entry to the device. If the account_type is not ACCOUNT_TYPE_LOCAL then the name and type must match an account on the device or the calendar will be deleted.

Type: TEXT

Constant Value: "account_name"

public static final String ACCOUNT_TYPE

Since: API Level 14

The type of the account that was used to sync the entry to the device. A type of ACCOUNT_TYPE_LOCAL will keep this event form being deleted if there are no matching accounts on the device.

Type: TEXT

Constant Value: "account_type"

public static final String CAN_PARTIALLY_UPDATE

Since: API Level 14

If set to 1 this causes events on this calendar to be duplicated with 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)

Constant Value: "canPartiallyUpdate"

public static final String DELETED

Since: API Level 14

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

Type: INTEGER (boolean)

Constant Value: "deleted"

public static final String DIRTY

Since: API Level 14

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

Type: INTEGER (long)

Constant Value: "dirty"

public static final String _SYNC_ID

Since: API Level 14

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 _ID.

Type: TEXT

Constant Value: "_sync_id"