Package | Description |
---|---|
org.jivesoftware.smack |
Core classes of the Smack API.
|
org.jivesoftware.smack.filter |
Allows
PacketCollector and PacketListener instances to filter for packets with particular attributes. |
org.jivesoftware.smack.packet |
XML packets that are part of the XMPP protocol.
|
org.jivesoftware.smack.roster | |
org.jivesoftware.smack.util |
Utility classes.
|
org.jivesoftware.smackx.muc |
Classes and Interfaces that implement Multi-User Chat (MUC).
|
org.jivesoftware.smackx.workgroup.agent |
Modifier and Type | Method and Description |
---|---|
void |
AbstractXMPPConnection.disconnect(Presence unavailablePresence)
Closes the connection.
|
void |
PresenceListener.processPresence(Presence presence) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
PresenceTypeFilter.acceptSpecific(Presence presence) |
Modifier and Type | Method and Description |
---|---|
Presence |
Presence.clone()
Creates and returns a copy of this presence stanza.
|
Presence |
Presence.cloneWithNewId()
Clone this presence and set a newly generated stanza ID as the clone's ID.
|
Constructor and Description |
---|
Presence(Presence other)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
Presence |
Roster.getPresence(String user)
Returns the presence info for a particular user.
|
Presence |
Roster.getPresenceResource(String userWithResource)
Returns the presence info for a particular user's resource, or unavailable presence
if the user is offline or if no presence information is available, such as
when you are not subscribed to the user's presence updates.
|
Modifier and Type | Method and Description |
---|---|
List<Presence> |
Roster.getAllPresences(String bareJid)
Returns a List of Presence objects for all of a user's current presences if no presence information is available,
such as when you are not subscribed to the user's presence updates.
|
List<Presence> |
Roster.getAvailablePresences(String bareJid)
Returns a List of all available Presence Objects for the given bare JID.
|
List<Presence> |
Roster.getPresences(String user)
Returns a List of Presence objects for all of a user's current presences
or an unavailable presence if the user is unavailable (offline) or if no presence
information is available, such as when you are not subscribed to the user's presence
updates.
|
Modifier and Type | Method and Description |
---|---|
void |
RosterListener.presenceChanged(Presence presence)
Called when the presence of a roster entry is changed.
|
Modifier and Type | Method and Description |
---|---|
static Presence |
PacketParserUtils.parsePresence(org.xmlpull.v1.XmlPullParser parser)
Parses a presence packet.
|
Modifier and Type | Method and Description |
---|---|
Presence |
MultiUserChat.getOccupantPresence(String user)
Returns the presence info for a particular user, or null if the user
is not in the room.
|
Modifier and Type | Method and Description |
---|---|
Presence |
AgentRoster.getPresence(String user)
Returns the presence info for a particular agent, or null if the agent
is unavailable (offline) or if no presence information is available.
|
Modifier and Type | Method and Description |
---|---|
void |
AgentRosterListener.presenceChanged(Presence presence) |