Package | Description |
---|---|
org.jivesoftware.smack.packet |
XML stanzas and extension elements that are part of the XMPP protocol.
|
Modifier and Type | Method and Description |
---|---|
static Presence.Type |
Presence.Type.fromString(String string)
Converts a String into the corresponding types.
|
Presence.Type |
Presence.getType()
Returns the type of this presence packet.
|
static Presence.Type |
Presence.Type.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Presence.Type[] |
Presence.Type.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
void |
Presence.setType(Presence.Type type)
Sets the type of the presence packet.
|
Constructor and Description |
---|
Presence(Jid to,
Presence.Type type)
Creates a new presence with the given type and using the given XMPP address as recipient.
|
Presence(Presence.Type type)
Creates a new presence update.
|
Presence(Presence.Type type,
String status,
int priority,
Presence.Mode mode)
Creates a new presence update with a specified status, priority, and mode.
|