|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Presence.Mode> org.jivesoftware.smack.packet.Presence.Mode
public static enum Presence.Mode
An enum to represent the presence mode.
Enum Constant Summary | |
---|---|
available
Available (the default). |
|
away
Away. |
|
chat
Free to chat. |
|
dnd
Do not disturb. |
|
xa
Away for an extended period of time. |
Method Summary | |
---|---|
static Presence.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Presence.Mode[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Presence.Mode chat
public static final Presence.Mode available
public static final Presence.Mode away
public static final Presence.Mode xa
public static final Presence.Mode dnd
Method Detail |
---|
public static final Presence.Mode[] values()
for(Presence.Mode c : Presence.Mode.values()) System.out.println(c);
public static Presence.Mode 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
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |