public static enum Presence.Show extends java.lang.Enum<Presence.Show>
Represents a <presence/>
<show/>
element.
The OPTIONAL
<show/>
element specifies the particular availability sub-state of an entity or a specific resource thereof.If no
<show/>
element is provided, the entity is assumed to be online and available.
Enum Constant and Description |
---|
AWAY
The entity or resource is temporarily away.
|
CHAT
The entity or resource is actively interested in chatting.
|
DND
The entity or resource is busy (dnd = "Do Not Disturb").
|
XA
The entity or resource is away for an extended period (xa = "eXtended Away").
|
Modifier and Type | Method and Description |
---|---|
static Presence.Show |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Presence.Show[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Presence.Show CHAT
public static final Presence.Show AWAY
public static final Presence.Show XA
public static final Presence.Show DND
public static Presence.Show[] values()
for (Presence.Show c : Presence.Show.values()) System.out.println(c);
public static Presence.Show valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.