Added in API level 5
Deprecated in API level 5

Presence


class Presence : ContactsContract.StatusUpdates

Summary

Inherited constants
Int AVAILABLE

An allowed value of PRESENCE.

Int AWAY

An allowed value of PRESENCE.

Int CAPABILITY_HAS_CAMERA

An allowed flag of CHAT_CAPABILITY. Indicates that the contact's device has a camera that can be used for video chat (e.g. a front-facing camera on a phone).

Int CAPABILITY_HAS_VIDEO

An allowed flag of CHAT_CAPABILITY. Indicates that the contact's device can display a video feed.

Int CAPABILITY_HAS_VOICE

An allowed flag of CHAT_CAPABILITY. Indicates audio-chat capability (microphone and speaker)

String CHAT_CAPABILITY

Contact's audio/video chat capability level.

Type: INTEGER (one of the values below)

Int DO_NOT_DISTURB

An allowed value of PRESENCE.

Int IDLE

An allowed value of PRESENCE.

Int INVISIBLE

An allowed value of PRESENCE.

Int OFFLINE

An allowed value of PRESENCE.

String PRESENCE

Contact's latest presence level.

Type: INTEGER (one of the values below)

String PRESENCE_CUSTOM_STATUS

String PRESENCE_STATUS

String STATUS

Contact latest status update.

Type: TEXT

String STATUS_ICON

The resource ID of the icon for the source of the status update. This resource should be scoped by the STATUS_RES_PACKAGE.

Type: NUMBER

String STATUS_LABEL

The resource ID of the label describing the source of the status update, e.g. "Google Talk". This resource should be scoped by the STATUS_RES_PACKAGE.

Type: NUMBER

String STATUS_RES_PACKAGE

The package containing resources for this status: label and icon.

Type: TEXT

String STATUS_TIMESTAMP

The absolute time in milliseconds when the latest status was inserted/updated.

Type: NUMBER

String CONTENT_ITEM_TYPE

The MIME type of a CONTENT_URI subdirectory of a single status update detail.

String CONTENT_TYPE

The MIME type of CONTENT_URI providing a directory of status update details.

String CUSTOM_PROTOCOL

Name of the custom protocol. Should be supplied along with the PROTOCOL value ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM. Should be null or omitted if PROTOCOL value is not ContactsContract.CommonDataKinds.Im.PROTOCOL_CUSTOM.

Type: NUMBER

String DATA_ID

Reference to the Data._ID entry that owns this presence.

Type: INTEGER

String IM_ACCOUNT

The IM account for the local user that the presence data came from.

Type: TEXT

String IM_HANDLE

The IM handle the presence item is for. The handle is scoped to PROTOCOL.

Type: TEXT

String PROTOCOL

See CommonDataKinds.Im for a list of defined protocol constants.

Type: NUMBER

Public constructors

Inherited functions
Int getPresenceIconResourceId(status: Int)

Gets the resource ID for the proper presence icon.

Int getPresencePrecedence(status: Int)

Returns the precedence of the status code the higher number being the higher precedence.

Inherited properties
Uri! CONTENT_URI

The content:// style URI for this table

Uri! PROFILE_CONTENT_URI

The content:// style URI for this table, specific to the user's profile.

Public constructors

Presence

Presence()