to top
Android APIs
public static final class

ContactsContract.CommonDataKinds.Event

extends Object
implements ContactsContract.CommonDataKinds.CommonColumns ContactsContract.DataColumnsWithJoins
java.lang.Object
   ↳ android.provider.ContactsContract.CommonDataKinds.Event

Class Overview

A data kind representing an event.

You can use all columns defined for ContactsContract.Data as well as the following aliases.

Column aliases

Type AliasData column
String START_DATE DATA1
int TYPE DATA2 Allowed values are:

String LABEL DATA3

Summary

Constants
String CONTENT_ITEM_TYPE MIME type used when storing this in data table.
String START_DATE The event start date as the user entered it.
int TYPE_ANNIVERSARY
int TYPE_BIRTHDAY
int TYPE_OTHER
[Expand]
Inherited Constants
From interface android.provider.BaseColumns
From interface android.provider.ContactsContract.CommonDataKinds.BaseTypes
From interface android.provider.ContactsContract.CommonDataKinds.CommonColumns
From interface android.provider.ContactsContract.ContactNameColumns
From interface android.provider.ContactsContract.ContactOptionsColumns
From interface android.provider.ContactsContract.ContactStatusColumns
From interface android.provider.ContactsContract.ContactsColumns
From interface android.provider.ContactsContract.DataColumns
From interface android.provider.ContactsContract.DataUsageStatColumns
From interface android.provider.ContactsContract.RawContactsColumns
From interface android.provider.ContactsContract.StatusColumns
Public Methods
static int getTypeResource(Integer type)
Return the string resource that best describes the given TYPE.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String CONTENT_ITEM_TYPE

Added in API level 5

MIME type used when storing this in data table.

Constant Value: "vnd.android.cursor.item/contact_event"

public static final String START_DATE

Added in API level 5

The event start date as the user entered it.

Type: TEXT

Constant Value: "data1"

public static final int TYPE_ANNIVERSARY

Added in API level 5

Constant Value: 1 (0x00000001)

public static final int TYPE_BIRTHDAY

Added in API level 5

Constant Value: 3 (0x00000003)

public static final int TYPE_OTHER

Added in API level 5

Constant Value: 2 (0x00000002)

Public Methods

public static int getTypeResource (Integer type)

Added in API level 5

Return the string resource that best describes the given TYPE. Will always return a valid resource.