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

TypeAliasData column
StringSTART_DATEDATA1
intTYPEDATA2Allowed values are:

StringLABELDATA3

Summary

Constants
StringCONTENT_ITEM_TYPEMIME type used when storing this in data table.
StringSTART_DATEThe event start date as the user entered it.
intTYPE_ANNIVERSARY
intTYPE_BIRTHDAY
intTYPE_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.ContactOptionsColumns
From interface android.provider.ContactsContract.ContactStatusColumns
From interface android.provider.ContactsContract.ContactsColumns
From interface android.provider.ContactsContract.DataColumns
From interface android.provider.ContactsContract.DataColumnsWithJoins
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

Since: 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

Since: API Level 5

The event start date as the user entered it.

Type: TEXT

Constant Value: "data1"

public static final int TYPE_ANNIVERSARY

Since: API Level 5

Constant Value: 1 (0x00000001)

public static final int TYPE_BIRTHDAY

Since: API Level 5

Constant Value: 3 (0x00000003)

public static final int TYPE_OTHER

Since: API Level 5

Constant Value: 2 (0x00000002)

Public Methods

public static int getTypeResource (Integer type)

Since: API Level 5

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