| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<Presence.Type>
org.jivesoftware.smack.packet.Presence.Type
public static enum Presence.Type
A enum to represent the presecence type. Not that presence type is often confused
 with presence mode. Generally, if a user is signed into a server, they have a presence
 type of available, even if the mode is away,
 dnd, etc. The presence type is only unavailable when
 the user is signing out of the server.
| Enum Constant Summary | |
|---|---|
| availableThe user is available to receive messages (default). | |
| errorThe presence packet contains an error message. | |
| subscribeRequest subscription to recipient's presence. | |
| subscribedGrant subscription to sender's presence. | |
| unavailableThe user is unavailable to receive messages. | |
| unsubscribeRequest removal of subscription to sender's presence. | |
| unsubscribedGrant removal of subscription to sender's presence. | |
| Method Summary | |
|---|---|
| static Presence.Type | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static Presence.Type[] | values()Returns an array containing the constants of this enum type, in the order they are declared. | 
| Methods inherited from class java.lang.Enum | 
|---|
| clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf | 
| Methods inherited from class java.lang.Object | 
|---|
| getClass, notify, notifyAll, wait, wait, wait | 
| Enum Constant Detail | 
|---|
public static final Presence.Type available
public static final Presence.Type unavailable
public static final Presence.Type subscribe
public static final Presence.Type subscribed
public static final Presence.Type unsubscribe
public static final Presence.Type unsubscribed
public static final Presence.Type error
| Method Detail | 
|---|
public static Presence.Type[] values()
for (Presence.Type c : Presence.Type.values()) System.out.println(c);
public static Presence.Type valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null| 
 | Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||