com.google.android.gtalkservice.Presence
A Presence is an abstract presentation of the user's presence
information.
Note that changes made to the Presence data won't be reflected to the
server until GTalkSession.setPresence is called.
Only the logged in user can update its own presence data via
GTalkSession.setPresence.
Presence contains a int status value as well as a user settable custom
text status. The possible values for the int status are defined in
Presence. The possible values are
OFFLINE
INVISIBLE
DO_NOT_DISTURB
AWAY
IDLE
AVAILABLE
TODO: add priority API to Presence
Summary
Constants
Public Constructors
Public Methods
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
Details
Constants
public
static
final
Creator
CREATOR
Public Constructors
public
Presence()
Default constructor
public
Presence(int status, String customStatus)
Constructor
Parameters
| status
| the status value for the presence. |
| customStatus
| user settable text status.
|
public
Presence(Parcel source)
Public Methods
public
String
getCustomStatus()
public
int
getStatus()
getStatus
Returns
- the integer presence status
public
boolean
isOnline()
isOnLine
Returns
- true if the presence status is not
OFFLINE or INVITED
public
boolean
isVisible()
isVisible
Returns
- true if the presence status is not
INVISIBLE, OFFLINE or
INVITED
public
void
setCustomStatus(String statusText)
setCustomStatus
Parameters
| statusText
| the text status.
|
public
void
setStatus(int status)
setStatus
Parameters
| status
| the integer presene status
|
public
void
writeToParcel(Parcel dest)
writeToParcel
Parameters
| dest
| the destination parcel to be written to.
|