public class

DataStatus

extends Object
java.lang.Object
   ↳ com.android.contacts.util.DataStatus

Class Overview

Storage for a social status update. Holds a single update, but can use possibleUpdate(Cursor) to consider updating when a better status exists. Statuses with timestamps, or with newer timestamps win.

Summary

Public Constructors
DataStatus()
DataStatus(Cursor cursor)
Public Methods
Drawable getIcon(Context context)
int getPresence()
CharSequence getStatus()
CharSequence getTimestampLabel(Context context)
Build any timestamp and label into a single string.
boolean isValid()
void possibleUpdate(Cursor cursor)
Attempt updating this DataStatus based on values at the current row of the given Cursor.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public DataStatus ()

public DataStatus (Cursor cursor)

Public Methods

public Drawable getIcon (Context context)

public int getPresence ()

public CharSequence getStatus ()

public CharSequence getTimestampLabel (Context context)

Build any timestamp and label into a single string.

public boolean isValid ()

public void possibleUpdate (Cursor cursor)

Attempt updating this DataStatus based on values at the current row of the given Cursor.