Build 1.0_r1(from source)

android.provider
Class Contacts.Presence

java.lang.Object
  extended by android.provider.Contacts.Presence
All Implemented Interfaces:
BaseColumns, Contacts.PeopleColumns, Contacts.PresenceColumns, Im.CommonPresenceColumns
Enclosing class:
Contacts

public static final class Contacts.Presence
extends Object
implements BaseColumns, Contacts.PresenceColumns, Contacts.PeopleColumns

Contains presence information about contacts.


Field Summary
static Uri CONTENT_URI
          The content:// style URL for this table
static String PERSON_ID
          The ID of the person this presence item is assigned to.
 
Fields inherited from interface android.provider.BaseColumns
_COUNT, _ID
 
Fields inherited from interface android.provider.Contacts.PresenceColumns
IM_ACCOUNT, IM_HANDLE, IM_PROTOCOL
 
Fields inherited from interface android.provider.Im.CommonPresenceColumns
AVAILABLE, AWAY, DO_NOT_DISTURB, IDLE, INVISIBLE, OFFLINE, PRESENCE_CUSTOM_STATUS, PRESENCE_STATUS, PRIORITY
 
Fields inherited from interface android.provider.Contacts.PeopleColumns
CUSTOM_RINGTONE, DISPLAY_NAME, LAST_TIME_CONTACTED, NAME, NOTES, PHOTO_VERSION, SEND_TO_VOICEMAIL, STARRED, TIMES_CONTACTED
 
Constructor Summary
Contacts.Presence()
           
 
Method Summary
static int getPresenceIconResourceId(int status)
          Gets the resource ID for the proper presence icon.
static void setPresenceIcon(ImageView icon, int serverStatus)
          Sets a presence icon to the proper graphic
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTENT_URI

public static final Uri CONTENT_URI
The content:// style URL for this table


PERSON_ID

public static final String PERSON_ID
The ID of the person this presence item is assigned to.

Type: INTEGER (long)

See Also:
Constant Field Values
Constructor Detail

Contacts.Presence

public Contacts.Presence()
Method Detail

getPresenceIconResourceId

public static final int getPresenceIconResourceId(int status)
Gets the resource ID for the proper presence icon.

Parameters:
status - the status to get the icon for
Returns:
the resource ID for the proper presence icon

setPresenceIcon

public static final void setPresenceIcon(ImageView icon,
                                         int serverStatus)
Sets a presence icon to the proper graphic

Parameters:
icon - the icon to to set
serverStatus - that status

Build 1.0_r1(from source)

Please submit a feedback, bug or feature