Reference:Com.google.android.gtalkservice.Presence

From Triled Wiki

Jump to: navigation, search


com.google.android.gtalkservice
public final class com.google.android.gtalkservice.Presence

java.lang.Object
com.google.android.gtalkservice.Presence Parcelable

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 AVAILABLETODO: add priority API to Presence

Contents

[edit] Summary

[edit] Constants

      Value  
Creator   CREATOR        

[edit] Public Constructors

          Presence ()
Default constructor
          Presence (int status, String customStatus)
Constructor
          Presence (Parcel source)
Constructor

[edit] Public Methods

        String   getCustomStatus ()
getCustomStatus
        int  getStatus ()
getStatus
        boolean  isOnline ()
isOnLine
        boolean  isVisible ()
isVisible
        void  setCustomStatus (String statusText)
setCustomStatus
        void  setStatus (int status)
setStatus
        void  writeToParcel (Parcel dest)
writeToParcel

[edit] Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
[edit] Methods inherited from interface android.os.Parcelable

writeToParcel

[edit] Details

[edit] Constants

[edit] public static final Creator CREATOR

[edit] Public Constructors

[edit] public Presence()

Default constructor

[edit] public Presence(int status, String customStatus)

Constructor

Parameters

status the status value for the presence.
customStatus user settable text status.

[edit] public Presence(Parcel source)

Constructor

Parameters

source the parcel value.

[edit] Public Methods

[edit] public String getCustomStatus()

getCustomStatus

Returns

  • the custom text status.

[edit] public int getStatus()

getStatus

Returns

  • the integer presence status

[edit] public boolean isOnline()

isOnLine

Returns

  • true if the presence status is not OFFLINE or INVITED

[edit] public boolean isVisible()

isVisible

Returns

  • true if the presence status is not INVISIBLE, OFFLINE or INVITED

[edit] public void setCustomStatus(String statusText)

setCustomStatus

Parameters

statusText the text status.

[edit] public void setStatus(int status)

setStatus

Parameters

status the integer presene status

[edit] public void writeToParcel(Parcel dest)

writeToParcel

Parameters

dest the destination parcel to be written to.

[edit] References

Personal tools